mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 04:52:57 +08:00
Use existing setting instead
Now it read IncreaseFirstObjectVisibility bindable instead
This commit is contained in:
parent
8ac64b5c16
commit
afc3a08953
@ -28,16 +28,16 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
public override double ScoreMultiplier => 1;
|
public override double ScoreMultiplier => 1;
|
||||||
|
|
||||||
protected Bindable<bool> IncreaseFirstObjectGrowVisibility = new Bindable<bool>();
|
protected Bindable<bool> IncreaseFirstObjectVisibility = new Bindable<bool>();
|
||||||
|
|
||||||
public void ReadFromConfig(OsuConfigManager config)
|
public void ReadFromConfig(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
IncreaseFirstObjectGrowVisibility = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectGrowVisibility);
|
IncreaseFirstObjectVisibility = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectVisibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
||||||
{
|
{
|
||||||
foreach (var drawable in drawables.Skip(IncreaseFirstObjectGrowVisibility.Value ? 1 : 0))
|
foreach (var drawable in drawables.Skip(IncreaseFirstObjectVisibility.Value ? 1 : 0))
|
||||||
{
|
{
|
||||||
switch (drawable)
|
switch (drawable)
|
||||||
{
|
{
|
||||||
|
@ -85,8 +85,6 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
Set(OsuSetting.IncreaseFirstObjectVisibility, true);
|
Set(OsuSetting.IncreaseFirstObjectVisibility, true);
|
||||||
|
|
||||||
Set(OsuSetting.IncreaseFirstObjectGrowVisibility, true);
|
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
Set(OsuSetting.ReleaseStream, ReleaseStream.Lazer);
|
Set(OsuSetting.ReleaseStream, ReleaseStream.Lazer);
|
||||||
|
|
||||||
@ -160,7 +158,6 @@ namespace osu.Game.Configuration
|
|||||||
BeatmapSkins,
|
BeatmapSkins,
|
||||||
BeatmapHitsounds,
|
BeatmapHitsounds,
|
||||||
IncreaseFirstObjectVisibility,
|
IncreaseFirstObjectVisibility,
|
||||||
IncreaseFirstObjectGrowVisibility,
|
|
||||||
ScoreDisplayMode,
|
ScoreDisplayMode,
|
||||||
ExternalLinkWarning,
|
ExternalLinkWarning,
|
||||||
Scaling,
|
Scaling,
|
||||||
|
@ -20,11 +20,6 @@ namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
|||||||
LabelText = "Increase visibility of first object with \"Hidden\" mod",
|
LabelText = "Increase visibility of first object with \"Hidden\" mod",
|
||||||
Bindable = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectVisibility)
|
Bindable = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectVisibility)
|
||||||
},
|
},
|
||||||
new SettingsCheckbox
|
|
||||||
{
|
|
||||||
LabelText = "Increase visibility of first object with \"Grow\" mod",
|
|
||||||
Bindable = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectGrowVisibility)
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user