mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
Minor fix to scroll bar
This commit is contained in:
@@ -55,9 +55,7 @@ local function updateValueDisplay(widget)
|
||||
if widget == nil then return end
|
||||
|
||||
if widget:getShowValue() then
|
||||
local valueLabel = widget:getChildById('valueLabel')
|
||||
local symbol = widget:getSymbol()
|
||||
valueLabel:setText(widget:getValue() .. (symbol or ''))
|
||||
widget:setText(widget:getValue() .. (widget:getSymbol() or ''))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -224,6 +222,11 @@ function UIScrollBar:setOrientation(orientation)
|
||||
self.orientation = orientation
|
||||
end
|
||||
|
||||
function UIScrollBar:setText(text)
|
||||
local valueLabel = self:getChildById('valueLabel')
|
||||
valueLabel:setText(text)
|
||||
end
|
||||
|
||||
function UIScrollBar:onGeometryChange()
|
||||
updateSlider(self)
|
||||
end
|
||||
|
Reference in New Issue
Block a user