mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 08:22:56 +08:00
Use disabled state instead of hiding button
This commit is contained in:
parent
ba3a7a0501
commit
bd627534b7
@ -227,11 +227,11 @@ namespace osu.Game.Tournament.Screens
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TournamentStorage storage)
|
private void load(TournamentStorage storage)
|
||||||
{
|
{
|
||||||
|
startupTournament = storage.CurrentTournament.Value;
|
||||||
|
|
||||||
dropdown.Current = storage.CurrentTournament;
|
dropdown.Current = storage.CurrentTournament;
|
||||||
dropdown.Items = storage.ListTournaments();
|
dropdown.Items = storage.ListTournaments();
|
||||||
dropdown.Current.BindValueChanged(v => Button.FadeTo(v.NewValue == startupTournament ? 0 : 1));
|
dropdown.Current.BindValueChanged(v => Button.Enabled.Value = v.NewValue != startupTournament, true);
|
||||||
|
|
||||||
startupTournament = storage.CurrentTournament.Value;
|
|
||||||
|
|
||||||
Action = () => game.GracefullyExit();
|
Action = () => game.GracefullyExit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user