Better constants.

This commit is contained in:
Dean Herbert
2017-03-03 13:53:17 +09:00
parent 00b139b3df
commit 2e01857782
2 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace osu.Game.Screens.Select.Options
{
public class BeatmapOptionsButton : ClickableContainer
{
public static readonly Vector2 SIZE = new Vector2(130f, 100f);
private static readonly float width = 130;
private Box background, flash;
private TextAwesome iconText;
@ -69,7 +69,8 @@ namespace osu.Game.Screens.Select.Options
public BeatmapOptionsButton()
{
Size = SIZE;
Width = width;
RelativeSizeAxes = Axes.Y;
Children = new Drawable[]
{