mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
error proning
This commit is contained in:
@@ -3,10 +3,10 @@ function messageBox(title, text)
|
||||
local messageBoxLabel = messageBoxWindow:getChildByID("messageBoxLabel")
|
||||
local messageBoxOkButton = messageBoxWindow:getChildByID("messageBoxOkButton")
|
||||
local uiRoot = messageBoxWindow:getParent()
|
||||
uiRoot:lock(messageBox)
|
||||
messageBoxWindow:setTitle(text)
|
||||
messageBoxLabel:setText(text)
|
||||
messageBoxWindow:setSize(messageBoxLabel:getSize() + Size{20, 20})
|
||||
messageBox:setOnDestroy(function() uiRoot:unlock() end)
|
||||
uiRoot:lock(messageBoxWindow)
|
||||
--messageBoxWindow:setTitle(text)
|
||||
--messageBoxLabel:setText(text)
|
||||
--messageBoxWindow:setSize(messageBoxLabel:getSize() + Size{20, 20})
|
||||
messageBoxWindow:setOnDestroy(function() uiRoot:unlock() end)
|
||||
messageBoxOkButton:setOnClick(function() messageBoxWindow:destroy() end)
|
||||
end
|
||||
end
|
||||
|
@@ -15,4 +15,4 @@ window#messageBoxWindow:
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
margin.bottom: 10
|
||||
margin.right: 10
|
||||
margin.right: 10
|
||||
|
Reference in New Issue
Block a user