summaryrefslogtreecommitdiff
path: root/editor/plugins/material_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:51:52 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:51:52 +0200
commitfe2cf6e406a0dfc02516ac3d03911d8863f0dce4 (patch)
treef3dadf1a6c2acb4c67e9fbc51d3512b5dcb125de /editor/plugins/material_editor_plugin.h
parentef34c411db6f6f09cf5c98b4e7a0fc565a8f3b4c (diff)
parentfc7cef8dec91f30e563ec1fac2b81c44f656a580 (diff)
Merge pull request #65210 from YuriSizov/control-customizable-cache-p3
Diffstat (limited to 'editor/plugins/material_editor_plugin.h')
-rw-r--r--editor/plugins/material_editor_plugin.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/editor/plugins/material_editor_plugin.h b/editor/plugins/material_editor_plugin.h
index 828dd9f972..7ce6deee65 100644
--- a/editor/plugins/material_editor_plugin.h
+++ b/editor/plugins/material_editor_plugin.h
@@ -70,12 +70,23 @@ class MaterialEditor : public Control {
Ref<Material> material;
+ struct ThemeCache {
+ Ref<Texture2D> light_1_on;
+ Ref<Texture2D> light_1_off;
+ Ref<Texture2D> light_2_on;
+ Ref<Texture2D> light_2_off;
+ Ref<Texture2D> sphere_on;
+ Ref<Texture2D> sphere_off;
+ Ref<Texture2D> box_on;
+ Ref<Texture2D> box_off;
+ Ref<Texture2D> checkerboard;
+ } theme_cache;
+
void _button_pressed(Node *p_button);
- bool first_enter;
protected:
+ virtual void _update_theme_item_cache() override;
void _notification(int p_what);
-
static void _bind_methods();
public: