QTfrontend/ui/page/pagenetgame.cpp
changeset 11811 f9a4f4d11c3a
parent 11809 f412d539284e
child 11812 92b3b0fcb41f
equal deleted inserted replaced
11810:09079c1b8ad5 11811:f9a4f4d11c3a
   124 
   124 
   125     // Ready button
   125     // Ready button
   126 
   126 
   127     BtnGo = new QPushButton(this);
   127     BtnGo = new QPushButton(this);
   128     BtnGo->setIconSize(QSize(25, 34));
   128     BtnGo->setIconSize(QSize(25, 34));
       
   129     BtnGo->setWhatsThis(tr("Turn on the lightbulb to show the other players when you're ready to fight."));
   129     setReadyStatus(false);
   130     setReadyStatus(false);
   130     BtnGo->setMinimumWidth(50);
   131     BtnGo->setMinimumWidth(50);
   131     BtnGo->setMinimumHeight(50);
   132     BtnGo->setMinimumHeight(50);
   132 
   133 
   133     bottomLayout->addStretch();
   134     bottomLayout->addStretch();
   217 void PageNetGame::setReadyStatus(bool isReady)
   218 void PageNetGame::setReadyStatus(bool isReady)
   218 {
   219 {
   219     if(isReady)
   220     if(isReady)
   220     {
   221     {
   221         BtnGo->setIcon(QIcon(":/res/lightbulb_on.png"));
   222         BtnGo->setIcon(QIcon(":/res/lightbulb_on.png"));
   222         BtnGo->setWhatsThis(tr("You are ready for action! Click on the lightbulb if you are not ready."));
       
   223     }
   223     }
   224     else
   224     else
   225     {
   225     {
   226         BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
   226         BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
   227         BtnGo->setWhatsThis(tr("You're not ready for action yet. Turn on the lightbulb when you're ready so other players will know this."));
       
   228     }
   227     }
   229 }
   228 }
   230 
   229 
   231 void PageNetGame::onRoomNameEdited()
   230 void PageNetGame::onRoomNameEdited()
   232 {
   231 {