mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Move button width in mod select to constant
This commit is contained in:
parent
9a7aeec098
commit
d4c9de8596
@ -29,6 +29,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
public abstract class ModSelectScreen : ShearedOverlayContainer
|
public abstract class ModSelectScreen : ShearedOverlayContainer
|
||||||
{
|
{
|
||||||
|
protected const int BUTTON_WIDTH = 200;
|
||||||
|
|
||||||
protected override OverlayColourScheme ColourScheme => OverlayColourScheme.Green;
|
protected override OverlayColourScheme ColourScheme => OverlayColourScheme.Green;
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
@ -57,12 +59,12 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
protected virtual IEnumerable<ShearedButton> CreateFooterButtons() => new[]
|
protected virtual IEnumerable<ShearedButton> CreateFooterButtons() => new[]
|
||||||
{
|
{
|
||||||
customisationButton = new ShearedToggleButton(200)
|
customisationButton = new ShearedToggleButton(BUTTON_WIDTH)
|
||||||
{
|
{
|
||||||
Text = ModSelectScreenStrings.ModCustomisation,
|
Text = ModSelectScreenStrings.ModCustomisation,
|
||||||
Active = { BindTarget = customisationVisible }
|
Active = { BindTarget = customisationVisible }
|
||||||
},
|
},
|
||||||
new ShearedButton(200)
|
new ShearedButton(BUTTON_WIDTH)
|
||||||
{
|
{
|
||||||
Text = CommonStrings.DeselectAll,
|
Text = CommonStrings.DeselectAll,
|
||||||
Action = DeselectAll
|
Action = DeselectAll
|
||||||
@ -171,7 +173,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
Horizontal = 70
|
Horizontal = 70
|
||||||
},
|
},
|
||||||
Spacing = new Vector2(10),
|
Spacing = new Vector2(10),
|
||||||
ChildrenEnumerable = CreateFooterButtons().Prepend(new ShearedButton(200)
|
ChildrenEnumerable = CreateFooterButtons().Prepend(new ShearedButton(BUTTON_WIDTH)
|
||||||
{
|
{
|
||||||
Text = CommonStrings.Back,
|
Text = CommonStrings.Back,
|
||||||
Action = Hide,
|
Action = Hide,
|
||||||
|
@ -31,14 +31,14 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
|
|
||||||
protected override IEnumerable<ShearedButton> CreateFooterButtons() => new[]
|
protected override IEnumerable<ShearedButton> CreateFooterButtons() => new[]
|
||||||
{
|
{
|
||||||
new ShearedButton(200)
|
new ShearedButton(BUTTON_WIDTH)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Text = CommonStrings.SelectAll,
|
Text = CommonStrings.SelectAll,
|
||||||
Action = SelectAll
|
Action = SelectAll
|
||||||
},
|
},
|
||||||
new ShearedButton(200)
|
new ShearedButton(BUTTON_WIDTH)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
|
Loading…
Reference in New Issue
Block a user