Visual and readability improvements to StarCounter.

This commit is contained in:
Dean Herbert
2017-02-24 19:30:04 +09:00
parent 65a24dfe5d
commit 12db33ad4b
4 changed files with 95 additions and 99 deletions

View File

@ -50,10 +50,10 @@ namespace osu.Game.Beatmaps.Drawables
protected override void LoadComplete()
{
base.LoadComplete();
applyState();
ApplyState();
}
private void applyState()
protected virtual void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
{
switch (state)
{
@ -81,9 +81,10 @@ namespace osu.Game.Beatmaps.Drawables
set
{
if (state == value) return;
state = value;
applyState();
var last = state;
state = value;
ApplyState(last);
}
}