rename item data to count, add function to get current class name in lua

This commit is contained in:
Eduardo Bart
2012-02-01 13:20:13 -02:00
parent 266917cc3c
commit 2a62159a61
13 changed files with 41 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ function UIMap:onDrop(widget, mousePos)
local tile = self:getTile(mousePos)
if not tile then return false end
local data = widget.currentDragThing:getData()
local data = widget.currentDragThing:getCount()
if widget.currentDragThing:isStackable() and data > 1 then
widget.parsed = true
local moveWindow = displayUI('/game/movewindow.otui')