mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
18 lines
483 B
C++
18 lines
483 B
C++
#include "backButton.h"
|
|
#include "gameManager.h"
|
|
#include "concreteGuiManager.h"
|
|
|
|
namespace battleship{
|
|
using namespace std;
|
|
using namespace vb01;
|
|
using namespace vb01Gui;
|
|
|
|
BackButton::BackButton(Vector3 pos, Vector2 size, string name, string scr) :
|
|
PfButtonBase(pos, size, name, GameManager::getSingleton()->getPath() + "Fonts/batang.ttf", -1, true),
|
|
screen(scr){}
|
|
|
|
void BackButton::onClick() {
|
|
ConcreteGuiManager::getSingleton()->readLuaScreenScript(screen);
|
|
}
|
|
}
|