Request: txt_setcolor

Posted By: Talemon

Request: txt_setcolor - 12/04/12 13:13

Hi, It would be wonderful if there was a txt_setcolor function that lets me colorize different strings of a TEXT entity similar to pan_setcolor.
Posted By: Ch40zzC0d3r

Re: Request: txt_setcolor - 12/04/12 14:23

Would be more awesome if it would be like in quake engine!
"^0Exam^1ple" would be Exam (black) and ple (red) laugh
Posted By: krial057

Re: Request: txt_setcolor - 12/04/12 16:05

You can set the text color for all the texts with the red, green and blue attributes:
vec_set(txt->blue, COLOR_RED);
And you can use the draw_text function if it's only for 1 frame.
You can then also write a color code interpreter to make it work like in quake.
© 2023 lite-C Forums