otclient-redemption/modules/corelib/ui/uilabel.lua
Rodrigo Paixão 1c3abadd2f
feat: new layout (#749)
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>
2024-06-21 18:10:07 -03:00

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