How do I change color and size of typed character in textbox

Get help using Construct 2

Post » Mon Jan 23, 2017 3:30 pm

For exmple when you press space textbox display on screen some characters
System set text > "aaa bbb ccc"
how can modify text in events to display something like that
When i run preview
i press space
and text object display
Tiny size 'aaa' or with other color but rest of typed text should be normal

I making simple chat but when i send message i want set tiny text of time using Rex Date.hours, minutes
rest of text should be normal
B
25
S
8
Posts: 212
Reputation: 2,167

Post » Mon Jan 23, 2017 3:55 pm

B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Mon Jan 23, 2017 3:59 pm

jeffige wrote:TextBox css

ok now how to change style of half text

when i set css style and change color
whole text have red color
B
25
S
8
Posts: 212
Reputation: 2,167

Post » Mon Jan 23, 2017 4:00 pm

You can't format one part of the text differently then another part of the text using the textbox object. You can use 2 different text boxes if you want. Or Rex makes a plugin called TagText that lets you format text pretty much however you want.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 23, 2017 4:03 pm

too bad ;/
B
25
S
8
Posts: 212
Reputation: 2,167


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Bootfit, jorgmaquoi, Rable, unicornspitfire and 8 guests