Version 1.9

This commit is contained in:
OTCv8
2020-01-21 23:45:52 +01:00
parent 11ad766308
commit be8704ee92
56 changed files with 3517 additions and 483 deletions

View File

@@ -170,6 +170,7 @@ GameNewWalking = 90
GameSlowerManualWalking = 91
GameExtendedNewWalking = 92
GameBot = 95
GameBiggerMapCache = 96
GameForceLight = 97
GameNoDebug = 98
GameBotProtection = 99

View File

@@ -35,12 +35,7 @@ function UICreatureButton:getCreatureId()
return self.creature:getId()
end
function UICreatureButton:setup(creature, id)
if not id then
id = 0
end
self:setId('CreatureButton_' .. id)
function UICreatureButton:setup(id)
self.lifeBarWidget = self:getChildById('lifeBar')
self.creatureWidget = self:getChildById('creature')
self.labelWidget = self:getChildById('label')

View File

@@ -120,7 +120,7 @@ function UIItem:canAcceptDrop(widget, mousePos)
end
function UIItem:onClick(mousePos)
if not self.selectable then
if not self.selectable or not self.editable then
return
end