Fix congratulations gui not being removed on retry
Why would you want to replay the level after beating it, I don't know, but sure.
This commit is contained in:
parent
71a29803ff
commit
35a70c21e6
|
@ -52,7 +52,7 @@ new GuiControl(EndGameGui) {
|
||||||
buttonType = "PushButton";
|
buttonType = "PushButton";
|
||||||
bitmap = "./endgame/continue";
|
bitmap = "./endgame/continue";
|
||||||
};
|
};
|
||||||
new GuiBitmapButtonCtrl() {
|
new GuiBitmapButtonCtrl(EndGameRetryButton) {
|
||||||
profile = "GuiButtonProfile";
|
profile = "GuiButtonProfile";
|
||||||
horizSizing = "right";
|
horizSizing = "right";
|
||||||
vertSizing = "bottom";
|
vertSizing = "bottom";
|
||||||
|
@ -73,8 +73,10 @@ new GuiControl(EndGameGui) {
|
||||||
|
|
||||||
function gameIsCompleteSignalForEndGameGui(%probably) {
|
function gameIsCompleteSignalForEndGameGui(%probably) {
|
||||||
if(%probably) {
|
if(%probably) {
|
||||||
|
EndGameRetryButton.command = "Canvas.popDialog(congratsGui);Canvas.popDialog(EndGameGui);restartLevel();";
|
||||||
EndGameContinueButton.command = "Canvas.popDialog(EndGameGui);";
|
EndGameContinueButton.command = "Canvas.popDialog(EndGameGui);";
|
||||||
} else {
|
} else {
|
||||||
|
EndGameRetryButton.command = "Canvas.popDialog(EndGameGui);restartLevel();";
|
||||||
EndGameContinueButton.command = "setPlayMissionGui();";
|
EndGameContinueButton.command = "setPlayMissionGui();";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue