JSystem Font classes, SComponent cBgW (#14)

* c_bg_w.cpp OK

* JUTFont and JUTResFont partially implemented

Co-authored-by: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com>
Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
notyourav
2020-12-03 17:58:53 -08:00
committed by GitHub
parent e27ed1c55d
commit 294858f751
35 changed files with 1412 additions and 1527 deletions
+40 -1
View File
@@ -1 +1,40 @@
// ok
#include "JSystem/JUtility/JUTFont/JUTFont.h"
#ifdef NONMATCHING
JUTFont::JUTFont()
{
mColor1 = TColor();
mColor2 = TColor();
mColor3 = TColor();
mColor4 = TColor();
unk4 = false;
}
#endif
void JUTFont::initialize_state()
{
setCharColor(TColor());
unk5 = false;
unk8 = 0;
unk4 = false;
}
void JUTFont::setCharColor(TColor col1) {
mColor1 = col1;
mColor2 = col1;
mColor3 = col1;
mColor4 = col1;
}
void JUTFont::setGradColor(TColor col1, TColor col2) {
mColor1 = col1;
mColor2 = col1;
mColor3 = col2;
mColor4 = col2;
}
asm float JUTFont::drawString_size_scale(float a1, float a2, float a3, float a4, char* a5, unsigned long usz, bool a7) {
nofralloc
#include "JSystem/JUtility/JUTFont/asm/drawString_size_scale.s"
}