2012-02-06 05:39:52 +01:00
|
|
|
--[[
|
2012-01-15 16:13:22 +01:00
|
|
|
UIMessageBox = extends(UIWindow)
|
|
|
|
|
|
|
|
function UIMessageBox.create(title, message)
|
|
|
|
local messagebox = UIMessageBox.internalCreate()
|
|
|
|
|
|
|
|
messagebox:setText(title)
|
|
|
|
local messageLabel = self:getChildById('messageLabel')
|
|
|
|
label:setText(message)
|
|
|
|
label:resizeToText()
|
|
|
|
|
|
|
|
window:setWidth(math.max(label:getWidth() + self:getPaddingLeft() + self:getPaddingRight(), self:getWidth()))
|
|
|
|
window:setHeight(label:getHeight() + self:getPaddingTop() + self:getPaddingBottom())
|
|
|
|
|
|
|
|
return messagebox
|
|
|
|
end
|
|
|
|
|
|
|
|
function UIMessageBox:setTitle(title)
|
|
|
|
end
|
|
|
|
|
|
|
|
function UIMessageBox:setMessage(message)
|
|
|
|
end
|
2012-02-06 05:39:52 +01:00
|
|
|
]]--
|