WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Artifact Exp Bar Color (https://www.wowinterface.com/forums/showthread.php?t=54427)

sakurakira 09-08-16 03:15 PM

Artifact Exp Bar Color
 
I'll start by saying that I don't know if the artifact exp bar color is class-based, as I only have one class, priest, with an artifact at the moment. For me, the bar is a pale yellow.

I would like an addon to change this color, preferably one with notations in the code so I can customize it to my preference. (I don't need a fancy in-game menu or anything.) The current color is too bright, but I'm not sure what would be a good color to use instead, as I would have to tinker with it.


Ty in advance.

Phanx 09-11-16 12:53 AM

https://www.townlong-yak.com/framexm...enuBar.xml#469

It does not appear to be class-colored. This should work:

Lua Code:
  1. local r = 0.9 -- red value in the range 0-1 (inclusive)
  2. local g = 0.8 -- green value
  3. local b = 0.6 -- blue value
  4.  
  5. ArtifactWatchBar.StatusBar:SetStatusBarColor(r, g, b)
  6. ArtifactWatchBar.StatusBar:SetAnimatedTextureColors(r, g, b)

Those are the default color values, so if you just wanted the same color but half as bright, change the color values to something like 0.45, 0.4, 0.3. You can use any color picker tool to play around with colors and find something you like.

You can use Vlad's addon creator tool to turn the code into an addon.

sakurakira 09-12-16 08:34 AM

Thanks a bunch.

I don't understand where the rgb values come from, though. How do you get the decimals?

For example, a green is r 45, g 206, b 88. If I were to visually pick a color that looks close to the default, I would go with 239,231,208, but again, those aren't decimals.

lightspark 09-12-16 09:46 AM

Quote:

Originally Posted by sakurakira (Post 318970)
Thanks a bunch.

I don't understand where the rgb values come from, though. How do you get the decimals?

For example, a green is r 45, g 206, b 88. If I were to visually pick a color that looks close to the default, I would go with 239,231,208, but again, those aren't decimals.

Divide them by 255, that's how you get decimals :D

sakurakira 09-12-16 11:27 AM

Lovely, thanks!


All times are GMT -6. The time now is 09:45 PM.

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