mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 21:02:59 +08:00
Extract value into const
This commit is contained in:
parent
11a903a206
commit
ce2560b545
@ -142,15 +142,17 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer.Participants
|
||||
if (Room == null)
|
||||
return;
|
||||
|
||||
const double fade_time = 50;
|
||||
|
||||
if (User.State == MultiplayerUserState.Ready)
|
||||
readyMark.FadeIn(50);
|
||||
readyMark.FadeIn(fade_time);
|
||||
else
|
||||
readyMark.FadeOut(50);
|
||||
readyMark.FadeOut(fade_time);
|
||||
|
||||
if (Room.Host?.Equals(User) == true)
|
||||
crown.FadeIn(50);
|
||||
crown.FadeIn(fade_time);
|
||||
else
|
||||
crown.FadeOut(50);
|
||||
crown.FadeOut(fade_time);
|
||||
}
|
||||
|
||||
public MenuItem[] ContextMenuItems
|
||||
|
Loading…
Reference in New Issue
Block a user