mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
ColorPicker remove unused children and fix sample bugs.
Remove an unused `VBoxContainer`. Remove 3 unused children from grid (Label, Slider, SpinBox). Ignore sample input when old color is not displayed. Fix current color overbright position.
This commit is contained in:
parent
36a62d0c6a
commit
6caadd57a9
2 changed files with 9 additions and 12 deletions
|
|
@ -38,6 +38,7 @@
|
|||
class AspectRatioContainer;
|
||||
class ColorMode;
|
||||
class ColorPickerShape;
|
||||
class FileDialog;
|
||||
class GridContainer;
|
||||
class HSlider;
|
||||
class Label;
|
||||
|
|
@ -49,7 +50,6 @@ class PopupMenu;
|
|||
class SpinBox;
|
||||
class StyleBoxFlat;
|
||||
class TextureRect;
|
||||
class FileDialog;
|
||||
|
||||
class ColorPresetButton : public BaseButton {
|
||||
GDCLASS(ColorPresetButton, BaseButton);
|
||||
|
|
@ -104,7 +104,7 @@ public:
|
|||
SHAPE_MAX
|
||||
};
|
||||
|
||||
static const int SLIDER_COUNT = 4;
|
||||
static const int SLIDER_COUNT = 3;
|
||||
|
||||
private:
|
||||
enum class MenuOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue