summaryrefslogtreecommitdiff
path: root/include/JSystem/J2DGraph/J2DTextBox.h
diff options
context:
space:
mode:
authorSuperDude88 <82904174+SuperDude88@users.noreply.github.com>2025-04-12 21:02:24 -0400
committerGitHub <noreply@github.com>2025-04-12 21:02:24 -0400
commit1f1900bf669a5f14afa430d95fef7f2bf28a2076 (patch)
tree283c8ccd6e1fe310c04fe9ba19ac1d77dd0a5636 /include/JSystem/J2DGraph/J2DTextBox.h
parente1898d3836292a43477d24e906cbc81b095f2c95 (diff)
f_op_msg_mng Work (#685)
* f_op_msg_mng work * Fix Some Conflicts Haven't had much chance to work on actual progress, still looking to do more matching before merge * Tiny bit of Work Little bit of cleanup, start on a couple more functions * More Matches Also add back some missing nonmatch comments * Fixes * JPN ifdefs * Inline Fix Also force one match (there's no way that casting is real) * Reorder Strings Fix rodata, I think this order is also slightly more accurate to the function (but I'm not really trying to match it right now anyways)
Diffstat (limited to 'include/JSystem/J2DGraph/J2DTextBox.h')
-rw-r--r--include/JSystem/J2DGraph/J2DTextBox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/JSystem/J2DGraph/J2DTextBox.h b/include/JSystem/J2DGraph/J2DTextBox.h
index 2e7f53c6..100f7b92 100644
--- a/include/JSystem/J2DGraph/J2DTextBox.h
+++ b/include/JSystem/J2DGraph/J2DTextBox.h
@@ -3,6 +3,7 @@
#include "JSystem/J2DGraph/J2DPane.h"
#include "JSystem/JKernel/JKRArchive.h"
+#include "JSystem/JUtility/JUTFont.h"
#include "JSystem/JUtility/JUTResFont.h"
enum J2DTextBoxHBinding {
@@ -36,6 +37,7 @@ public:
void initiate(const ResFONT*, const char*, J2DTextBoxHBinding, J2DTextBoxVBinding);
void setFont(JUTFont*);
+ JUTFont* getFont() { return mpFont; }
void setFontSize(f32 sizeX, f32 sizeY) {
mFontSizeX = sizeX > 0.0f ? sizeX : 0.0f;
mFontSizeY = sizeY > 0.0f ? sizeY : 0.0f;
@@ -53,6 +55,7 @@ public:
void setWhite(JUtility::TColor c) { mBlack = c; }
void setLineSpace(f32 x) { mLineSpace = x; }
f32 getLineSpace() const { return mLineSpace; }
+ f32 getCharSpace() const { return mCharSpace; }
void setCharSpace(f32 x) { mCharSpace = x; }
void draw(f32, f32, f32, J2DTextBoxHBinding);
char* getStringPtr() const;