Pixel-Composer/scripts/window_functions/window_functions.gml

20 lines
442 B
Plaintext
Raw Normal View History

2023-02-23 07:02:19 +01:00
function window_close() {
2023-07-06 19:49:16 +02:00
var noSave = true;
for( var i = 0; i < array_length(PROJECTS); i++ ) {
var project = PROJECTS[i];
print($"Project {filename_name_only(project)} modified: {project.modified} readonly: {project.readonly}");
if(project.modified && !project.readonly) {
var dia = dialogCall(o_dialog_exit,,,, true);
dia.project = project;
noSave = false;
}
}
if(noSave) {
2023-02-23 07:02:19 +01:00
PREF_SAVE();
game_end();
}
}