34 lines
910 B
C++
34 lines
910 B
C++
#include "pch.h"
|
|
#include "log.h"
|
|
#include "node_panel_grid.h"
|
|
#include "canvas.h"
|
|
|
|
Node* NodePanelGrid::clone_instantiate() const
|
|
{
|
|
return new NodePanelGrid();
|
|
}
|
|
|
|
void NodePanelGrid::clone_finalize(Node* dest) const
|
|
{
|
|
NodePanelGrid* n = static_cast<NodePanelGrid*>(dest);
|
|
n->init_controls();
|
|
}
|
|
|
|
void NodePanelGrid::init()
|
|
{
|
|
init_template("tpl-panel-grid");
|
|
init_controls();
|
|
}
|
|
|
|
void NodePanelGrid::init_controls()
|
|
{
|
|
m_groud_opacity = find<NodeSliderH>("grid-ground-opacity");
|
|
m_groud_scale = find<NodeSliderH>("grid-ground-scale");
|
|
m_groud_value = find<NodeSliderH>("grid-ground-value");
|
|
m_groud_height = find<NodeSliderH>("grid-ground-height");
|
|
m_box_opacity = find<NodeSliderH>("grid-box-opacity");
|
|
m_box_width = find<NodeSliderH>("grid-box-width");
|
|
m_box_height = find<NodeSliderH>("grid-box-height");
|
|
m_box_depth = find<NodeSliderH>("grid-box-depth");
|
|
}
|