mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 23:12: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)
|
if (Room == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const double fade_time = 50;
|
||||||
|
|
||||||
if (User.State == MultiplayerUserState.Ready)
|
if (User.State == MultiplayerUserState.Ready)
|
||||||
readyMark.FadeIn(50);
|
readyMark.FadeIn(fade_time);
|
||||||
else
|
else
|
||||||
readyMark.FadeOut(50);
|
readyMark.FadeOut(fade_time);
|
||||||
|
|
||||||
if (Room.Host?.Equals(User) == true)
|
if (Room.Host?.Equals(User) == true)
|
||||||
crown.FadeIn(50);
|
crown.FadeIn(fade_time);
|
||||||
else
|
else
|
||||||
crown.FadeOut(50);
|
crown.FadeOut(fade_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MenuItem[] ContextMenuItems
|
public MenuItem[] ContextMenuItems
|
||||||
|
Loading…
Reference in New Issue
Block a user