Move definition of MusicController's position out of itself.

This commit is contained in:
Dean Herbert
2017-01-30 22:00:23 +09:00
parent 578b33dc64
commit cbd6fe3f36
3 changed files with 120 additions and 109 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Toolbar
{
public class Toolbar : OverlayContainer
{
private const float height = 50;
public const float HEIGHT = 50;
public Action OnHome;
public Action<PlayMode> OnPlayModeChange;
@ -120,7 +120,7 @@ namespace osu.Game.Overlays.Toolbar
};
RelativeSizeAxes = Axes.X;
Size = new Vector2(1, height);
Size = new Vector2(1, HEIGHT);
}
public void SetGameMode(PlayMode mode) => modeSelector.SetGameMode(mode);