mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
New layout based on client 13+. --------- Co-authored-by: kokekanon <114332266+kokekanon@users.noreply.github.com> Co-authored-by: Luan Luciano <luanluciano@outlook.com> Co-authored-by: Levi999x <perkic-marko7@t-online.de> Co-authored-by: SkullzOTS <86809689+SkullzOTS@users.noreply.github.com> Co-authored-by: Renato Machado <mehahx@gmail.com>
24 lines
No EOL
559 B
Lua
24 lines
No EOL
559 B
Lua
-- @docclass
|
|
UILabel = extends(UIWidget, 'UILabel')
|
|
|
|
function UILabel.create()
|
|
local label = UILabel.internalCreate()
|
|
label:setPhantom(true)
|
|
label:setFocusable(false)
|
|
label:setTextAlign(AlignLeft)
|
|
return label
|
|
end
|
|
|
|
function UILabel:setValue(value)
|
|
local scrollBar = self:recursiveGetChildById('valueBar')
|
|
if scrollBar then
|
|
scrollBar:setValue(value)
|
|
end
|
|
end
|
|
|
|
function UILabel:setValue(value)
|
|
local scrollBar = self:recursiveGetChildById('valueBar')
|
|
if scrollBar then
|
|
scrollBar:setValue(value)
|
|
end
|
|
end |