onLoad and onDestroy events

This commit is contained in:
Eduardo Bart
2011-04-23 00:28:23 -03:00
parent 02ada0b82e
commit a98f1d67db
16 changed files with 210 additions and 31 deletions

View File

@@ -3,8 +3,8 @@ window#enterGameWindow:
size: [236, 178]
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
onLoad: mainMenu:lock(self)
onDestroy: mainMenu:unlock()
onLoad: self:getParent():lock(self)
onDestroy: self:getParent():unlock()
label#accountNameLabel:
text: Account name

View File

@@ -3,8 +3,8 @@ window#infoWindow:
size: [244, 221]
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
onLoad: mainMenu:lock(self)
onDestroy: mainMenu:unlock()
onLoad: self:getParent():lock(self)
onDestroy: self:getParent():unlock()
panel#infoPanel:
skin: flatPanel
@@ -59,4 +59,5 @@ window#infoWindow:
anchors.left: parent.left
anchors.top: parent.top
margin.top: 191
margin.left: 188
margin.left: 188
onClick: self:getParent():destroy()

View File

@@ -3,8 +3,8 @@ window#optionsWindow:
size: [286, 262]
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
onLoad: mainMenu:lock(self)
onDestroy: mainMenu:unlock()
onLoad: self:getParent():lock(self)
onDestroy: self:getParent():unlock()
# general
button#generalButton: