1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-07 17:36:07 +00:00

TextureEditorPlugin: Add borders to 3D and Layered editors

This commit is contained in:
BlueCube3310
2025-04-12 12:45:47 +02:00
parent 215acd52e8
commit b0626fefa1
6 changed files with 38 additions and 12 deletions

View File

@@ -41,6 +41,10 @@ class ColorChannelSelector;
class TextureLayeredEditor : public Control {
GDCLASS(TextureLayeredEditor, Control);
struct ThemeCache {
Color outline_color;
} theme_cache;
SpinBox *layer = nullptr;
Label *info = nullptr;
Ref<TextureLayered> texture;
@@ -56,6 +60,8 @@ class TextureLayeredEditor : public Control {
ColorChannelSelector *channel_selector = nullptr;
void _draw_outline();
void _make_shaders();
void _update_material(bool p_texture_changed);