#Partial text color and correct update timings

3 messages · Page 1 of 1 (latest)

spring stratus
#

Before i forget here is the link https://wago.io/Fdkkwj3Ji
I tagged it WotLK but its actually plain classic, the tag isnt there.
The aura:
The aura is fairly simple, it shows your current stats.
Str, agi, int, spirit, stam, armor.
The issues..

~~I added a color picker for each stat, but all stats are returned in 1 big string.~~
~~Is it possible to give only a part of a string the said~~
~~I know you can go `|c<hex argb>text here|r` but the colorpicker returns a table and i dont know how to generate the argb string based on that. color?~~
**Edit: ** this bit is fixed by using `RGBToColorCode`

2. the first version updated every frame, which the site told me was a "no no" so i changed it to type: custom; event type: status; check on: events; events: 
`PLAYER_LOGIN,PLAYER_LEVEL_UP,PLAYER_EQUIPMENT_CHANGED,UNIT_AURA:player` so what i think should happen is when i cast arcane intellect on myself the aura changes. And sometimes it does, but other times it wont change until i use another different buff.

I do have some followup nice to have questions but hopefully i can just mention those later.

Can anyone help me fix the 2 issues?
Thanks in advance!

Wago.io is a database of sharable World of Warcraft addon elements

floral bison
#

Change your events to
COMBAT_RATING_UPDATE UNIT_STATS:player

spring stratus
#

Cool thanks, will give that a try