mirror of
https://github.com/zeldaret/ss
synced 2026-08-03 16:52:37 -04:00
d_lyt_do_button_related OK
This commit is contained in:
@@ -787,13 +787,13 @@ void dLytDobutton_c::fn_8010E3D0(bool b) {
|
||||
mpPanes[1]->SetTranslate(v);
|
||||
}
|
||||
|
||||
void dLytDobutton_c::setActionTextStuffInternal(s32 a1, s32 a2, bool b) {
|
||||
void dLytDobutton_c::setActionTextStuffInternal(s32 a1, Act_Do_e a2, bool b) {
|
||||
field_0x488 = a1;
|
||||
mNextDoActionToShow = a2;
|
||||
mNextDoActionToShow = (Act_Do_e)a2;
|
||||
field_0x490 = b;
|
||||
}
|
||||
|
||||
s32 dLytDobutton_c::getActionInternal() const {
|
||||
dLytDobutton_c::Act_Do_e dLytDobutton_c::getActionInternal() const {
|
||||
return mDoActionToShow;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,31 @@
|
||||
#include "common.h"
|
||||
#include "d/lyt/d2d.h"
|
||||
#include "d/lyt/d_lyt_do_button.h"
|
||||
#include "d/lyt/d_lyt_unknowns.h"
|
||||
#include "d/lyt/meter/d_lyt_meter.h"
|
||||
#include "toBeSorted/misc_actor.h"
|
||||
|
||||
class LytDoButtonRelatedClass {
|
||||
public:
|
||||
LytDoButtonRelatedClass();
|
||||
virtual ~LytDoButtonRelatedClass();
|
||||
|
||||
private:
|
||||
/* 0x04 */ u8 field_0x04;
|
||||
/* 0x05 */ u8 field_0x05;
|
||||
/* 0x06 */ u8 field_0x06;
|
||||
};
|
||||
|
||||
static LytDoButtonRelatedClass sDoButtonRelatedClass;
|
||||
|
||||
LytDoButtonRelatedClass::LytDoButtonRelatedClass() {
|
||||
field_0x04 = 0;
|
||||
field_0x05 = 0;
|
||||
field_0x06 = LytDoButtonRelated::ACT_IE_NONE;
|
||||
}
|
||||
LytDoButtonRelatedClass::~LytDoButtonRelatedClass() {}
|
||||
|
||||
LytDoButtonRelated *LytDoButtonRelated::sInstance;
|
||||
|
||||
LytDoButtonRelated::LytDoButtonRelated() {
|
||||
sInstance = this;
|
||||
@@ -17,3 +43,174 @@ bool LytDoButtonRelated::build(d2d::ResAccIf_c *resAcc) {
|
||||
bool LytDoButtonRelated::remove() {
|
||||
return true;
|
||||
}
|
||||
|
||||
static const dLytDobutton_c::Act_Do_e sActIEtoDoConversionTable[LytDoButtonRelated::ACT_IE_NONE] = {
|
||||
dLytDobutton_c::ACT_DO_CLIMB_UP, // ACT_IE_INFO_CLIMB_UP
|
||||
dLytDobutton_c::ACT_DO_JUMP, // ACT_IE_INFO_JUMP
|
||||
dLytDobutton_c::ACT_DO_DROP_DOWN, // ACT_IE_INFO_DROP_DOWN
|
||||
dLytDobutton_c::ACT_DO_LET_GO, // ACT_IE_INFO_LET_GO
|
||||
dLytDobutton_c::ACT_DO_OPEN, // ACT_IE_INFO_OPEN
|
||||
dLytDobutton_c::ACT_DO_PUT_DOWN, // ACT_IE_INFO_DROP
|
||||
dLytDobutton_c::ACT_DO_THROW, // ACT_IE_INFO_THROW
|
||||
dLytDobutton_c::ACT_DO_BURROW, // ACT_IE_INFO_BURROW
|
||||
dLytDobutton_c::ACT_DO_ROLL, // ACT_IE_INFO_ROLL
|
||||
dLytDobutton_c::ACT_DO_9, // ACT_IE_INFO_9
|
||||
dLytDobutton_c::ACT_DO_MOVE, // ACT_IE_INFO_MOVE
|
||||
dLytDobutton_c::ACT_DO_GRAB, // ACT_IE_INFO_GRAB
|
||||
dLytDobutton_c::ACT_DO_SHOOT, // ACT_IE_INFO_SHOOT
|
||||
dLytDobutton_c::ACT_DO_13, // ACT_IE_INFO_13
|
||||
dLytDobutton_c::ACT_DO_14, // ACT_IE_INFO_14
|
||||
dLytDobutton_c::ACT_DO_15, // ACT_IE_INFO_15
|
||||
dLytDobutton_c::ACT_DO_TALK, // ACT_IE_INFO_TALK
|
||||
dLytDobutton_c::ACT_DO_EXAMINE, // ACT_IE_INFO_EXAMINE
|
||||
dLytDobutton_c::ACT_DO_DRAW, // ACT_IE_INFO_DRAW
|
||||
dLytDobutton_c::ACT_DO_19, // ACT_IE_INFO_19
|
||||
dLytDobutton_c::ACT_DO_BLOW, // ACT_IE_INFO_BLOW
|
||||
dLytDobutton_c::ACT_DO_21, // ACT_IE_INFO_21
|
||||
dLytDobutton_c::ACT_DO_22, // ACT_IE_INFO_22
|
||||
dLytDobutton_c::ACT_DO_SWIM, // ACT_IE_INFO_SWIM
|
||||
dLytDobutton_c::ACT_DO_LEAP, // ACT_IE_INFO_LEAP
|
||||
dLytDobutton_c::ACT_DO_DASH, // ACT_IE_INFO_DASH
|
||||
dLytDobutton_c::ACT_DO_GET_OUT, // ACT_IE_INFO_GET_OUT
|
||||
dLytDobutton_c::ACT_DO_27, // ACT_IE_INFO_27
|
||||
dLytDobutton_c::ACT_DO_PICK_UP, // ACT_IE_INFO_PICK_UP
|
||||
dLytDobutton_c::ACT_DO_SIT, // ACT_IE_INFO_SIT
|
||||
dLytDobutton_c::ACT_DO_STAND, // ACT_IE_INFO_STAND
|
||||
dLytDobutton_c::ACT_DO_DIG, // ACT_IE_INFO_DIG
|
||||
dLytDobutton_c::ACT_DO_32, // ACT_IE_INFO_32
|
||||
dLytDobutton_c::ACT_DO_33, // ACT_IE_INFO_33
|
||||
dLytDobutton_c::ACT_DO_BREAK_FREE, // ACT_IE_INFO_BREAK_FREE
|
||||
dLytDobutton_c::ACT_DO_35, // ACT_IE_INFO_35
|
||||
dLytDobutton_c::ACT_DO_36, // ACT_IE_INFO_36
|
||||
dLytDobutton_c::ACT_DO_PLANT, // ACT_IE_INFO_PLANT
|
||||
dLytDobutton_c::ACT_DO_CATCH, // ACT_IE_INFO_CATCH
|
||||
dLytDobutton_c::ACT_DO_SPEED_UP, // ACT_IE_INFO_SPEED_UP
|
||||
dLytDobutton_c::ACT_DO_SAILCLOTH, // ACT_IE_INFO_SAILCLOTH
|
||||
dLytDobutton_c::ACT_DO_PUT_AWAY, // ACT_IE_INFO_PUT_AWAY
|
||||
dLytDobutton_c::ACT_DO_EMERGE, // ACT_IE_INFO_EMERGE
|
||||
dLytDobutton_c::ACT_DO_INSERT, // ACT_IE_INFO_INSERT
|
||||
dLytDobutton_c::ACT_DO_44, // ACT_IE_INFO_44
|
||||
dLytDobutton_c::ACT_DO_TURN, // ACT_IE_INFO_TURN
|
||||
dLytDobutton_c::ACT_DO_PUSH_IN, // ACT_IE_INFO_ALIGN
|
||||
dLytDobutton_c::ACT_DO_47, // ACT_IE_INFO_47
|
||||
dLytDobutton_c::ACT_DO_DRAW_BOW, // ACT_IE_INFO_DRAW_BOW
|
||||
dLytDobutton_c::ACT_DO_49, // ACT_IE_INFO_49
|
||||
dLytDobutton_c::ACT_DO_50, // ACT_IE_INFO_50
|
||||
dLytDobutton_c::ACT_DO_51, // ACT_IE_INFO_51
|
||||
dLytDobutton_c::ACT_DO_SWING, // ACT_IE_INFO_SWING
|
||||
dLytDobutton_c::ACT_DO_BALANCE, // ACT_IE_INFO_BALANCE
|
||||
dLytDobutton_c::ACT_DO_JOSTLE, // ACT_IE_INFO_JOSTLE
|
||||
dLytDobutton_c::ACT_DO_55, // ACT_IE_INFO_55
|
||||
dLytDobutton_c::ACT_DO_SLEEP, // ACT_IE_INFO_SLEEP
|
||||
dLytDobutton_c::ACT_DO_DROP, // ACT_IE_INFO_DROP_2
|
||||
dLytDobutton_c::ACT_DO_LAUNCH, // ACT_IE_INFO_LAUNCH
|
||||
dLytDobutton_c::ACT_DO_READ, // ACT_IE_INFO_READ
|
||||
dLytDobutton_c::ACT_DO_WHIP, // ACT_IE_INFO_WHIP
|
||||
dLytDobutton_c::ACT_DO_PULL, // ACT_IE_INFO_PULL
|
||||
dLytDobutton_c::ACT_DO_DRINK, // ACT_IE_INFO_DRINK
|
||||
dLytDobutton_c::ACT_DO_63, // ACT_IE_INFO_63
|
||||
dLytDobutton_c::ACT_DO_GET_IN, // ACT_IE_INFO_GET_IN
|
||||
dLytDobutton_c::ACT_DO_FIRE, // ACT_IE_INFO_FIRE
|
||||
dLytDobutton_c::ACT_DO_ATTACK, // ACT_IE_INFO_ATTACK
|
||||
dLytDobutton_c::ACT_DO_FATAL_BLOW, // ACT_IE_INFO_FATAL_BLOW
|
||||
dLytDobutton_c::ACT_DO_JUMP_DOWN, // ACT_IE_INFO_JUMP_DOWN
|
||||
dLytDobutton_c::ACT_DO_STRUM, // ACT_IE_INFO_STRUM
|
||||
dLytDobutton_c::ACT_DO_70, // ACT_IE_INFO_70
|
||||
dLytDobutton_c::ACT_DO_RELEASE, // ACT_IE_INFO_RELEASE
|
||||
dLytDobutton_c::ACT_DO_GRAB_2, // ACT_IE_INFO_GRAB_2
|
||||
dLytDobutton_c::ACT_DO_READY_STANCE, // ACT_IE_INFO_READY_STANCE
|
||||
dLytDobutton_c::ACT_DO_REMOVE, // ACT_IE_INFO_REMOVE
|
||||
dLytDobutton_c::ACT_DO_READY_SWORD, // ACT_IE_INFO_READY_SWORD
|
||||
dLytDobutton_c::ACT_DO_THRUST_SWORD, // ACT_IE_INFO_THRUST_SWORD
|
||||
dLytDobutton_c::ACT_DO_USE, // ACT_IE_INFO_USE
|
||||
dLytDobutton_c::ACT_DO_SCOOP, // ACT_IE_INFO_SCOOP
|
||||
dLytDobutton_c::ACT_DO_79, // ACT_IE_INFO_79
|
||||
dLytDobutton_c::ACT_DO_80, // ACT_IE_INFO_80
|
||||
dLytDobutton_c::ACT_DO_LOOK, // ACT_IE_INFO_LOOK
|
||||
dLytDobutton_c::ACT_DO_DOWSE, // ACT_IE_INFO_DOWSE
|
||||
dLytDobutton_c::ACT_DO_PILOT, // ACT_IE_INFO_PILOT
|
||||
dLytDobutton_c::ACT_DO_LOOK_DOWN, // ACT_IE_INFO_LOOK_DOWN
|
||||
dLytDobutton_c::ACT_DO_DIVE, // ACT_IE_INFO_DIVE
|
||||
dLytDobutton_c::ACT_DO_SELECT, // ACT_IE_INFO_SELECT
|
||||
dLytDobutton_c::ACT_DO_GRAB_3, // ACT_IE_INFO_GRAB_3
|
||||
dLytDobutton_c::ACT_DO_MOVE_2, // ACT_IE_INFO_MOVE_1
|
||||
dLytDobutton_c::ACT_DO_ACCELERATE, // ACT_IE_INFO_ACCELERATE
|
||||
dLytDobutton_c::ACT_DO_CHARGE, // ACT_IE_INFO_CHARGE
|
||||
dLytDobutton_c::ACT_DO_LEAN, // ACT_IE_INFO_LEAN
|
||||
dLytDobutton_c::ACT_DO_PRESS, // ACT_IE_INFO_PRESS
|
||||
};
|
||||
|
||||
void LytDoButtonRelated::setCrossTop(Act_IE_e act, bool bHas) {
|
||||
LytDoButtonRelated *p = sInstance;
|
||||
if (p != nullptr) {
|
||||
if (act == ACT_IE_147) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_T] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_T] = bHas;
|
||||
if (!checkIsInSkykeepPuzzle()) {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_TOP_1);
|
||||
} else {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
} else if (act == ACT_IE_149) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_T] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_T] = bHas;
|
||||
if (!checkIsInSkykeepPuzzle()) {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_TOP_3);
|
||||
} else {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
} else if (act == ACT_IE_151) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_T] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_T] = bHas;
|
||||
if (!checkIsInSkykeepPuzzle()) {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_TOP_4);
|
||||
} else {
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
} else {
|
||||
p->field_0x04[DO_BUTTON_CROSS_T] = act;
|
||||
p->field_0x34[DO_BUTTON_CROSS_T] = bHas;
|
||||
dLytMeter_c::setCrossIconTop(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LytDoButtonRelated::setCrossDown(Act_IE_e act, bool bHas) {
|
||||
LytDoButtonRelated *p = sInstance;
|
||||
if (p != nullptr) {
|
||||
if (act == ACT_IE_148) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_D] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_D] = bHas;
|
||||
if (!checkIsInSkykeepPuzzle()) {
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_DOWN_0);
|
||||
} else {
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
} else if (act == ACT_IE_150) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_D] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_D] = bHas;
|
||||
if (!checkIsInSkykeepPuzzle()) {
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_DOWN_2);
|
||||
} else {
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
} else if (act == ACT_IE_ETC_CENTER) {
|
||||
p->field_0x04[DO_BUTTON_CROSS_D] = ACT_IE_NONE;
|
||||
p->field_0x34[DO_BUTTON_CROSS_D] = bHas;
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_DOWN_5);
|
||||
} else {
|
||||
p->field_0x04[DO_BUTTON_CROSS_D] = act;
|
||||
p->field_0x34[DO_BUTTON_CROSS_D] = bHas;
|
||||
dLytMeter_c::setCrossIconDown(dLytMeterCrossBtn_c::CROSS_ICON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LytDoButtonRelated::Act_IE_e LytDoButtonRelated::convertDoButton(dLytDobutton_c::Act_Do_e act) {
|
||||
for (s32 i = 0; i < ACT_IE_NONE; i++) {
|
||||
if (sActIEtoDoConversionTable[i] == act) {
|
||||
return static_cast<Act_IE_e>(i);
|
||||
}
|
||||
}
|
||||
return (Act_IE_e)-1;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "toBeSorted/arc_managers/layout_arc_manager.h"
|
||||
#include "toBeSorted/event_manager.h"
|
||||
#include "toBeSorted/minigame_mgr.h"
|
||||
#include "toBeSorted/misc_actor.h"
|
||||
#include "toBeSorted/small_sound_mgr.h"
|
||||
// clang-format on
|
||||
|
||||
@@ -1019,7 +1020,6 @@ bool dLytMeterMain_c::fn_800D5380(u8 arg) {
|
||||
return false;
|
||||
}
|
||||
|
||||
extern "C" bool checkIsInSkykeepPuzzle();
|
||||
bool dLytMeterMain_c::fn_800D53D0() {
|
||||
if (checkIsInSkykeepPuzzle() && !field_0x13774) {
|
||||
return true;
|
||||
@@ -1656,8 +1656,8 @@ bool dLytMeterMain_c::execute() {
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_A, LytDoButtonRelated::ACT_IE_NONE);
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_B, LytDoButtonRelated::ACT_IE_NONE);
|
||||
|
||||
LytDoButtonRelated::fn_8010EC10(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
LytDoButtonRelated::fn_8010ED50(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
LytDoButtonRelated::setCrossTop(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
LytDoButtonRelated::setCrossDown(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_CROSS_L, LytDoButtonRelated::ACT_IE_NONE);
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_CROSS_R, LytDoButtonRelated::ACT_IE_NONE);
|
||||
@@ -1761,11 +1761,11 @@ bool dLytMeter_c::build() {
|
||||
if (dScTitle_c::sInstance != nullptr) {
|
||||
mpDoButton = nullptr;
|
||||
mpDoButtonRelated = nullptr;
|
||||
mpBirdRelated = nullptr;
|
||||
mpTargetBird = nullptr;
|
||||
} else {
|
||||
mpDoButton = new dLytDobutton_c();
|
||||
mpDoButtonRelated = new LytDoButtonRelated();
|
||||
mpBirdRelated = new LytBirdButtonRelated();
|
||||
mpTargetBird = new dLytTargetBird_c();
|
||||
}
|
||||
|
||||
if (mpDoButton != nullptr) {
|
||||
@@ -1774,8 +1774,8 @@ bool dLytMeter_c::build() {
|
||||
if (mpDoButtonRelated != nullptr) {
|
||||
mpDoButtonRelated->build(&mResAcc);
|
||||
}
|
||||
if (mpBirdRelated != nullptr) {
|
||||
mpBirdRelated->build(&mResAcc);
|
||||
if (mpTargetBird != nullptr) {
|
||||
mpTargetBird->build(&mResAcc);
|
||||
}
|
||||
|
||||
fn_800D97E0(0xb);
|
||||
@@ -1810,10 +1810,10 @@ bool dLytMeter_c::remove() {
|
||||
delete mpEventSkip;
|
||||
mpEventSkip = nullptr;
|
||||
}
|
||||
if (mpBirdRelated != nullptr) {
|
||||
mpBirdRelated->remove();
|
||||
delete mpBirdRelated;
|
||||
mpBirdRelated = nullptr;
|
||||
if (mpTargetBird != nullptr) {
|
||||
mpTargetBird->remove();
|
||||
delete mpTargetBird;
|
||||
mpTargetBird = nullptr;
|
||||
}
|
||||
dLytAreaCaption_c::remove();
|
||||
mResAcc.detach();
|
||||
@@ -1833,8 +1833,8 @@ bool dLytMeter_c::execute() {
|
||||
mpDoButton->execute();
|
||||
}
|
||||
|
||||
if (mpBirdRelated != nullptr) {
|
||||
mpBirdRelated->execute();
|
||||
if (mpTargetBird != nullptr) {
|
||||
mpTargetBird->execute();
|
||||
}
|
||||
|
||||
if (field_0x13B61 || (!EventManager::isInEvent() && field_0x13B62)) {
|
||||
@@ -1871,8 +1871,8 @@ bool dLytMeter_c::draw() {
|
||||
if (mpDoButton != nullptr) {
|
||||
mpDoButton->draw();
|
||||
}
|
||||
if (mpBirdRelated != nullptr) {
|
||||
mpBirdRelated->draw();
|
||||
if (mpTargetBird != nullptr) {
|
||||
mpTargetBird->draw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "d/lyt/d_window.h"
|
||||
#include "d/lyt/meter/d_lyt_meter.h"
|
||||
#include "toBeSorted/event_manager.h"
|
||||
#include "toBeSorted/misc_actor.h"
|
||||
|
||||
STATE_DEFINE(dLytMeterABtn_c, InvisibleWait);
|
||||
STATE_DEFINE(dLytMeterABtn_c, In);
|
||||
@@ -199,8 +200,6 @@ bool dLytMeterABtn_c::remove() {
|
||||
return true;
|
||||
}
|
||||
|
||||
extern "C" bool checkIsInSkykeepPuzzle();
|
||||
|
||||
bool dLytMeterABtn_c::execute() {
|
||||
if (mpOwnerPane == nullptr) {
|
||||
return true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 001-Action.msbt
|
||||
static const s32 sActIds[] = {
|
||||
static const s32 sActIds[LytDoButtonRelated::ACT_IE_NONE] = {
|
||||
1, // ACT_IE_INFO_CLIMB_UP
|
||||
2, // ACT_IE_INFO_JUMP
|
||||
3, // ACT_IE_INFO_DROP_DOWN
|
||||
@@ -147,5 +147,4 @@ static const s32 sActIds[] = {
|
||||
51, // ACT_IE_ETC_STOW_CANNON
|
||||
52, // ACT_IE_ETC_SAILCLOTH
|
||||
53, // ACT_IE_ETC_RETURN_2
|
||||
0, 0, 0, 0, 0,
|
||||
};
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "d/lyt/meter/d_lyt_meter.h"
|
||||
#include "toBeSorted/event_manager.h"
|
||||
#include "toBeSorted/fi_context.h"
|
||||
#include "toBeSorted/misc_actor.h"
|
||||
#include "toBeSorted/small_sound_mgr.h"
|
||||
|
||||
STATE_DEFINE(dLytMeterCrossBtnParts_c, Wait);
|
||||
@@ -21,6 +22,13 @@ STATE_DEFINE(dLytMeterCrossBtn_c, ToUse);
|
||||
STATE_DEFINE(dLytMeterCrossBtn_c, ToUnuse);
|
||||
STATE_DEFINE(dLytMeterCrossBtn_c, Unuse);
|
||||
|
||||
#define CROSS_BTN_PART_TOP 0
|
||||
#define CROSS_BTN_PART_DOWN 1
|
||||
#define CROSS_BTN_PART_LEFT 2
|
||||
#define CROSS_BTN_PART_RIGHT 3
|
||||
|
||||
#define CROSS_BTN_NUM_PARTS 4
|
||||
|
||||
void dLytMeterCrossBtnParts_c::initializeState_Wait() {
|
||||
mOnDelay = 15;
|
||||
}
|
||||
@@ -33,25 +41,25 @@ void dLytMeterCrossBtnParts_c::executeState_Wait() {
|
||||
if (field_0x7C) {
|
||||
if (field_0x68) {
|
||||
bool bDoUpdate = true;
|
||||
if (field_0x64 != LytDoButtonRelated::ACT_IE_NONE || field_0x70 != field_0x74) {
|
||||
if (mMessage != LytDoButtonRelated::ACT_IE_NONE || mSavedIcon != mCurrentIcon) {
|
||||
if (timer <= 0) {
|
||||
mStateMgr.changeState(StateID_On);
|
||||
setMessage(field_0x64);
|
||||
setMessage(mMessage);
|
||||
} else {
|
||||
bDoUpdate = false;
|
||||
mOnDelay -= 1;
|
||||
}
|
||||
}
|
||||
if (bDoUpdate) {
|
||||
field_0x60 = field_0x64;
|
||||
field_0x70 = field_0x74;
|
||||
mSavedMessage = mMessage;
|
||||
mSavedIcon = mCurrentIcon;
|
||||
}
|
||||
} else {
|
||||
if (field_0x64 != LytDoButtonRelated::ACT_IE_NONE || field_0x70 != field_0x74) {
|
||||
setMessage(field_0x64);
|
||||
if (mMessage != LytDoButtonRelated::ACT_IE_NONE || mSavedIcon != mCurrentIcon) {
|
||||
setMessage(mMessage);
|
||||
}
|
||||
field_0x60 = field_0x64;
|
||||
field_0x70 = field_0x74;
|
||||
mSavedMessage = mMessage;
|
||||
mSavedIcon = mCurrentIcon;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,18 +84,20 @@ void dLytMeterCrossBtnParts_c::finalizeState_On() {}
|
||||
|
||||
void dLytMeterCrossBtnParts_c::initializeState_Active() {}
|
||||
void dLytMeterCrossBtnParts_c::executeState_Active() {
|
||||
if (field_0x64 != field_0x60 || !field_0x68 || field_0x70 != field_0x74) {
|
||||
if ((field_0x64 == LytDoButtonRelated::ACT_IE_NONE && field_0x74 == 6) || !field_0x68) {
|
||||
if (field_0x60 != field_0x6C) {
|
||||
field_0x64 = field_0x6C;
|
||||
if (mMessage != mSavedMessage || !field_0x68 || mSavedIcon != mCurrentIcon) {
|
||||
if ((mMessage == LytDoButtonRelated::ACT_IE_NONE && mCurrentIcon == dLytMeterCrossBtn_c::CROSS_ICON_NONE) ||
|
||||
!field_0x68) {
|
||||
if (mSavedMessage != field_0x6C) {
|
||||
mMessage = field_0x6C;
|
||||
}
|
||||
mStateMgr.changeState(StateID_Off);
|
||||
} else {
|
||||
setMessage(field_0x64);
|
||||
setMessage(mMessage);
|
||||
}
|
||||
field_0x60 = field_0x64;
|
||||
field_0x70 = field_0x74;
|
||||
} else if (field_0x60 == LytDoButtonRelated::ACT_IE_NONE && field_0x74 == 6) {
|
||||
mSavedMessage = mMessage;
|
||||
mSavedIcon = mCurrentIcon;
|
||||
} else if (mSavedMessage == LytDoButtonRelated::ACT_IE_NONE &&
|
||||
mCurrentIcon == dLytMeterCrossBtn_c::CROSS_ICON_NONE) {
|
||||
mStateMgr.changeState(StateID_Off);
|
||||
}
|
||||
}
|
||||
@@ -108,10 +118,10 @@ void dLytMeterCrossBtnParts_c::finalizeState_Off() {}
|
||||
|
||||
void dLytMeterCrossBtnParts_c::init() {
|
||||
field_0x6C = LytDoButtonRelated::ACT_IE_NONE;
|
||||
field_0x60 = LytDoButtonRelated::ACT_IE_NONE;
|
||||
field_0x64 = LytDoButtonRelated::ACT_IE_NONE;
|
||||
mSavedMessage = LytDoButtonRelated::ACT_IE_NONE;
|
||||
mMessage = LytDoButtonRelated::ACT_IE_NONE;
|
||||
field_0x7C = false;
|
||||
field_0x70 = 6;
|
||||
mSavedIcon = dLytMeterCrossBtn_c::CROSS_ICON_NONE;
|
||||
field_0x68 = 1;
|
||||
mOnDelay = 15;
|
||||
mpOwnerPane = 0;
|
||||
@@ -119,7 +129,6 @@ void dLytMeterCrossBtnParts_c::init() {
|
||||
mStateMgr.changeState(StateID_Wait);
|
||||
}
|
||||
|
||||
extern "C" bool checkIsInSkykeepPuzzle();
|
||||
void dLytMeterCrossBtnParts_c::execute(bool bIsVisible) {
|
||||
if (mpOwnerPane == nullptr) {
|
||||
return;
|
||||
@@ -129,7 +138,7 @@ void dLytMeterCrossBtnParts_c::execute(bool bIsVisible) {
|
||||
if (!(*mStateMgr.getStateID() == StateID_On)) {
|
||||
return;
|
||||
}
|
||||
field_0x70 = 6;
|
||||
mSavedIcon = dLytMeterCrossBtn_c::CROSS_ICON_NONE;
|
||||
mpAnm[0]->setForwardOnce();
|
||||
mpAnm[0]->setToEnd2();
|
||||
mpAnm[0]->setAnimEnable(true);
|
||||
@@ -141,21 +150,21 @@ void dLytMeterCrossBtnParts_c::execute(bool bIsVisible) {
|
||||
}
|
||||
|
||||
if (dLytMeter_c::GetInstance()->getMeterField_0x13750() == 0) {
|
||||
if (mIndex == 0) {
|
||||
LytDoButtonRelated::fn_8010EC10(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == 1) {
|
||||
LytDoButtonRelated::fn_8010ED50(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == 2) {
|
||||
if (mIndex == CROSS_BTN_PART_TOP) {
|
||||
LytDoButtonRelated::setCrossTop(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == CROSS_BTN_PART_DOWN) {
|
||||
LytDoButtonRelated::setCrossDown(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == CROSS_BTN_PART_LEFT) {
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_CROSS_L, LytDoButtonRelated::ACT_IE_NONE);
|
||||
} else if (mIndex == 3) {
|
||||
} else if (mIndex == CROSS_BTN_PART_RIGHT) {
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_CROSS_R, LytDoButtonRelated::ACT_IE_NONE);
|
||||
}
|
||||
|
||||
if (field_0x64 != LytDoButtonRelated::ACT_IE_NONE) {
|
||||
field_0x64 = LytDoButtonRelated::ACT_IE_NONE;
|
||||
field_0x60 = LytDoButtonRelated::ACT_IE_NONE;
|
||||
if (mMessage != LytDoButtonRelated::ACT_IE_NONE) {
|
||||
mMessage = LytDoButtonRelated::ACT_IE_NONE;
|
||||
mSavedMessage = LytDoButtonRelated::ACT_IE_NONE;
|
||||
}
|
||||
setMessage(field_0x64);
|
||||
setMessage(mMessage);
|
||||
}
|
||||
|
||||
if (!bIsVisible && *mStateMgr.getStateID() == StateID_Off) {
|
||||
@@ -165,13 +174,13 @@ void dLytMeterCrossBtnParts_c::execute(bool bIsVisible) {
|
||||
|
||||
if ((EventManager::isInEvent() && dMessage_c::getInstance()->getField_0x32C() == 12 && !checkIsInSkykeepPuzzle() &&
|
||||
!dLytMeter_c::GetInstance()->fn_800D5670()) ||
|
||||
((dLytMeter_c::getItemSelect0x75A2() && (mIndex != 1 || field_0x74 != 0)) || !bIsVisible)) {
|
||||
((dLytMeter_c::getItemSelect0x75A2() && (mIndex != 1 || mCurrentIcon != 0)) || !bIsVisible)) {
|
||||
field_0x7C = 0;
|
||||
|
||||
if (mIndex == 0) {
|
||||
LytDoButtonRelated::fn_8010EC10(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
LytDoButtonRelated::setCrossTop(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == 1) {
|
||||
LytDoButtonRelated::fn_8010ED50(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
LytDoButtonRelated::setCrossDown(LytDoButtonRelated::ACT_IE_NONE, true);
|
||||
} else if (mIndex == 2) {
|
||||
LytDoButtonRelated::set(LytDoButtonRelated::DO_BUTTON_CROSS_L, LytDoButtonRelated::ACT_IE_NONE);
|
||||
} else if (mIndex == 3) {
|
||||
@@ -182,16 +191,16 @@ void dLytMeterCrossBtnParts_c::execute(bool bIsVisible) {
|
||||
}
|
||||
|
||||
if (mIndex == 0) {
|
||||
field_0x64 = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_T);
|
||||
mMessage = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_T);
|
||||
field_0x68 = LytDoButtonRelated::getHas(LytDoButtonRelated::DO_BUTTON_CROSS_T);
|
||||
} else if (mIndex == 1) {
|
||||
field_0x64 = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_D);
|
||||
mMessage = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_D);
|
||||
field_0x68 = LytDoButtonRelated::getHas(LytDoButtonRelated::DO_BUTTON_CROSS_D);
|
||||
} else if (mIndex == 2) {
|
||||
field_0x64 = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_L);
|
||||
mMessage = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_L);
|
||||
field_0x68 = LytDoButtonRelated::getHas(LytDoButtonRelated::DO_BUTTON_CROSS_L);
|
||||
} else if (mIndex == 3) {
|
||||
field_0x64 = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_R);
|
||||
mMessage = LytDoButtonRelated::get(LytDoButtonRelated::DO_BUTTON_CROSS_R);
|
||||
field_0x68 = LytDoButtonRelated::getHas(LytDoButtonRelated::DO_BUTTON_CROSS_R);
|
||||
}
|
||||
|
||||
@@ -213,7 +222,7 @@ void dLytMeterCrossBtnParts_c::setMessage(s32 id) {
|
||||
}
|
||||
|
||||
// If only there was an easier way to write this
|
||||
if (field_0x74 == 0 || field_0x74 == 1) {
|
||||
if (mCurrentIcon == 0 || mCurrentIcon == 1) {
|
||||
mpWindow->SetVisible(false);
|
||||
mpAnm[1]->setFrame(0.0f);
|
||||
mpAnm[1]->setAnimEnable(true);
|
||||
@@ -222,7 +231,7 @@ void dLytMeterCrossBtnParts_c::setMessage(s32 id) {
|
||||
mpLyt->getLayout()->Animate(0);
|
||||
mpLyt->calc();
|
||||
mpAnm[1]->setAnimEnable(false);
|
||||
} else if (field_0x74 == 2) {
|
||||
} else if (mCurrentIcon == 2) {
|
||||
mpWindow->SetVisible(false);
|
||||
mpAnm[1]->setFrame(2.0f);
|
||||
mpAnm[1]->setAnimEnable(true);
|
||||
@@ -231,7 +240,7 @@ void dLytMeterCrossBtnParts_c::setMessage(s32 id) {
|
||||
mpLyt->getLayout()->Animate(0);
|
||||
mpLyt->calc();
|
||||
mpAnm[1]->setAnimEnable(false);
|
||||
} else if (field_0x74 == 3) {
|
||||
} else if (mCurrentIcon == 3) {
|
||||
mpWindow->SetVisible(false);
|
||||
mpAnm[1]->setFrame(3.0f);
|
||||
mpAnm[1]->setAnimEnable(true);
|
||||
@@ -240,7 +249,7 @@ void dLytMeterCrossBtnParts_c::setMessage(s32 id) {
|
||||
mpLyt->getLayout()->Animate(0);
|
||||
mpLyt->calc();
|
||||
mpAnm[1]->setAnimEnable(false);
|
||||
} else if (field_0x74 == 4) {
|
||||
} else if (mCurrentIcon == 4) {
|
||||
mpWindow->SetVisible(false);
|
||||
mpAnm[1]->setFrame(4.0f);
|
||||
mpAnm[1]->setAnimEnable(true);
|
||||
@@ -249,7 +258,7 @@ void dLytMeterCrossBtnParts_c::setMessage(s32 id) {
|
||||
mpLyt->getLayout()->Animate(0);
|
||||
mpLyt->calc();
|
||||
mpAnm[1]->setAnimEnable(false);
|
||||
} else if (field_0x74 == 5) {
|
||||
} else if (mCurrentIcon == 5) {
|
||||
mpWindow->SetVisible(false);
|
||||
mpAnm[1]->setFrame(5.0f);
|
||||
mpAnm[1]->setAnimEnable(true);
|
||||
@@ -385,21 +394,21 @@ bool dLytMeterCrossBtn_c::build(d2d::ResAccIf_c *resAcc) {
|
||||
mpTextboxes[i] = mLyt.getTextBox(sTextBoxes[i]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mpWindows[i] = mLyt.getWindow(sWindows[i]);
|
||||
mpSizeBoxes[i] = mLyt.getSizeBoxInWindow(sWindows[i]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mParts[i].mIndex = i;
|
||||
mParts[i].mpLyt = &mLyt;
|
||||
mParts[i].mpAnm[0] = &mAnm[i + CROSS_BTN_ANIM_INPUT_OFFSET];
|
||||
mParts[i].mpAnm[1] = &mAnm[i + CROSS_BTN_ANIM_PATTERN_OFFSET];
|
||||
mParts[i].mpTextBoxes[0] = mpTextboxes[i];
|
||||
mParts[i].mpTextBoxes[1] = mpTextboxes[i + 4];
|
||||
mParts[i].mpTextBoxes[1] = mpTextboxes[i + CROSS_BTN_NUM_PARTS];
|
||||
mParts[i].mpWindow = mpWindows[i];
|
||||
mParts[i].mpSizeBox = mpSizeBoxes[i];
|
||||
mParts[i].field_0x74 = 6;
|
||||
mParts[i].mCurrentIcon = dLytMeterCrossBtn_c::CROSS_ICON_NONE;
|
||||
mParts[i].init();
|
||||
}
|
||||
|
||||
@@ -410,8 +419,8 @@ bool dLytMeterCrossBtn_c::build(d2d::ResAccIf_c *resAcc) {
|
||||
mSavedFiFlow = 0xFFFF;
|
||||
mCallCount0 = 0;
|
||||
mCallCount1 = 0;
|
||||
field_0x620 = 6;
|
||||
field_0x624 = 6;
|
||||
mIconDown = CROSS_ICON_NONE;
|
||||
mIconTop = CROSS_ICON_NONE;
|
||||
|
||||
field_0x637 = 0;
|
||||
field_0x638 = 0;
|
||||
@@ -422,7 +431,7 @@ bool dLytMeterCrossBtn_c::build(d2d::ResAccIf_c *resAcc) {
|
||||
|
||||
mpOwnerPane = nullptr;
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mAnm[i + CROSS_BTN_ANIM_INPUT_OFFSET].setToEnd();
|
||||
mAnm[i + CROSS_BTN_ANIM_INPUT_OFFSET].setAnimEnable(true);
|
||||
}
|
||||
@@ -436,7 +445,7 @@ bool dLytMeterCrossBtn_c::build(d2d::ResAccIf_c *resAcc) {
|
||||
|
||||
mLyt.calc();
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mAnm[i + CROSS_BTN_ANIM_INPUT_OFFSET].setAnimEnable(false);
|
||||
}
|
||||
|
||||
@@ -465,11 +474,11 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
mCallCount0 = 0;
|
||||
}
|
||||
|
||||
mParts[0].field_0x74 = field_0x624;
|
||||
mParts[1].field_0x74 = field_0x620;
|
||||
mParts[CROSS_BTN_PART_TOP].mCurrentIcon = mIconTop;
|
||||
mParts[CROSS_BTN_PART_DOWN].mCurrentIcon = mIconDown;
|
||||
|
||||
if (mpOwnerPane != nullptr) {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mParts[i].execute(mpOwnerPane->IsVisible());
|
||||
}
|
||||
}
|
||||
@@ -481,7 +490,7 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
}
|
||||
|
||||
if (field_0x637 != 0) {
|
||||
if (field_0x620 == 0) {
|
||||
if (mIconDown == 0) {
|
||||
f32 frame = dAcPy_c::GetLink2()->getAnmMatClrFrame();
|
||||
if (frame == 0.0f) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_0].setToEnd();
|
||||
@@ -492,7 +501,8 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
|
||||
if (mAnm[CROSS_BTN_ANIM_CALL_0].isEnabled()) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_0].play();
|
||||
if (mParts[1].isActive() && mCallCount0 < 3 && mAnm[CROSS_BTN_ANIM_CALL_0].getFrame() == 1.0f) {
|
||||
if (mParts[CROSS_BTN_PART_DOWN].isActive() && mCallCount0 < 3 &&
|
||||
mAnm[CROSS_BTN_ANIM_CALL_0].getFrame() == 1.0f) {
|
||||
SmallSoundManager::GetInstance()->playSound(SE_S_SG_CALL);
|
||||
mCallCount0++;
|
||||
}
|
||||
@@ -505,14 +515,15 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
}
|
||||
|
||||
if (field_0x639 != 0) {
|
||||
if (field_0x624 == 3) {
|
||||
if (mIconTop == 3) {
|
||||
if (field_0x63A == 0) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_1].setToEnd();
|
||||
mAnm[CROSS_BTN_ANIM_CALL_1].setAnimEnable(true);
|
||||
}
|
||||
if (mAnm[CROSS_BTN_ANIM_CALL_1].isEnabled()) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_1].play();
|
||||
if (mParts[0].isActive() && mCallCount1 < 3 && mAnm[CROSS_BTN_ANIM_CALL_1].getFrame() == 1.0f) {
|
||||
if (mParts[CROSS_BTN_PART_TOP].isActive() && mCallCount1 < 3 &&
|
||||
mAnm[CROSS_BTN_ANIM_CALL_1].getFrame() == 1.0f) {
|
||||
SmallSoundManager::GetInstance()->playSound(SE_S_CATAPULT_READY);
|
||||
mCallCount1++;
|
||||
}
|
||||
@@ -525,7 +536,7 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
}
|
||||
|
||||
if (field_0x63B != 0) {
|
||||
if (field_0x620 == 2) {
|
||||
if (mIconDown == 2) {
|
||||
if (field_0x63C == 0) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_2].setToEnd();
|
||||
mAnm[CROSS_BTN_ANIM_CALL_2].setRate(2.0f);
|
||||
@@ -533,7 +544,7 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
}
|
||||
if (mAnm[CROSS_BTN_ANIM_CALL_2].isEnabled()) {
|
||||
mAnm[CROSS_BTN_ANIM_CALL_2].play();
|
||||
if (mParts[1].isActive() && mAnm[CROSS_BTN_ANIM_CALL_2].getFrame() == 1.0f) {
|
||||
if (mParts[CROSS_BTN_PART_DOWN].isActive() && mAnm[CROSS_BTN_ANIM_CALL_2].getFrame() == 1.0f) {
|
||||
SmallSoundManager::GetInstance()->playSound(SE_S_BIRD_CALL);
|
||||
}
|
||||
}
|
||||
@@ -548,8 +559,8 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
mAnm[CROSS_BTN_ANIM_LOOP].play();
|
||||
}
|
||||
|
||||
field_0x620 = 6;
|
||||
field_0x624 = 6;
|
||||
mIconDown = CROSS_ICON_NONE;
|
||||
mIconTop = CROSS_ICON_NONE;
|
||||
// Might be arrays
|
||||
field_0x638 = field_0x637;
|
||||
field_0x637 = 0;
|
||||
@@ -563,13 +574,13 @@ bool dLytMeterCrossBtn_c::execute() {
|
||||
|
||||
void dLytMeterCrossBtn_c::setOwnerPane(nw4r::lyt::Pane *pane) {
|
||||
mpOwnerPane = pane;
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < CROSS_BTN_NUM_PARTS; i++) {
|
||||
mParts[i].mpOwnerPane = pane;
|
||||
}
|
||||
}
|
||||
|
||||
bool dLytMeterCrossBtn_c::fn_800FA730() const {
|
||||
if (field_0x620 == 2) {
|
||||
if (mIconDown == 2) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "toBeSorted/d_emitter.h"
|
||||
#include "toBeSorted/event_manager.h"
|
||||
#include "toBeSorted/minigame_mgr.h"
|
||||
#include "toBeSorted/misc_actor.h"
|
||||
#include "toBeSorted/small_sound_mgr.h"
|
||||
|
||||
STATE_DEFINE(dLytMeterItemSelectIcon_c, Wait);
|
||||
@@ -790,7 +791,7 @@ void dLytMeterItemSelect_c::finalizeState_SelectIn() {
|
||||
|
||||
void dLytMeterItemSelect_c::initializeState_Select() {}
|
||||
void dLytMeterItemSelect_c::executeState_Select() {
|
||||
if (dLytMeter_c::getCrossBtn0x7BF8() == 0 && dPad::checkButtonDpadDownPressed()) {
|
||||
if (dLytMeter_c::getCrossIconDown() == 0 && dPad::checkButtonDpadDownPressed()) {
|
||||
if (field_0x5794 != I_INVALID) {
|
||||
field_0x5780 = 0.0f;
|
||||
mStateMgr.changeState(StateID_SetIn);
|
||||
@@ -2713,8 +2714,6 @@ s32 dLytMeterItemSelect_c::getBaseItemLytIndexforInternalId(s32 idx) const {
|
||||
return LYT_CMN_ItemInvalid;
|
||||
}
|
||||
|
||||
extern "C" bool checkIsInSkykeepPuzzle();
|
||||
|
||||
bool dLytMeterItemSelect_c::isWheelBlockedByCurrentAction() {
|
||||
if (dAcPy_c::LINK->getRidingActorType() == dAcPy_c::RIDING_LOFTWING ||
|
||||
dAcPy_c::LINK->checkActionFlags(dAcPy_c::FLG0_SWING_ROPE) || dAcPy_c::LINK->checkCurrentAction(0x9C) ||
|
||||
|
||||
Reference in New Issue
Block a user