From 2c77f07aaa4c04c6f439a4636156ba234f6d2e13 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 24 Aug 2023 12:49:20 +0200 Subject: Add a script method to get its class icon Co-authored-by: Danil Alexeev --- core/object/script_language_extension.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/object/script_language_extension.h') 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, _get_documentation) + GDVIRTUAL0RC(String, _get_class_icon_path) #ifdef TOOLS_ENABLED virtual Vector get_documentation() const override { TypedArray 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 &) -- cgit v1.2.3