2011-07-27 01:13:27 +02:00
|
|
|
@import "additional_elements"
|
|
|
|
|
|
|
|
Panel
|
|
|
|
id: "mainBackground"
|
|
|
|
image:
|
|
|
|
source: "background.png"
|
|
|
|
antialised: true
|
2011-07-17 13:52:20 +02:00
|
|
|
anchor.fill: parent
|
2011-07-27 01:13:27 +02:00
|
|
|
|
|
|
|
lista:
|
|
|
|
- valor1
|
|
|
|
- valor2
|
|
|
|
- valor3
|
|
|
|
|
|
|
|
FlatPanel
|
|
|
|
id: mainMenuPanel
|
|
|
|
size: {117, 171}
|
2011-07-17 13:52:20 +02:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
2011-07-27 01:13:27 +02:00
|
|
|
margin: {70, 60}
|
2011-07-17 13:52:20 +02:00
|
|
|
|
2011-07-27 01:13:27 +02:00
|
|
|
// enter game button
|
|
|
|
Button
|
|
|
|
text: "Enter Game"
|
2011-07-17 13:52:20 +02:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
margin.top: 16
|
2011-07-27 01:13:27 +02:00
|
|
|
onClick: |
|
|
|
|
function(self)
|
|
|
|
if not mainMenu:getChild("enterGameWindow") then
|
|
|
|
local enterGame = loadUI("entergamewindow")
|
|
|
|
enterGame:setLocked(true)
|
|
|
|
end
|
|
|
|
end
|
2011-07-17 13:52:20 +02:00
|
|
|
|
2011-07-27 01:13:27 +02:00
|
|
|
Button
|
|
|
|
text: "Access Account"
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
margin.top: 6
|
|
|
|
onClick: loadUI("entergamewindow")
|
2011-07-17 13:52:20 +02:00
|
|
|
|
2011-07-27 01:13:27 +02:00
|
|
|
Button
|
|
|
|
text: "Options"
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
margin.top: 6
|
2011-07-17 13:52:20 +02:00
|
|
|
onClick: loadUI("optionswindow")
|
|
|
|
|
2011-07-27 01:13:27 +02:00
|
|
|
Button
|
|
|
|
text: "Info"
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
margin.top: 6
|
2011-07-17 13:52:20 +02:00
|
|
|
onClick: loadUI("infowindow")
|
|
|
|
|
2011-07-27 01:13:27 +02:00
|
|
|
Button
|
|
|
|
text: "Exit"
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
margin.top: 6
|
2011-07-17 13:52:20 +02:00
|
|
|
onClick: terminateApplication()
|
|
|
|
|