d_menu_option OK (#1020)

This commit is contained in:
LagoLunatic
2026-05-25 20:13:09 -04:00
committed by GitHub
parent 9ec2756f98
commit b3be0f9e64
13 changed files with 501 additions and 154 deletions
+8 -1
View File
@@ -37,7 +37,7 @@ public:
void initiate(const ResFONT*, const char*, J2DTextBoxHBinding, J2DTextBoxVBinding);
void setFont(JUTFont*);
JUTFont* getFont() { return mpFont; }
JUTFont* getFont() const { return mpFont; }
void setFontSize(f32 sizeX, f32 sizeY) {
mFontSizeX = sizeX > 0.0f ? sizeX : 0.0f;
mFontSizeY = sizeY > 0.0f ? sizeY : 0.0f;
@@ -49,6 +49,10 @@ public:
size.mSizeX = mFontSizeX;
size.mSizeY = mFontSizeY;
}
void shiftSet(f32 x, f32 y) {
field_0xd8 = x;
field_0xdc = y;
}
void setCharColor(JUtility::TColor c) { mCharColor.set(c); }
void setGradColor(JUtility::TColor c) { mGradColor.set(c); }
void setBlack(JUtility::TColor c) { mBlack = c; }
@@ -62,6 +66,9 @@ public:
char* getStringPtr() const;
s32 setString(const char*, ...);
// TODO
void setFontColor(JUtility::TColor, JUtility::TColor) {}
virtual ~J2DTextBox();
virtual bool setConnectParent(bool);
virtual void drawSelf(f32, f32);