Color codes not workingSolved
I'm having problems displaying colours. Any chance of fixing it? ;-)

1) This used to work, showing the "blahblah" as lime green, but it now doesn't show any colours and is just white, and also shows the "color=lime" but not the trailing "/color":-
"Donate at - <color=lime>blahblah/donate</color> - to get VIP+, VIP++, VIP+++ ranks."


2) This (which I constructed in error using < > brackets) shows everything in lime green from the blahblah onwards, and also displays the trailing "/#":-
"Donate at - <#bfff00>blahblah/donate</#> - to get VIP+, VIP++, VIP+++ ranks."


3) And then this (when I realised I hadn't used [ ] brackets) displays everything in white, including the trailing "/#":-
"Donate at - [#bfff00]blahblah/donate[/#] - to get VIP+, VIP++, VIP+++ ranks."


Finally, using the second method above, I did this and it's displaying okay:-
"Donate at - <#bfff00>blahblah/donate<#ffffff> - to get VIP+, VIP++, VIP+++ ranks."


However, it feels like a kludge and will cause me problems later on with a future update, so I'd like it if there was a method that worked properly. I *think* I've been going in the right direction but I'm a bit uneasy about my solution. May I have some help please?

Thanks.
This is how I have done it, for everything that outputs text.

<color=#bfff00>blahblah/donate</color>

Merged post

"Donate at - <color=#bfff00>blahblah/donate</color> - to get VIP+, VIP++, VIP+++ ranks."
Like LoneWolf said, use </color> to close the color tag.
The [#hex]text[/#] format only works for universally handled chat; which isn't usually the case when using with plugins sending chat in Rust. We will be working to make sure that format is handled in all methods we provide in uMod though.

Thanks guys. Yes it's working as expected now.

5c26bb065fd61.PNG LoneWolfAU
This is how I have done it, for everything that outputs text.

<color=#bfff00>blahblah/donate</color>

Merged post

"Donate at - <color=#bfff00>blahblah/donate</color> - to get VIP+, VIP++, VIP+++ ranks."

Yeah the colour name used to work too, it didn't occur to me to simply replace the colour code with the hex version. D'oh! It seems that maybe lime isn't supported any more as it's not on the Unity colour codes page.

https://docs.unity3d.com/ScriptReference/Color.html

5c2d88ae4ea06.jpg Wulf
The [#hex]text[/#] format only works for universally handled chat; which isn't usually the case when using with plugins sending chat in Rust. We will be working to make sure that format is handled in all methods we provide in uMod though.

Yeah, this is a universal plugin so I was sort of expecting it to work. :-)  Thanks as always for your time, and that of the other posters.
Locked automatically