mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-01 08:05:07 -04:00
Force Warp Song Hints off when Warp Songs are not shuffled (#4229)
This commit is contained in:
parent
77770ba3b2
commit
a0fda39a75
@ -1739,6 +1739,12 @@ void Settings::UpdateOptionProperties() {
|
|||||||
mOptions[RSK_HINT_DISTRIBUTION].Unhide();
|
mOptions[RSK_HINT_DISTRIBUTION].Unhide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleWarpSongs"), RO_GENERIC_ON)) {
|
||||||
|
mOptions[RSK_WARP_SONG_HINTS].Enable();
|
||||||
|
} else {
|
||||||
|
mOptions[RSK_WARP_SONG_HINTS].Disable("This option is disabled since warp song locations not shuffled.");
|
||||||
|
}
|
||||||
|
|
||||||
if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_OFF)) {
|
if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_OFF)) {
|
||||||
mOptions[RSK_MALON_HINT].Enable();
|
mOptions[RSK_MALON_HINT].Enable();
|
||||||
} else {
|
} else {
|
||||||
@ -2039,6 +2045,10 @@ void Settings::FinalizeSettings(const std::set<RandomizerCheck>& excludedLocatio
|
|||||||
mOptions[RSK_KEYSANITY].SetSelectedIndex(3);
|
mOptions[RSK_KEYSANITY].SetSelectedIndex(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mOptions[RSK_SHUFFLE_WARP_SONGS]) {
|
||||||
|
mOptions[RSK_WARP_SONG_HINTS].SetSelectedIndex(RO_GENERIC_OFF);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mOptions[RSK_SHUFFLE_COWS]) {
|
if (!mOptions[RSK_SHUFFLE_COWS]) {
|
||||||
mOptions[RSK_MALON_HINT].SetSelectedIndex(RO_GENERIC_OFF);
|
mOptions[RSK_MALON_HINT].SetSelectedIndex(RO_GENERIC_OFF);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user