diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-10-15 21:21:07 -0700 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-10-15 21:21:18 -0700 |
| commit | 09c4a4dfc723c427b3ced91a8d31ca97276d7beb (patch) | |
| tree | ec56ad9b09f6b52b8f203174bcd6de5ea4d91f10 /include/JSystem/J2DGraph | |
| parent | c9485926d68d47bfc790fe1e7dddeba33b0e5bbe (diff) | |
d_place_name 90%
Diffstat (limited to 'include/JSystem/J2DGraph')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPane.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DScreen.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/JSystem/J2DGraph/J2DPane.h b/include/JSystem/J2DGraph/J2DPane.h index 00deb40f..0b6f3bf1 100644 --- a/include/JSystem/J2DGraph/J2DPane.h +++ b/include/JSystem/J2DGraph/J2DPane.h @@ -69,6 +69,8 @@ public: u8 getAlpha() const { return mAlpha; } void setAlpha(u8 alpha) { mAlpha = alpha; } bool isConnectParent() const { return mIsConnectParent; } + void show() { mVisible = true; } + void hide() { mVisible = false; } public: /* 0x04 */ u32 mMagic; diff --git a/include/JSystem/J2DGraph/J2DScreen.h b/include/JSystem/J2DGraph/J2DScreen.h index 0e041e67..44713a73 100644 --- a/include/JSystem/J2DGraph/J2DScreen.h +++ b/include/JSystem/J2DGraph/J2DScreen.h @@ -9,6 +9,12 @@ class JKRArchive; class J2DScreen : public J2DPane { public: + J2DScreen(J2DPane* parent, bool visible, u32 tag, const JGeometry::TBox2<f32>& bounds) + : J2DPane(parent, visible, tag, bounds) + , mColor() + , mbClipToParent(false) + {} + virtual ~J2DScreen(); virtual u16 getTypeID() { return 0x08; } virtual void calcMtx() { makeMatrix(mBounds.i.x, mBounds.i.y); } @@ -16,10 +22,11 @@ public: virtual J2DPane* search(u32 tag); virtual J2DPane* createPane(J2DPane::J2DScrnBlockHeader const & header, JSURandomInputStream * pStream, J2DPane * pParent); -protected: void draw(f32 x, f32 y, const J2DGrafContext * pCtx); bool set(const char *pName, JKRArchive * pArc); bool set(JSURandomInputStream * pStream); + +protected: s32 makeHierarchyPanes(J2DPane * pParent, JSURandomInputStream * pStream); bool checkSignature(JSURandomInputStream * pStream); bool getScreenInformation(JSURandomInputStream * pStream); |
