Files
PlanetFleet/Assets/Scripts/Gui/activeGameState.lua
T
2024-05-15 19:02:18 +03:00

111 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},
zIndex = 0,
scale = 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},
zIndex = 0,
scale = 1,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = 'research',
text = '',
pos = {x = 100, y = 300},
zIndex = 0,
scale = 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},
zIndex = .9,
size = {x = s, y = s},
imagePath = resIconBasePath .. 'refineds.jpg',
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = 100},
zIndex = .9,
size = {x = s, y = s},
imagePath = resIconBasePath .. 'wealth.jpg',
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = 200},
zIndex = .9,
size = {x = s, y = s},
imagePath = resIconBasePath .. 'research.jpg',
},
{
guiType = GuiType.TEXT,
name = 'depth',
text = '',
pos = {x = 0, y = 400},
zIndex = 0,
scale = 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},
size = Size,
trigger = 10
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = res.x - sz, y = res.y - sz},
zIndex = .9,
size = {x = sz, y = sz},
color = {x = .6, y = .6, z = .6, w = .6}
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = 0, y = res.y - sz},
zIndex = .9,
size = {x = sz, y = sz},
color = {x = .6, y = .6, z = .6, w = .6}
},
{
guiType = GuiType.GUI_RECTANGLE,
pos = {x = sz, y = res.y - .75 * sz},
zIndex = .9,
size = {x = res.x - 2 * sz, y = sz * .75},
color = {x = .6, y = .6, z = .6, w = .6}
},
}