mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 1.9
This commit is contained in:
@@ -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')
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user