mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
468ebbd5f3
+ Follow path action now comes with expression for automating path progress.
23 lines
No EOL
585 B
Text
23 lines
No EOL
585 B
Text
#region action
|
|
global.ACTIONS = [];
|
|
|
|
function __initAction() {
|
|
global.ACTIONS = [];
|
|
|
|
var root = DIRECTORY + "Actions";
|
|
if(!directory_exists(root))
|
|
directory_create(root);
|
|
|
|
zip_unzip("data/Actions.zip", DIRECTORY);
|
|
|
|
return;
|
|
var _l = root + "/version";
|
|
if(file_exists(_l)) {
|
|
var res = json_load_struct(_l);
|
|
if(!is_struct(res) || !struct_has(res, "version") || res.version != BUILD_NUMBER)
|
|
zip_unzip("data/Actions.zip", DIRECTORY);
|
|
} else
|
|
zip_unzip("data/Actions.zip", DIRECTORY);
|
|
json_save_struct(_l, { version: BUILD_NUMBER });
|
|
}
|
|
#endregion |