Merge pull request #847 from argonui/des-fix
DES: added onDrop updating
This commit is contained in:
commit
b8994f6825
@ -88,6 +88,10 @@ end
|
|||||||
-- counting functions
|
-- counting functions
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
function onDrop()
|
||||||
|
updateColors()
|
||||||
|
end
|
||||||
|
|
||||||
-- updates the matcolor and handcolor variable
|
-- updates the matcolor and handcolor variable
|
||||||
function updateColors()
|
function updateColors()
|
||||||
matColor = playermatApi.getMatColorByPosition(self.getPosition())
|
matColor = playermatApi.getMatColorByPosition(self.getPosition())
|
||||||
@ -123,4 +127,4 @@ function updateValue()
|
|||||||
size = size + 1
|
size = size + 1
|
||||||
end
|
end
|
||||||
self.UI.setAttribute("Count", "text", size)
|
self.UI.setAttribute("Count", "text", size)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user