mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge pull request #11822 from peppy/chat-login-placeholder
Add login placeholder for chat overlay
This commit is contained in:
@ -15,7 +15,7 @@ namespace osu.Game.Online
|
|||||||
/// A <see cref="Container"/> for displaying online content which require a local user to be logged in.
|
/// A <see cref="Container"/> for displaying online content which require a local user to be logged in.
|
||||||
/// Shows its children only when the local user is logged in and supports displaying a placeholder if not.
|
/// Shows its children only when the local user is logged in and supports displaying a placeholder if not.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class OnlineViewContainer : Container
|
public class OnlineViewContainer : Container
|
||||||
{
|
{
|
||||||
protected LoadingSpinner LoadingSpinner { get; private set; }
|
protected LoadingSpinner LoadingSpinner { get; private set; }
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ namespace osu.Game.Online
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
protected IAPIProvider API { get; private set; }
|
protected IAPIProvider API { get; private set; }
|
||||||
|
|
||||||
protected OnlineViewContainer(string placeholderMessage)
|
public OnlineViewContainer(string placeholderMessage)
|
||||||
{
|
{
|
||||||
this.placeholderMessage = placeholderMessage;
|
this.placeholderMessage = placeholderMessage;
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ using osu.Game.Overlays.Chat.Tabs;
|
|||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
|
using osu.Game.Online;
|
||||||
|
|
||||||
namespace osu.Game.Overlays
|
namespace osu.Game.Overlays
|
||||||
{
|
{
|
||||||
@ -118,6 +119,11 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
|
new OnlineViewContainer("Sign in to chat")
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
currentChannelContainer = new Container<DrawableChannel>
|
currentChannelContainer = new Container<DrawableChannel>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
@ -152,6 +158,8 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
loading = new LoadingSpinner(),
|
loading = new LoadingSpinner(),
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tabsArea = new TabsArea
|
tabsArea = new TabsArea
|
||||||
|
Reference in New Issue
Block a user