mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Hide player settings overlay on multi-spectator player loader
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
using osu.Framework.Allocation;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osu.Game.Screens.Menu;
|
using osu.Game.Screens.Menu;
|
||||||
using osu.Game.Screens.Play;
|
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)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,11 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected BeatmapMetadataDisplay MetadataInfo;
|
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 VisualSettings VisualSettings;
|
||||||
|
|
||||||
protected Task LoadTask { get; private set; }
|
protected Task LoadTask { get; private set; }
|
||||||
@ -140,7 +145,7 @@ namespace osu.Game.Screens.Play
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
},
|
},
|
||||||
new FillFlowContainer<PlayerSettingsGroup>
|
PlayerSettingsGroups = new FillFlowContainer<PlayerSettingsGroup>
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
|
Reference in New Issue
Block a user