1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 18:32:56 +08:00

Publicly expose column width constant

This commit is contained in:
smoogipoo 2019-09-12 13:53:05 +09:00
parent b1c0b080ec
commit bbf80f63aa

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Mania.UI
{ {
public class Column : ScrollingPlayfield, IKeyBindingHandler<ManiaAction>, IHasAccentColour public class Column : ScrollingPlayfield, IKeyBindingHandler<ManiaAction>, IHasAccentColour
{ {
private const float column_width = 45; public const float COLUMN_WIDTH = 45;
private const float special_column_width = 70; private const float special_column_width = 70;
/// <summary> /// <summary>
@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Mania.UI
Index = index; Index = index;
RelativeSizeAxes = Axes.Y; RelativeSizeAxes = Axes.Y;
Width = column_width; Width = COLUMN_WIDTH;
Masking = true; Masking = true;
CornerRadius = 5; CornerRadius = 5;
@ -116,7 +116,7 @@ namespace osu.Game.Rulesets.Mania.UI
isSpecial = value; isSpecial = value;
Width = isSpecial ? special_column_width : column_width; Width = isSpecial ? special_column_width : COLUMN_WIDTH;
} }
} }