1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 06:22:55 +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
commit b60a8341e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,