mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Simplify hiding logic
This commit is contained in:
parent
37c3133981
commit
a955f9cbfd
@ -16,11 +16,9 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
private readonly FillFlowContainer<ModIcon> iconsContainer;
|
private readonly FillFlowContainer<ModIcon> iconsContainer;
|
||||||
|
|
||||||
private bool showMods;
|
|
||||||
public bool ShowMods
|
public bool ShowMods
|
||||||
{
|
{
|
||||||
get { return showMods; }
|
set { if (!value) Hide(); }
|
||||||
set { showMods = value; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModsContainer()
|
public ModsContainer()
|
||||||
@ -70,14 +68,5 @@ namespace osu.Game.Screens.Play
|
|||||||
default: return Color4.White;
|
default: return Color4.White;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load()
|
|
||||||
{
|
|
||||||
if (ShowMods)
|
|
||||||
Show();
|
|
||||||
else
|
|
||||||
Hide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user