WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   OpenRDX: Feature Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=104)
-   -   Cast color (https://www.wowinterface.com/forums/showthread.php?t=40402)

Narinka 06-04-11 06:24 PM

Cast color
 
Not sure, but I have strong feeling that I had something like that before :\

I mean there was some var or feature to make cast bar color depending on the school that is cast. Like white for arcane, dark for shadow, green for nature etc.. or I just dream?

unlimit 06-04-11 11:26 PM

It's probably in there somewhere, I seem to remember that functionality being available too, but if it isn't, I'm sure there is some way to modify my holypower var for it...

Code:

function SetC()
  local school = COMBATLOG_DEFAULT_COLORS.schoolColoring
 
  if (school == ??) then
    return LightYellow;
  elseif (school == ??) then
    return Yellow;
  elseif (school = ??) then
    return DarkYellow;
  else
    return Black;
  end;
 
end;

varcolor1 = SetC();

Maybe something involving SchoolColoring like above then replacing ?? with whatever numbers or RBG set (like {255, 230, 128} for holy or something)?

http://www.wowwiki.com/API_COMBAT_LO...T#Spell_School


All times are GMT -6. The time now is 10:03 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI