mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-10-31 15:45:06 -04:00
Wrap changes behind CVar
This commit is contained in:
parent
94ec5eae7a
commit
a699bf5803
@ -90,6 +90,9 @@ namespace Game {
|
|||||||
Settings.controller.input_enabled = stob(Conf[ControllerSection]["input_enabled"]);
|
Settings.controller.input_enabled = stob(Conf[ControllerSection]["input_enabled"]);
|
||||||
CVar_SetS32(const_cast<char*>("gInputEnabled"), Settings.controller.input_enabled);
|
CVar_SetS32(const_cast<char*>("gInputEnabled"), Settings.controller.input_enabled);
|
||||||
|
|
||||||
|
Settings.controller.dpad_pause_name = stob(Conf[ControllerSection]["dpad_pause_name"]);
|
||||||
|
CVar_SetS32(const_cast<char*>("gDpadPauseName"), Settings.controller.dpad_pause_name);
|
||||||
|
|
||||||
// Cheats
|
// Cheats
|
||||||
Settings.cheats.debug_mode = stob(Conf[CheatSection]["debug_mode"]);
|
Settings.cheats.debug_mode = stob(Conf[CheatSection]["debug_mode"]);
|
||||||
CVar_SetS32(const_cast<char*>("gDebugEnabled"), Settings.cheats.debug_mode);
|
CVar_SetS32(const_cast<char*>("gDebugEnabled"), Settings.cheats.debug_mode);
|
||||||
@ -149,6 +152,7 @@ namespace Game {
|
|||||||
Conf[ControllerSection]["rumble_strength"] = std::to_string(Settings.controller.rumble_strength);
|
Conf[ControllerSection]["rumble_strength"] = std::to_string(Settings.controller.rumble_strength);
|
||||||
Conf[ControllerSection]["input_scale"] = std::to_string(Settings.controller.input_scale);
|
Conf[ControllerSection]["input_scale"] = std::to_string(Settings.controller.input_scale);
|
||||||
Conf[ControllerSection]["input_enabled"] = std::to_string(Settings.controller.input_enabled);
|
Conf[ControllerSection]["input_enabled"] = std::to_string(Settings.controller.input_enabled);
|
||||||
|
Conf[ControllerSection]["dpad_pause_name"] = std::to_string(Settings.controller.dpad_pause_name);
|
||||||
|
|
||||||
// Cheats
|
// Cheats
|
||||||
Conf[CheatSection]["debug_mode"] = std::to_string(Settings.cheats.debug_mode);
|
Conf[CheatSection]["debug_mode"] = std::to_string(Settings.cheats.debug_mode);
|
||||||
|
@ -34,6 +34,7 @@ struct SoHConfigType {
|
|||||||
float gyroDriftX = 0.0f;
|
float gyroDriftX = 0.0f;
|
||||||
float gyroDriftY = 0.0f;
|
float gyroDriftY = 0.0f;
|
||||||
bool input_enabled = false;
|
bool input_enabled = false;
|
||||||
|
bool dpad_pause_name = false;
|
||||||
} controller;
|
} controller;
|
||||||
|
|
||||||
// Cheats
|
// Cheats
|
||||||
|
@ -328,6 +328,13 @@ namespace SohImGui {
|
|||||||
needs_save = true;
|
needs_save = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
|
if (ImGui::Checkbox("Dpad Support on Pause and File Select", &Game::Settings.controller.dpad_pause_name)) {
|
||||||
|
CVar_SetS32(const_cast<char*>("gDpadPauseName"), Game::Settings.controller.dpad_pause_name);
|
||||||
|
needs_save = true;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,6 +179,7 @@ void FileChoose_UpdateMainMenu(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (CHECK_BTN_ALL(input->press.button, BTN_START) || CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
if (CHECK_BTN_ALL(input->press.button, BTN_START) || CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
||||||
if (this->buttonIndex <= FS_BTN_MAIN_FILE_3) {
|
if (this->buttonIndex <= FS_BTN_MAIN_FILE_3) {
|
||||||
@ -237,10 +238,10 @@ void FileChoose_UpdateMainMenu(GameState* thisx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((ABS(this->stickRelY) > 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(this->stickRelY) > 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if ((this->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((this->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
this->buttonIndex--;
|
this->buttonIndex--;
|
||||||
if (this->buttonIndex < FS_BTN_MAIN_FILE_1) {
|
if (this->buttonIndex < FS_BTN_MAIN_FILE_1) {
|
||||||
this->buttonIndex = FS_BTN_MAIN_OPTIONS;
|
this->buttonIndex = FS_BTN_MAIN_OPTIONS;
|
||||||
@ -1318,6 +1319,7 @@ void FileChoose_FadeInFileInfo(GameState* thisx) {
|
|||||||
void FileChoose_ConfirmFile(GameState* thisx) {
|
void FileChoose_ConfirmFile(GameState* thisx) {
|
||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (CHECK_BTN_ALL(input->press.button, BTN_START) || (CHECK_BTN_ALL(input->press.button, BTN_A))) {
|
if (CHECK_BTN_ALL(input->press.button, BTN_START) || (CHECK_BTN_ALL(input->press.button, BTN_A))) {
|
||||||
if (this->confirmButtonIndex == FS_BTN_CONFIRM_YES) {
|
if (this->confirmButtonIndex == FS_BTN_CONFIRM_YES) {
|
||||||
@ -1332,7 +1334,7 @@ void FileChoose_ConfirmFile(GameState* thisx) {
|
|||||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
} else if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->selectMode++;
|
this->selectMode++;
|
||||||
} else if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
} else if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->confirmButtonIndex ^= 1;
|
this->confirmButtonIndex ^= 1;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ void FileChoose_SelectCopySource(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
@ -82,10 +83,10 @@ void FileChoose_SelectCopySource(GameState* thisx) {
|
|||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if ((this->stickRelY >= 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((this->stickRelY >= 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
this->buttonIndex--;
|
this->buttonIndex--;
|
||||||
|
|
||||||
if (this->buttonIndex < FS_BTN_COPY_FILE_1) {
|
if (this->buttonIndex < FS_BTN_COPY_FILE_1) {
|
||||||
@ -174,6 +175,7 @@ void FileChoose_SelectCopyDest(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
@ -194,10 +196,10 @@ void FileChoose_SelectCopyDest(GameState* thisx) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if ((this->stickRelY >= 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((this->stickRelY >= 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
this->buttonIndex--;
|
this->buttonIndex--;
|
||||||
|
|
||||||
if ((this->buttonIndex == this->selectedFileIndex)) {
|
if ((this->buttonIndex == this->selectedFileIndex)) {
|
||||||
@ -360,6 +362,7 @@ void FileChoose_CopyConfirm(GameState* thisx) {
|
|||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
u16 dayTime;
|
u16 dayTime;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((this->buttonIndex != FS_BTN_CONFIRM_YES) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
if (((this->buttonIndex != FS_BTN_CONFIRM_YES) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
@ -377,7 +380,7 @@ void FileChoose_CopyConfirm(GameState* thisx) {
|
|||||||
this->configMode = CM_COPY_ANIM_1;
|
this->configMode = CM_COPY_ANIM_1;
|
||||||
func_800AA000(300.0f, 0xB4, 0x14, 0x64);
|
func_800AA000(300.0f, 0xB4, 0x14, 0x64);
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
} else if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
} else if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->buttonIndex ^= 1;
|
this->buttonIndex ^= 1;
|
||||||
}
|
}
|
||||||
@ -680,6 +683,7 @@ void FileChoose_EraseSelect(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
if (((this->buttonIndex == FS_BTN_COPY_QUIT) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
@ -700,10 +704,10 @@ void FileChoose_EraseSelect(GameState* thisx) {
|
|||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if ((this->stickRelY >= 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((this->stickRelY >= 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
this->buttonIndex--;
|
this->buttonIndex--;
|
||||||
if (this->buttonIndex < FS_BTN_ERASE_FILE_1) {
|
if (this->buttonIndex < FS_BTN_ERASE_FILE_1) {
|
||||||
this->buttonIndex = FS_BTN_ERASE_QUIT;
|
this->buttonIndex = FS_BTN_ERASE_QUIT;
|
||||||
@ -817,6 +821,7 @@ void FileChoose_SetupEraseConfirm2(GameState* thisx) {
|
|||||||
void FileChoose_EraseConfirm(GameState* thisx) {
|
void FileChoose_EraseConfirm(GameState* thisx) {
|
||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((this->buttonIndex != FS_BTN_CONFIRM_YES) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
if (((this->buttonIndex != FS_BTN_CONFIRM_YES) && CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
@ -833,7 +838,7 @@ void FileChoose_EraseConfirm(GameState* thisx) {
|
|||||||
this->nextTitleLabel = FS_TITLE_ERASE_COMPLETE;
|
this->nextTitleLabel = FS_TITLE_ERASE_COMPLETE;
|
||||||
func_800AA000(200.0f, 0xFF, 0x14, 0x96);
|
func_800AA000(200.0f, 0xFF, 0x14, 0x96);
|
||||||
sEraseDelayTimer = 15;
|
sEraseDelayTimer = 15;
|
||||||
} else if ((ABS(this->stickRelY) >= 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
} else if ((ABS(this->stickRelY) >= 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->buttonIndex ^= 1;
|
this->buttonIndex ^= 1;
|
||||||
}
|
}
|
||||||
|
@ -511,11 +511,12 @@ void FileChoose_UpdateKeyboardCursor(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
s16 prevKbdX;
|
s16 prevKbdX;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
this->kbdButton = 99;
|
this->kbdButton = 99;
|
||||||
|
|
||||||
if (this->kbdY != 5) {
|
if (this->kbdY != 5) {
|
||||||
if ((this->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((this->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->charIndex--;
|
this->charIndex--;
|
||||||
this->kbdX--;
|
this->kbdX--;
|
||||||
@ -523,7 +524,7 @@ void FileChoose_UpdateKeyboardCursor(GameState* thisx) {
|
|||||||
this->kbdX = 12;
|
this->kbdX = 12;
|
||||||
this->charIndex = (this->kbdY * 13) + this->kbdX;
|
this->charIndex = (this->kbdY * 13) + this->kbdX;
|
||||||
}
|
}
|
||||||
} else if ((this->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((this->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->charIndex++;
|
this->charIndex++;
|
||||||
this->kbdX++;
|
this->kbdX++;
|
||||||
@ -533,13 +534,13 @@ void FileChoose_UpdateKeyboardCursor(GameState* thisx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((this->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((this->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->kbdX--;
|
this->kbdX--;
|
||||||
if (this->kbdX < 3) {
|
if (this->kbdX < 3) {
|
||||||
this->kbdX = 4;
|
this->kbdX = 4;
|
||||||
}
|
}
|
||||||
} else if ((this->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((this->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->kbdX++;
|
this->kbdX++;
|
||||||
if (this->kbdX > 4) {
|
if (this->kbdX > 4) {
|
||||||
@ -548,7 +549,7 @@ void FileChoose_UpdateKeyboardCursor(GameState* thisx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((this->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->kbdY--;
|
this->kbdY--;
|
||||||
|
|
||||||
@ -579,7 +580,7 @@ void FileChoose_UpdateKeyboardCursor(GameState* thisx) {
|
|||||||
this->charIndex += this->kbdX;
|
this->charIndex += this->kbdX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((this->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
} else if ((this->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
this->kbdY++;
|
this->kbdY++;
|
||||||
|
|
||||||
@ -656,6 +657,7 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
|
|||||||
FileChooseContext* this = (FileChooseContext*)thisx;
|
FileChooseContext* this = (FileChooseContext*)thisx;
|
||||||
SramContext* sramCtx = &this->sramCtx;
|
SramContext* sramCtx = &this->sramCtx;
|
||||||
Input* input = &this->state.input[0];
|
Input* input = &this->state.input[0];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
@ -676,7 +678,7 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((this->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if (sSelectedSetting == FS_SETTING_AUDIO) {
|
if (sSelectedSetting == FS_SETTING_AUDIO) {
|
||||||
@ -689,7 +691,7 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
|
|||||||
} else {
|
} else {
|
||||||
gSaveContext.zTargetSetting ^= 1;
|
gSaveContext.zTargetSetting ^= 1;
|
||||||
}
|
}
|
||||||
} else if ((this->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((this->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
|
||||||
if (sSelectedSetting == FS_SETTING_AUDIO) {
|
if (sSelectedSetting == FS_SETTING_AUDIO) {
|
||||||
@ -703,7 +705,7 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ABS(this->stickRelY) > 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(this->stickRelY) > 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
sSelectedSetting ^= 1;
|
sSelectedSetting ^= 1;
|
||||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
} else if (CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
||||||
|
@ -74,6 +74,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
s16 pad2;
|
s16 pad2;
|
||||||
s16 phi_s0_2;
|
s16 phi_s0_2;
|
||||||
s16 sp208[3];
|
s16 sp208[3];
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_kaleido_collect.c", 248);
|
OPEN_DISPS(gfxCtx, "../z_kaleido_collect.c", 248);
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
sp216 = pauseCtx->cursorSlot[PAUSE_QUEST];
|
sp216 = pauseCtx->cursorSlot[PAUSE_QUEST];
|
||||||
phi_s3 = pauseCtx->cursorPoint[PAUSE_QUEST];
|
phi_s3 = pauseCtx->cursorPoint[PAUSE_QUEST];
|
||||||
|
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
phi_s0 = D_8082A1AC[phi_s3][2];
|
phi_s0 = D_8082A1AC[phi_s3][2];
|
||||||
if (phi_s0 == -3) {
|
if (phi_s0 == -3) {
|
||||||
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_LEFT);
|
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_LEFT);
|
||||||
@ -99,7 +100,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
phi_s0 = D_8082A1AC[phi_s0][2];
|
phi_s0 = D_8082A1AC[phi_s0][2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
phi_s0 = D_8082A1AC[phi_s3][3];
|
phi_s0 = D_8082A1AC[phi_s3][3];
|
||||||
if (phi_s0 == -2) {
|
if (phi_s0 == -2) {
|
||||||
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_RIGHT);
|
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_RIGHT);
|
||||||
@ -114,7 +115,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((pauseCtx->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
if ((pauseCtx->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
phi_s0 = D_8082A1AC[phi_s3][1];
|
phi_s0 = D_8082A1AC[phi_s3][1];
|
||||||
while (phi_s0 >= 0) {
|
while (phi_s0 >= 0) {
|
||||||
if ((s16)KaleidoScope_UpdateQuestStatusPoint(pauseCtx, phi_s0) != 0) {
|
if ((s16)KaleidoScope_UpdateQuestStatusPoint(pauseCtx, phi_s0) != 0) {
|
||||||
@ -122,7 +123,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
}
|
}
|
||||||
phi_s0 = D_8082A1AC[phi_s0][1];
|
phi_s0 = D_8082A1AC[phi_s0][1];
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
} else if ((pauseCtx->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
phi_s0 = D_8082A1AC[phi_s3][0];
|
phi_s0 = D_8082A1AC[phi_s3][0];
|
||||||
while (phi_s0 >= 0) {
|
while (phi_s0 >= 0) {
|
||||||
if ((s16)KaleidoScope_UpdateQuestStatusPoint(pauseCtx, phi_s0) != 0) {
|
if ((s16)KaleidoScope_UpdateQuestStatusPoint(pauseCtx, phi_s0) != 0) {
|
||||||
@ -211,7 +212,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->cursorPoint[PAUSE_QUEST] = 0x15;
|
pauseCtx->cursorPoint[PAUSE_QUEST] = 0x15;
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
@ -228,7 +229,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx
|
|||||||
pauseCtx->cursorSlot[pauseCtx->pageIndex] = sp216;
|
pauseCtx->cursorSlot[pauseCtx->pageIndex] = sp216;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->cursorPoint[PAUSE_QUEST] = 0;
|
pauseCtx->cursorPoint[PAUSE_QUEST] = 0;
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
@ -140,6 +140,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
s16 cursorX;
|
s16 cursorX;
|
||||||
s16 cursorY;
|
s16 cursorY;
|
||||||
volatile s16 oldCursorPoint;
|
volatile s16 oldCursorPoint;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kaleido_equipment.c", 219);
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kaleido_equipment.c", 219);
|
||||||
|
|
||||||
@ -174,7 +175,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
cursorMoveResult = 0;
|
cursorMoveResult = 0;
|
||||||
while (cursorMoveResult == 0) {
|
while (cursorMoveResult == 0) {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_EQUIP] != 0) {
|
if (pauseCtx->cursorX[PAUSE_EQUIP] != 0) {
|
||||||
pauseCtx->cursorX[PAUSE_EQUIP] -= 1;
|
pauseCtx->cursorX[PAUSE_EQUIP] -= 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_EQUIP] -= 1;
|
pauseCtx->cursorPoint[PAUSE_EQUIP] -= 1;
|
||||||
@ -216,7 +217,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
cursorMoveResult = 3;
|
cursorMoveResult = 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_EQUIP] < 3) {
|
if (pauseCtx->cursorX[PAUSE_EQUIP] < 3) {
|
||||||
pauseCtx->cursorX[PAUSE_EQUIP] += 1;
|
pauseCtx->cursorX[PAUSE_EQUIP] += 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_EQUIP] += 1;
|
pauseCtx->cursorPoint[PAUSE_EQUIP] += 1;
|
||||||
@ -264,7 +265,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
cursorMoveResult = 0;
|
cursorMoveResult = 0;
|
||||||
while (cursorMoveResult == 0) {
|
while (cursorMoveResult == 0) {
|
||||||
if ((pauseCtx->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((pauseCtx->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
if (pauseCtx->cursorY[PAUSE_EQUIP] != 0) {
|
if (pauseCtx->cursorY[PAUSE_EQUIP] != 0) {
|
||||||
pauseCtx->cursorY[PAUSE_EQUIP] -= 1;
|
pauseCtx->cursorY[PAUSE_EQUIP] -= 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_EQUIP] -= 4;
|
pauseCtx->cursorPoint[PAUSE_EQUIP] -= 4;
|
||||||
@ -286,7 +287,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
pauseCtx->cursorPoint[PAUSE_EQUIP] = cursorPoint;
|
pauseCtx->cursorPoint[PAUSE_EQUIP] = cursorPoint;
|
||||||
cursorMoveResult = 3;
|
cursorMoveResult = 3;
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
} else if ((pauseCtx->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
if (pauseCtx->cursorY[PAUSE_EQUIP] < 3) {
|
if (pauseCtx->cursorY[PAUSE_EQUIP] < 3) {
|
||||||
pauseCtx->cursorY[PAUSE_EQUIP] += 1;
|
pauseCtx->cursorY[PAUSE_EQUIP] += 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_EQUIP] += 4;
|
pauseCtx->cursorPoint[PAUSE_EQUIP] += 4;
|
||||||
@ -309,7 +310,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
|
||||||
@ -356,7 +357,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
|
@ -96,6 +96,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
s16 cursorY;
|
s16 cursorY;
|
||||||
s16 oldCursorPoint;
|
s16 oldCursorPoint;
|
||||||
s16 moveCursorResult;
|
s16 moveCursorResult;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kaleido_item.c", 234);
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_kaleido_item.c", 234);
|
||||||
|
|
||||||
@ -120,7 +121,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
pauseCtx->stickRelX = 40;
|
pauseCtx->stickRelX = 40;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ABS(pauseCtx->stickRelX) > 30) || CHECK_BTN_ANY(input->press.button, BTN_DLEFT | BTN_DRIGHT)) {
|
if ((ABS(pauseCtx->stickRelX) > 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DLEFT | BTN_DRIGHT))) {
|
||||||
cursorPoint = pauseCtx->cursorPoint[PAUSE_ITEM];
|
cursorPoint = pauseCtx->cursorPoint[PAUSE_ITEM];
|
||||||
cursorX = pauseCtx->cursorX[PAUSE_ITEM];
|
cursorX = pauseCtx->cursorX[PAUSE_ITEM];
|
||||||
cursorY = pauseCtx->cursorY[PAUSE_ITEM];
|
cursorY = pauseCtx->cursorY[PAUSE_ITEM];
|
||||||
@ -132,7 +133,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
if (gSaveContext.inventory.items[pauseCtx->cursorPoint[PAUSE_ITEM]]) {}
|
if (gSaveContext.inventory.items[pauseCtx->cursorPoint[PAUSE_ITEM]]) {}
|
||||||
|
|
||||||
while (moveCursorResult == 0) {
|
while (moveCursorResult == 0) {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_ITEM] != 0) {
|
if (pauseCtx->cursorX[PAUSE_ITEM] != 0) {
|
||||||
pauseCtx->cursorX[PAUSE_ITEM] -= 1;
|
pauseCtx->cursorX[PAUSE_ITEM] -= 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_ITEM] -= 1;
|
pauseCtx->cursorPoint[PAUSE_ITEM] -= 1;
|
||||||
@ -164,7 +165,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
moveCursorResult = 2;
|
moveCursorResult = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
} else if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_ITEM] < 5) {
|
if (pauseCtx->cursorX[PAUSE_ITEM] < 5) {
|
||||||
pauseCtx->cursorX[PAUSE_ITEM] += 1;
|
pauseCtx->cursorX[PAUSE_ITEM] += 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_ITEM] += 1;
|
pauseCtx->cursorPoint[PAUSE_ITEM] += 1;
|
||||||
@ -208,7 +209,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
cursorItem, pauseCtx->cursorSpecialPos);
|
cursorItem, pauseCtx->cursorSpecialPos);
|
||||||
}
|
}
|
||||||
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
|
||||||
@ -242,7 +243,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
|
||||||
@ -280,13 +281,13 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if (pauseCtx->cursorSpecialPos == 0) {
|
if (pauseCtx->cursorSpecialPos == 0) {
|
||||||
if (cursorItem != PAUSE_ITEM_NONE) {
|
if (cursorItem != PAUSE_ITEM_NONE) {
|
||||||
if ((ABS(pauseCtx->stickRelY) > 30) || CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP)) {
|
if ((ABS(pauseCtx->stickRelY) > 30) || (dpad && CHECK_BTN_ANY(input->press.button, BTN_DDOWN | BTN_DUP))) {
|
||||||
moveCursorResult = 0;
|
moveCursorResult = 0;
|
||||||
|
|
||||||
cursorPoint = pauseCtx->cursorPoint[PAUSE_ITEM];
|
cursorPoint = pauseCtx->cursorPoint[PAUSE_ITEM];
|
||||||
cursorY = pauseCtx->cursorY[PAUSE_ITEM];
|
cursorY = pauseCtx->cursorY[PAUSE_ITEM];
|
||||||
while (moveCursorResult == 0) {
|
while (moveCursorResult == 0) {
|
||||||
if ((pauseCtx->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((pauseCtx->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
if (pauseCtx->cursorY[PAUSE_ITEM] != 0) {
|
if (pauseCtx->cursorY[PAUSE_ITEM] != 0) {
|
||||||
pauseCtx->cursorY[PAUSE_ITEM] -= 1;
|
pauseCtx->cursorY[PAUSE_ITEM] -= 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_ITEM] -= 6;
|
pauseCtx->cursorPoint[PAUSE_ITEM] -= 6;
|
||||||
@ -300,7 +301,7 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
moveCursorResult = 2;
|
moveCursorResult = 2;
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
} else if ((pauseCtx->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
if (pauseCtx->cursorY[PAUSE_ITEM] < 3) {
|
if (pauseCtx->cursorY[PAUSE_ITEM] < 3) {
|
||||||
pauseCtx->cursorY[PAUSE_ITEM] += 1;
|
pauseCtx->cursorY[PAUSE_ITEM] += 1;
|
||||||
pauseCtx->cursorPoint[PAUSE_ITEM] += 6;
|
pauseCtx->cursorPoint[PAUSE_ITEM] += 6;
|
||||||
|
@ -44,6 +44,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
s16 stepG;
|
s16 stepG;
|
||||||
s16 stepB;
|
s16 stepB;
|
||||||
u16 rgba16;
|
u16 rgba16;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_kaleido_map_PAL.c", 123);
|
OPEN_DISPS(gfxCtx, "../z_kaleido_map_PAL.c", 123);
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
oldCursorPoint = pauseCtx->cursorPoint[PAUSE_MAP];
|
oldCursorPoint = pauseCtx->cursorPoint[PAUSE_MAP];
|
||||||
|
|
||||||
if (pauseCtx->cursorSpecialPos == 0) {
|
if (pauseCtx->cursorSpecialPos == 0) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_MAP] != 0) {
|
if (pauseCtx->cursorX[PAUSE_MAP] != 0) {
|
||||||
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_RIGHT);
|
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_RIGHT);
|
||||||
} else {
|
} else {
|
||||||
@ -68,7 +69,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
} else if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
if (pauseCtx->cursorX[PAUSE_MAP] == 0) {
|
if (pauseCtx->cursorX[PAUSE_MAP] == 0) {
|
||||||
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_LEFT);
|
KaleidoScope_MoveCursorToSpecialPos(globalCtx, PAUSE_CURSOR_PAGE_LEFT);
|
||||||
} else {
|
} else {
|
||||||
@ -83,7 +84,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pauseCtx->cursorPoint[PAUSE_MAP] < 3) {
|
if (pauseCtx->cursorPoint[PAUSE_MAP] < 3) {
|
||||||
if ((pauseCtx->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((pauseCtx->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
if (pauseCtx->cursorPoint[PAUSE_MAP] != 0) {
|
if (pauseCtx->cursorPoint[PAUSE_MAP] != 0) {
|
||||||
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 1; i >= 0; i--) {
|
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 1; i >= 0; i--) {
|
||||||
if (CHECK_DUNGEON_ITEM(i, gSaveContext.mapIndex)) {
|
if (CHECK_DUNGEON_ITEM(i, gSaveContext.mapIndex)) {
|
||||||
@ -93,7 +94,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
if ((pauseCtx->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
if (pauseCtx->cursorPoint[PAUSE_MAP] != 2) {
|
if (pauseCtx->cursorPoint[PAUSE_MAP] != 2) {
|
||||||
for (i = pauseCtx->cursorPoint[PAUSE_MAP] + 1; i < 3; i++) {
|
for (i = pauseCtx->cursorPoint[PAUSE_MAP] + 1; i < 3; i++) {
|
||||||
if (CHECK_DUNGEON_ITEM(i, gSaveContext.mapIndex)) {
|
if (CHECK_DUNGEON_ITEM(i, gSaveContext.mapIndex)) {
|
||||||
@ -105,7 +106,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelY > 30) || CHECK_BTN_ALL(input->press.button, BTN_DUP)) {
|
if ((pauseCtx->stickRelY > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DUP))) {
|
||||||
if (pauseCtx->cursorPoint[PAUSE_MAP] >= 4) {
|
if (pauseCtx->cursorPoint[PAUSE_MAP] >= 4) {
|
||||||
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 3 - 1; i >= 0; i--) {
|
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 3 - 1; i >= 0; i--) {
|
||||||
if ((gSaveContext.sceneFlags[gSaveContext.mapIndex].floors & gBitFlags[i]) ||
|
if ((gSaveContext.sceneFlags[gSaveContext.mapIndex].floors & gBitFlags[i]) ||
|
||||||
@ -116,7 +117,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ((pauseCtx->stickRelY < -30) || CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
} else if ((pauseCtx->stickRelY < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DDOWN))) {
|
||||||
if (pauseCtx->cursorPoint[PAUSE_MAP] != 10) {
|
if (pauseCtx->cursorPoint[PAUSE_MAP] != 10) {
|
||||||
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 3 + 1; i < 11; i++) {
|
for (i = pauseCtx->cursorPoint[PAUSE_MAP] - 3 + 1; i < 11; i++) {
|
||||||
if ((gSaveContext.sceneFlags[gSaveContext.mapIndex].floors & gBitFlags[i]) ||
|
if ((gSaveContext.sceneFlags[gSaveContext.mapIndex].floors & gBitFlags[i]) ||
|
||||||
@ -139,7 +140,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
pauseCtx->cursorSlot[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_MAP] = pauseCtx->dungeonMapSlot;
|
pauseCtx->cursorSlot[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_MAP] = pauseCtx->dungeonMapSlot;
|
||||||
@ -149,7 +150,7 @@ void KaleidoScope_DrawDungeonMap(GlobalContext* globalCtx, GraphicsContext* gfxC
|
|||||||
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->nameDisplayTimer = 0;
|
pauseCtx->nameDisplayTimer = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
pauseCtx->cursorX[PAUSE_MAP] = 1;
|
pauseCtx->cursorX[PAUSE_MAP] = 1;
|
||||||
@ -406,6 +407,7 @@ void KaleidoScope_DrawWorldMap(GlobalContext* globalCtx, GraphicsContext* gfxCtx
|
|||||||
s16 stepR;
|
s16 stepR;
|
||||||
s16 stepG;
|
s16 stepG;
|
||||||
s16 stepB;
|
s16 stepB;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx, "../z_kaleido_map_PAL.c", 556);
|
OPEN_DISPS(gfxCtx, "../z_kaleido_map_PAL.c", 556);
|
||||||
|
|
||||||
@ -414,7 +416,7 @@ void KaleidoScope_DrawWorldMap(GlobalContext* globalCtx, GraphicsContext* gfxCtx
|
|||||||
oldCursorPoint = pauseCtx->cursorPoint[PAUSE_WORLD_MAP];
|
oldCursorPoint = pauseCtx->cursorPoint[PAUSE_WORLD_MAP];
|
||||||
|
|
||||||
if (pauseCtx->cursorSpecialPos == 0) {
|
if (pauseCtx->cursorSpecialPos == 0) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
D_8082A6D4 = 0;
|
D_8082A6D4 = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -425,7 +427,7 @@ void KaleidoScope_DrawWorldMap(GlobalContext* globalCtx, GraphicsContext* gfxCtx
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (pauseCtx->worldMapPoints[pauseCtx->cursorPoint[PAUSE_WORLD_MAP]] == 0);
|
} while (pauseCtx->worldMapPoints[pauseCtx->cursorPoint[PAUSE_WORLD_MAP]] == 0);
|
||||||
} else if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
} else if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
D_8082A6D4 = 0;
|
D_8082A6D4 = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -446,7 +448,7 @@ void KaleidoScope_DrawWorldMap(GlobalContext* globalCtx, GraphicsContext* gfxCtx
|
|||||||
} else {
|
} else {
|
||||||
pauseCtx->cursorItem[PAUSE_MAP] = gSaveContext.worldMapArea + 0x18;
|
pauseCtx->cursorItem[PAUSE_MAP] = gSaveContext.worldMapArea + 0x18;
|
||||||
if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->cursorPoint[PAUSE_WORLD_MAP] = 0;
|
pauseCtx->cursorPoint[PAUSE_WORLD_MAP] = 0;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
|
||||||
@ -461,7 +463,7 @@ void KaleidoScope_DrawWorldMap(GlobalContext* globalCtx, GraphicsContext* gfxCtx
|
|||||||
D_8082A6D4 = 0;
|
D_8082A6D4 = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->cursorPoint[PAUSE_WORLD_MAP] = 11;
|
pauseCtx->cursorPoint[PAUSE_WORLD_MAP] = 11;
|
||||||
pauseCtx->cursorSpecialPos = 0;
|
pauseCtx->cursorSpecialPos = 0;
|
||||||
|
|
||||||
|
@ -7,12 +7,13 @@ void KaleidoScope_UpdatePrompt(GlobalContext* globalCtx) {
|
|||||||
Input* input = &globalCtx->state.input[0];
|
Input* input = &globalCtx->state.input[0];
|
||||||
s8 relStickX = input->rel.stick_x;
|
s8 relStickX = input->rel.stick_x;
|
||||||
s16 step;
|
s16 step;
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
|
|
||||||
if (((pauseCtx->state == 7) && (pauseCtx->unk_1EC == 1)) || (pauseCtx->state == 0xE) || (pauseCtx->state == 0x10)) {
|
if (((pauseCtx->state == 7) && (pauseCtx->unk_1EC == 1)) || (pauseCtx->state == 0xE) || (pauseCtx->state == 0x10)) {
|
||||||
if ((pauseCtx->promptChoice == 0) && ((relStickX >= 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
if ((pauseCtx->promptChoice == 0) && ((relStickX >= 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
pauseCtx->promptChoice = 4;
|
pauseCtx->promptChoice = 4;
|
||||||
} else if ((pauseCtx->promptChoice != 0) && ((relStickX <= -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
} else if ((pauseCtx->promptChoice != 0) && ((relStickX <= -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT)))) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
pauseCtx->promptChoice = 0;
|
pauseCtx->promptChoice = 0;
|
||||||
}
|
}
|
||||||
|
@ -936,8 +936,9 @@ void KaleidoScope_HandlePageToggles(PauseContext* pauseCtx, Input* input) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool dpad = CVar_GetS32("gDpadPauseName", 0);
|
||||||
if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_LEFT) {
|
||||||
if ((pauseCtx->stickRelX < -30) || CHECK_BTN_ALL(input->press.button, BTN_DLEFT)) {
|
if ((pauseCtx->stickRelX < -30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DLEFT))) {
|
||||||
pauseCtx->pageSwitchTimer++;
|
pauseCtx->pageSwitchTimer++;
|
||||||
if ((pauseCtx->pageSwitchTimer >= 10) || (pauseCtx->pageSwitchTimer == 0)) {
|
if ((pauseCtx->pageSwitchTimer >= 10) || (pauseCtx->pageSwitchTimer == 0)) {
|
||||||
KaleidoScope_SwitchPage(pauseCtx, 0);
|
KaleidoScope_SwitchPage(pauseCtx, 0);
|
||||||
@ -946,7 +947,7 @@ void KaleidoScope_HandlePageToggles(PauseContext* pauseCtx, Input* input) {
|
|||||||
pauseCtx->pageSwitchTimer = -1;
|
pauseCtx->pageSwitchTimer = -1;
|
||||||
}
|
}
|
||||||
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_RIGHT) {
|
} else if (pauseCtx->cursorSpecialPos == PAUSE_CURSOR_PAGE_RIGHT) {
|
||||||
if ((pauseCtx->stickRelX > 30) || CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
if ((pauseCtx->stickRelX > 30) || (dpad && CHECK_BTN_ALL(input->press.button, BTN_DRIGHT))) {
|
||||||
pauseCtx->pageSwitchTimer++;
|
pauseCtx->pageSwitchTimer++;
|
||||||
if ((pauseCtx->pageSwitchTimer >= 10) || (pauseCtx->pageSwitchTimer == 0)) {
|
if ((pauseCtx->pageSwitchTimer >= 10) || (pauseCtx->pageSwitchTimer == 0)) {
|
||||||
KaleidoScope_SwitchPage(pauseCtx, 2);
|
KaleidoScope_SwitchPage(pauseCtx, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user