paint: brush nodes cleanup
This commit is contained in:
@@ -203,3 +203,56 @@ void *input_node_create(ui_node_t *raw, f32_array_t *args) {
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
void input_node_init() {
|
||||
ui_node_t *input_node_def = GC_ALLOC_INIT(ui_node_t, {.id = 0,
|
||||
.name = _tr("Input"),
|
||||
.type = "input_node",
|
||||
.x = 0,
|
||||
.y = 0,
|
||||
.color = 0xff4982a0,
|
||||
.inputs = any_array_create_from_raw(
|
||||
(void *[]){
|
||||
GC_ALLOC_INIT(ui_node_socket_t, {.id = 0,
|
||||
.node_id = 0,
|
||||
.name = _tr("Lazy Radius"),
|
||||
.type = "VALUE",
|
||||
.color = 0xffa1a1a1,
|
||||
.default_value = f32_array_create_x(0.0),
|
||||
.min = 0.0,
|
||||
.max = 1.0,
|
||||
.precision = 100,
|
||||
.display = 0}),
|
||||
GC_ALLOC_INIT(ui_node_socket_t, {.id = 0,
|
||||
.node_id = 0,
|
||||
.name = _tr("Lazy Step"),
|
||||
.type = "VALUE",
|
||||
.color = 0xffa1a1a1,
|
||||
.default_value = f32_array_create_x(0.0),
|
||||
.min = 0.0,
|
||||
.max = 1.0,
|
||||
.precision = 100,
|
||||
.display = 0}),
|
||||
},
|
||||
2),
|
||||
.outputs = any_array_create_from_raw(
|
||||
(void *[]){
|
||||
GC_ALLOC_INIT(ui_node_socket_t, {.id = 0,
|
||||
.node_id = 0,
|
||||
.name = _tr("Position"),
|
||||
.type = "VECTOR",
|
||||
.color = 0xff63c763,
|
||||
.default_value = f32_array_create_xyz(0.0, 0.0, 0.0),
|
||||
.min = 0.0,
|
||||
.max = 1.0,
|
||||
.precision = 100,
|
||||
.display = 0}),
|
||||
},
|
||||
1),
|
||||
.buttons = any_array_create_from_raw((void *[]){}, 0),
|
||||
.width = 0,
|
||||
.flags = 0});
|
||||
|
||||
any_array_push(nodes_brush_category0, input_node_def);
|
||||
any_map_set(nodes_brush_creates, "input_node", input_node_create);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user