1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

ShowToolbar -> ShowOverlays; include MusicController.

This commit is contained in:
Dean Herbert 2016-11-15 20:43:43 +09:00
parent 2af839cdbd
commit d846246ef2
5 changed files with 7 additions and 6 deletions

View File

@ -175,9 +175,10 @@ namespace osu.Game
// - Frame limiter changes
//central game mode change logic.
if ((newMode as OsuGameMode)?.ShowToolbar != true)
if ((newMode as OsuGameMode)?.ShowOverlays != true)
{
Toolbar.State = Visibility.Hidden;
musicController.State = Visibility.Hidden;
chat.State = Visibility.Hidden;
}
else

View File

@ -26,7 +26,7 @@ namespace osu.Game.Screens.Menu
private AudioSample welcome;
private AudioTrack bgm;
internal override bool ShowToolbar => (ParentGameMode as OsuGameMode)?.ShowToolbar ?? false;
internal override bool ShowOverlays => (ParentGameMode as OsuGameMode)?.ShowOverlays ?? false;
protected override BackgroundMode CreateBackground() => new BackgroundModeEmpty();

View File

@ -23,7 +23,7 @@ namespace osu.Game.Screens.Menu
private ButtonSystem buttons;
public override string Name => @"Main Menu";
internal override bool ShowToolbar => true;
internal override bool ShowOverlays => true;
private BackgroundMode background;

View File

@ -20,11 +20,11 @@ namespace osu.Game.Screens
/// </summary>
protected virtual BackgroundMode CreateBackground() => null;
internal virtual bool ShowToolbar => true;
internal virtual bool ShowOverlays => true;
protected new OsuGameBase Game => base.Game as OsuGameBase;
protected float ToolbarPadding => ShowToolbar ? (Game as OsuGame)?.Toolbar.DrawHeight ?? 0 : 0;
protected float ToolbarPadding => ShowOverlays ? (Game as OsuGame)?.Toolbar.DrawHeight ?? 0 : 0;
private bool boundToBeatmap;
private Bindable<WorkingBeatmap> beatmap;

View File

@ -26,7 +26,7 @@ namespace osu.Game.Screens.Play
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
internal override bool ShowToolbar => false;
internal override bool ShowOverlays => false;
public BeatmapInfo BeatmapInfo;