mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 14:43:27 +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')
|
||||
|
Reference in New Issue
Block a user