mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 01:07:25 +08:00
Better constants.
This commit is contained in:
parent
00b139b3df
commit
2e01857782
@ -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[]
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user