1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 05:39:53 +08:00

Merge pull request #31778 from peppy/editor-menu-mutual-exclusive

Make distance snap settings mutually exclusive
This commit is contained in:
Bartłomiej Dach
2025-02-03 11:58:34 +01:00
committed by GitHub
Unverified
+12
View File
@@ -330,6 +330,18 @@ namespace osu.Game.Screens.Edit
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
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
{
RelativeSizeAxes = Axes.Both,