mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 06:12:57 +08:00
Use FinishTransforms()
This commit is contained in:
parent
4002a1606e
commit
58d76e9036
@ -21,7 +21,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuColour colours { get; set; }
|
private OsuColour colours { get; set; }
|
||||||
|
|
||||||
private bool firstDisplay = true;
|
|
||||||
private PillContainer pill;
|
private PillContainer pill;
|
||||||
private SpriteText statusText;
|
private SpriteText statusText;
|
||||||
|
|
||||||
@ -51,6 +50,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
|
|
||||||
EndDate.BindValueChanged(_ => updateDisplay());
|
EndDate.BindValueChanged(_ => updateDisplay());
|
||||||
Status.BindValueChanged(_ => updateDisplay(), true);
|
Status.BindValueChanged(_ => updateDisplay(), true);
|
||||||
|
|
||||||
|
FinishTransforms(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateDisplay()
|
private void updateDisplay()
|
||||||
@ -58,10 +59,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
RoomStatus status = getDisplayStatus();
|
RoomStatus status = getDisplayStatus();
|
||||||
|
|
||||||
pill.Background.Alpha = 1;
|
pill.Background.Alpha = 1;
|
||||||
pill.Background.FadeColour(status.GetAppropriateColour(colours), firstDisplay ? 0 : 100);
|
pill.Background.FadeColour(status.GetAppropriateColour(colours), 100);
|
||||||
statusText.Text = status.Message;
|
statusText.Text = status.Message;
|
||||||
|
|
||||||
firstDisplay = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private RoomStatus getDisplayStatus()
|
private RoomStatus getDisplayStatus()
|
||||||
|
Loading…
Reference in New Issue
Block a user