mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Added 'sell all' tooltip to show items you can sell
* Now 'sell all' button with enable/disable * Fixed display issue with 'sell all' button * Also changed spinbox button click
This commit is contained in:
@@ -15,6 +15,11 @@ function UISpinBox.create()
|
||||
return spinbox
|
||||
end
|
||||
|
||||
function UISpinBox:onSetup()
|
||||
g_mouse.bindAutoPress(self:getChildById('up'), function() self:up() end, 300)
|
||||
g_mouse.bindAutoPress(self:getChildById('down'), function() self:down() end, 300)
|
||||
end
|
||||
|
||||
function UISpinBox:onMouseWheel(mousePos, direction)
|
||||
if direction == MouseWheelUp then
|
||||
self:up()
|
||||
|
Reference in New Issue
Block a user