mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Hide player settings overlay on multi-spectator player loader
This commit is contained in:
parent
00ca066c39
commit
2b86416cb2
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Scoring;
|
||||
using osu.Game.Screens.Menu;
|
||||
using osu.Game.Screens.Play;
|
||||
@ -19,6 +20,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
{
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
PlayerSettingsGroups.Alpha = 0f;
|
||||
}
|
||||
|
||||
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||
{
|
||||
}
|
||||
|
@ -48,6 +48,11 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
protected BeatmapMetadataDisplay MetadataInfo;
|
||||
|
||||
/// <summary>
|
||||
/// A fill flow containing the player settings groups, exposed for the ability to hide it from inheritors of the player loader.
|
||||
/// </summary>
|
||||
protected FillFlowContainer<PlayerSettingsGroup> PlayerSettingsGroups;
|
||||
|
||||
protected VisualSettings VisualSettings;
|
||||
|
||||
protected Task LoadTask { get; private set; }
|
||||
@ -140,7 +145,7 @@ namespace osu.Game.Screens.Play
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
},
|
||||
new FillFlowContainer<PlayerSettingsGroup>
|
||||
PlayerSettingsGroups = new FillFlowContainer<PlayerSettingsGroup>
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
|
Loading…
Reference in New Issue
Block a user