1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Improve layered texture preview

This commit is contained in:
BlueCube3310
2024-05-30 13:53:26 +02:00
parent 96be44c0ec
commit e0f30d30e2
7 changed files with 274 additions and 123 deletions

View File

@@ -54,24 +54,28 @@ class TextureLayeredEditor : public Control {
bool setting = false;
void _make_shaders();
void _update_material();
void _update_material(bool p_texture_changed);
void _layer_changed(double) {
if (!setting) {
_update_material();
_update_material(false);
}
}
void _texture_changed();
void _texture_rect_update_area();
void _texture_rect_draw();
void _update_gui();
protected:
void _notification(int p_what);
virtual void gui_input(const Ref<InputEvent> &p_event) override;
public:
void edit(Ref<TextureLayered> p_texture);
TextureLayeredEditor();
~TextureLayeredEditor();
};