mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-22 13:41:54 -05:00
Merge pull request #1413 from aMannus/rando-key-colors-default
Rando: Enable key colors matching dungeon by default
This commit is contained in:
commit
bafd016cd9
@ -329,6 +329,7 @@ namespace SohImGui {
|
|||||||
statsWindowOpen = CVar_GetS32("gStatsEnabled", 0);
|
statsWindowOpen = CVar_GetS32("gStatsEnabled", 0);
|
||||||
CVar_RegisterS32("gRandomizeRupeeNames", 1);
|
CVar_RegisterS32("gRandomizeRupeeNames", 1);
|
||||||
CVar_RegisterS32("gRandoRelevantNavi", 1);
|
CVar_RegisterS32("gRandoRelevantNavi", 1);
|
||||||
|
CVar_RegisterS32("gRandoMatchKeyColors", 1);
|
||||||
#ifdef __SWITCH__
|
#ifdef __SWITCH__
|
||||||
Ship::Switch::SetupFont(io->Fonts);
|
Ship::Switch::SetupFont(io->Fonts);
|
||||||
#endif
|
#endif
|
||||||
|
@ -907,6 +907,7 @@ void Randomizer::ParseRandomizerSettingsFile(const char* spoilerFileName) {
|
|||||||
} else if (it.value() == "Anywhere") {
|
} else if (it.value() == "Anywhere") {
|
||||||
gSaveContext.randoSettings[index].value = 3;
|
gSaveContext.randoSettings[index].value = 3;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case RSK_KEYSANITY:
|
case RSK_KEYSANITY:
|
||||||
if(it.value() == "Start With") {
|
if(it.value() == "Start With") {
|
||||||
gSaveContext.randoSettings[index].value = 0;
|
gSaveContext.randoSettings[index].value = 0;
|
||||||
|
@ -1392,7 +1392,24 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::Tooltip(
|
UIWidgets::Tooltip(
|
||||||
"When obtaining rupees, randomize what the rupee is called in the textbox."
|
"When obtaining rupees, randomize what the rupee is called in the textbox."
|
||||||
);
|
);
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Key Colors Match Dungeon", "gRandoMatchKeyColors", true, false);
|
|
||||||
|
// Only disable the key colors checkbox when none of the keysanity settings are set to "Any Dungeon", "Overworld" or "Anywhere"
|
||||||
|
bool disableKeyColors = true;
|
||||||
|
|
||||||
|
if (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_KEYSANITY) > 2 ||
|
||||||
|
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_GERUDO_KEYS) > 0 ||
|
||||||
|
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_BOSS_KEYSANITY) > 2 ||
|
||||||
|
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_GANONS_BOSS_KEY) > 2 ||
|
||||||
|
!gSaveContext.n64ddFlag) {
|
||||||
|
disableKeyColors = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* disableKeyColorsText =
|
||||||
|
"This setting is disabled because a savefile is loaded without any key\n"
|
||||||
|
"shuffle settings set to \"Any Dungeon\", \"Overworld\" or \"Anywhere\"";
|
||||||
|
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("Key Colors Match Dungeon", "gRandoMatchKeyColors", true, false,
|
||||||
|
disableKeyColors, disableKeyColorsText);
|
||||||
UIWidgets::Tooltip(
|
UIWidgets::Tooltip(
|
||||||
"Matches the color of small keys and boss keys to the dungeon they belong to. "
|
"Matches the color of small keys and boss keys to the dungeon they belong to. "
|
||||||
"This helps identify keys from afar and adds a little bit of flair.\n\nThis only "
|
"This helps identify keys from afar and adds a little bit of flair.\n\nThis only "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user