-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back right-click-for-new-combo and right-click-delete when in object placement mode #31148
base: master
Are you sure you want to change the base?
Conversation
Maybe it could work by making Maybe worth trying. Not sure. |
ad74b83
to
270e278
Compare
Looking back at this I'm thinking the flow I had was already fine to go ahead with, so I'll work with that in mind (and just fix tests). |
…pose mode Requested too many times to count. I'm not sure what to do about the code quality of this. It's a bit weird that there's no way to check the current composition tool from a higher level. Also it was discussed IRL that there should be some kind of hinting that existing notes will be deleted when they are hovered, but I'm not sure how well this will work in normal mapping flows, since it will display even in cases that users aren't intending to delete an object. Still willing to explore this direction though (it's just non-trivial to implement so I haven't yet).
270e278
to
896caf4
Compare
if (e.Button == MouseButton.Right) | ||
{ | ||
var osuSelectionHandler = (OsuSelectionHandler)BlueprintContainer.SelectionHandler; | ||
|
||
osuSelectionHandler.SelectionNewComboState.Value = | ||
osuSelectionHandler.SelectionNewComboState.Value == TernaryState.False ? TernaryState.True : TernaryState.False; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several issues with this.
- On a code organisation level, why is this pulled two levels up from
OsuSelectionHandler
toOsuHitObjectComposer
, rather than being inOsuSelectionHandler
? - Quick-deleting anything will also simultaneously toggle new combo which I assume is not intended.
2025-02-27.14-16-10.mp4
- Right clicking an object to open the context menu will toggle new combo which I assume is not intended. Selecting it and then right clicking it anywhere else will also toggle new combo, which I'm not sure if that's intended, but it does at least feel a little weird.
Requested too many times to count.
I'm not sure what to do about the code quality of this. It's a bit weird that there's no way to check the current composition tool from a higher level.
Also it was discussed IRL that there should be some kind of hinting that existing notes will be deleted when they are hovered, but I'm not sure how well this will work in normal mapping flows, since it will display even in cases that users aren't intending to delete an object. Still willing to explore this direction though (it's just non-trivial to implement so I haven't yet).
This is almost definitely not going to pass tests, just want to get this out for initial thoughts before I polish things up.