integrate quick panel and new color picker
This commit is contained in:
@@ -7,18 +7,24 @@
|
||||
class NodePanelQuick : public NodeBorder
|
||||
{
|
||||
public:
|
||||
std::function<void(Node* target, glm::vec3 rgb)> on_color_change;
|
||||
std::function<void(Node* target, float value)> on_flow_change;
|
||||
std::function<void(Node* target, float value)> on_size_change;
|
||||
|
||||
using this_class = NodePanelQuick;
|
||||
using parent = NodeBorder;
|
||||
NodeButtonCustom* m_slider_size;
|
||||
NodeButtonCustom* m_slider_flow;
|
||||
NodeSliderV* m_slider_size;
|
||||
NodeSliderV* m_slider_flow;
|
||||
NodeButtonCustom* m_button_color1;
|
||||
NodeButtonCustom* m_button_color2;
|
||||
NodeButtonCustom* m_button_color3;
|
||||
NodeButtonCustom* m_button_color_current;
|
||||
std::shared_ptr<NodeColorPicker> m_picker;
|
||||
virtual Node* clone_instantiate() const override;
|
||||
virtual void clone_finalize(Node* dest) const override;
|
||||
virtual void init() override;
|
||||
private:
|
||||
void init_controls();
|
||||
void handle_button_color_click(Node* target);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user