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

10 lines
348 B
Lua
Raw Normal View History

2011-04-23 22:04:49 +02:00
function messageBox(title, text)
2011-05-02 06:38:00 +02:00
local msgbox = UI.load("modules/messagebox/messagebox.yml")
local label = msgbox:getChildById("messageBoxLabel")
local okButton = msgbox:getChildById("messageBoxOkButton")
msgbox.locked = true
msgbox.title = title
label.text = text
okButton.onClick = function() msgbox:destroy() end
2011-05-01 20:47:35 +02:00
end