mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
onLoad and onDestroy events
This commit is contained in:
@@ -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
|
||||
|
@@ -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()
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user