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

12 lines
292 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-19 19:11:05 +02:00
local msgBox = UI.load("messagebox.yml")
2011-05-03 00:48:41 +02:00
msgBox.locked = true
msgBox.title = title
msgBox:child("textLabel").text = text
2011-05-19 19:11:05 +02:00
msgBox:child("okButton").onClick = autoDestroyParentz
2011-05-01 20:47:35 +02:00
end