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

57 lines
1.1 KiB
Lua

Size = {x = 150, y = 40}
res = graphics.resolution
res = graphics.resolution
overlaySize = {x = 600, y = 450}
overlayPos = {x = .5 * (res.x - overlaySize.x), y = 100, z = 0}
buttonSize = {x = 150, y = 40}
buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 250, z = .1}
music = {
loop = true,
shuffle = false,
delay = 2000,
tracks = {'intro.ogg'}
}
gui = {
{
guiType = GuiType.TEXT,
name = '',
text = 'Planet Fleet',
pos = {x = 20, y = 50, z = 0},
scale = .75,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 0, y = 0, z = 1, w = 1}
},
{
pos = {x = 20, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Single player',
buttonType = ButtonType.SINGLE_PLAYER
},
{
pos = {x = 20, y = 160, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Map editor',
buttonType = ButtonType.MAP_EDITOR
},
{
pos = {x = 20, y = 220, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Options',
buttonType = ButtonType.OPTIONS
},
{
pos = {x = 20, y = 280, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Exit',
buttonType = ButtonType.EXIT
}
}