Compare commits

...

1 Commits

Author SHA1 Message Date
coah
d665517804 cleanup(iplSDButton): rename unk_0x54 to mAnimWait
Same pattern as Button: wait flag while help-button click anim plays.
2026-10-02 13:58:11 -05:00
2 changed files with 5 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ namespace ipl {
ANIM_MAX, ANIM_MAX,
}; };
int unk_0x54; int mAnimWait;
layout::Object* mpLayout; // 0x58 layout::Object* mpLayout; // 0x58
nand::LayoutFile* mpLayoutFile; // 0x5C nand::LayoutFile* mpLayoutFile; // 0x5C

View File

@@ -31,7 +31,7 @@ namespace ipl {
}; };
// clang-format on // clang-format on
SDButton::SDButton(EGG::Heap* heap) : Base(heap), unk_0x54(0) { SDButton::SDButton(EGG::Heap* heap) : Base(heap), mAnimWait(0) {
setSceneParentFlags(SCN_PARENTFLAG_CALC | SCN_PARENTFLAG_DRAW); setSceneParentFlags(SCN_PARENTFLAG_CALC | SCN_PARENTFLAG_DRAW);
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
@@ -114,10 +114,10 @@ namespace ipl {
} }
void SDButton::calc() { void SDButton::calc() {
if (unk_0x54 == 1) { if (mAnimWait == 1) {
if (!mpLayout->isPlaying(ANIM_HELP_BTN_ROLL_ON)) { if (!mpLayout->isPlaying(ANIM_HELP_BTN_ROLL_ON)) {
reset_gui(); reset_gui();
unk_0x54 = 0; mAnimWait = 0;
} }
} }
@@ -347,7 +347,7 @@ namespace ipl {
switch (animNo) { switch (animNo) {
case IDANIM_HELP_BTN_CLICK: { case IDANIM_HELP_BTN_CLICK: {
anim = mpLayout->getAnim(ANIM_HELP_BTN_ROLL_ON); anim = mpLayout->getAnim(ANIM_HELP_BTN_ROLL_ON);
unk_0x54 = 1; mAnimWait = 1;
break; break;
} }
case IDANIM_ARROW_RIGHT_CLICK: { case IDANIM_ARROW_RIGHT_CLICK: {