You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
348 B
10 lines
348 B
function messageBox(title, text)
|
|
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
|
|
end
|