Skip to content

Conversation

@bdach
Copy link
Collaborator

@bdach bdach commented Mar 31, 2025

bdach and others added 2 commits March 31, 2025 14:25
Comment on lines -121 to -124
// For UX simplicity, origin should only be user-editable when "closest" anchor mode is disabled.
originMenu.Items = s.NewValue == TernaryState.True
? Array.Empty<MenuItem>()
: createAnchorItems((d, o) => ((Drawable)d).Origin == o, applyOrigins).ToArray();
Copy link
Collaborator Author

@bdach bdach Mar 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is replaced by disabling all 9 items instead. This is because this code is janky at best on master right now (if you right-click closest anchor, the origin menu won't disable until you move away from the anchor submenu somewhere else), and it can't be brought back in the new updateTernaryStates() method because menu items just don't work like that. It's a bit of a magic API.

@peppy peppy self-requested a review March 31, 2025 14:40
@peppy peppy merged commit 596b703 into ppy:master Mar 31, 2025
10 checks passed
@bdach bdach deleted the skin-menu-checkboxes branch April 1, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skin anchor menu checkmarks don't update when right-clicking

2 participants