mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 06:52:56 +08:00
Refactor UserPanel status display logic
This commit is contained in:
parent
15893bbb75
commit
51d428ef94
@ -231,18 +231,19 @@ namespace osu.Game.Users
|
||||
statusBar.ResizeHeightTo(status_height, transition_duration, Easing.OutQuint);
|
||||
statusBar.FadeIn(transition_duration, Easing.OutQuint);
|
||||
this.ResizeHeightTo(height, transition_duration, Easing.OutQuint);
|
||||
}
|
||||
|
||||
if (status is UserStatusOnline && activity != null)
|
||||
{
|
||||
statusMessage.Text = activity.Status;
|
||||
statusBg.FadeColour(activity.GetAppropriateColour(colours), 500, Easing.OutQuint);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
statusMessage.Text = status?.Message;
|
||||
statusBg.FadeColour(status?.GetAppropriateColour(colours) ?? colours.Gray5, 500, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
||||
public MenuItem[] ContextMenuItems => new MenuItem[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user