1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Use existing setting instead

Now it read IncreaseFirstObjectVisibility bindable instead
This commit is contained in:
Ganendra Afrasya 2019-06-09 13:11:40 +07:00
parent 8ac64b5c16
commit afc3a08953
3 changed files with 3 additions and 11 deletions

View File

@ -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)
{ {

View File

@ -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,

View File

@ -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)
},
}; };
} }
} }