You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Add a script method to get its class icon
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
This commit is contained in:
@@ -77,6 +77,7 @@ public:
|
||||
EXBIND1R(Error, reload, bool)
|
||||
|
||||
GDVIRTUAL0RC(TypedArray<Dictionary>, _get_documentation)
|
||||
GDVIRTUAL0RC(String, _get_class_icon_path)
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual Vector<DocData::ClassDoc> get_documentation() const override {
|
||||
TypedArray<Dictionary> doc;
|
||||
@@ -89,6 +90,12 @@ public:
|
||||
|
||||
return class_doc;
|
||||
}
|
||||
|
||||
virtual String get_class_icon_path() const override {
|
||||
String ret;
|
||||
GDVIRTUAL_CALL(_get_class_icon_path, ret);
|
||||
return ret;
|
||||
}
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
EXBIND1RC(bool, has_method, const StringName &)
|
||||
|
||||
Reference in New Issue
Block a user