Pixel-Composer/objects/o_dialog_add_multiple_images/Create_0.gml

34 lines
623 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
event_inherited();
#region data
destroy_on_click_out = true;
2022-11-03 11:44:49 +01:00
dialog_w = ui(290);
dialog_h = ui(172);
2022-01-13 05:24:03 +01:00
paths = "";
is_dir = false;
dir_recursive = false;
dir_filter = "*";
function setPath(path) {
paths = path;
is_dir = directory_exists(path);
if(is_dir) {
2022-11-03 11:44:49 +01:00
dialog_h += ui(96);
2022-01-13 05:24:03 +01:00
}
}
cb_recursive = new checkBox(function(val) { dir_recursive = !dir_recursive; });
tb_filter = new textBox(TEXTBOX_INPUT.text, function(str) { dir_filter = str; })
#endregion
#region nodes
nodes = [
nodeFind("Image"),
nodeFind("Image array"),
nodeFind("Animation"),
];
#endregion