tibia-client/data/modules/messagebox/messagebox.lua

12 lines
310 B
Lua
Raw Normal View History

2011-05-03 00:48:41 +02:00
function autoDestroyParent()
self.parent:destroy()
end
2011-04-23 22:04:49 +02:00
function messageBox(title, text)
2011-05-03 00:48:41 +02:00
local msgBox = UI.load("modules/messagebox/messagebox.yml")
msgBox.locked = true
msgBox.title = title
msgBox:child("textLabel").text = text
msgBox:child("okButton").onClick = autoDestroyParent
2011-05-01 20:47:35 +02:00
end