diff --git a/src/common/scene_utils.cpp b/src/common/scene_utils.cpp index 8213a271..61eff844 100644 --- a/src/common/scene_utils.cpp +++ b/src/common/scene_utils.cpp @@ -22,8 +22,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -65,6 +65,18 @@ namespace SceneUtils return vbox->get_theme_icon(p_icon_name, "EditorIcons"); } + Ref get_editor_font(const String& p_font_name) + { + VBoxContainer* vbox = OrchestratorPlugin::get_singleton()->get_editor_interface()->get_editor_main_screen(); + return vbox->get_theme_font(p_font_name, "EditorFonts"); + } + + Ref get_editor_stylebox(const String& p_stylebox_name, const String& p_class_name) + { + VBoxContainer* vbox = OrchestratorPlugin::get_singleton()->get_editor_interface()->get_editor_main_screen(); + return vbox->get_theme_stylebox(p_stylebox_name, p_class_name); + } + Ref get_class_icon(const String& p_class_name, const String& p_fallback) { Ref