1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 12:23:21 +08:00

Use name ToggleVisibility.

This commit is contained in:
Huo Yaoyuan 2016-10-14 05:02:13 +08:00
parent 1c97edaac2
commit 254cc87578
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ namespace osu.Game.GameModes.Menu
OnMulti = delegate { Push(new Lobby()); }, OnMulti = delegate { Push(new Lobby()); },
OnTest = delegate { Push(new TestBrowser()); }, OnTest = delegate { Push(new TestBrowser()); },
OnExit = delegate { Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); }, OnExit = delegate { Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
OnSettings = osu.Options.ReverseVisibility, OnSettings = osu.Options.ToggleVisibility,
} }
} }
} }

View File

@ -96,7 +96,7 @@ namespace osu.Game
Toolbar = new Toolbar Toolbar = new Toolbar
{ {
OnHome = delegate { MainMenu?.MakeCurrent(); }, OnHome = delegate { MainMenu?.MakeCurrent(); },
OnSettings = Options.ReverseVisibility, OnSettings = Options.ToggleVisibility,
OnPlayModeChange = delegate (PlayMode m) { PlayMode.Value = m; }, OnPlayModeChange = delegate (PlayMode m) { PlayMode.Value = m; },
Alpha = 0.001f, Alpha = 0.001f,
}, },
@ -134,7 +134,7 @@ namespace osu.Game
switch (args.Key) switch (args.Key)
{ {
case Key.F8: case Key.F8:
Chat.ReverseVisibility(); Chat.ToggleVisibility();
return true; return true;
} }

View File

@ -30,7 +30,7 @@ namespace osu.Game.Overlays
protected abstract void PopOut(); protected abstract void PopOut();
public void ReverseVisibility() public void ToggleVisibility()
=> State = (State == Visibility.Visible ? Visibility.Hidden : Visibility.Visible); => State = (State == Visibility.Visible ? Visibility.Hidden : Visibility.Visible);
} }
public enum Visibility public enum Visibility