Hello,
Is there any way to add the condition that a certain message in the text input object should be displayed in another color? All I can achieve as for now is to change the text color for the text input object as a whole.
You can use set text to replace() and inside, the replacement text can include the BBcode [color=red]text[/color] for example.
Thank you for your quick reply. I tried it but I don't get it to work. Would you mind typing the command out for an example word/text?
Set text to : replace(Self.Text,"hi","[color=Orange]Hello![/color]")
Thank you. But I just get it displaying the text "[color=Orange]Hello![/color]".
I'm using the text input object and not text object by the way, if there has been a mix up here.
Ah ok, sorry then I think that's not possible for css. I would try the text object instead if you want to colour part of the text.
Develop games in your browser. Powerful, performant & highly capable.
Alright, thank you for the help.