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:
parent
2af839cdbd
commit
d846246ef2
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user