cleaned up statistics screen

This commit is contained in:
devZoGok
2023-12-26 17:25:07 +02:00
parent d43d7e3ba3
commit ee6208ce96
9 changed files with 93 additions and 4 deletions
+6
View File
@@ -48,6 +48,7 @@ namespace battleship{
}
ActiveGameState::~ActiveGameState() {
removeDragbox();
}
void ActiveGameState::initDragbox(){
@@ -66,6 +67,11 @@ namespace battleship{
root->getGuiNode()->attachChild(dragboxNode);
}
void ActiveGameState::removeDragbox(){
Root::getSingleton()->getRootNode()->dettachChild(dragboxNode);
delete dragboxNode;
}
void ActiveGameState::onAttached() {
AbstractAppState::onAttached();
ConcreteGuiManager::getSingleton()->readLuaScreenScript("activeGameState.lua");