From 1b8652e86a383747cc2d8ec803b4dcd49cb7469d Mon Sep 17 00:00:00 2001 From: Guh-Feng <58538080+Guh-Feng@users.noreply.github.com> Date: Thu, 30 Jun 2022 23:43:46 -0400 Subject: Color Pickers Respect Settings Updated editor_node with function that sets up color pickers throughout Godot to respect editor's settings. --- scene/gui/gradient_edit.cpp | 4 ++++ scene/gui/gradient_edit.h | 1 + 2 files changed, 5 insertions(+) (limited to 'scene/gui') 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; -- cgit v1.2.3