mirror of
https://github.com/ppy/osu
synced 2024-12-23 15:22:37 +00:00
Rename ColourCodedNotes to TimingBasedNoteColouring
This commit is contained in:
parent
58ebec4803
commit
559d403abe
@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Mania.Configuration
|
||||
|
||||
SetDefault(ManiaRulesetSetting.ScrollTime, 1500.0, DrawableManiaRuleset.MIN_TIME_RANGE, DrawableManiaRuleset.MAX_TIME_RANGE, 5);
|
||||
SetDefault(ManiaRulesetSetting.ScrollDirection, ManiaScrollingDirection.Down);
|
||||
SetDefault(ManiaRulesetSetting.ColourCodedNotes, false);
|
||||
SetDefault(ManiaRulesetSetting.TimingBasedNoteColouring, false);
|
||||
}
|
||||
|
||||
public override TrackedSettings CreateTrackedSettings() => new TrackedSettings
|
||||
@ -36,6 +36,6 @@ namespace osu.Game.Rulesets.Mania.Configuration
|
||||
{
|
||||
ScrollTime,
|
||||
ScrollDirection,
|
||||
ColourCodedNotes
|
||||
TimingBasedNoteColouring
|
||||
}
|
||||
}
|
||||
|
@ -39,8 +39,8 @@ namespace osu.Game.Rulesets.Mania
|
||||
},
|
||||
new SettingsCheckbox
|
||||
{
|
||||
LabelText = "Colour-coded notes",
|
||||
Current = config.GetBindable<bool>(ManiaRulesetSetting.ColourCodedNotes),
|
||||
LabelText = "Timing-based note colouring",
|
||||
Current = config.GetBindable<bool>(ManiaRulesetSetting.TimingBasedNoteColouring),
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
[Resolved]
|
||||
private BeatDivisorFinder beatDivisorFinder { get; set; }
|
||||
|
||||
private readonly Bindable<bool> configColourCodedNotes = new Bindable<bool>();
|
||||
private readonly Bindable<bool> configTimingBasedNoteColouring = new Bindable<bool>();
|
||||
|
||||
protected virtual ManiaSkinComponents Component => ManiaSkinComponents.Note;
|
||||
|
||||
@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(ManiaRulesetConfigManager rulesetConfig)
|
||||
{
|
||||
rulesetConfig?.BindWith(ManiaRulesetSetting.ColourCodedNotes, configColourCodedNotes);
|
||||
rulesetConfig?.BindWith(ManiaRulesetSetting.TimingBasedNoteColouring, configTimingBasedNoteColouring);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
@ -64,7 +64,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
}
|
||||
|
||||
snap.BindValueChanged(_ => updateSnapColour());
|
||||
configColourCodedNotes.BindValueChanged(_ => updateSnapColour(), true);
|
||||
configTimingBasedNoteColouring.BindValueChanged(_ => updateSnapColour(), true);
|
||||
}
|
||||
|
||||
protected override void OnDirectionChanged(ValueChangedEvent<ScrollingDirection> e)
|
||||
@ -109,7 +109,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
|
||||
private void updateSnapColour()
|
||||
{
|
||||
Colour = configColourCodedNotes.Value
|
||||
Colour = configTimingBasedNoteColouring.Value
|
||||
? BindableBeatDivisor.GetColourFor(snap.Value, colours)
|
||||
: Color4.White;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user