mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
docs and cleanup
This commit is contained in:
+1
-1
@@ -1855,7 +1855,7 @@ void func_8010EA9C(s16 timeLimit, s16 arg1);
|
||||
// void func_8010EBA0(void);
|
||||
// void func_8010EC54(void);
|
||||
void Interface_NewDay(PlayState* play, s32 day);
|
||||
void Interface_ChangeHudMode(u16 hudMode);
|
||||
void Interface_SetHudVisibility(u16 hudVisibility);
|
||||
// void func_80110038(void);
|
||||
// void func_80111CB4(void);
|
||||
// void Interface_SetSceneRestrictions(void);
|
||||
|
||||
+14
-27
@@ -531,32 +531,19 @@ typedef enum {
|
||||
} DoAction;
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ HUD_MODE_IDLE,
|
||||
/* 1 */ HUD_MODE_OFF,
|
||||
/* 2 */ HUD_MODE_OFF_ALT, // Identical to HUD_MODE_OFF
|
||||
/* 3 */ HUD_MODE_HEARTS_WITH_DIM_BTN, // Uses Interface_DimButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 4 */ HUD_MODE_A,
|
||||
/* 5 */ HUD_MODE_A_HEARTS_MAGIC_WITH_DIM_BTN, // Uses Interface_DimButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 6 */ HUD_MODE_A_HEARTS_MAGIC_MINIMAP_WITH_DIM_BTN, // Uses Interface_DimButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 7 */ HUD_MODE_ALL_NO_MINIMAP_W_DISABLED, // Only raises button alphas if not disabled
|
||||
/* 8 */ HUD_MODE_B_FAST, // reaches target twice as fast
|
||||
/* 9 */ HUD_MODE_HEARTS_MAGIC,
|
||||
/* 10 */ HUD_MODE_B,
|
||||
/* 11 */ HUD_MODE_HEARTS,
|
||||
/* 12 */ HUD_MODE_A_B_MINIMAP,
|
||||
/* 13 */ HUD_MODE_HEARTS_MAGIC_WITH_DIM_BTN, // Uses Interface_DimButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 14 */ HUD_MODE_HEARTS_MAGIC_C,
|
||||
/* 15 */ HUD_MODE_ALL_NO_MINIMAP,
|
||||
/* 16 */ HUD_MODE_A_B_C,
|
||||
/* 17 */ HUD_MODE_B_MINIMAP,
|
||||
/* 18 */ HUD_MODE_HEARTS_MAGIC_MINIMAP,
|
||||
/* 19 */ HUD_MODE_A_HEARTS_MAGIC_MINIMAP,
|
||||
/* 20 */ HUD_MODE_B_MAGIC,
|
||||
/* 21 */ HUD_MODE_A_B,
|
||||
/* 22 */ HUD_MODE_A_B_HEARTS_MAGIC_MINIMAP,
|
||||
/* 50 */ HUD_MODE_ALL = 50,
|
||||
/* 52 */ HUD_MODE_OFF_NOW = 52
|
||||
} HudMode;
|
||||
/* 0 */ MINIGAME_STATE_NONE,
|
||||
/* 1 */ MINIGAME_STATE_COUNTDOWN_START_3,
|
||||
/* 2 */ MINIGAME_STATE_COUNTDOWN_3,
|
||||
/* 3 */ MINIGAME_STATE_COUNTDOWN_START_2,
|
||||
/* 4 */ MINIGAME_STATE_COUNTDOWN_2,
|
||||
/* 5 */ MINIGAME_STATE_COUNTDOWN_START_1,
|
||||
/* 6 */ MINIGAME_STATE_COUNTDOWN_1,
|
||||
/* 7 */ MINIGAME_STATE_COUNTDOWN_START_GO,
|
||||
/* 8 */ MINIGAME_STATE_COUNTDOWN_GO,
|
||||
/* 20 */ MINIGAME_STATE_20 = 20,
|
||||
/* 21 */ MINIGAME_STATE_21,
|
||||
/* 30 */ MINIGAME_STATE_30 = 30
|
||||
} MinigameState;
|
||||
|
||||
typedef struct {
|
||||
/* 0x000 */ View view;
|
||||
@@ -618,7 +605,7 @@ typedef struct {
|
||||
/* 0x27C */ s16 mapRoomNum;
|
||||
/* 0x27E */ u8 unk_27E;
|
||||
/* 0x27F */ u8 unk_27F;
|
||||
/* 0x280 */ u8 unk_280;
|
||||
/* 0x280 */ u8 minigameState;
|
||||
/* 0x282 */ s16 unk_282;
|
||||
/* 0x284 */ s16 unk_284;
|
||||
/* 0x286 */ s16 isMinigamePerfect;
|
||||
|
||||
+32
-5
@@ -86,6 +86,33 @@ typedef enum {
|
||||
/* 99 */ TIMER_ID_NONE = 99,
|
||||
} TimerId;
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ HUD_VISIBILITY_IDLE,
|
||||
/* 1 */ HUD_VISIBILITY_OFF,
|
||||
/* 2 */ HUD_VISIBILITY_OFF_ALT, // Identical to HUD_VISIBILITY_OFF
|
||||
/* 3 */ HUD_VISIBILITY_HEARTS_WITH_DIM_BTN, // Uses Interface_UpdateButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 4 */ HUD_VISIBILITY_A,
|
||||
/* 5 */ HUD_VISIBILITY_A_HEARTS_MAGIC_WITH_DIM_BTN, // Uses Interface_UpdateButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 6 */ HUD_VISIBILITY_A_HEARTS_MAGIC_MINIMAP_WITH_DIM_BTN, // Uses Interface_UpdateButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 7 */ HUD_VISIBILITY_ALL_NO_MINIMAP_W_DISABLED, // Only raises button alphas if not disabled
|
||||
/* 8 */ HUD_VISIBILITY_B_FAST, // reaches target twice as fast
|
||||
/* 9 */ HUD_VISIBILITY_HEARTS_MAGIC,
|
||||
/* 10 */ HUD_VISIBILITY_B,
|
||||
/* 11 */ HUD_VISIBILITY_HEARTS,
|
||||
/* 12 */ HUD_VISIBILITY_A_B_MINIMAP,
|
||||
/* 13 */ HUD_VISIBILITY_HEARTS_MAGIC_WITH_DIM_BTN, // Uses Interface_UpdateButtonAlphas so gives the opportunity to dim only disabled buttons
|
||||
/* 14 */ HUD_VISIBILITY_HEARTS_MAGIC_C,
|
||||
/* 15 */ HUD_VISIBILITY_ALL_NO_MINIMAP,
|
||||
/* 16 */ HUD_VISIBILITY_A_B_C,
|
||||
/* 17 */ HUD_VISIBILITY_B_MINIMAP,
|
||||
/* 18 */ HUD_VISIBILITY_HEARTS_MAGIC_MINIMAP,
|
||||
/* 19 */ HUD_VISIBILITY_A_HEARTS_MAGIC_MINIMAP,
|
||||
/* 20 */ HUD_VISIBILITY_B_MAGIC,
|
||||
/* 21 */ HUD_VISIBILITY_A_B,
|
||||
/* 22 */ HUD_VISIBILITY_A_B_HEARTS_MAGIC_MINIMAP,
|
||||
/* 50 */ HUD_VISIBILITY_ALL = 50,
|
||||
/* 52 */ HUD_VISIBILITY_OFF_NOW = 52
|
||||
} HudVisibility;
|
||||
typedef struct SramContext {
|
||||
/* 0x00 */ u8* readBuff;
|
||||
/* 0x04 */ u8 *saveBuf;
|
||||
@@ -283,11 +310,11 @@ typedef struct SaveContext {
|
||||
/* 0x3F16 */ u8 seqIndex; // "old_bgm"
|
||||
/* 0x3F17 */ u8 nightSeqIndex; // "old_env"
|
||||
/* 0x3F18 */ u8 buttonStatus[6]; // "button_item"
|
||||
/* 0x3F1E */ u8 hudModeDimOnlyDisabledButtons; // if the buttons are requested to dim, only dim disabled buttons "ck_fg"
|
||||
/* 0x3F20 */ u16 requestHudMode; // triggers the hud to change modes to the requested value. Reset to 0 when target is reached "alpha_type"
|
||||
/* 0x3F22 */ u16 curHudMode; // current hud mode "prev_alpha_type"
|
||||
/* 0x3F24 */ u16 hudModeCounter; // number of frames in the transition to a new hud display. Used to step alpha "alpha_count"
|
||||
/* 0x3F26 */ u16 prevHudMode; // used to store and recover hud display for pause menu and text boxes "last_time_type"
|
||||
/* 0x3F1E */ u8 hudVisibilityForceButtonAlphasByStatus; // if btn alphas are updated through Interface_UpdateButtonAlphas, instead update them through Interface_UpdateButtonAlphasByStatus "ck_fg"
|
||||
/* 0x3F20 */ u16 nextHudVisibility; // triggers the hud to change visibility to the requested value. Reset to HUD_VISIBILITY_IDLE when target is reached "alpha_type"
|
||||
/* 0x3F22 */ u16 hudVisibility; // current hud visibility "prev_alpha_type"
|
||||
/* 0x3F24 */ u16 hudVisibilityTimer; // number of frames in the transition to a new hud visibility. Used to step alpha "alpha_count"
|
||||
/* 0x3F26 */ u16 prevHudVisibility; // used to store and recover hud visibility for pause menu and text boxes "last_time_type"
|
||||
/* 0x3F28 */ s16 magicState; // determines magic meter behavior on each frame "magic_flag"
|
||||
/* 0x3F2A */ s16 isMagicRequested; // a request to add magic has been given "recovery_magic_flag"
|
||||
/* 0x3F2C */ s16 magicUnusedFlag; // Set to 0 in func_80812D94, otherwise unused "keep_magic_flag"
|
||||
|
||||
@@ -16,7 +16,7 @@ void SaveContext_Init(void) {
|
||||
gSaveContext.skyboxTime = 0;
|
||||
gSaveContext.dogIsLost = true;
|
||||
gSaveContext.nextTransitionType = TRANS_NEXT_TYPE_DEFAULT;
|
||||
gSaveContext.prevHudMode = HUD_MODE_ALL;
|
||||
gSaveContext.prevHudVisibility = HUD_VISIBILITY_ALL;
|
||||
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.audioSetting = 0;
|
||||
|
||||
+5
-5
@@ -105,7 +105,7 @@ s32 func_800EA220(PlayState* play, CutsceneContext* csCtx, f32 target) {
|
||||
}
|
||||
|
||||
void func_800EA258(PlayState* play, CutsceneContext* csCtx) {
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
ShrinkWindow_SetLetterboxTarget(32);
|
||||
if (func_800EA220(play, csCtx, 1.0f)) {
|
||||
Audio_SetCutsceneFlag(true);
|
||||
@@ -115,7 +115,7 @@ void func_800EA258(PlayState* play, CutsceneContext* csCtx) {
|
||||
|
||||
void func_800EA2B8(PlayState* play, CutsceneContext* csCtx) {
|
||||
func_800ED980(play, csCtx);
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
ShrinkWindow_SetLetterboxTarget(32);
|
||||
if (func_800EA220(play, csCtx, 1.0f)) {
|
||||
Audio_SetCutsceneFlag(true);
|
||||
@@ -564,7 +564,7 @@ void Cutscene_TerminatorImpl(PlayState* play, CutsceneContext* csCtx, CsCmdBase*
|
||||
gSaveContext.cutsceneTransitionControl = 1;
|
||||
|
||||
if ((gSaveContext.gameMode != 0) && (csCtx->frames != cmd->startFrame)) {
|
||||
gSaveContext.hudModeDimOnlyDisabledButtons = true;
|
||||
gSaveContext.hudVisibilityForceButtonAlphasByStatus = true;
|
||||
}
|
||||
|
||||
gSaveContext.save.cutscene = 0;
|
||||
@@ -1100,7 +1100,7 @@ void Cutscene_Command_Textbox(PlayState* play, CutsceneContext* csCtx, CsCmdText
|
||||
}
|
||||
|
||||
if (originalCsFrames == csCtx->frames) {
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
D_801BB124 = 0;
|
||||
D_801BB128 = 0;
|
||||
func_80161C0C();
|
||||
@@ -1480,7 +1480,7 @@ void func_800EDA84(PlayState* play, CutsceneContext* csCtx) {
|
||||
csCtx->unk_18 = 0xFFFF;
|
||||
|
||||
if (gSaveContext.cutsceneTrigger == 0) {
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
ShrinkWindow_SetLetterboxTarget(32);
|
||||
ShrinkWindow_SetLetterboxMagnitude(0x20);
|
||||
csCtx->state++;
|
||||
|
||||
@@ -57,10 +57,10 @@ void GameOver_Update(PlayState* play) {
|
||||
gSaveContext.buttonStatus[EQUIP_SLOT_C_DOWN] = BTN_ENABLED;
|
||||
gSaveContext.buttonStatus[EQUIP_SLOT_C_RIGHT] = BTN_ENABLED;
|
||||
gSaveContext.buttonStatus[EQUIP_SLOT_A] = BTN_ENABLED;
|
||||
gSaveContext.hudModeDimOnlyDisabledButtons = false;
|
||||
gSaveContext.requestHudMode = HUD_MODE_IDLE;
|
||||
gSaveContext.curHudMode = HUD_MODE_IDLE;
|
||||
gSaveContext.hudModeCounter = 0;
|
||||
gSaveContext.hudVisibilityForceButtonAlphasByStatus = false;
|
||||
gSaveContext.nextHudVisibility = HUD_VISIBILITY_IDLE;
|
||||
gSaveContext.hudVisibility = HUD_VISIBILITY_IDLE;
|
||||
gSaveContext.hudVisibilityTimer = 0;
|
||||
Kankyo_InitGameOverLights(play);
|
||||
sGameOverTimer = 20;
|
||||
Rumble_Request(0.0f, 126, 124, 63);
|
||||
|
||||
@@ -80,7 +80,7 @@ void KaleidoSetup_Update(PlayState* play) {
|
||||
if (!(gSaveContext.eventInf[1] & 0x80) && !(player->stateFlags1 & 0x20)) {
|
||||
if (!(play->actorCtx.unk5 & 2) && !(play->actorCtx.unk5 & 4)) {
|
||||
if ((play->actorCtx.unk268 == 0) && CHECK_BTN_ALL(input->press.button, BTN_START)) {
|
||||
gSaveContext.prevHudMode = gSaveContext.curHudMode;
|
||||
gSaveContext.prevHudVisibility = gSaveContext.hudVisibility;
|
||||
pauseCtx->unk_2B9 = 0;
|
||||
pauseCtx->state = 1;
|
||||
func_800F4A10(play);
|
||||
|
||||
@@ -383,7 +383,7 @@ void func_80151A68(PlayState* play, u16 textId) {
|
||||
XREG(77) = 0x3C;
|
||||
XREG(76) = 0x1C;
|
||||
msgCtx->unk11F1A[0] = msgCtx->unk11F1A[1] = msgCtx->unk11F1A[2] = 0;
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+163
-153
File diff suppressed because it is too large
Load Diff
@@ -508,7 +508,7 @@ s32 func_8012364C(PlayState* play, Player* player, s32 arg2) {
|
||||
if (arg2 == 1) {
|
||||
return (gSaveContext.buttonStatus[1] != BTN_DISABLED)
|
||||
? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_LEFT]
|
||||
: (gSaveContext.curHudMode == HUD_MODE_A_B_C)
|
||||
: (gSaveContext.hudVisibility == HUD_VISIBILITY_A_B_C)
|
||||
? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_LEFT]
|
||||
: ITEM_NONE;
|
||||
}
|
||||
@@ -516,14 +516,15 @@ s32 func_8012364C(PlayState* play, Player* player, s32 arg2) {
|
||||
if (arg2 == 2) {
|
||||
return (gSaveContext.buttonStatus[2] != BTN_DISABLED)
|
||||
? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_DOWN]
|
||||
: (gSaveContext.curHudMode == HUD_MODE_A_B_C)
|
||||
: (gSaveContext.hudVisibility == HUD_VISIBILITY_A_B_C)
|
||||
? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_DOWN]
|
||||
: ITEM_NONE;
|
||||
}
|
||||
|
||||
return (gSaveContext.buttonStatus[3] != BTN_DISABLED) ? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_RIGHT]
|
||||
: (gSaveContext.curHudMode == HUD_MODE_A_B_C) ? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_RIGHT]
|
||||
: ITEM_NONE;
|
||||
: (gSaveContext.hudVisibility == HUD_VISIBILITY_A_B_C)
|
||||
? gSaveContext.save.equips.buttonItems[0][EQUIP_SLOT_C_RIGHT]
|
||||
: ITEM_NONE;
|
||||
}
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/z_player_lib/func_80123810.s")
|
||||
|
||||
@@ -598,7 +598,7 @@ void func_808B9F10(DoorWarp1* this, PlayState* play) {
|
||||
if ((this->unk_203 == 0) && func_808B866C(this, play) && !Play_InCsMode(play) && (this->unk_203 == 0)) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
Interface_ChangeHudMode(HUD_MODE_OFF);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_OFF);
|
||||
func_800B7298(play, &this->dyna.actor, 9);
|
||||
player->unk_3A0.x = this->dyna.actor.world.pos.x;
|
||||
player->unk_3A0.z = this->dyna.actor.world.pos.z;
|
||||
|
||||
@@ -5166,7 +5166,7 @@ void EnFishing_UpdateOwner(Actor* thisx, PlayState* play2) {
|
||||
sSubCamAt.y = mainCam->at.y;
|
||||
sSubCamAt.z = mainCam->at.z;
|
||||
D_8090CD4C = 2;
|
||||
Interface_ChangeHudMode(HUD_MODE_A_B_MINIMAP);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_A_B_MINIMAP);
|
||||
sSubCamVelFactor = 0.0f;
|
||||
// fallthrough
|
||||
case 2:
|
||||
|
||||
@@ -393,7 +393,7 @@ void EnFsn_EndInteraction(EnFsn* this, PlayState* play) {
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_ChangeHudMode(HUD_MODE_ALL);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
this->stickLeftPrompt.isEnabled = false;
|
||||
this->stickRightPrompt.isEnabled = false;
|
||||
@@ -1161,7 +1161,7 @@ void EnFsn_HandleCanPlayerBuyItem(EnFsn* this, PlayState* play) {
|
||||
Actor_PickUp(&this->actor, play, this->items[this->cursorIdx]->getItemId, 300.0f, 300.0f);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_ChangeHudMode(HUD_MODE_ALL);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
this->shopItemSelectedTween = 0.0f;
|
||||
item = this->items[this->cursorIdx];
|
||||
|
||||
@@ -821,7 +821,7 @@ void func_8096326C(EnFu* this, PlayState* play) {
|
||||
|
||||
void func_809632D0(EnFu* this) {
|
||||
if (gSaveContext.save.playerForm == PLAYER_FORM_DEKU) {
|
||||
Interface_ChangeHudMode(HUD_MODE_ALL);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
}
|
||||
|
||||
gSaveContext.save.weekEventReg[8] &= (u8)~1;
|
||||
|
||||
@@ -122,7 +122,7 @@ s32 func_808F8CCC(EnHorseGameCheck* this, PlayState* play2) {
|
||||
}
|
||||
|
||||
func_8010E9F0(TIMER_ID_4, 0);
|
||||
play->interfaceCtx.unk_280 = 1;
|
||||
play->interfaceCtx.minigameState = 1;
|
||||
|
||||
this->horse1 = (EnHorse*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_HORSE, -1149.0f, -106.0f, 470.0f, 0, 0x7FFF, 0,
|
||||
ENHORSE_PARAMS(ENHORSE_PARAM_BANDIT, ENHORSE_4));
|
||||
@@ -212,10 +212,10 @@ s32 func_808F8FAC(EnHorseGameCheck* this, PlayState* play) {
|
||||
|
||||
if ((this->unk_168 > 50) && !(this->unk_164 & 2)) {
|
||||
this->unk_164 |= 2;
|
||||
} else if ((play->interfaceCtx.unk_280 >= 8) && !(this->unk_164 & 1)) {
|
||||
} else if ((play->interfaceCtx.minigameState >= 8) && !(this->unk_164 & 1)) {
|
||||
this->unk_164 |= 1;
|
||||
horse->inRace = true;
|
||||
} else if ((play->interfaceCtx.unk_280 >= 8) && !(this->unk_164 & 8)) {
|
||||
} else if ((play->interfaceCtx.minigameState >= 8) && !(this->unk_164 & 8)) {
|
||||
EnHorse* horse = this->horse1;
|
||||
|
||||
horse->inRace = true;
|
||||
|
||||
@@ -284,7 +284,7 @@ void func_80C1410C(EnJgameTsn* this, PlayState* play) {
|
||||
|
||||
player->stateFlags1 |= 0x20;
|
||||
func_801A2BB8(0x25);
|
||||
play->interfaceCtx.unk_280 = 1;
|
||||
play->interfaceCtx.minigameState = 1;
|
||||
Interface_InitMinigame(play);
|
||||
gSaveContext.save.weekEventReg[90] |= 0x20;
|
||||
func_8010E9F0(TIMER_ID_4, 120);
|
||||
@@ -294,7 +294,7 @@ void func_80C1410C(EnJgameTsn* this, PlayState* play) {
|
||||
void func_80C1418C(EnJgameTsn* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (play->interfaceCtx.unk_280 == 8) {
|
||||
if (play->interfaceCtx.minigameState == 8) {
|
||||
func_80C141DC(this);
|
||||
player->stateFlags1 &= ~0x20;
|
||||
}
|
||||
|
||||
@@ -688,7 +688,7 @@ void EnMa4_HorsebackGameTalking(EnMa4* this, PlayState* play) {
|
||||
void EnMa4_InitHorsebackGame(EnMa4* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
play->interfaceCtx.unk_280 = 1;
|
||||
play->interfaceCtx.minigameState = 1;
|
||||
func_8010E9F0(TIMER_ID_4, 0);
|
||||
gSaveContext.save.weekEventReg[8] |= 1;
|
||||
Interface_InitMinigame(play);
|
||||
@@ -699,7 +699,7 @@ void EnMa4_InitHorsebackGame(EnMa4* this, PlayState* play) {
|
||||
void EnMa4_SetupHorsebackGameWait(EnMa4* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (play->interfaceCtx.unk_280 == 8) {
|
||||
if (play->interfaceCtx.minigameState == 8) {
|
||||
this->actionFunc = EnMa4_HorsebackGameWait;
|
||||
player->stateFlags1 &= ~0x20;
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ void EnMag_Init(Actor* thisx, PlayState* play) {
|
||||
this->unk11F02 = 30;
|
||||
this->unk11F00 = this->state = MAG_STATE_INITIAL;
|
||||
|
||||
if (gSaveContext.hudModeDimOnlyDisabledButtons) {
|
||||
if (gSaveContext.hudVisibilityForceButtonAlphasByStatus) {
|
||||
this->mainTitleAlpha = 210;
|
||||
this->unk11F32 = 255;
|
||||
this->copyrightAlpha = 255;
|
||||
@@ -158,7 +158,7 @@ void EnMag_Init(Actor* thisx, PlayState* play) {
|
||||
this->displayEffectEnvColor[1] = 255;
|
||||
this->displayEffectEnvColor[2] = 155;
|
||||
|
||||
gSaveContext.hudModeDimOnlyDisabledButtons = false;
|
||||
gSaveContext.hudVisibilityForceButtonAlphasByStatus = false;
|
||||
this->state = MAG_STATE_FADE_IN_MASK;
|
||||
sInputDelayTimer = 20;
|
||||
gSaveContext.transFadeDuration = 1;
|
||||
|
||||
@@ -315,11 +315,11 @@ void EnMttag_RaceStart(EnMttag* this, PlayState* play) {
|
||||
} else {
|
||||
if (DECR(this->timer) == 60) {
|
||||
func_8010E9F0(TIMER_ID_4, 0);
|
||||
play->interfaceCtx.unk_280 = 1;
|
||||
play->interfaceCtx.minigameState = 1;
|
||||
Audio_QueueSeqCmd(NA_BGM_GORON_RACE | 0x8000);
|
||||
play->envCtx.unk_E4 = 0xFE;
|
||||
player->stateFlags1 &= ~0x20;
|
||||
} else if ((this->timer < 60) && (play->interfaceCtx.unk_280 == 8)) {
|
||||
} else if ((this->timer < 60) && (play->interfaceCtx.minigameState == 8)) {
|
||||
this->timer = 0;
|
||||
gSaveContext.eventInf[1] |= 1;
|
||||
this->actionFunc = EnMttag_Race;
|
||||
|
||||
@@ -302,7 +302,7 @@ void EnOssan_EndInteraction(PlayState* play, EnOssan* this) {
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_ChangeHudMode(HUD_MODE_ALL);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
this->stickLeftPrompt.isEnabled = false;
|
||||
this->stickRightPrompt.isEnabled = false;
|
||||
@@ -985,7 +985,7 @@ void EnOssan_SetupBuyItemWithFanfare(PlayState* play, EnOssan* this) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->stateFlags2 &= ~0x20000000;
|
||||
Interface_ChangeHudMode(HUD_MODE_ALL);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
EnOssan_SetupAction(this, EnOssan_BuyItemWithFanfare);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user