mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
chat code
This commit is contained in:
parent
120193fb0b
commit
e6a419aa3d
9 changed files with 51 additions and 9 deletions
|
|
@ -70,7 +70,7 @@ void MainWindow::statusChanged(ProtocolStatus _status)
|
|||
aRestartGame->setEnabled(false);
|
||||
aLeaveGame->setEnabled(false);
|
||||
phasesToolbar->setActivePhase(-1);
|
||||
phasesToolbar->setEnabled(false);
|
||||
phasesToolbar->hide();
|
||||
emit logDisconnected();
|
||||
break;
|
||||
case StatusLoggingIn:
|
||||
|
|
@ -85,7 +85,7 @@ void MainWindow::statusChanged(ProtocolStatus _status)
|
|||
aRestartGame->setEnabled(false);
|
||||
aLeaveGame->setEnabled(false);
|
||||
phasesToolbar->setActivePhase(-1);
|
||||
phasesToolbar->setEnabled(false);
|
||||
phasesToolbar->hide();
|
||||
|
||||
view->hide();
|
||||
gameSelector->enableGameList();
|
||||
|
|
@ -94,7 +94,7 @@ void MainWindow::statusChanged(ProtocolStatus _status)
|
|||
}
|
||||
case StatusPlaying:
|
||||
chatWidget->disableChat();
|
||||
phasesToolbar->setEnabled(true);
|
||||
phasesToolbar->show();
|
||||
view->show();
|
||||
break;
|
||||
default:
|
||||
|
|
@ -313,7 +313,7 @@ MainWindow::MainWindow(QTranslator *_translator, QWidget *parent)
|
|||
viewLayout->addWidget(view);
|
||||
|
||||
phasesToolbar = new PhasesToolbar;
|
||||
phasesToolbar->setEnabled(false);
|
||||
phasesToolbar->hide();
|
||||
|
||||
QHBoxLayout *mainLayout = new QHBoxLayout;
|
||||
mainLayout->addWidget(phasesToolbar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue