Improved disabling of settings
For Skip Child Zelda (and possibly other options in the future)
This commit is contained in:
parent
97c37eb46a
commit
0ee898bd56
|
@ -3966,22 +3966,28 @@ void DrawRandoEditor(bool& open) {
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
}
|
}
|
||||||
|
|
||||||
// hide this option if we're skipping child zelda
|
// Shuffle Weird Egg
|
||||||
if(CVar_GetS32("gRandomizeSkipChildZelda", 0) == 0) {
|
// Disabled when Skip Child Zelda is active
|
||||||
// Shuffle Weird Egg
|
if (CVar_GetS32("gRandomizeSkipChildZelda", 0) != 0) {
|
||||||
SohImGui::EnhancementCheckbox(Settings::ShuffleWeirdEgg.GetName().c_str(), "gRandomizeShuffleWeirdEgg");
|
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(130, 130, 130, 255));
|
||||||
InsertHelpHoverText(
|
CVar_SetS32("gRandomizeShuffleWeirdEgg", 0);
|
||||||
"Shuffles the Weird Egg from Malon in to the item pool.\n"
|
} else {
|
||||||
"\n"
|
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(255, 255, 255, 255));
|
||||||
"The Weird Egg is required to unlock several events:\n"
|
|
||||||
" - Zelda's Lullaby from Impa\n"
|
|
||||||
" - Saria's song in Sacred Forest Meadow\n"
|
|
||||||
" - Epona's song and chicken minigame at Lon Lon Ranch\n"
|
|
||||||
" - Zelda's letter for Kakariko gate (if set to closed)\n"
|
|
||||||
" - Happy Mask Shop sidequest\n"
|
|
||||||
);
|
|
||||||
ImGui::Separator();
|
|
||||||
}
|
}
|
||||||
|
SohImGui::EnhancementCheckbox(Settings::ShuffleWeirdEgg.GetName().c_str(), "gRandomizeShuffleWeirdEgg");
|
||||||
|
ImGui::PopStyleColor();
|
||||||
|
InsertHelpHoverText(
|
||||||
|
"Shuffles the Weird Egg from Malon in to the item pool. Enabling Skip\n"
|
||||||
|
"Child Zelda disables this feature.\n"
|
||||||
|
"\n"
|
||||||
|
"The Weird Egg is required to unlock several events:\n"
|
||||||
|
" - Zelda's Lullaby from Impa\n"
|
||||||
|
" - Saria's song in Sacred Forest Meadow\n"
|
||||||
|
" - Epona's song and chicken minigame at Lon Lon Ranch\n"
|
||||||
|
" - Zelda's letter for Kakariko gate (if set to closed)\n"
|
||||||
|
" - Happy Mask Shop sidequest\n"
|
||||||
|
);
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
// Shuffle Gerudo Membership Card
|
// Shuffle Gerudo Membership Card
|
||||||
SohImGui::EnhancementCheckbox(Settings::ShuffleGerudoToken.GetName().c_str(), "gRandomizeShuffleGerudoToken");
|
SohImGui::EnhancementCheckbox(Settings::ShuffleGerudoToken.GetName().c_str(), "gRandomizeShuffleGerudoToken");
|
||||||
|
@ -4072,12 +4078,23 @@ void DrawRandoEditor(bool& open) {
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
// Skip child stealth
|
// Skip child stealth
|
||||||
SohImGui::EnhancementCheckbox(Settings::SkipChildStealth.GetName().c_str(), "gRandomizeSkipChildStealth");
|
// Disabled when Skip Child Zelda is active
|
||||||
InsertHelpHoverText(
|
if (CVar_GetS32("gRandomizeSkipChildZelda", 0) != 0) {
|
||||||
"The crawlspace into Hyrule Castle goes straight to Zelda, skipping\n"
|
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(130, 130, 130, 255));
|
||||||
"the guards."
|
CVar_SetS32("gRandomizeSkipChildStealth", 0);
|
||||||
);
|
// Also disable Weird Egg because it's on a different tab and wouldn't be updated otherwise
|
||||||
|
CVar_SetS32("gRandomizeShuffleWeirdEgg", 0);
|
||||||
|
} else {
|
||||||
|
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(255, 255, 255, 255));
|
||||||
|
}
|
||||||
|
SohImGui::EnhancementCheckbox(Settings::SkipChildStealth.GetName().c_str(),
|
||||||
|
"gRandomizeSkipChildStealth");
|
||||||
|
ImGui::PopStyleColor();
|
||||||
|
InsertHelpHoverText("The crawlspace into Hyrule Castle goes straight to Zelda, skipping\n"
|
||||||
|
"the guards.");
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
// Skip child zelda
|
||||||
SohImGui::EnhancementCheckbox("Skip Child Zelda", "gRandomizeSkipChildZelda");
|
SohImGui::EnhancementCheckbox("Skip Child Zelda", "gRandomizeSkipChildZelda");
|
||||||
InsertHelpHoverText(
|
InsertHelpHoverText(
|
||||||
"Start with Zelda's Letter in your inventory and skip the sequence up\n"
|
"Start with Zelda's Letter in your inventory and skip the sequence up\n"
|
||||||
|
|
Loading…
Reference in New Issue