mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 08:47:20 +08:00
rename and remove again
This commit is contained in:
parent
460471e73f
commit
80a66085a9
@ -77,14 +77,14 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGameplayKiaiStarToggle()
|
||||
public void TestGameplayStarFountainsSetting()
|
||||
{
|
||||
Bindable<bool> kiaiStarEffectsEnabled = null!;
|
||||
Bindable<bool> starFountainsEnabled = null!;
|
||||
|
||||
AddStep("load configuration", () =>
|
||||
{
|
||||
var config = new OsuConfigManager(LocalStorage);
|
||||
kiaiStarEffectsEnabled = config.GetBindable<bool>(OsuSetting.StarFountains);
|
||||
starFountainsEnabled = config.GetBindable<bool>(OsuSetting.StarFountains);
|
||||
});
|
||||
|
||||
AddStep("make fountains", () =>
|
||||
@ -106,21 +106,21 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
};
|
||||
});
|
||||
|
||||
AddStep("enable KiaiStarEffects", () => kiaiStarEffectsEnabled.Value = true);
|
||||
AddStep("enable KiaiStarEffects", () => starFountainsEnabled.Value = true);
|
||||
AddRepeatStep("activate fountains (enabled)", () =>
|
||||
{
|
||||
((KiaiGameplayFountains.GameplayStarFountain)Children[0]).Shoot(1);
|
||||
((KiaiGameplayFountains.GameplayStarFountain)Children[1]).Shoot(-1);
|
||||
}, 100);
|
||||
|
||||
AddStep("disable KiaiStarEffects", () => kiaiStarEffectsEnabled.Value = false);
|
||||
AddStep("disable KiaiStarEffects", () => starFountainsEnabled.Value = false);
|
||||
AddRepeatStep("attempt to activate fountains (disabled)", () =>
|
||||
{
|
||||
((KiaiGameplayFountains.GameplayStarFountain)Children[0]).Shoot(1);
|
||||
((KiaiGameplayFountains.GameplayStarFountain)Children[1]).Shoot(-1);
|
||||
}, 100);
|
||||
|
||||
AddStep("re-enable KiaiStarEffects", () => kiaiStarEffectsEnabled.Value = true);
|
||||
AddStep("re-enable KiaiStarEffects", () => starFountainsEnabled.Value = true);
|
||||
AddRepeatStep("activate fountains (re-enabled)", () =>
|
||||
{
|
||||
((KiaiGameplayFountains.GameplayStarFountain)Children[0]).Shoot(1);
|
||||
|
@ -20,12 +20,12 @@ namespace osu.Game.Screens.Play
|
||||
private StarFountain leftFountain = null!;
|
||||
private StarFountain rightFountain = null!;
|
||||
|
||||
private Bindable<bool> kiaiStarEffectsEnabled = null!;
|
||||
private Bindable<bool> kiaiStarFountainsEnabled = null!;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
kiaiStarEffectsEnabled = config.GetBindable<bool>(OsuSetting.StarFountains);
|
||||
kiaiStarFountainsEnabled = config.GetBindable<bool>(OsuSetting.StarFountains);
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
|
||||
@ -54,10 +54,10 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
|
||||
|
||||
if (!kiaiStarEffectsEnabled.Value)
|
||||
if (!kiaiStarFountainsEnabled.Value)
|
||||
return;
|
||||
|
||||
if (!kiaiStarEffectsEnabled.Value)
|
||||
if (!kiaiStarFountainsEnabled.Value)
|
||||
return;
|
||||
|
||||
if (effectPoint.KiaiMode && !isTriggered)
|
||||
@ -88,8 +88,6 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
protected override double ShootDuration => 400;
|
||||
|
||||
private readonly Bindable<bool> kiaiStarEffectsEnabled = new Bindable<bool>();
|
||||
|
||||
public GameplayStarFountainSpewer()
|
||||
: base(perSecond: 180)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user