mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
implement API to save lists in configs file and terminal history
This commit is contained in:
23
modules/core_widgets/uimessagebox.lua
Normal file
23
modules/core_widgets/uimessagebox.lua
Normal 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
|
Reference in New Issue
Block a user