mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Remove Signal connect binds
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
This commit is contained in:
parent
14d021287b
commit
d4433ae6d3
149 changed files with 645 additions and 708 deletions
|
|
@ -96,11 +96,9 @@ void OpenXRSelectActionDialog::open() {
|
|||
|
||||
Button *action_button = memnew(Button);
|
||||
String action_name = action->get_name_with_set();
|
||||
Vector<Variant> binds;
|
||||
binds.push_back(action_name);
|
||||
action_button->set_flat(true);
|
||||
action_button->set_text(action->get_name() + ": " + action->get_localized_name());
|
||||
action_button->connect("pressed", callable_mp(this, &OpenXRSelectActionDialog::_on_select_action), binds);
|
||||
action_button->connect("pressed", callable_mp(this, &OpenXRSelectActionDialog::_on_select_action).bind(action_name));
|
||||
action_hb->add_child(action_button);
|
||||
|
||||
action_buttons[action_name] = action_button->get_path();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue