123456789101112131415161718192021222324252627282930 |
- #include "hotseatgame/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", "0|" + ui->money->text());
- }
|