Minor fix to scroll bar
This commit is contained in:
parent
3b9acab7a1
commit
b61094c053
|
@ -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
|
||||
|
|
|
@ -1082,7 +1082,7 @@ function Market.onMarketEnter(depotItems, offers, balance, vocation)
|
|||
if player then
|
||||
information.player = player
|
||||
end
|
||||
if vocation < 0 then
|
||||
if vocation == -1 then
|
||||
if player then
|
||||
information.vocation = player:getVocation()
|
||||
end
|
||||
|
|
|
@ -21,7 +21,6 @@ AmountWindow < MainWindow
|
|||
anchors.top: prev.top
|
||||
margin-left: 10
|
||||
margin-top: -2
|
||||
focusable: false
|
||||
|
||||
Button
|
||||
id: buttonCancel
|
||||
|
|
|
@ -34,9 +34,10 @@ end
|
|||
|
||||
function g_game.getSupportedProtocols()
|
||||
return {
|
||||
810, 811, 840, 842, 850, 853, 854, 860, 861, 862, 870,
|
||||
910, 940, 944, 953, 954, 960, 961,
|
||||
963, 970, 971, 973
|
||||
810, 811, 840, 842, 850, 853, 854,
|
||||
860, 861, 862, 870, 910, 940, 944,
|
||||
953, 954, 960, 961, 963, 970, 971,
|
||||
973
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue