Jump to content

[C#] Change color mid sentece using CreateTextLabel()


Recommended Posts

Posted

Is there a way to make the text on a label change its colour mid sentece? For example:

"This is a !{#FF0000}test." should be displayed as This is a test.

I can't find a way to do this in C# using the serverside labels, is it possible?

Posted
7 hours ago, Platin said:

Is there a way to make the text on a label change its colour mid sentece? For example:

"This is a !{#FF0000}test." should be displayed as This is a test.

I can't find a way to do this in C# using the serverside labels, is it possible?

!{#2c3e50}This is a !{#FF0000}test.

Posted
12 hours ago, MarcoQ said:

!{#2c3e50}This is a !{#FF0000}test.

Thanks for the response, sadly this does not work.

NAPI.TextLabel.CreateTextLabel("!{#2c3e50}" + t.Nombre + "\n!{#32FF32}something| !{#FF3232}something2", t.Posicion, 4f, 1f, 0, new Color(255, 255, 255, 255), false);

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...