Pixel-Composer/objects/o_dialog_preview_grid/Create_0.gml

23 lines
492 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
event_inherited();
#region data
2022-09-21 06:09:40 +02:00
dialog_w = 280;
dialog_h = 188;
2022-01-13 05:24:03 +01:00
destroy_on_click_out = true;
#endregion
#region data
2022-09-21 06:09:40 +02:00
cb_enable = new checkBox(function(str) {
PANEL_PREVIEW.grid_show = !PANEL_PREVIEW.grid_show;
})
2022-01-13 05:24:03 +01:00
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));
})
#endregion