mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 03:53:33 +00:00
loading bar
This commit is contained in:
+2
-2
@@ -2,6 +2,7 @@
|
||||
#include "concreteGuiManager.h"
|
||||
#include "gameManager.h"
|
||||
#include "mapEditorAppState.h"
|
||||
#include "loadingAppState.h"
|
||||
|
||||
#include <stateManager.h>
|
||||
|
||||
@@ -16,8 +17,7 @@ namespace battleship{
|
||||
void LoadMapButton::OkButton::onClick(){
|
||||
StateManager *sm = GameManager::getSingleton()->getStateManager();
|
||||
string name = wstringToString(listbox->getContents()[listbox->getSelectedOption()]);
|
||||
sm->attachAppState(new MapEditorAppState(name, Vector2::VEC_ZERO, false));
|
||||
ConcreteGuiManager::getSingleton()->readLuaScreenScript("mapEditor.lua");
|
||||
handleLoadingGui(new LoadingAppState(new MapEditorAppState(name, Vector2::VEC_ZERO, false), "mapEditor.lua"));
|
||||
}
|
||||
|
||||
LoadMapButton::LoadMapButton(Vector3 pos, Vector2 size) : Button(pos, size, "Load map", GameManager::getSingleton()->getPath() + "Fonts/batang.ttf"){}
|
||||
|
||||
Reference in New Issue
Block a user