Array nodes, increase max shape to 1024

This commit is contained in:
MakhamDev 2022-01-19 11:26:59 +07:00
parent 084b1afb5a
commit 68c9d3a909
2 changed files with 17 additions and 391 deletions

File diff suppressed because one or more lines are too long

View file

@ -4,7 +4,7 @@ function NEW() {
room_restart(); room_restart();
gc_collect(); gc_collect();
CURRENT_PATH = ""; setPath("");
} }
function clearNodes() { function clearNodes() {
@ -46,17 +46,22 @@ function save_serialize() {
} }
function SET_PATH(path) { function SET_PATH(path) {
if(READONLY) if(path == "") {
window_set_caption("[READ ONLY] " + filename_name(path) + " - Pixel Composer"); READONLY = false;
else { window_set_caption("Pixel Composer");
var index = ds_list_find_index(RECENT_FILES, path); } else {
if(CURRENT_PATH != path) { if(READONLY)
if(index != -1) window_set_caption("[READ ONLY] " + filename_name(path) + " - Pixel Composer");
ds_list_delete(RECENT_FILES, index); else {
ds_list_insert(RECENT_FILES, 0, path); var index = ds_list_find_index(RECENT_FILES, path);
RECENT_SAVE(); if(CURRENT_PATH != path) {
if(index != -1)
ds_list_delete(RECENT_FILES, index);
ds_list_insert(RECENT_FILES, 0, path);
RECENT_SAVE();
}
window_set_caption(filename_name(path) + " - Pixel Composer");
} }
window_set_caption(filename_name(path) + " - Pixel Composer");
} }
CURRENT_PATH = path; CURRENT_PATH = path;