B3none / cs2-retakes

CS2 implementation of retakes. Based on the version for CS:GO by Splewis.
GNU General Public License v3.0
192 stars 38 forks source link

Message color support #138

Closed Kakkuh closed 3 months ago

Kakkuh commented 3 months ago

I tried using "default" colors (image below), but for some reason they don't work. For example [GOLD] is just white. Is there a way to use these colors or is it not supported? 352485476-fec2b3ec-3772-4f6b-921

B3none commented 3 months ago

https://github.com/B3none/cs2-retakes/blob/49a48326e23a24e934d378fca5212bca8c645d63/RetakesPlugin/Modules/Translator.cs#L51

Kakkuh commented 3 months ago

I did a bit more testing and it seems like the problem is only in the prefix. Translation works in normal messages, but not in "retakes.prefix" I sent an image below and here's what it looks like in the lang file "retakes.prefix": "[ORANGE]test [GREEN]» " "retakes.bombsite.announcement": "Retake [GREEN]{0}[NORMAL]: [LIGHT_RED]{1} Ts[NORMAL] vs [ORANGE]{2} CTs"

image

B3none commented 3 months ago

Can you try adding a space before the prefix colour

Kakkuh commented 3 months ago

Tested and it fixed the problem, thanks! :D