diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-21 12:36:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 12:36:23 +0200 |
commit | 4eab92104cd6e550d3fd5312c243ba533accae1b (patch) | |
tree | ec0136ce3f5e0c4d724a85340916e2835f622f40 /editor | |
parent | edd88949be15641f27eedddc0ea2bf02b9c3c3d9 (diff) | |
parent | 994dd314e021d7699e81a5ae3c5bc51f1b247023 (diff) |
Merge pull request #48671 from Calinou/connect-dialog-extra-bind-arguments
List "Argument" for each extra bind argument in the connect dialog
Diffstat (limited to 'editor')
-rw-r--r-- | editor/connections_dialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 511c2a48cc..de2be710c5 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -66,8 +66,8 @@ public: bool _set(const StringName &p_name, const Variant &p_value) { String name = p_name; - if (name.begins_with("bind/")) { - int which = name.get_slice("/", 1).to_int() - 1; + if (name.begins_with("bind/argument_")) { + int which = name.get_slice("_", 1).to_int() - 1; ERR_FAIL_INDEX_V(which, params.size(), false); params.write[which] = p_value; } else { @@ -80,8 +80,8 @@ public: bool _get(const StringName &p_name, Variant &r_ret) const { String name = p_name; - if (name.begins_with("bind/")) { - int which = name.get_slice("/", 1).to_int() - 1; + if (name.begins_with("bind/argument_")) { + int which = name.get_slice("_", 1).to_int() - 1; ERR_FAIL_INDEX_V(which, params.size(), false); r_ret = params[which]; } else { @@ -93,7 +93,7 @@ public: void _get_property_list(List<PropertyInfo> *p_list) const { for (int i = 0; i < params.size(); i++) { - p_list->push_back(PropertyInfo(params[i].get_type(), "bind/" + itos(i + 1))); + p_list->push_back(PropertyInfo(params[i].get_type(), "bind/argument_" + itos(i + 1))); } } |