mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
23 lines
498 B
Plaintext
23 lines
498 B
Plaintext
/// @description init
|
|
event_inherited();
|
|
|
|
#region data
|
|
dialog_w = ui(320);
|
|
dialog_h = ui(180);
|
|
|
|
destroy_on_click_out = true;
|
|
#endregion
|
|
|
|
#region data
|
|
cb_enable = new checkBox(function(str) {
|
|
PANEL_GRAPH.node_drag_snap = !PANEL_GRAPH.node_drag_snap;
|
|
})
|
|
|
|
tb_size = new textBox(TEXTBOX_INPUT.number, function(str) {
|
|
PANEL_GRAPH.graph_line_s = max(1, real(str));
|
|
})
|
|
|
|
sl_opacity = new slider(0, 1, .05, function(str) {
|
|
PANEL_GRAPH.grid_opacity = clamp(real(str), 0, 1);
|
|
})
|
|
#endregion |