* load ui elements in order

* shorter ui paths
This commit is contained in:
Eduardo Bart
2011-05-03 10:36:08 -03:00
parent c052723477
commit 6d871b305f
6 changed files with 66 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ panel#background:
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
margin.top: 16
onClick: UI.load("modules/mainmenu/entergamewindow.yml")
onClick: UI.load("mainmenu/entergamewindow.yml")
button#accessAccountButton:
text: Access Account
@@ -35,14 +35,14 @@ panel#background:
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
margin.top: 76
onClick: UI.load("modules/mainmenu/optionswindow.yml")
onClick: UI.load("mainmenu/optionswindow.yml")
button#infoButton:
text: Info
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
margin.top: 106
onClick: UI.load("modules/mainmenu/infowindow.yml")
onClick: UI.load("mainmenu/infowindow.yml")
button#exitGameButton:
text: Exit

View File

@@ -1,6 +1,6 @@
-- menu state
function onEnterMenuState()
mainMenu = UI.load("modules/mainmenu/mainmenu.yml")
mainMenu = UI.load("mainmenu/mainmenu.yml")
end
function onLeaveMenuState()