2d_warrior
Member
I'm working on textbox that allows for different colored text in one message. I draw each letter one by one and repeatedly loop each frame. I want to be able to change part of a string's color by writing something like /c_red/ in the text and checking for /c and then getting the rest of the color name with a while loop until I find the second / symbol. Once I have a string of the color name with the end and beginning slashes removed how do I put this string of the predefined gm color name into draw_set_color() translating the string to what it needs to be so it does not hang, and recolors the text. Is it possible, and is there a better way to do this?