You've already forked godot
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user