implement tip popup tip selection and change default brush color to black

This commit is contained in:
2019-01-16 16:10:19 +01:00
parent 3d7b7107d4
commit 7eac018ae4
8 changed files with 105 additions and 25 deletions

View File

@@ -5,6 +5,9 @@
#include "brush.h"
#include "node_checkbox.h"
#include "node_combobox.h"
#include "node_button_custom.h"
#include "node_image.h"
#include "node_panel_brush.h"
class NodePanelStroke : public Node
{
@@ -36,8 +39,12 @@ public:
NodeCheckBox* m_tip_hue_pressure;
NodeCheckBox* m_tip_sat_pressure;
NodeCheckBox* m_tip_val_pressure;
NodeButtonCustom* m_brush_button;
NodeImage* m_brush_thumb;
std::shared_ptr<NodePanelBrush> m_brush_popup;
std::function<void(Node* target)> on_stroke_change;
std::function<void(Node* target, uint16_t id)> on_stencil_changed;
std::function<void(Node* target, int brush_id, uint16_t brush_tex)> on_brush_changed;
std::map<NodeSliderH*, std::function<float(float)>> m_curves;
virtual Node* clone_instantiate() const override;