implement API to save lists in configs file and terminal history

This commit is contained in:
Eduardo Bart
2012-01-15 13:13:22 -02:00
parent a238111c07
commit 9ec40f016d
20 changed files with 228 additions and 58 deletions

View File

@@ -0,0 +1,23 @@
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
function