victory and defeat screens

This commit is contained in:
devZoGok
2023-12-26 15:13:54 +02:00
parent 950411f515
commit f884fc1647
16 changed files with 186 additions and 14 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "statsButton.h"
#include "gameManager.h"
#include "concreteGuiManager.h"
namespace battleship{
using namespace std;
using namespace vb01;
StatsButton::StatsButton(Vector2 pos, Vector2 size, string name, int trigger, string imagePath) : Button(pos, size, name, GameManager::getSingleton()->getPath() + "Fonts/batang.ttf", trigger, true, imagePath){}
void StatsButton::onClick(){
ConcreteGuiManager::getSingleton()->readLuaScreenScript("statistics.lua");
}
}