parent
3de455fe7e
commit
bb05338190
@ -0,0 +1,22 @@
|
||||
MainMenuController = {}
|
||||
enterGameController = {}
|
||||
|
||||
function enterGameController.enterGameButton_clicked()
|
||||
createEnterGameWindow()
|
||||
end
|
||||
|
||||
function mainMenuController.createMainMenu()
|
||||
mainMenuPanel = loadUI("ui/mainMenuPanel.yml")
|
||||
enterGameButton = mainMenuPanel:getElementById("enterGameButton")
|
||||
enterGameButton.setOnClick(enterGameController.enterGameButton_clicked)
|
||||
exitButton = mainMenuPanel:getElementById("exitButton")
|
||||
exitButton:setOnClick(function() exitGame() end)
|
||||
end
|
||||
|
||||
function onEnter()
|
||||
mainMenuController:createMainMenu()
|
||||
end
|
||||
|
||||
function onLeave()
|
||||
|
||||
end
|
@ -0,0 +1 @@
|
||||
require("modules/mainmenu/mainmenu")
|
@ -0,0 +1 @@
|
||||
loadUI("modules/mainmenu/mainmenu.yml")
|
@ -0,0 +1,37 @@
|
||||
panel#mainMenu:
|
||||
skin: roundedGridPanel
|
||||
size: [117, 171]
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
margin.left: 60
|
||||
margin.bottom: 70
|
||||
|
||||
button#enterGameButton:
|
||||
text: Enter Game
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 16
|
||||
|
||||
button#accessAccountButton:
|
||||
text: Access Account
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 46
|
||||
|
||||
button#optionsButton:
|
||||
text: Options
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 76
|
||||
|
||||
button#infoButton:
|
||||
text: Info
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 106
|
||||
|
||||
button#exitGameButton:
|
||||
text: Exit
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 136
|
Loading…
Reference in new issue