From 2e0185778206e2b28b2b2db4386fb8f148c3cf9c Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 3 Mar 2017 13:53:17 +0900 Subject: [PATCH] Better constants. --- osu.Game/Screens/Select/Options/BeatmapOptionsButton.cs | 5 +++-- osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/Select/Options/BeatmapOptionsButton.cs b/osu.Game/Screens/Select/Options/BeatmapOptionsButton.cs index 2d9de75358..72e48a6256 100644 --- a/osu.Game/Screens/Select/Options/BeatmapOptionsButton.cs +++ b/osu.Game/Screens/Select/Options/BeatmapOptionsButton.cs @@ -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[] { diff --git a/osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs b/osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs index c96ff9278f..655158135d 100644 --- a/osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs +++ b/osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs @@ -17,6 +17,7 @@ namespace osu.Game.Screens.Select.Options { private const float transition_duration = 500; private const float x_position = 290; + private const float height = 100; private Container background; private FillFlowContainer buttonsContainer; @@ -74,7 +75,8 @@ namespace osu.Game.Screens.Select.Options }, buttonsContainer = new FillFlowContainer { - AutoSizeAxes = Axes.Both, + AutoSizeAxes = Axes.X, + Height = 100, Origin = Anchor.BottomLeft, Anchor = Anchor.BottomLeft, Direction = FillDirection.Left,