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.
12 lines
589 B
12 lines
589 B
function messageBox(title, text)
|
|
local messageBoxWindow = UI.load("modules/messagebox/messagebox.yml")
|
|
local messageBoxLabel = messageBoxWindow:getChildById("messageBoxLabel")
|
|
local messageBoxOkButton = messageBoxWindow:getChildById("messageBoxOkButton")
|
|
messageBoxWindow.locked = true
|
|
messageBoxWindow.title = title
|
|
messageBoxLabel.text = text
|
|
--messageBoxWindow:setSize(messageBoxLabel:getSize() + Size{20, 20})
|
|
messageBoxWindow.onDestroy = function() self.locked = false end
|
|
messageBoxOkButton.onClick = function() messageBoxWindow:destroy() end
|
|
end
|