You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Proper function/property selection in visual script editing for property.
This one has an ordered list, built-in description, search, etc.
This commit is contained in:
@@ -656,7 +656,7 @@ Dictionary VisualScript::_get_variable_info(const StringName& p_name) const{
|
||||
return d;
|
||||
}
|
||||
|
||||
void VisualScript::get_variable_list(List<StringName> *r_variables){
|
||||
void VisualScript::get_variable_list(List<StringName> *r_variables) const{
|
||||
|
||||
|
||||
for (Map<StringName,Variable>::Element *E=variables.front();E;E=E->next()) {
|
||||
@@ -1045,6 +1045,17 @@ MethodInfo VisualScript::get_method_info(const StringName& p_method) const{
|
||||
return mi;
|
||||
}
|
||||
|
||||
void VisualScript::get_script_property_list(List<PropertyInfo> *p_list) const {
|
||||
|
||||
List<StringName> vars;
|
||||
get_variable_list(&vars);
|
||||
|
||||
for (List<StringName>::Element *E=vars.front();E;E=E->next()) {
|
||||
|
||||
p_list->push_back(variables[E->get()].info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void VisualScript::_set_data(const Dictionary& p_data) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user