mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
items movement fixed, spinbox style changed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
CountWindow < MainWindow
|
||||
id: countWindow
|
||||
text: Move Staackable Item
|
||||
text: Move Stackable Item
|
||||
size: 196 112
|
||||
@onEscape: self:destroy()
|
||||
|
||||
|
@@ -32,6 +32,10 @@ function UIGameMap:onDrop(widget, mousePos)
|
||||
|
||||
local item = widget.currentDragThing
|
||||
local toPos = tile:getPosition()
|
||||
|
||||
local itemPos = item:getPosition()
|
||||
if itemPos.x == toPos.x and itemPos.y == toPos.y and itemPos.z == toPos.z then return false end
|
||||
|
||||
if item:isStackable() and item:getCount() > 1 then
|
||||
GameInterface.moveStackableItem(item, toPos)
|
||||
else
|
||||
|
@@ -25,6 +25,10 @@ function UIItem:onDrop(widget, mousePos)
|
||||
|
||||
local item = widget.currentDragThing
|
||||
local toPos = self.position
|
||||
|
||||
local itemPos = item:getPosition()
|
||||
if itemPos.x == self.position.x and itemPos.y == self.position.y and itemPos.z == self.position.z then return false end
|
||||
|
||||
if item:isStackable() and item:getCount() > 1 then
|
||||
GameInterface.moveStackableItem(item, toPos)
|
||||
else
|
||||
|
Reference in New Issue
Block a user