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
self.labelWidget:setColor(color) --color in HEX
self.labelWidget:setText(creature:getName())
That will change color in Battle List only.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
after this lineLUA:self.labelWidget:setColor(color) --color in HEX
from file gamelib/ui/uicreaturebutton.luaLUA:self.labelWidget:setText(creature:getName())
thanks, i always thought that part is responsible for char name in-game but never tried changing the colorThat will change color in Battle List only.
@topic
You will have to edit sources (yes, it's possible) and add such feature.
Already told you how. You have to edit sources, there is no other way.more ideas then how to do it fully?
lmfao so much information edit source. Its like saying how to build a car and you would answer just build an engineAlready told you how. You have to edit sources, there is no other way.
He wanted name color, this will also change health bar color.You can do this without source editing try "setInformationColor"
![]()
otcv8-dev/src/client/luafunctions_client.cpp at master · OTCv8/otcv8-dev
OTCv8 Development repository (source code). Contribute to OTCv8/otcv8-dev development by creating an account on GitHub.github.com
True, but better than nothingHe wanted name color, this will also change health bar color.