View Single Post
06/20/14, 12:02 PM   #6
SkOODaT
 
SkOODaT's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 58
thank you so much for the help ill try that out with reaction.....

Originally Posted by Tonyleila View Post
So if I read this right there are already class colors defined by the game?
Cause for the Guild Chat addon we used custom colors:
http://www.esoui.com/downloads/info494-GuildChat.html

Templar =white
Sorcerer =blue
Dragon Knight = red
Nightblade = purple
yes thier is lol found it hidden in the raw dump

Templar =white
Sorcerer = tealish color
Dragon Knight = orangeish color
Nightblade = purple

Templar =white sucks tho cause most text is white wish ESO had labeled them a diff colour maby an off-white


** unfortunately it seems

Lua Code:
  1. local colorDef = ZO_ColorDef:New(GetUnitReactionColor("reticleover"))
  2.  local hexString = colorDef:ToHex()
  3. NameString = "|c"..hexString..Name.."|r"

causes the same delay i was expierenceing with the convert to hex function when coloring the unit name with reaction color the only way i seem to be able to avoid this is by setting the color on the entire name text frame, the delay is very minimal almost unnoticable but overall setting it entirely seems to work better for some reason :S

Lua Code:
  1. r, g, b = GetUnitReactionColor("reticleover")
  2. ZO_TargetUnitFramereticleoverName:SetColor(r, g, b, 1)

ESO target frame text is really hard to work with in general :S lol

Last edited by SkOODaT : 06/20/14 at 01:26 PM.
  Reply With Quote