mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix scrollbar slider move, outfit exact size, charlist focus
This commit is contained in:
@@ -458,7 +458,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
end
|
||||
|
||||
function moveStackableItem(item, toPos)
|
||||
if(countWindow) then
|
||||
if countWindow then
|
||||
return
|
||||
end
|
||||
if g_keyboard.isCtrlPressed() then
|
||||
@@ -479,8 +479,17 @@ function moveStackableItem(item, toPos)
|
||||
scrollbar:setMaximum(count)
|
||||
scrollbar:setMinimum(1)
|
||||
scrollbar:setValue(count)
|
||||
scrollbar.onValueChange = function(self, value) spinbox:setValue(value) end
|
||||
spinbox.onValueChange = function(self, value) scrollbar:setValue(value) end
|
||||
|
||||
local spinBoxValueChange = function(self, value)
|
||||
scrollbar:setValue(value)
|
||||
end
|
||||
spinbox.onValueChange = spinBoxValueChange
|
||||
|
||||
scrollbar.onValueChange = function(self, value)
|
||||
spinbox.onValueChange = nil
|
||||
spinbox:setValue(math.round(value))
|
||||
spinbox.onValueChange = spinBoxValueChange
|
||||
end
|
||||
|
||||
local okButton = countWindow:getChildById('buttonOk')
|
||||
local moveFunc = function()
|
||||
|
Reference in New Issue
Block a user