Lua:
function UICreatureButton:creatureSetup(creature)
if self.creature ~= creature then
self.creature = creature
self.creatureWidget:setCreature(creature)
if self.creatureName ~= creature:getName() then
self.creatureName = creature:getName()
self.labelWidget:setText(creature:getName())
end
end
self:updateLifeBarPercent()
self:updateSkull()
self:updateEmblem()
self:update()
end
you will need to add this part after the condition if .... then
Lua:
self.labelWidget:setColor(color) --color in HEX
after this line
Lua:
self.labelWidget:setText(creature:getName())
from file gamelib/ui/uicreaturebutton.lua