mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
extracting strings from Lua tables friendlier to MSVC
This commit is contained in:
+6
-1
@@ -69,7 +69,12 @@ namespace battleship{
|
||||
string basePath = GameManager::getSingleton()->getPath() + "Textures/Icons/Cursors/";
|
||||
sol::state_view SOL_LUA_VIEW = generateView();
|
||||
|
||||
string p1[]{basePath + (string)SOL_LUA_VIEW["pointerTex"]}, p2[]{basePath + (string)SOL_LUA_VIEW["attackTex"]}, p3[]{basePath + (string)SOL_LUA_VIEW["garrisonTex"]};
|
||||
string pt = SOL_LUA_VIEW["pointerTex"],
|
||||
at = SOL_LUA_VIEW["attackTex"],
|
||||
gt = SOL_LUA_VIEW["garrisonTex"],
|
||||
p1[]{basePath + pt},
|
||||
p2[]{basePath + at},
|
||||
p3[]{basePath + gt};
|
||||
pointerTex = new Texture(p1, 1, false);
|
||||
attackTex = new Texture(p2, 1, false);
|
||||
garrisonTex = new Texture(p3, 1, false);
|
||||
|
||||
Reference in New Issue
Block a user