mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
loading bar
This commit is contained in:
+2
-4
@@ -1,6 +1,7 @@
|
||||
#include "newMapButton.h"
|
||||
#include "gameManager.h"
|
||||
#include "mapEditorAppState.h"
|
||||
#include "loadingAppState.h"
|
||||
#include "concreteGuiManager.h"
|
||||
|
||||
#include <stateManager.h>
|
||||
@@ -25,10 +26,7 @@ namespace battleship{
|
||||
atof(wstringToString(sizeX->getText()).c_str()),
|
||||
atof(wstringToString(sizeY->getText()).c_str())
|
||||
);
|
||||
StateManager *stateManager = GameManager::getSingleton()->getStateManager();
|
||||
stateManager->attachAppState(new MapEditorAppState(wstringToString(name->getText()), size, true));
|
||||
|
||||
ConcreteGuiManager::getSingleton()->readLuaScreenScript("mapEditor.lua");
|
||||
handleLoadingGui(new LoadingAppState(new MapEditorAppState(wstringToString(name->getText()), size, true), "mapEditor.lua"));
|
||||
}
|
||||
|
||||
NewMapButton::NewMapButton(Vector3 pos, Vector2 size) : Button(pos, size, "New map", GameManager::getSingleton()->getPath() + "Fonts/batang.ttf"){}
|
||||
|
||||
Reference in New Issue
Block a user