Jump to content

Recommended Posts

Is it even possible to change the color of titleText? I have looked all over and cant find any info on it

Share this post


Link to post
Share on other sites

parseText

with a hexadecimal color code should change the color of the text. Hopefully this is what you're looking for. 

Share this post


Link to post
Share on other sites
30 minutes ago, Midnighters said:

parseText

with a hexadecimal color code should change the color of the text. Hopefully this is what you're looking for. 

 

Last time I checked titleText only accepted string, not structured text.

 

Cheers

Share this post


Link to post
Share on other sites
9 hours ago, Grumpy Old Man said:

 

Last time I checked titleText only accepted string, not structured text.

 

Cheers

ah darn, thanks for letting me know.

Share this post


Link to post
Share on other sites

Not sure if you found out, but let me give you an example:

//Color makes everything better, doesnt it?
_Title  = "<t color='#ff0000' underline='true' size='1.5'align='center'>This is colorful.</t><br/>";
_text  = "<t color='#ff0000' size='1.3' align='center'>Have fun!</t>";

Hint parsetext (_Title + _text)

That's the simple version, but works nontheless.

hintSilent parsetext format["<t size='1.2' font='Bitstream' align='center' color='#FFBF00'>Your name: %1</t>",(name player)];

Hopefully no typo is involved. ;)

 

Best regards.

Share this post


Link to post
Share on other sites
1 hour ago, CreativeProduct said:

Not sure if you found out, but let me give you an example:


//Color makes everything better, doesnt it?
_Title  = "<t color='#ff0000' underline='true' size='1.5'align='center'>This is colorful.</t><br/>";
_text  = "<t color='#ff0000' size='1.3' align='center'>Have fun!</t>";

Hint parsetext (_Title + _text)

That's the simple version, but works nontheless.


hintSilent parsetext format["<t size='1.2' font='Bitstream' align='center' color='#FFBF00'>Your name: %1</t>",(name player)];

Hopefully no typo is involved. ;)

 

Best regards.

get rid of the parseText. In a hint and format this should work on it's lonesome. 

Share this post


Link to post
Share on other sites
1 hour ago, Midnighters said:

get rid of the parseText. In a hint and format this should work on it's lonesome. 

Thats correct, yes.

 

Best regards.

Share this post


Link to post
Share on other sites
7 hours ago, CreativeProduct said:

Thats correct, yes.

 

Best regards.

Yeah. 

Share this post


Link to post
Share on other sites

sweet thanks guys I'll look it this abit later when im at my computer

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×