J2DWindow fakematch

found by Cuyler
This commit is contained in:
Jasper St. Pierre
2024-01-21 14:44:39 -08:00
parent fbc3906a1d
commit d9b844f714
4 changed files with 15 additions and 3 deletions
+6 -1
View File
@@ -49,8 +49,13 @@ public:
virtual u16 getTypeID() { return 0x10; }
virtual void move(f32 x, f32 y);
virtual void add(f32 x, f32 y);
// fakematch, this getter doesn't exist
f32 resize__getMinX() const { return mBounds.i.x; }
virtual void resize(f32 w, f32 h) {
mBounds.f.x = mBounds.i.x + w;
f32 x = resize__getMinX();
x += w;
mBounds.f.x = x;
mBounds.f.y = mBounds.i.y + h;
}
virtual bool setConnectParent(bool connected) {
+7
View File
@@ -103,6 +103,13 @@ public:
u8 getNumTexture() { return mNumTexture; }
void setBinding(J2DBinding v) { mBinding = v; }
void setMirror(J2DMirror v) {} // untested { mFlag = (mFlag & ~0x03) | v; }
J2DMirror getMirror() const { return J2DMirror(mFlag & 0x03); }
void setTumble(bool v) {} // untested { mFlag = (mFlag & ~0x04) | (v << 2); }
bool isTumble() const { return mFlag >> 2 & 1; }
private:
/* 0x0CC */ JUTTexture* mpTexture[4];
/* 0x0DC */ u8 mNumTexture;