[main menu][pause menu] replace the action guide with the SMOO Mod Menu
Cherry picked this aspect from the original commit and did the romfs change for all languages (not only for `USen`).a9b2c87aa0
(cherry picked from commita9b2c87aa0
) Co-authored-by: Robin C. Ladiges <rcl.git@blackpinguin.de>
This commit is contained in:
parent
ad79fe1732
commit
e15e8f60e9
|
@ -99,13 +99,14 @@ B59E28 B seadPrintHook // sead::system::print
|
|||
|
||||
// Pause Menu Changes
|
||||
|
||||
4EAEC4 B overrideNerveHook // makes any button on pause menu run a specific nerve
|
||||
// 4EAEC4 B overrideNerveHook // makes any button on pause menu run a specific nerve
|
||||
4EA104 MOV W2, #5 // update state count to account for new custom state
|
||||
4EA1F0 BL initNerveStateHook // inits options nerve state and server config state
|
||||
4EA174 MOV X0, X20 // moves StageSceneStatePauseMenu to first arg
|
||||
4EA17C NOP // prevents first new of StageSceneStateOption
|
||||
4EA1A8 BL initStateHook // inits StageSceneStateOption and StageSceneStateServerConfig
|
||||
4EA1C0 NOP // prevents mStateOption ptr from being overriden
|
||||
4EAFA4 B overrideHelpFadeNerve
|
||||
|
||||
// Gravity hooks
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -78,13 +78,10 @@ bool registerShineToList(Shine* shineActor) {
|
|||
return al::isAlive(shineActor);
|
||||
}
|
||||
|
||||
void overrideNerveHook(StageSceneStatePauseMenu* thisPtr, al::Nerve* nrvSet) {
|
||||
|
||||
if (al::isPadHoldZL(-1)) {
|
||||
al::setNerve(thisPtr, &nrvStageSceneStatePauseMenuServerConfig);
|
||||
} else {
|
||||
al::setNerve(thisPtr, nrvSet);
|
||||
}
|
||||
void overrideHelpFadeNerve(StageSceneStatePauseMenu* thisPtr) {
|
||||
// Set label in menu inside LocalizedData/${lang}/MessageData/LayoutMessage.szs/Menu.msbt/Menu_Help
|
||||
thisPtr->exeServerConfig();
|
||||
al::setNerve(thisPtr, &nrvStageSceneStatePauseMenuServerConfig);
|
||||
}
|
||||
|
||||
StageSceneStateServerConfig *sceneStateServerConfig = nullptr;
|
||||
|
|
|
@ -37,7 +37,7 @@ StageSceneStateServerConfig::StageSceneStateServerConfig(const char *name, al::S
|
|||
mMainOptions = new SimpleLayoutMenu("ServerConfigMenu", "OptionSelect", initInfo, 0, false);
|
||||
mMainOptionsList = new CommonVerticalList(mMainOptions, initInfo, true);
|
||||
|
||||
al::setPaneString(mMainOptions, "TxtOption", u"Server Configuration", 0);
|
||||
al::setPaneString(mMainOptions, "TxtOption", u"SMOO Mod Menu", 0);
|
||||
|
||||
mMainOptionsList->unkInt1 = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue