LibPrism-1.0

4k Downloads

GetStringColors()

Aiue opened this issue ยท 3 comments

commented

Call with a fontstring as the argument. Will parse for any |c string modifiers and return them as r,g,b,a (four return values for each found instance).

If no string modifiers are found, return the GetTextColor() values.

commented

Or omit the argument and return nothing if nothing is found. I may need to sleep on this, I already somewhat lost my train of thought.

commented

(I should definitely avoid passing the FontString as an argument, though. Especially considering I have so far avoided using any API calls. Should aim to keep it that way.)

commented

Slept on it a few times. Eventually decided to go with AlterStringColors() instead.