dLytMeter_c::execute OK

This commit is contained in:
robojumper
2025-04-19 12:38:35 +02:00
parent 4874cda264
commit 8e5c06ea13
11 changed files with 266 additions and 29 deletions
+1
View File
@@ -12,6 +12,7 @@ public:
bool build();
bool remove();
bool execute();
bool draw();
private:
+8
View File
@@ -54,6 +54,14 @@ public:
}
}
static void reset(DoButton_e button, Action_e value) {
LytDoButtonRelated *b = sInstance;
if (b != nullptr) {
b->field_0x04[button] = value;
b->field_0x34[button] = false;
}
}
static Action_e get(DoButton_e button) {
if (sInstance != nullptr) {
return sInstance->field_0x04[button];
+12 -6
View File
@@ -71,9 +71,11 @@ public:
bool fn_800CA040();
bool fn_800D5380(u8);
bool fn_800D5290();
bool fn_800D5650();
bool fn_800D5680();
bool fn_800D56B0();
bool fn_800D57B0();
bool execute();
bool isSilentRealm();
@@ -145,12 +147,12 @@ public:
/* 0x1374C */ s32 field_0x1374C;
/* 0x13750 */ s32 field_0x13750;
/* 0x13754 */ s32 field_0x13754;
/* 0x13758 */ s32 field_0x13758;
/* 0x1375C */ s32 field_0x1375C;
/* 0x13760 */ s32 field_0x13760;
/* 0x13764 */ s32 field_0x13764;
/* 0x13768 */ s32 field_0x13768;
/* 0x1376C */ s32 field_0x1376C;
/* 0x13758 */ s32 mShieldPosIndex;
/* 0x1375C */ s32 mRupyPosIndex;
/* 0x13760 */ s32 mRupyPosInterpFrame;
/* 0x13764 */ s32 mShieldPosInterpFrame;
/* 0x13768 */ s32 mOldShieldPosIndex;
/* 0x1376C */ s32 mOldRupyPosIndex;
/* 0x13770 */ u8 field_0x13770;
/* 0x13771 */ u8 field_0x13771;
/* 0x13772 */ u8 field_0x13772;
@@ -252,6 +254,10 @@ public:
mFlags = mFlags & ~mask;
}
void resetFlags() {
mFlags = 0xFFFFFFFF;
}
static s32 getCrossBtn0x7BF8() {
if (sInstance != nullptr) {
return sInstance->mMeter.mCrossBtn.getField_0x620();
+2 -1
View File
@@ -26,9 +26,10 @@ public:
return field_0x78C;
}
u8 getCurrentHealthCapacity() const;
private:
u8 getCurrentHealth() const;
u8 getCurrentHealthCapacity() const;
void realizeHeartsState();
void executeInternal();
s32 getNumDisplayedHearts() const;
+5 -1
View File
@@ -99,6 +99,10 @@ public:
mpAnm2 = outAnm;
}
void setShouldBeVisible(bool val) {
mShouldBeVisible = val;
}
private:
STATE_FUNC_DECLARE(dLytMeterParts_c, Invisible);
STATE_FUNC_DECLARE(dLytMeterParts_c, In);
@@ -109,7 +113,7 @@ private:
/* 0x3C */ d2d::AnmGroup_c *mpAnm1;
/* 0x40 */ d2d::AnmGroup_c *mpAnm2;
/* 0x44 */ s32 mIndex;
/* 0x48 */ u8 mShouldBeVisible;
/* 0x48 */ bool mShouldBeVisible;
};
#endif
+4
View File
@@ -93,6 +93,10 @@ public:
field_0x8A9 = val;
}
u8 getField_0x8A9() const {
return field_0x8A9;
}
void setField_0x8AA(u8 val) {
field_0x8AA = val;
}
@@ -31,6 +31,14 @@ public:
mpOwnerPane = pane;
}
f32 getGaugePercentMaybe() const {
return field_0x2E0;
}
void setfield_0x318(s32 v) {
field_0x318 = v;
}
private:
s32 getLytFrameForShield(s32) const;
void setLevel(f32 level);
@@ -50,6 +50,14 @@ public:
const char *fn_80117390(bool) const;
// This function appears to be related to a compiler quirk.
// 0x800D7B40 is in d_lyt_meter, but calling a static method
// on an instance via dLytMsgWindow_c::getInstance()->fn_800D7B40()
// causes the method to be emitted there.
static u16 fn_800D7B40() {
return sInstance->mEntryPointToTrigger;
}
private:
bool setTextToDisplay(const wchar_t *text);
void createSubMsgManager(u8 type);