PlayerHitIndicator and class color. Help
1 Attachment(s)
Hi!:)
It's possible to change the size of PlayerHitIndicator(incoming healing and damage on player frame) and a little move to the left? Attachment 9022 And second question, i have code that change color my nickname on my player frame(you can see that my nickname is blue, like color of the class) Code:
local function getPlayerColors() Code:
TargetFrameTextureFrameName:SetTextColor(getPlayerColors()) |
I'm not an expert in Lua coding (by any means), but, the answer (basically) is in the second line of your example. RAID_CLASS_COLORS should give you your clue.
Sorry if that's wrong, but it seemed obvious to me. :o |
Thanks for reply. Yes, one dude suggest me this code, but he doesnt work
Code:
local function getPlayerColors(unit) |
Quote:
I believe you might want to call Code:
TargetFrameTextureFrameName:SetTextColor(getPlayerColors("target")) |
Pretty sure the PlayerHitIndicator text is drawn on sort of like Blizzard's combat text so, the only ways to change it are by changing fonts or disabling it completely.
As for the name color stuff.... Code:
local function getPlayerColors(unit) |
Quote:
And about PlayerHitIndicator, you are right. I use other fonts, that's why PlayerHitIndicator is so big. And since they can not be reduced, I decided to hide them. If someone need a code: Code:
PlayerHitIndicator:SetText(nil) |
With a use of variable "event" is possible to avoid unnecessary getPlayerColors(unit) calls.
What's the reason for UpdateColor:RegisterEvent("UNIT_FACTION")? For me it feels that Lua Code:
|
Quote:
A better way to hide the PlayerHitIndicator text: Lua Code:
My addon NoCombatText can also hide the text, but it also allows you to configure what you want to show, for both Player and Pet. An addon of the same name here, No Combat Text, just hides the text by clearing the anchor points of the HitIndicator frames. The names are coincidental, as explained in my comment on that addon's page. |
Quote:
|
All times are GMT -6. The time now is 06:40 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI