mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
ShowToolbar -> ShowOverlays; include MusicController.
This commit is contained in:
@ -175,9 +175,10 @@ namespace osu.Game
|
|||||||
// - Frame limiter changes
|
// - Frame limiter changes
|
||||||
|
|
||||||
//central game mode change logic.
|
//central game mode change logic.
|
||||||
if ((newMode as OsuGameMode)?.ShowToolbar != true)
|
if ((newMode as OsuGameMode)?.ShowOverlays != true)
|
||||||
{
|
{
|
||||||
Toolbar.State = Visibility.Hidden;
|
Toolbar.State = Visibility.Hidden;
|
||||||
|
musicController.State = Visibility.Hidden;
|
||||||
chat.State = Visibility.Hidden;
|
chat.State = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
private AudioSample welcome;
|
private AudioSample welcome;
|
||||||
private AudioTrack bgm;
|
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();
|
protected override BackgroundMode CreateBackground() => new BackgroundModeEmpty();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
private ButtonSystem buttons;
|
private ButtonSystem buttons;
|
||||||
public override string Name => @"Main Menu";
|
public override string Name => @"Main Menu";
|
||||||
|
|
||||||
internal override bool ShowToolbar => true;
|
internal override bool ShowOverlays => true;
|
||||||
|
|
||||||
private BackgroundMode background;
|
private BackgroundMode background;
|
||||||
|
|
||||||
|
@ -20,11 +20,11 @@ namespace osu.Game.Screens
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual BackgroundMode CreateBackground() => null;
|
protected virtual BackgroundMode CreateBackground() => null;
|
||||||
|
|
||||||
internal virtual bool ShowToolbar => true;
|
internal virtual bool ShowOverlays => true;
|
||||||
|
|
||||||
protected new OsuGameBase Game => base.Game as OsuGameBase;
|
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 bool boundToBeatmap;
|
||||||
private Bindable<WorkingBeatmap> beatmap;
|
private Bindable<WorkingBeatmap> beatmap;
|
||||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
|
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
|
||||||
|
|
||||||
internal override bool ShowToolbar => false;
|
internal override bool ShowOverlays => false;
|
||||||
|
|
||||||
public BeatmapInfo BeatmapInfo;
|
public BeatmapInfo BeatmapInfo;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user