summaryrefslogtreecommitdiffstats
path: root/editor/plugins/shader_editor_plugin.h
diff options
context:
space:
mode:
authorZi Ye <major.mcdoom@gmail.com>2024-02-17 20:16:58 -0600
committerZi Ye <major.mcdoom@gmail.com>2024-02-21 17:33:16 -0600
commit9281c441f6138f2205071a89e4f5070bc918fdff (patch)
treecaebdc0e757f1ec26e253e09701fae3e4b65ad6f /editor/plugins/shader_editor_plugin.h
parent16d61427cab3a8e43f0a9a8ee724fc176b6433c6 (diff)
downloadredot-engine-9281c441f6138f2205071a89e4f5070bc918fdff.tar.gz
Improved text editor status bar and zooming UX.
Diffstat (limited to 'editor/plugins/shader_editor_plugin.h')
-rw-r--r--editor/plugins/shader_editor_plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.h b/editor/plugins/shader_editor_plugin.h
index ea50d62b8f..84c5a620a7 100644
--- a/editor/plugins/shader_editor_plugin.h
+++ b/editor/plugins/shader_editor_plugin.h
@@ -86,6 +86,8 @@ class ShaderEditorPlugin : public EditorPlugin {
ShaderCreateDialog *shader_create_dialog = nullptr;
+ float text_shader_zoom_factor = 1.0f;
+
void _update_shader_list();
void _shader_selected(int p_index);
void _shader_list_clicked(int p_item, Vector2 p_local_mouse_pos, MouseButton p_mouse_button_index);
@@ -106,6 +108,8 @@ class ShaderEditorPlugin : public EditorPlugin {
void _window_changed(bool p_visible);
+ void _set_text_shader_zoom_factor(float p_zoom_factor);
+
protected:
void _notification(int p_what);