diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2026-07-02 17:43:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-02 20:43:07 -0400 |
| commit | f93c5ba62c18e7ae593fa034a6d0bd52bc95e55e (patch) | |
| tree | 3b5e95ae011585279136d26e22610ad2e881946c /include/JSystem | |
| parent | 873bb82e00fc8ee3a77eeebf50eafd5718a6f715 (diff) | |
d_message mostly done (#1097)
* d_message mostly done
* fopMsgM_selectMessageGet fix
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPane.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DTextBox.h | 6 | ||||
| -rw-r--r-- | include/JSystem/JKernel/JKRArchive.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/include/JSystem/J2DGraph/J2DPane.h b/include/JSystem/J2DGraph/J2DPane.h index 19b3a3a4..5bd81613 100644 --- a/include/JSystem/J2DGraph/J2DPane.h +++ b/include/JSystem/J2DGraph/J2DPane.h @@ -89,7 +89,7 @@ public: void hide() { mVisible = false; } bool isVisible() { return mVisible; } - void getBounds() {} + const JGeometry::TBox2<f32>& getBounds() { return mBounds; } const JGeometry::TBox2<f32>& getGlbBounds() { return mGlobalBounds; } f32 getRotate() const { return mRotation; } void place(const JGeometry::TBox2<f32>&) {} diff --git a/include/JSystem/J2DGraph/J2DTextBox.h b/include/JSystem/J2DGraph/J2DTextBox.h index 6e70e765..5a663fa2 100644 --- a/include/JSystem/J2DGraph/J2DTextBox.h +++ b/include/JSystem/J2DGraph/J2DTextBox.h @@ -66,8 +66,10 @@ public: char* getStringPtr() const; s32 setString(const char*, ...); - // TODO - void setFontColor(JUtility::TColor, JUtility::TColor) {} + void setFontColor(JUtility::TColor i_charColor, JUtility::TColor i_GradientColor) { + mCharColor = i_charColor; + mGradColor = i_GradientColor; + } virtual ~J2DTextBox(); virtual bool setConnectParent(bool); diff --git a/include/JSystem/JKernel/JKRArchive.h b/include/JSystem/JKernel/JKRArchive.h index 169b9a1c..53f149cd 100644 --- a/include/JSystem/JKernel/JKRArchive.h +++ b/include/JSystem/JKernel/JKRArchive.h @@ -236,4 +236,8 @@ inline u32 JKRReadIdResource(void* buffer, u32 bufferSize, u16 id, JKRArchive* a return JKRReadResource(buffer, bufferSize, id, arc); } +inline u32 JKRReadTypeResource(void* buffer, u32 bufferSize, u32 tag, const char* name, JKRArchive* arc) { + return JKRArchive::readTypeResource(buffer, bufferSize, tag, name, arc); +} + #endif |
