Simplify the way multiple subscreens handle their disable states via a custom stack

This commit is contained in:
Dean Herbert
2020-02-06 14:22:01 +09:00
parent 75eb9ca040
commit 81cadb7875
5 changed files with 47 additions and 30 deletions

View File

@ -65,20 +65,7 @@ namespace osu.Game.Screens.Select
Mods.Value = CurrentItem.Value.RequiredMods?.ToArray() ?? Array.Empty<Mod>();
}
Beatmap.Disabled = true;
Ruleset.Disabled = true;
Mods.Disabled = true;
return false;
}
public override void OnEntering(IScreen last)
{
base.OnEntering(last);
Beatmap.Disabled = false;
Ruleset.Disabled = false;
Mods.Disabled = false;
}
}
}