diff options
author | Guh-Feng <58538080+Guh-Feng@users.noreply.github.com> | 2022-06-30 23:43:46 -0400 |
---|---|---|
committer | Guh-Feng <58538080+Guh-Feng@users.noreply.github.com> | 2022-07-21 18:11:09 -0400 |
commit | 1b8652e86a383747cc2d8ec803b4dcd49cb7469d (patch) | |
tree | 1a08bd998705cf549b3e4543c485c825e0191dd9 /scene/gui | |
parent | 976cb7ea9f59813f99e06c4c345c19ff68c2c591 (diff) |
Color Pickers Respect Settings
Updated editor_node with function that sets up color pickers throughout Godot to respect editor's settings.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/gradient_edit.cpp | 4 | ||||
-rw-r--r-- | scene/gui/gradient_edit.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp index 9459bed63b..cc27a6b7c2 100644 --- a/scene/gui/gradient_edit.cpp +++ b/scene/gui/gradient_edit.cpp @@ -437,6 +437,10 @@ ColorPicker *GradientEdit::get_picker() { return picker; } +PopupPanel *GradientEdit::get_popup() { + return popup; +} + void GradientEdit::_bind_methods() { ADD_SIGNAL(MethodInfo("ramp_changed")); } diff --git a/scene/gui/gradient_edit.h b/scene/gui/gradient_edit.h index 3badcd45ba..b7c99f1f1c 100644 --- a/scene/gui/gradient_edit.h +++ b/scene/gui/gradient_edit.h @@ -75,6 +75,7 @@ public: void set_interpolation_mode(Gradient::InterpolationMode p_interp_mode); Gradient::InterpolationMode get_interpolation_mode(); ColorPicker *get_picker(); + PopupPanel *get_popup(); virtual Size2 get_minimum_size() const override; |