Commit 38365fdf by grlabu

Update mainwindow.cpp

parent 454e9257
Showing with 5 additions and 1 deletions
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "bossdefeated.h" #include "bossdefeated.h"
#include "gameover.h" #include "gameover.h"
#include "bossfightend.h" #include "bossfightend.h"
#include "mainmenu.h"
MainWindow::MainWindow(QWidget *parent, Player *player, int iDefeatedEnemies) MainWindow::MainWindow(QWidget *parent, Player *player, int iDefeatedEnemies)
: QMainWindow(parent), : QMainWindow(parent),
...@@ -138,7 +139,10 @@ void MainWindow::on_nupp_pogene_clicked() ...@@ -138,7 +139,10 @@ void MainWindow::on_nupp_pogene_clicked()
// int SaveGame(char *file, Player *p, int enemiesDefeated); // int SaveGame(char *file, Player *p, int enemiesDefeated);
saveGame(); saveGame();
mainmenu *mainmenu = new class mainmenu();
// Show the MainMenu
mainmenu->show();
close();
// Uuenda vaenlase tervisenäidikut pärast põgenemist (valikuline) // Uuenda vaenlase tervisenäidikut pärast põgenemist (valikuline)
ui->VastaseHPdisplay->setText(QString("Vaenlase HP: %1").arg(enemy.health)); ui->VastaseHPdisplay->setText(QString("Vaenlase HP: %1").arg(enemy.health));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment