mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
Use StatusIcon
in UserDropdown
This commit is contained in:
parent
85b2154f3a
commit
cb4f32e7bd
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Sprites;
|
|||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osu.Game.Users.Drawables;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
@ -78,7 +79,7 @@ namespace osu.Game.Overlays.Login
|
|||||||
{
|
{
|
||||||
public const float LABEL_LEFT_MARGIN = 20;
|
public const float LABEL_LEFT_MARGIN = 20;
|
||||||
|
|
||||||
private readonly SpriteIcon statusIcon;
|
private readonly StatusIcon statusIcon;
|
||||||
|
|
||||||
public Color4 StatusColour
|
public Color4 StatusColour
|
||||||
{
|
{
|
||||||
@ -101,11 +102,10 @@ namespace osu.Game.Overlays.Login
|
|||||||
Icon.Size = new Vector2(14);
|
Icon.Size = new Vector2(14);
|
||||||
Icon.Margin = new MarginPadding(0);
|
Icon.Margin = new MarginPadding(0);
|
||||||
|
|
||||||
Foreground.Add(statusIcon = new SpriteIcon
|
Foreground.Add(statusIcon = new StatusIcon
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Icon = FontAwesome.Regular.Circle,
|
|
||||||
Size = new Vector2(14),
|
Size = new Vector2(14),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user