mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 23:46:56 +01:00
31 lines
No EOL
703 B
Text
31 lines
No EOL
703 B
Text
/// @description init
|
|
event_inherited();
|
|
|
|
#region data
|
|
dialog_w = ui(320);
|
|
dialog_h = ui(260);
|
|
|
|
destroy_on_click_out = true;
|
|
#endregion
|
|
|
|
#region data
|
|
cb_enable = new checkBox(function(str) {
|
|
PANEL_PREVIEW.grid_show = !PANEL_PREVIEW.grid_show;
|
|
});
|
|
|
|
tb_width = new textBox(TEXTBOX_INPUT.number, function(str) {
|
|
PANEL_PREVIEW.grid_width = max(1, real(str));
|
|
});
|
|
|
|
tb_height = new textBox(TEXTBOX_INPUT.number, function(str) {
|
|
PANEL_PREVIEW.grid_height = max(1, real(str));
|
|
});
|
|
|
|
sl_opacity = new slider(0, 1, .05, function(str) {
|
|
PANEL_PREVIEW.grid_opacity = clamp(real(str), 0, 1);
|
|
});
|
|
|
|
cl_color = buttonColor(function(color) {
|
|
PANEL_PREVIEW.grid_color = color;
|
|
});
|
|
#endregion |