mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
refactor
This commit is contained in:
parent
25ab53fac4
commit
4ff2ce0560
2 changed files with 7 additions and 0 deletions
|
|
@ -223,6 +223,11 @@ void MainWindow::actSinglePlayer()
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
startLocalGame(numberPlayers);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::startLocalGame(int numberPlayers)
|
||||||
|
{
|
||||||
aConnect->setEnabled(false);
|
aConnect->setEnabled(false);
|
||||||
aRegister->setEnabled(false);
|
aRegister->setEnabled(false);
|
||||||
aForgotPassword->setEnabled(false);
|
aForgotPassword->setEnabled(false);
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,8 @@ private:
|
||||||
};
|
};
|
||||||
void exitCardDatabaseUpdate();
|
void exitCardDatabaseUpdate();
|
||||||
|
|
||||||
|
void startLocalGame(int numberPlayers);
|
||||||
|
|
||||||
QList<QMenu *> tabMenus;
|
QList<QMenu *> tabMenus;
|
||||||
QMenu *cockatriceMenu, *dbMenu, *helpMenu, *trayIconMenu;
|
QMenu *cockatriceMenu, *dbMenu, *helpMenu, *trayIconMenu;
|
||||||
QAction *aConnect, *aDisconnect, *aSinglePlayer, *aWatchReplay, *aDeckEditor, *aFullScreen, *aSettings, *aExit,
|
QAction *aConnect, *aDisconnect, *aSinglePlayer, *aWatchReplay, *aDeckEditor, *aFullScreen, *aSettings, *aExit,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue