diff options
author | Christian Kaiser <info@ckaiser.com.ar> | 2024-01-11 17:13:23 -0300 |
---|---|---|
committer | Christian Kaiser <info@ckaiser.com.ar> | 2024-01-11 17:13:23 -0300 |
commit | 1910f91f17d1e0b6339acd172e9f9e7c24b0124b (patch) | |
tree | a9044ea4c3f42395d1df9496af578e6c29a196e4 /editor/shader_globals_editor.h | |
parent | 12ee58d8bc979d7adc1218f5a343787b604cb780 (diff) | |
download | redot-engine-1910f91f17d1e0b6339acd172e9f9e7c24b0124b.tar.gz |
Improve "Add" button consistency in Project Settings
* Adds an icon to all the input-adjacent add/remove buttons
* Adds a separator next to the action map "add" button
* Changes the Shader Globals editor to be consistent with the others
* Adds a clear button to the shader global name input
Diffstat (limited to 'editor/shader_globals_editor.h')
-rw-r--r-- | editor/shader_globals_editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/shader_globals_editor.h b/editor/shader_globals_editor.h index 590da342d4..fc50564aae 100644 --- a/editor/shader_globals_editor.h +++ b/editor/shader_globals_editor.h @@ -49,6 +49,9 @@ class ShaderGlobalsEditor : public VBoxContainer { OptionButton *variable_type = nullptr; Button *variable_add = nullptr; + String _check_new_variable_name(const String &p_variable_name); + + void _variable_name_text_changed(const String &p_variable_name); void _variable_added(); void _variable_deleted(const String &p_variable); void _changed(); |