defenceWin.right and defenceWin.left are the two labels holding the defences. Is there a way to redo this without re-echoing the defence list on all 3 events?
How to change color of existing text in a label?
-
- Posts: 27
- Joined: Fri Jun 26, 2015 8:52 am
How to change color of existing text in a label?
I've set up a label that uses echo() to fill itself with my character's defences, with red and green representing whether they are present or not. It's for Achaea, and I'm using gmcp.Char.Defences.List to populate the label. This doesn't, however, catch defences as they are added or lost, so I was hoping I could toggle the colors of an existing word on the events gmcp.Char.Defences.Add and gmcp.Char.Defences.Remove. Having it re-echo the entire thing would require me to change all of the script that I've written for echoing defences so far. I tried to do so using selectString() and setFgColor() and had no luck: