You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Unite GradientEdit and GradientEditor as editor-only widget
This commit is contained in:
@@ -32,26 +32,7 @@
|
||||
#define GRADIENT_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/gradient_edit.h"
|
||||
|
||||
class GradientEditor : public GradientEdit {
|
||||
GDCLASS(GradientEditor, GradientEdit);
|
||||
|
||||
bool editing;
|
||||
Ref<Gradient> gradient;
|
||||
|
||||
void _gradient_changed();
|
||||
void _ramp_changed();
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
virtual Size2 get_minimum_size() const override;
|
||||
void set_gradient(const Ref<Gradient> &p_gradient);
|
||||
void reverse_gradient();
|
||||
GradientEditor();
|
||||
};
|
||||
#include "gradient_editor.h"
|
||||
|
||||
class GradientReverseButton : public BaseButton {
|
||||
GDCLASS(GradientReverseButton, BaseButton);
|
||||
|
||||
Reference in New Issue
Block a user