Update in-line with framework changes.

This commit is contained in:
smoogipooo
2017-09-04 09:10:04 +09:00
parent 9a4cff8813
commit 57678a13d9
23 changed files with 97 additions and 38 deletions

View File

@ -28,6 +28,8 @@ namespace osu.Game.Screens.Menu
/// </summary>
public class Button : BeatSyncedContainer, IStateful<ButtonState>
{
public event Action<ButtonState> StateChanged;
private readonly Container iconText;
private readonly Container box;
private readonly Box boxHoverLayer;
@ -266,6 +268,8 @@ namespace osu.Game.Screens.Menu
this.FadeOut(explode_duration / 4f * 3);
break;
}
StateChanged?.Invoke(State);
}
}
}