refactored InGameAppState and its button classes

This commit is contained in:
devZoGok
2022-10-30 13:09:00 +02:00
parent 9fabc77107
commit b48f915352
6 changed files with 173 additions and 266 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ using namespace std;
using namespace vb01;
namespace battleship{
ExitButton::ExitButton(Vector2 pos, Vector2 size, string name, bool separate) : Button(pos, size, name, GameManager::getSingleton()->getPath() + "Fonts/batang.ttf", -1, separate) {
}
ExitButton::ExitButton(Vector2 pos, Vector2 size) : Button(pos, size, "Exit", GameManager::getSingleton()->getPath() + "Fonts/batang.ttf", -1, true) {}
void ExitButton::onClick() {
//Root::getSingleton()->set