mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 15:06:22 +01:00
34 lines
No EOL
611 B
Text
34 lines
No EOL
611 B
Text
/// @description init
|
|
event_inherited();
|
|
|
|
#region data
|
|
destroy_on_click_out = true;
|
|
dialog_w = 290;
|
|
dialog_h = 192;
|
|
|
|
paths = "";
|
|
is_dir = false;
|
|
dir_recursive = false;
|
|
dir_filter = "*";
|
|
|
|
function setPath(path) {
|
|
paths = path;
|
|
is_dir = directory_exists(path);
|
|
|
|
if(is_dir) {
|
|
dialog_h += 96;
|
|
}
|
|
}
|
|
|
|
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 |