Skip to content

Commit

Permalink
Build ready 1.3.2 + Fixing outdated version crash
Browse files Browse the repository at this point in the history
  • Loading branch information
terrydubois committed Apr 11, 2023
1 parent 9b16a37 commit d660e4c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Rezonator/objects/obj_firestore/Other_70.gml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (async_load[? "type"] == "FirebaseFirestore_Document_Read") {
else {
// recommend downloading new version
show_debug_message("CHECK OUT MY NEW REZONATOR PLEASE");
scr_createDialogBox(DIALOG_VERSION_OUTOFDATE);
scr_createDialogBox(DIALOG_VERSION_OUTOFDATE, true);
with (obj_openingScreen) {
showDownloadDialogue = true;
alreadyShownDownloadDialogue = false;
Expand Down
5 changes: 2 additions & 3 deletions Rezonator/objects/obj_openingScreen/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ scr_multiDropDownMouseover();
scr_ctrlHold();

if (showDownloadDialogue && !alreadyShownDownloadDialogue) {
if (!instance_exists(obj_dialogueBox) && !instance_exists(obj_loadingBar)) {
if (!instance_exists(obj_loadingBar)) {
scr_createDialogBox(DIALOG_VERSION_OUTOFDATE, true);
alreadyShownDownloadDialogue = true;
instance_create_layer(x, y, "InstancesDialogue", obj_dialogueBox);
scr_setDialogType(DIALOG_VERSION_OUTOFDATE);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Rezonator/options/mac/options_mac.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Rezonator/options/windows/options_windows.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 15 additions & 13 deletions Rezonator/scripts/scr_createDialogBox/scr_createDialogBox.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ function scr_createDialogBox(type, _cancelOption = false, _noOption = false){
// create dialog box
if (!instance_exists(obj_dialogueBox)) {
instance_create_layer(x, y, "InstancesDialogue", obj_dialogueBox);
}

// want to change this eventually so we don't have to use alertWindowActive/questionWindowActive...
if (!_cancelOption && !_noOption) {
with (obj_dialogueBox) alertWindowActive = true;
}
else if (_cancelOption && !_noOption) {
with (obj_dialogueBox) questionWindowActive = true;
}
// want to change this eventually so we don't have to use alertWindowActive/questionWindowActive...
if (!_cancelOption && !_noOption) {
show_debug_message("scr_createDialogBox, alert");
with (obj_dialogueBox) alertWindowActive = true;
}
else if (_cancelOption && !_noOption) {
show_debug_message("scr_createDialogBox, question");
with (obj_dialogueBox) questionWindowActive = true;
}

// set type & options
with (obj_selectControl) {
dialogBoxType = type;
cancelOption = _cancelOption;
noOption = _noOption;
// set type & options
with (obj_selectControl) {
dialogBoxType = type;
cancelOption = _cancelOption;
noOption = _noOption;
}
}

}

0 comments on commit d660e4c

Please sign in to comment.