1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Customize -> Customise

This commit is contained in:
Dean Herbert 2019-12-06 18:57:11 +09:00
parent cf0413663d
commit 46d055604a
2 changed files with 16 additions and 16 deletions

View File

@ -13,7 +13,7 @@ using osu.Game.Rulesets.Mods;
namespace osu.Game.Tests.Visual.UserInterface
{
public class TestSceneModCustomizationSettings : OsuTestScene
public class TestSceneModSettings : OsuTestScene
{
private TestModSelectOverlay modSelect;
@ -27,13 +27,13 @@ namespace osu.Game.Tests.Visual.UserInterface
Anchor = Anchor.BottomCentre,
});
var testMod = new TestModCustomizable1();
var testMod = new TestModCustomisable1();
AddStep("open", modSelect.Show);
AddAssert("button disabled", () => !modSelect.CustomizeButton.Enabled.Value);
AddAssert("button disabled", () => !modSelect.CustomiseButton.Enabled.Value);
AddStep("select mod", () => modSelect.SelectMod(testMod));
AddAssert("button enabled", () => modSelect.CustomizeButton.Enabled.Value);
AddStep("open customization", () => modSelect.CustomizeButton.Click());
AddAssert("button enabled", () => modSelect.CustomiseButton.Enabled.Value);
AddStep("open Customisation", () => modSelect.CustomiseButton.Click());
AddStep("deselect mod", () => modSelect.SelectMod(testMod));
AddAssert("controls hidden", () => modSelect.ModSettingsContainer.Alpha == 0);
}
@ -41,7 +41,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private class TestModSelectOverlay : ModSelectOverlay
{
public new Container ModSettingsContainer => base.ModSettingsContainer;
public new TriangleButton CustomizeButton => base.CustomizeButton;
public new TriangleButton CustomiseButton => base.CustomiseButton;
public void SelectMod(Mod mod) =>
ModSectionsContainer.Children.Single(s => s.ModType == mod.Type)
@ -57,8 +57,8 @@ namespace osu.Game.Tests.Visual.UserInterface
{
section.Mods = new Mod[]
{
new TestModCustomizable1(),
new TestModCustomizable2()
new TestModCustomisable1(),
new TestModCustomisable2()
};
}
else
@ -67,21 +67,21 @@ namespace osu.Game.Tests.Visual.UserInterface
}
}
private class TestModCustomizable1 : TestModCustomizable
private class TestModCustomisable1 : TestModCustomisable
{
public override string Name => "Customizable Mod 1";
public override string Name => "Customisable Mod 1";
public override string Acronym => "CM1";
}
private class TestModCustomizable2 : TestModCustomizable
private class TestModCustomisable2 : TestModCustomisable
{
public override string Name => "Customizable Mod 2";
public override string Name => "Customisable Mod 2";
public override string Acronym => "CM2";
}
private abstract class TestModCustomizable : Mod, IApplicableMod
private abstract class TestModCustomisable : Mod, IApplicableMod
{
public override double ScoreMultiplier => 1.0;

View File

@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Mods
public class ModSelectOverlay : WaveOverlayContainer
{
protected readonly TriangleButton DeselectAllButton;
protected readonly TriangleButton CustomizeButton;
protected readonly TriangleButton CustomiseButton;
protected readonly TriangleButton CloseButton;
protected readonly OsuSpriteText MultiplierLabel;
@ -232,7 +232,7 @@ namespace osu.Game.Overlays.Mods
Right = 20
}
},
CustomizeButton = new TriangleButton
CustomiseButton = new TriangleButton
{
Width = 180,
Text = "Customization",
@ -351,7 +351,7 @@ namespace osu.Game.Overlays.Mods
ModSettingsContent.RemoveAll(section => section.Mod == removed);
bool hasSettings = ModSettingsContent.Children.Count > 0;
CustomizeButton.Enabled.Value = hasSettings;
CustomiseButton.Enabled.Value = hasSettings;
if (!hasSettings)
ModSettingsContainer.Hide();