You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -258,7 +258,7 @@ void PropertySelector::_update_search() {
|
||||
TreeItem *item = search_options->create_item(category ? category : root);
|
||||
|
||||
String desc;
|
||||
if (mi.name.contains(":")) {
|
||||
if (mi.name.contains_char(':')) {
|
||||
desc = mi.name.get_slice(":", 1) + " ";
|
||||
mi.name = mi.name.get_slice(":", 0);
|
||||
} else if (mi.return_val.type != Variant::NIL) {
|
||||
@@ -278,7 +278,7 @@ void PropertySelector::_update_search() {
|
||||
|
||||
if (arg_itr->type == Variant::NIL) {
|
||||
desc += ": Variant";
|
||||
} else if (arg_itr->name.contains(":")) {
|
||||
} else if (arg_itr->name.contains_char(':')) {
|
||||
desc += vformat(": %s", arg_itr->name.get_slice(":", 1));
|
||||
arg_itr->name = arg_itr->name.get_slice(":", 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user