Merge pull request #67 from Istador/pr-main-mod-menu

Replace the action guide with the SMOO Mod Menu
This commit is contained in:
CraftyBoss 2024-10-25 18:52:21 -07:00 committed by GitHub
commit 6493ef8d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 7 additions and 9 deletions

View file

@ -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.

View file

@ -86,13 +86,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;

View file

@ -36,7 +36,7 @@ StageSceneStateServerConfig::StageSceneStateServerConfig(
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;