Files
PlanetFleet/Assets/Scripts/Gui/activeGameState.lua
T

101 lines
2.2 KiB
Lua

res = graphics.resolution
Size = {x = 70, y = 70}
sz = 210
s = 90
resIconBasePath = 'Icons/Resources/'
pointerTex = 'pointer.jpg'
attackTex = 'attack.jpg'
garrisonTex = 'garrison.jpg'
gui = {
{
guiType = GuiType.TEXT,
name = 'refineds',
text = '',
pos = {x = 100, y = 100, z = 0},
scale = {x = 1, y = 1},
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = 'wealth',
text = '',
pos = {x = 100, y = 200, z = 0},
scale = {x = 1, y = 1},
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 0, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = 'research',
text = '',
pos = {x = 100, y = 300, z = 0},
scale = {x = 1, y = 1},
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = 0, z = 0},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'refineds.png',
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = 100, z = 0},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'wealth.jpg',
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = 200, z = 0},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'research.jpg',
},
{
guiType = GuiType.TEXT,
name = 'depth',
text = '',
pos = {x = 0, y = 400, z = 0},
scale = {x = 1, y = 1},
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.BUTTON,
buttonType = ButtonType.PLAYER_TRADE,
name = 'Trade',
guiScreen = 'tradingHub.lua',
pos = {x = res.x - Size.x, y = 200, z = 0},
size = Size,
trigger = 10
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = res.x - sz, y = res.y - sz, z = 0},
size = {x = sz, y = sz},
color = {x = .6, y = .6, z = .6, w = .4}
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = res.y - sz, z = 0},
size = {x = sz, y = sz},
color = {x = .6, y = .6, z = .6, w = .4}
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = sz, y = res.y - .75 * sz, z = 0},
size = {x = res.x - 2 * sz, y = sz * .75},
color = {x = .6, y = .6, z = .6, w = .4}
},
}