You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Merge pull request #56352 from Gallilus/Include-base-signals-to-VisualScriptEmitSignal
This commit is contained in:
@@ -2316,10 +2316,12 @@ void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
|
|||||||
property.hint = PROPERTY_HINT_ENUM;
|
property.hint = PROPERTY_HINT_ENUM;
|
||||||
|
|
||||||
List<StringName> sigs;
|
List<StringName> sigs;
|
||||||
|
List<MethodInfo> base_sigs;
|
||||||
|
|
||||||
Ref<VisualScript> vs = get_visual_script();
|
Ref<VisualScript> vs = get_visual_script();
|
||||||
if (vs.is_valid()) {
|
if (vs.is_valid()) {
|
||||||
vs->get_custom_signal_list(&sigs);
|
vs->get_custom_signal_list(&sigs);
|
||||||
|
ClassDB::get_signal_list(vs->get_instance_base_type(), &base_sigs);
|
||||||
}
|
}
|
||||||
|
|
||||||
String ml;
|
String ml;
|
||||||
@@ -2329,6 +2331,12 @@ void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
|
|||||||
}
|
}
|
||||||
ml += E;
|
ml += E;
|
||||||
}
|
}
|
||||||
|
for (const MethodInfo &E : base_sigs) {
|
||||||
|
if (!ml.is_empty()) {
|
||||||
|
ml += ",";
|
||||||
|
}
|
||||||
|
ml += E.name;
|
||||||
|
}
|
||||||
|
|
||||||
property.hint_string = ml;
|
property.hint_string = ml;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user