Make compile.

This commit is contained in:
K. S. Ernest (iFire) Lee
2023-09-09 07:21:57 -07:00
parent 60b2baccf8
commit 484ac8f9cc
3 changed files with 6 additions and 1 deletions

View File

@@ -4379,7 +4379,7 @@ void VisualScriptEditor::_notification(int p_what) {
func_input_scroll->add_theme_style_override(
"bg", get_theme_stylebox(SNAME("bg"), SNAME("Tree")));
Ref<Theme> tm = EditorNode::get_singleton()->get_theme_base()->get_theme();
Ref<Theme> tm = EditorNode::get_singleton()-> get_editor_theme();
bool dark_theme = tm->get_constant("dark_theme", "Editor");

View File

@@ -2746,3 +2746,7 @@ VisualScriptLanguage::~VisualScriptLanguage() {
}
StringName VisualScript::get_global_name() const { return get_name(); }
String VisualScript::get_class_icon_path() const {
return "icons/VisualScript.svg";
}

View File

@@ -370,6 +370,7 @@ public:
virtual void set_source_code(const String &p_code) override;
virtual Error reload(bool p_keep_state = false) override;
virtual String get_class_icon_path() const;
#ifdef TOOLS_ENABLED
virtual Vector<DocData::ClassDoc> get_documentation() const override {
Vector<DocData::ClassDoc> docs;