Changed checkbox to default to on, invert logic

This commit is contained in:
aMannus 2022-08-23 09:42:32 +02:00
parent 1c785560c4
commit d0f8374c4c
2 changed files with 4 additions and 3 deletions

View File

@ -452,6 +452,7 @@ namespace SohImGui {
io->ConfigFlags |= ImGuiConfigFlags_DockingEnable;
io->Fonts->AddFontDefault();
statsWindowOpen = CVar_GetS32("gStatsEnabled", 0);
CVar_RegisterS32("gRandoRandomRupeeNames", 1);
#ifdef __SWITCH__
Ship::Switch::SetupFont(io->Fonts);
#endif
@ -1912,9 +1913,9 @@ namespace SohImGui {
"(medallions/stones/songs). Note that these fanfares\n"
"are longer than usual."
);
PaddedEnhancementCheckbox("Disable Random Rupee Names", "gRandoDisableRandomRupeeNames", true, false);
PaddedEnhancementCheckbox("Random Rupee Names", "gRandoRandomRupeeNames", true, false);
Tooltip(
"Reverts textboxes for collecting rupees to their default state, disabling the randomization of rupee names."
"When obtaining rupees, randomize what the rupee is called in the textbox."
);
ImGui::EndMenu();
}

View File

@ -1541,7 +1541,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);
} else if (!CVar_GetS32("gRandoDisableRandomRupeeNames", 0) &&
} else if (CVar_GetS32("gRandoRandomRupeeNames", 0) &&
(textId == TEXT_BLUE_RUPEE || textId == TEXT_RED_RUPEE || textId == TEXT_PURPLE_RUPEE ||
textId == TEXT_HUGE_RUPEE)) {
Randomizer randomizerInstance;