Files
PlanetFleet/Assets/Scripts/Gui/singlePlayerMenu.lua
T
devZoGok d7b22f8131 Added explanatory texts to the singleplayer screen
Difficulties can only be chosen for CPU players
Added more colors
2026-08-06 10:32:40 +03:00

93 lines
1.7 KiB
Lua

Size = {x = 100, y = 20}
music = {
loop = true,
shuffle = false,
delay = 2000,
tracks = {'intro.ogg'}
}
MAIN_PLAYER_ID = 0
gui = {
{
guiType = GuiType.TEXT,
name = '',
text = 'Singleplayer',
pos = {x = 20, y = 50, z = 0},
scale = .5,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = '',
text = 'Player',
pos = {x = 20, y = 100, z = 0},
scale = .2,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = '',
text = 'Faction',
pos = {x = 180, y = 100, z = 0},
scale = .2,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = '',
text = 'Color',
pos = {x = 460, y = 100, z = 0},
scale = .2,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
guiType = GuiType.TEXT,
name = '',
text = 'Team',
pos = {x = 620, y = 100, z = 0},
scale = .2,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
pos = {x = 20, y = 310, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
addPlayerGui = true,
listboxType = ListboxType.MAPS,
numMaxDisplay = 5
},
{
pos = {x = 20, y = 460, z = 0},
size = Size,
guiType = GuiType.BUTTON,
buttonType = ButtonType.PLAY,
name = 'Play',
numDependencies = 4,
dependencies = {{id = 5}}
},
{
pos = {x = 20 + Size.x + 10, y = 460, z = 0},
size = Size,
guiType = GuiType.BUTTON,
buttonType = ButtonType.BACK,
name = 'Back',
screen = 'mainMenu.lua'
}
}