updated button signatures

This commit is contained in:
devZoGok
2021-11-01 19:53:17 +02:00
parent 14bf591a27
commit 768ed2207c
6 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ namespace battleship{
const int size = 50;
ActiveGameState::UnitButton::UnitButton(ActiveGameState *activeState, Vector2 pos, Vector2 size, std::string name,int faction,int unitId) : vb01Gui::Button(pos,size,name,true){
ActiveGameState::UnitButton::UnitButton(ActiveGameState *activeState, Vector2 pos, Vector2 size, std::string name,int faction,int unitId) : vb01Gui::Button(pos, size, name, "", -1, true){
this->activeState=activeState;
this->faction=faction;
this->unitId=unitId;
@@ -78,7 +78,7 @@ namespace battleship{
*/
}
ActiveGameState::UnitActionButton::UnitActionButton(unitData::UNIT_TYPE type, Vector2 pos, Vector2 size, string name, string path) : vb01Gui::Button(pos,size,name,true){
ActiveGameState::UnitActionButton::UnitActionButton(unitData::UNIT_TYPE type, Vector2 pos, Vector2 size, string name, string path) : vb01Gui::Button(pos, size, name, "", -1, true){
this->type=type;
GameManager *gm = GameManager::getSingleton();
activeState=((ActiveGameState*)gm->getStateManager()->getAppState(AppStateTypes::ACTIVE_STATE));