mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:52:57 +08:00
Use '?:' expression instead
This commit is contained in:
parent
5d1421c0e9
commit
8d3de3affb
@ -130,14 +130,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
if (expanded)
|
button.FadeColour(expanded ? colours.Yellow : Color4.White);
|
||||||
{
|
|
||||||
button.Colour = colours.Yellow;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
button.Colour = Color4.White;
|
|
||||||
}
|
|
||||||
|
|
||||||
expandedColour = colours.Yellow;
|
expandedColour = colours.Yellow;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user