mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
sources are broken
This commit is contained in:
@@ -3,6 +3,8 @@ window#enterGameWindow:
|
||||
size: [236, 178]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onLoad: mainMenu:lock(self)
|
||||
onDestroy: mainMenu:unlock()
|
||||
|
||||
label#accountNameLabel:
|
||||
text: Account name
|
||||
@@ -49,9 +51,7 @@ window#enterGameWindow:
|
||||
anchors.bottom: parent.bottom
|
||||
margin.bottom: 10
|
||||
margin.right: 13
|
||||
onClick: |
|
||||
self:getParent():destroy()
|
||||
self:getParent():getParent():unlock()
|
||||
onClick: self:getParent():destroy()
|
||||
|
||||
textEdit#accountNameTextEdit:
|
||||
anchors.right: parent.right
|
||||
|
@@ -3,6 +3,8 @@ window#infoWindow:
|
||||
size: [244, 221]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onLoad: mainMenu:lock(self)
|
||||
onDestroy: mainMenu:unlock()
|
||||
|
||||
panel#infoPanel:
|
||||
skin: flatPanel
|
||||
@@ -57,6 +59,4 @@ window#infoWindow:
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin.top: 191
|
||||
margin.left: 188
|
||||
onClick: |
|
||||
self:getParent():destroy()
|
||||
margin.left: 188
|
@@ -1,25 +0,0 @@
|
||||
-- main menu methods
|
||||
function MainMenu_create()
|
||||
mainMenu = loadUI("modules/mainmenu/mainmenu.yml")
|
||||
end
|
||||
|
||||
function MainMenu_destroy()
|
||||
mainMenu:destroy()
|
||||
end
|
||||
|
||||
function MainMenu_enterGameClicked()
|
||||
enterGameWindow = loadUI("modules/mainmenu/entergamewindow.yml")
|
||||
button = enterGameWindow:getChildByID("okButton")
|
||||
end
|
||||
|
||||
function MainMenu_optionsClicked()
|
||||
optionsWindow = loadUI("modules/mainmenu/optionswindow.yml")
|
||||
end
|
||||
|
||||
function MainMenu_infoClicked()
|
||||
infoWindow = loadUI("modules/mainmenu/infowindow.yml")
|
||||
end
|
||||
|
||||
function MainMenu_exitClicked()
|
||||
onApplicationClose()
|
||||
end
|
@@ -21,7 +21,7 @@ panel#background:
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 16
|
||||
onClick: MainMenu_enterGameClicked()
|
||||
onClick: loadUI("modules/mainmenu/entergamewindow.yml")
|
||||
|
||||
button#accessAccountButton:
|
||||
text: Access Account
|
||||
@@ -34,18 +34,18 @@ panel#background:
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 76
|
||||
onClick: MainMenu_optionsClicked()
|
||||
onClick: loadUI("modules/mainmenu/optionswindow.yml")
|
||||
|
||||
button#infoButton:
|
||||
text: Info
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 106
|
||||
onClick: MainMenu_infoClicked()
|
||||
onClick: loadUI("modules/mainmenu/infowindow.yml")
|
||||
|
||||
button#exitGameButton:
|
||||
text: Exit
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 136
|
||||
onClick: MainMenu_exitClicked()
|
||||
onClick: exitGame()
|
@@ -1,10 +1,10 @@
|
||||
-- menu state
|
||||
function onEnterMenuState()
|
||||
MainMenu_create()
|
||||
mainMenu = loadUI("modules/mainmenu/mainmenu.yml")
|
||||
end
|
||||
|
||||
function onLeaveMenuState()
|
||||
MainMenu_destroy()
|
||||
mainMenu:destroy()
|
||||
end
|
||||
|
||||
function onApplicationClose()
|
||||
|
@@ -3,6 +3,8 @@ window#optionsWindow:
|
||||
size: [286, 262]
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onLoad: mainMenu:lock(self)
|
||||
onDestroy: mainMenu:unlock()
|
||||
|
||||
# general
|
||||
button#generalButton:
|
||||
@@ -109,5 +111,4 @@ window#optionsWindow:
|
||||
anchors.bottom: parent.bottom
|
||||
margin.right: 10
|
||||
margin.bottom: 13
|
||||
onClick: |
|
||||
self:getParent():destroy()
|
||||
onClick: self:getParent():destroy()
|
Reference in New Issue
Block a user