mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Use name ToggleVisibility.
This commit is contained in:
parent
1c97edaac2
commit
254cc87578
@ -48,7 +48,7 @@ namespace osu.Game.GameModes.Menu
|
||||
OnMulti = delegate { Push(new Lobby()); },
|
||||
OnTest = delegate { Push(new TestBrowser()); },
|
||||
OnExit = delegate { Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
|
||||
OnSettings = osu.Options.ReverseVisibility,
|
||||
OnSettings = osu.Options.ToggleVisibility,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace osu.Game
|
||||
Toolbar = new Toolbar
|
||||
{
|
||||
OnHome = delegate { MainMenu?.MakeCurrent(); },
|
||||
OnSettings = Options.ReverseVisibility,
|
||||
OnSettings = Options.ToggleVisibility,
|
||||
OnPlayModeChange = delegate (PlayMode m) { PlayMode.Value = m; },
|
||||
Alpha = 0.001f,
|
||||
},
|
||||
@ -134,7 +134,7 @@ namespace osu.Game
|
||||
switch (args.Key)
|
||||
{
|
||||
case Key.F8:
|
||||
Chat.ReverseVisibility();
|
||||
Chat.ToggleVisibility();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected abstract void PopOut();
|
||||
|
||||
public void ReverseVisibility()
|
||||
public void ToggleVisibility()
|
||||
=> State = (State == Visibility.Visible ? Visibility.Hidden : Visibility.Visible);
|
||||
}
|
||||
public enum Visibility
|
||||
|
Loading…
Reference in New Issue
Block a user