diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-08-24 12:49:20 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-08-24 13:05:41 +0200 |
commit | 2c77f07aaa4c04c6f439a4636156ba234f6d2e13 (patch) | |
tree | 6ef8828a7fcc43832fec43e89d2d7dc4545af97a /core/object/script_language_extension.h | |
parent | 6758a7f8c07d1f4c8ec4f052ded6d26402967ebe (diff) | |
download | redot-engine-2c77f07aaa4c04c6f439a4636156ba234f6d2e13.tar.gz |
Add a script method to get its class icon
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
Diffstat (limited to 'core/object/script_language_extension.h')
-rw-r--r-- | core/object/script_language_extension.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h index 1a0ec29479..7fa1fe6810 100644 --- a/core/object/script_language_extension.h +++ b/core/object/script_language_extension.h @@ -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 &) |