mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
cleaned up statistics screen
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user