1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 19:27:26 +08:00

Reorder methods

This commit is contained in:
Dean Herbert 2017-11-22 11:57:09 +09:00
parent e3c5a599b6
commit 36d45f633d

View File

@ -138,11 +138,9 @@ namespace osu.Game.Screens.Edit.Components
return true;
}
protected override void OnHoverLost(InputState state)
{
updateState();
}
protected override void OnHoverLost(InputState state) => updateState();
protected override void OnActivated() => updateState();
protected override void OnDeactivated() => updateState();
private void updateState()
{
@ -150,10 +148,6 @@ namespace osu.Game.Screens.Edit.Components
text.FadeTo(Active ? 0 : 1, fade_duration, Easing.OutQuint);
textBold.FadeTo(Active ? 1 : 0, fade_duration, Easing.OutQuint);
}
protected override void OnActivated() => updateState();
protected override void OnDeactivated() => updateState();
}
}
}