mirror of
https://github.com/ppy/osu.git
synced 2025-03-12 20:07:22 +08:00
Make distance snap settings mutually exclusive
This commit is contained in:
parent
5668a90781
commit
26a8fb6984
@ -330,6 +330,18 @@ namespace osu.Game.Screens.Edit
|
|||||||
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
|
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
|
||||||
editorContractSidebars = config.GetBindable<bool>(OsuSetting.EditorContractSidebars);
|
editorContractSidebars = config.GetBindable<bool>(OsuSetting.EditorContractSidebars);
|
||||||
|
|
||||||
|
// These two settings don't work together. Make them mutually exclusive to let the user know.
|
||||||
|
editorAutoSeekOnPlacement.BindValueChanged(enabled =>
|
||||||
|
{
|
||||||
|
if (enabled.NewValue)
|
||||||
|
editorLimitedDistanceSnap.Value = false;
|
||||||
|
});
|
||||||
|
editorLimitedDistanceSnap.BindValueChanged(enabled =>
|
||||||
|
{
|
||||||
|
if (enabled.NewValue)
|
||||||
|
editorAutoSeekOnPlacement.Value = false;
|
||||||
|
});
|
||||||
|
|
||||||
AddInternal(new OsuContextMenuContainer
|
AddInternal(new OsuContextMenuContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user