mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
drag fixes
This commit is contained in:
@@ -11,7 +11,7 @@ function UIMap:onDragEnter(mousePos)
|
||||
return true
|
||||
end
|
||||
|
||||
function UIMap:onDragLeave(widget, mousePos)
|
||||
function UIMap:onDragLeave(droppedWidget, mousePos)
|
||||
if not self.parsed then
|
||||
self.currentDragThing = nil
|
||||
end
|
||||
@@ -27,7 +27,7 @@ function UIMap:onDrop(widget, mousePos)
|
||||
if not tile then return false end
|
||||
|
||||
local count = widget.currentDragThing:getCount()
|
||||
if widget.currentDragThing:isStackable() and data > 1 then
|
||||
if widget.currentDragThing:isStackable() and count > 1 then
|
||||
widget.parsed = true
|
||||
local moveWindow = displayUI('/game/movewindow.otui')
|
||||
local spinbox = moveWindow:getChildById('spinbox')
|
||||
|
||||
Reference in New Issue
Block a user