1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 01:07:25 +08:00

Better constants.

This commit is contained in:
Dean Herbert 2017-03-03 13:53:17 +09:00
parent 00b139b3df
commit 2e01857782
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
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[]
{

View File

@ -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<BeatmapOptionsButton> buttonsContainer;
@ -74,7 +75,8 @@ namespace osu.Game.Screens.Select.Options
},
buttonsContainer = new FillFlowContainer<BeatmapOptionsButton>
{
AutoSizeAxes = Axes.Both,
AutoSizeAxes = Axes.X,
Height = 100,
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
Direction = FillDirection.Left,