mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
exportable and readable minimap images
This commit is contained in:
@@ -56,6 +56,7 @@ namespace battleship{
|
||||
|
||||
//TODO refactor player difficulty and faction listbox selection
|
||||
//TODO remove hardcoded font path values
|
||||
//TODO use configurable map path values
|
||||
Button* ConcreteGuiManager::parseButton(int guiId){
|
||||
sol::state_view SOL_LUA_STATE = generateView();
|
||||
sol::table guiTable = SOL_LUA_STATE["gui"][guiId + 1];
|
||||
@@ -262,9 +263,11 @@ namespace battleship{
|
||||
case RESOURCE_AMMOUNT:
|
||||
button = new ResourceAmmountButton(pos, size, name, (int)guiTable["ammount"], (int)guiTable["trigger"], imagePath);
|
||||
break;
|
||||
case MINIMAP:
|
||||
button = new MinimapButton(pos, size, "");
|
||||
case MINIMAP:{
|
||||
string minimapPath = GameManager::getSingleton()->getPath() + "Models/Maps/" + Map::getSingleton()->getMapName() + "/minimap.jpg";
|
||||
button = new MinimapButton(pos, size, minimapPath);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int typeArr[2]{(int)GuiElementType::BUTTON, (int)type};
|
||||
|
||||
Reference in New Issue
Block a user