Simplify multiplier display implementation

This commit is contained in:
Dean Herbert 2023-09-13 17:43:41 +09:00
parent f90f2491c3
commit be373391f8
2 changed files with 4 additions and 6 deletions

View File

@ -19,6 +19,7 @@ namespace osu.Game.Overlays.Mods
{
Current.Default = 1d;
Current.Value = 1d;
Add(new SpriteIcon
{
Anchor = Anchor.CentreLeft,

View File

@ -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[]
{