QTfrontend/hwform.cpp
changeset 2026 21c986c528ba
parent 2012 76fff564246b
child 2027 7c051453a487
equal deleted inserted replaced
2025:692308790912 2026:21c986c528ba
   169 
   169 
   170 	wBackground = new BGWidget(this);
   170 	wBackground = new BGWidget(this);
   171 	wBackground->setFixedSize(this->width(), this->height());
   171 	wBackground->setFixedSize(this->width(), this->height());
   172 	wBackground->lower();
   172 	wBackground->lower();
   173 	wBackground->init();
   173 	wBackground->init();
   174 	wBackground->startAnimation();
   174 	//wBackground->startAnimation();
   175 
   175 
   176 	PagesStack.push(ID_PAGE_MAIN);
   176 	PagesStack.push(ID_PAGE_MAIN);
   177 	GoBack();
   177 	GoBack();
   178 }
   178 }
   179 
   179 
   749 			break;
   749 			break;
   750 		}
   750 		}
   751 		case gsFinished: {
   751 		case gsFinished: {
   752 			GoBack();
   752 			GoBack();
   753 			Music(ui.pageOptions->CBEnableMusic->isChecked());
   753 			Music(ui.pageOptions->CBEnableMusic->isChecked());
   754 			if (wBackground) wBackground->startAnimation();	
   754 			//if (wBackground) wBackground->startAnimation();	
   755 			GoToPage(ID_PAGE_GAMESTATS);
   755 			GoToPage(ID_PAGE_GAMESTATS);
   756 			if (hwnet) hwnet->gameFinished();
   756 			if (hwnet) hwnet->gameFinished();
   757 			break;
   757 			break;
   758 		}
   758 		}
   759 		default: {
   759 		default: {
   760 			quint8 id = ui.Pages->currentIndex();
   760 			quint8 id = ui.Pages->currentIndex();
   761 			if (id == ID_PAGE_INGAME) {
   761 			if (id == ID_PAGE_INGAME) {
   762 				GoBack();
   762 				GoBack();
   763 				Music(ui.pageOptions->CBEnableMusic->isChecked());
   763 				Music(ui.pageOptions->CBEnableMusic->isChecked());
   764 				if (wBackground) wBackground->startAnimation();	
   764 				//if (wBackground) wBackground->startAnimation();	
   765 				if (hwnet) hwnet->gameFinished();
   765 				if (hwnet) hwnet->gameFinished();
   766 			}
   766 			}
   767 		};
   767 		};
   768 	}
   768 	}
   769 }
   769 }