mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +01:00
Array nodes, increase max shape to 1024
This commit is contained in:
parent
084b1afb5a
commit
68c9d3a909
2 changed files with 17 additions and 391 deletions
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ function NEW() {
|
|||
room_restart();
|
||||
|
||||
gc_collect();
|
||||
CURRENT_PATH = "";
|
||||
setPath("");
|
||||
}
|
||||
|
||||
function clearNodes() {
|
||||
|
@ -46,17 +46,22 @@ function save_serialize() {
|
|||
}
|
||||
|
||||
function SET_PATH(path) {
|
||||
if(READONLY)
|
||||
window_set_caption("[READ ONLY] " + filename_name(path) + " - Pixel Composer");
|
||||
else {
|
||||
var index = ds_list_find_index(RECENT_FILES, path);
|
||||
if(CURRENT_PATH != path) {
|
||||
if(index != -1)
|
||||
ds_list_delete(RECENT_FILES, index);
|
||||
ds_list_insert(RECENT_FILES, 0, path);
|
||||
RECENT_SAVE();
|
||||
if(path == "") {
|
||||
READONLY = false;
|
||||
window_set_caption("Pixel Composer");
|
||||
} else {
|
||||
if(READONLY)
|
||||
window_set_caption("[READ ONLY] " + filename_name(path) + " - Pixel Composer");
|
||||
else {
|
||||
var index = ds_list_find_index(RECENT_FILES, path);
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue