-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
OptionButton fix remove and select #21837
OptionButton fix remove and select #21837
Conversation
3410837
to
dcb5c7b
Compare
882fc6c
to
a55eb0e
Compare
a55eb0e
to
f812327
Compare
scene/gui/option_button.cpp
Outdated
@@ -313,11 +380,13 @@ void OptionButton::_bind_methods() { | |||
ClassDB::bind_method(D_METHOD("clear"), &OptionButton::clear); | |||
ClassDB::bind_method(D_METHOD("select", "idx"), &OptionButton::select); | |||
ClassDB::bind_method(D_METHOD("get_selected"), &OptionButton::get_selected); | |||
ClassDB::bind_method(D_METHOD("get_selected_id"), &OptionButton::get_selected_id); |
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.
This breaks compat, can't be merged for 3.1.
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 can put it back in, makes no difference. I will add it to the tracker.
1627dfa
to
6c2bb55
Compare
Moving to 3.2 milestone as we're about to enter the beta stage and release freeze for Godot 3.1. Only bug fixes against issues of the 3.1 milestone (or enhancements to core features of the 3.1 roadmap) will be considered until 3.1-stable is released. Note: If it's merged after 3.1-stable is released, this change might be considered for cherry-picking into a later 3.1.x release. |
6c2bb55
to
de29248
Compare
de29248
to
ff18372
Compare
@AlexHolly Is this still desired? If so, it needs to be rebased on the latest master branch. If not, abandoned pull requests will be closed in the future as announced here. |
This PR has not received any new commits for over half a year and is abandoned, closing. |
closes #6558
Added a few features since these are always needed.
select(-1)
Insert at id was not working, solved it by converting -1 to size() and added a sort by item.ID in PopupMenu. It updates item.ID on each sort. Adding an item at <
current
will increasecurrent
by one silently.Example
Test