mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-25 01:28:54 -05:00
Add CVar + Cvar check
Defaults to "1"
This commit is contained in:
parent
44e510e867
commit
45873ba71d
@ -452,6 +452,7 @@ namespace SohImGui {
|
||||
io->ConfigFlags |= ImGuiConfigFlags_DockingEnable;
|
||||
io->Fonts->AddFontDefault();
|
||||
statsWindowOpen = CVar_GetS32("gStatsEnabled", 0);
|
||||
CVar_RegisterS32("gRandoRelevantNavi", 1);
|
||||
#ifdef __SWITCH__
|
||||
Ship::Switch::SetupFont(io->Fonts);
|
||||
#endif
|
||||
@ -1912,6 +1913,11 @@ namespace SohImGui {
|
||||
"(medallions/stones/songs). Note that these fanfares\n"
|
||||
"are longer than usual."
|
||||
);
|
||||
EnhancementCheckbox("Rando-Relevant Navi Hints", "gRandoRelevantNavi");
|
||||
Tooltip(
|
||||
"Replace Navi's overworld quest hints with rando-\n"
|
||||
"related gameplay hints.\n"
|
||||
);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
|
@ -1546,7 +1546,7 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
|
||||
} else if (textId == TEXT_SCRUB_POH || textId == TEXT_SCRUB_STICK_UPGRADE || textId == TEXT_SCRUB_NUT_UPGRADE) {
|
||||
messageEntry = Randomizer_GetScrubMessage(textId);
|
||||
// In rando, replace Navi's general overworld hints with rando-related gameplay tips
|
||||
} else if (textId >= 0x0140 && textId <= 0x015F) {
|
||||
} else if (CVar_GetS32("gRandoRelevantNavi", 1) && textId >= 0x0140 && textId <= 0x015F) {
|
||||
messageEntry = Randomizer_GetNaviMessage();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user