mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
12 lines
291 B
Lua
12 lines
291 B
Lua
function autoDestroyParent()
|
|
self.parent:destroy()
|
|
end
|
|
|
|
function messageBox(title, text)
|
|
local msgBox = UI.load("messagebox.yml")
|
|
msgBox.locked = true
|
|
msgBox.title = title
|
|
msgBox:child("textLabel").text = text
|
|
msgBox:child("okButton").onClick = autoDestroyParent
|
|
end
|