Jump to content

color codes in single line?


Nexerade
 Share

Recommended Posts

right now I can change color with context:SetColor(1,1,1,1) but that'll change color for everything, how do I change color for first part of line?

something like

text="one two ~g~three four ~s~five"

so result would be

one two three four five

I am not silly. My english is just not really great. T_T

But I'm learning! :D

Link to comment
Share on other sites

but how am I gonna get length I need? If I want one two three four five that means I somehow have to switch color and DrawText second time, but how can I fit it exactly where it should be? What if my text is composed of multiple elements? like texta..textb..textc?

I am not silly. My english is just not really great. T_T

But I'm learning! :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...