123456789101112131415161718192021222324252627282930 |
- #include "gui/playervsplayerintro.h"
- #include "gui/guiscenemanager.h"
- #include "playermanager.h"
- #include "gui/scene.h"
- #include "ui_playervsplayerintro.h"
- PlayerVsPlayerIntro::PlayerVsPlayerIntro(QWidget *parent) :
- Scene(parent),
- ui(new Ui::PlayerVsPlayerIntro)
- {
- ui->setupUi(this);
- }
- PlayerVsPlayerIntro::~PlayerVsPlayerIntro()
- {
- delete ui;
- }
- void PlayerVsPlayerIntro::on_back_to_menu_clicked()
- {
- GuiSceneManager::getInstance().changeScene("main_menu");
- }
- void PlayerVsPlayerIntro::on_go_next_clicked()
- {
- PlayerManager::getInstance().setPlayersNum(2);
- /// TODO - Check if money input correct
- GuiSceneManager::getInstance().changeScene("recruit_army", "1|" + ui->money_->text());
- }
|