layer_add
Simulation Instrument Studio 1
Definition
layer_id = layer_add(z_order, callback)
Remarks
Create a new layer. GUI nodes created inside the callback are added to this layer.
Example
No sample instrument calls this yet.
layer_add()

Home›All functions›Layer
Simulation Instrument Studio 1
Simulation Instrument Studio 1
layer_id = layer_add(z_order, callback)
Create a new layer. GUI nodes created inside the callback are added to this layer.
No sample instrument calls this yet.
layer_add()

Simulation Instrument Studio 1
layer_mouse_cursor(layer_id, cursor)
Set the mouse cursor when hovering over the layer.
| Name | Description |
|---|---|
layer_id | Top position in instrument pixels. |
cursor | Cursor shown over this layer. HAND, POINTER, or a 32×32 PNG. |
No sample instrument calls this yet.
layer_mouse_cursor(layer_id, cursor)
layer_mouse_cursor(knob_layer, "CW")
function on_move(id, x, y)
if x < 80 then
layer_mouse_cursor(knob_layer, "LEFT")
elseif x > 160 then
layer_mouse_cursor(knob_layer, "RIGHT")
else
layer_mouse_cursor(knob_layer, "HAND")
end
end
Simulation Instrument Studio 1
z_order(layout_id, order)
Set the Z order of a layer (or instrument).
| Name | Description |
|---|---|
layout_id | Top position in instrument pixels. |
order | Draw order. A higher number draws later. |
No sample instrument calls this yet.
z_order(layout_id, order)
