You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
emit more detailed type information for signal parameters
This commit is contained in:
committed by
Rémi Verschelde
parent
3304e6cee0
commit
e00baaf6ce
@@ -382,7 +382,11 @@ void DocData::generate(bool p_basic_types) {
|
|||||||
PropertyInfo arginfo = EV->get().arguments[i];
|
PropertyInfo arginfo = EV->get().arguments[i];
|
||||||
ArgumentDoc argument;
|
ArgumentDoc argument;
|
||||||
argument.name = arginfo.name;
|
argument.name = arginfo.name;
|
||||||
argument.type = Variant::get_type_name(arginfo.type);
|
if (arginfo.type == Variant::OBJECT && arginfo.class_name != StringName()) {
|
||||||
|
argument.type = arginfo.class_name.operator String();
|
||||||
|
} else {
|
||||||
|
argument.type = Variant::get_type_name(arginfo.type);
|
||||||
|
}
|
||||||
signal.arguments.push_back(argument);
|
signal.arguments.push_back(argument);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user