Hey guys,
Is there any way I can colour a piece of text separately in a draw.SimpleText() function?
I have
draw.SimpleText(v, "ChatFont", curx, cury, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)
where v is the key of a table. Could I apply any formatting to that string to make it be a different colour than Color(255,...)? Like having part of it be overridden as blue, then have the rest be the default white.
You can use the [url=http://wiki.garrysmod.com/?title=Markup]markup[/url] library. Only other option is to draw all the differently colored strings separately.
Thank you to the utmost nevec.
Sorry, you need to Log In to post a reply to this thread.