mirror of
https://github.com/osukey/osukey.git
synced 2025-07-04 01:40:02 +09:00
Move StatusColouredContainer into a more public location
This commit is contained in:
@ -95,7 +95,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new StatusColouredContainer
|
||||
new StatusColouredContainer(transition_duration)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = selectionBox
|
||||
@ -122,7 +122,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = OsuColour.FromHex(@"212121"),
|
||||
},
|
||||
new StatusColouredContainer
|
||||
new StatusColouredContainer(transition_duration)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Width = side_strip_width,
|
||||
@ -210,17 +210,5 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
Current = name;
|
||||
}
|
||||
}
|
||||
|
||||
private class StatusColouredContainer : Container
|
||||
{
|
||||
[Resolved(typeof(Room), nameof(Online.Multiplayer.Room.Status))]
|
||||
private Bindable<RoomStatus> status { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
status.BindValueChanged(s => this.FadeColour(s.GetAppropriateColour(colours), transition_duration), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user