mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 05:37:19 +08:00
Changed ModCustomisationPanelState names
This commit is contained in:
parent
be0e2efda2
commit
6adaf6a41f
@ -58,19 +58,19 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
SelectedMods.Value = new[] { new OsuModDoubleTime() };
|
||||
panel.Enabled.Value = true;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.Expanded;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.ExpandedByMod;
|
||||
});
|
||||
AddStep("set DA", () =>
|
||||
{
|
||||
SelectedMods.Value = new Mod[] { new OsuModDifficultyAdjust() };
|
||||
panel.Enabled.Value = true;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.Expanded;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.ExpandedByMod;
|
||||
});
|
||||
AddStep("set FL+WU+DA+AD", () =>
|
||||
{
|
||||
SelectedMods.Value = new Mod[] { new OsuModFlashlight(), new ModWindUp(), new OsuModDifficultyAdjust(), new OsuModApproachDifferent() };
|
||||
panel.Enabled.Value = true;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.Expanded;
|
||||
panel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.ExpandedByMod;
|
||||
});
|
||||
AddStep("set empty", () =>
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ namespace osu.Game.Overlays.Mods
|
||||
if (Enabled.Value)
|
||||
{
|
||||
if (!touchedThisFrame && panel.ExpandedState.Value == ModCustomisationPanelState.Collapsed)
|
||||
panel.ExpandedState.Value = ModCustomisationPanelState.ExpandedByHover;
|
||||
panel.ExpandedState.Value = ModCustomisationPanelState.Expanded;
|
||||
}
|
||||
|
||||
return base.OnHover(e);
|
||||
|
@ -227,7 +227,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (ExpandedState.Value == ModCustomisationPanelState.ExpandedByHover
|
||||
if (ExpandedState.Value == ModCustomisationPanelState.Expanded
|
||||
&& !ReceivePositionalInputAt(inputManager.CurrentState.Mouse.Position)
|
||||
&& inputManager.DraggedDrawable == null)
|
||||
{
|
||||
@ -239,8 +239,8 @@ namespace osu.Game.Overlays.Mods
|
||||
public enum ModCustomisationPanelState
|
||||
{
|
||||
Collapsed = 0,
|
||||
ExpandedByHover = 1,
|
||||
Expanded = 2,
|
||||
Expanded = 1,
|
||||
ExpandedByMod = 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ namespace osu.Game.Overlays.Mods
|
||||
customisationPanel.Enabled.Value = true;
|
||||
|
||||
if (anyModPendingConfiguration)
|
||||
customisationPanel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.Expanded;
|
||||
customisationPanel.ExpandedState.Value = ModCustomisationPanel.ModCustomisationPanelState.ExpandedByMod;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user