-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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 Toggle
selection mode to ItemList
#99355
Conversation
753f283
to
ce88fc5
Compare
ce88fc5
to
5e3455c
Compare
I think the |
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.
I've seen lists like that in other apps, so supporting it makes sense. The implementation looks ok, it's very simple.
5e3455c
to
b29e93b
Compare
Applied the requested changes. |
Thanks! |
I have added a
Toggle
selection to theItemList
node. Now you can select an item and deselect it by clicking on it again.Closes godotengine/godot-proposals#6371
It emits the signal
multi_selected
when a value changes. I think it would be clearer if it would be renamed toselection_changed
, for example, but that would be a breaking change. Of course it would be possible to add a new signal, but that would duplicate the functionality.What do you think?
Should I just change the description of
multi_selected
to add the toggle mode?