mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Simplify multiplier display implementation
This commit is contained in:
parent
f90f2491c3
commit
be373391f8
@ -19,6 +19,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
Current.Default = 1d;
|
||||
Current.Value = 1d;
|
||||
|
||||
Add(new SpriteIcon
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
|
@ -49,8 +49,6 @@ namespace osu.Game.Overlays.Mods
|
||||
/// </summary>
|
||||
protected abstract LocalisableString Label { get; }
|
||||
|
||||
protected virtual float ValueAreaWidth => 56;
|
||||
|
||||
protected virtual string CounterFormat => @"N0";
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
@ -59,7 +57,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
protected ModCounterDisplay()
|
||||
{
|
||||
Height = HEIGHT;
|
||||
Height = ShearedButton.HEIGHT;
|
||||
AutoSizeAxes = Axes.X;
|
||||
|
||||
InternalChild = new InputBlockingContainer
|
||||
@ -75,8 +73,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Width = ValueAreaWidth + ModSelectPanel.CORNER_RADIUS
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
new GridContainer
|
||||
{
|
||||
@ -85,7 +82,7 @@ namespace osu.Game.Overlays.Mods
|
||||
ColumnDimensions = new[]
|
||||
{
|
||||
new Dimension(GridSizeMode.AutoSize),
|
||||
new Dimension(GridSizeMode.Absolute, ValueAreaWidth)
|
||||
new Dimension(GridSizeMode.Absolute, 56)
|
||||
},
|
||||
Content = new[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user