Adds a toggle for the entrance labels on signs near loading zones. (#5974)
This commit is contained in:
committed by
GitHub
parent
daeb3a84c7
commit
c68c8f1284
@@ -2270,7 +2270,8 @@ extern "C" int CustomMessage_RetrieveIfExists(PlayState* play) {
|
||||
s16 actorParams = 0;
|
||||
if (IS_RANDO) {
|
||||
auto ctx = Rando::Context::GetInstance();
|
||||
if (ctx->GetOption(RSK_SHUFFLE_ENTRANCES)) {
|
||||
if (ctx->GetOption(RSK_SHUFFLE_ENTRANCES) &&
|
||||
CVarGetInteger(CVAR_RANDOMIZER_ENHANCEMENT("EntrancesOnSigns"), 0)) {
|
||||
s16 entrance = -1;
|
||||
switch (textId) {
|
||||
case TEXT_WATERFALL:
|
||||
|
||||
@@ -97,6 +97,9 @@ void SohMenu::AddMenuRandomizer() {
|
||||
})
|
||||
.Options(FloatSliderOptions().Min(5.0f).Max(15.0f).Format("%.2f").DefaultValue(10.0f).Tooltip(
|
||||
"The size of the item when it is picked up."));
|
||||
AddWidget(path, "Signs Hint Entrances", WIDGET_CVAR_CHECKBOX)
|
||||
.CVar(CVAR_RANDOMIZER_ENHANCEMENT("EntrancesOnSigns"))
|
||||
.Options(CheckboxOptions().Tooltip("If enabled, signs near loading zones will tell you where they lead to."));
|
||||
|
||||
// Plandomizer
|
||||
path.sidebarName = "Plandomizer";
|
||||
|
||||
Reference in New Issue
Block a user