12345678910111213141516171819202122232425262728 |
- #include "gui/MainMenu.h"
- #include "gui/GuiSceneManager.h"
- #include "ui_mainmenu.h"
- #include <QString>
- #include <QApplication>
- MainMenu::MainMenu(QWidget *parent) :
- Scene(parent),
- ui(new Ui::MainMenu)
- {
- ui->setupUi(this);
- }
- MainMenu::~MainMenu()
- {
- delete ui;
- }
- void MainMenu::on_exit_button_clicked()
- {
- QApplication::quit();
- }
- void MainMenu::on_pvp_local_battle_button_clicked()
- {
- GuiSceneManager::getInstance().changeScene("pvp_intro");
- }
|