FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.74k stars 405 forks source link

Inconsistent display of color tagged text. #14361

Open Regalis11 opened 2 months ago

Regalis11 commented 2 months ago

Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/14337

Originally posted by **lIllIIlI** July 27, 2024 ### Disclaimers - [X] I have searched the issue tracker to check if the issue has already been reported. - [X] My issue happened while using mods. ### What happened? Some GUI displays proper color for items tagged with a specific color via translation xml, i.e: ‖color:120,75,100,255‖帕秋莉装束‖color:end‖ ‖color:120,75,100,255‖Patchouli's Outfit‖color:end‖ Appears correctly in tooltips, but not in crafting / shop menus. ![Barotrauma_HewB5xlmMx](https://github.com/user-attachments/assets/a713ef62-e227-40c3-aa01-c715f537e039) Similarly, chat text popups do not adhere to the color tags while the chat window does. ![image](https://github.com/user-attachments/assets/ca7dc18a-7ef9-45a8-acac-70ab51aeccac) ![image](https://github.com/user-attachments/assets/7eacd612-1aa2-4089-a2d2-45e1dcdceff0) I'd like the colors to be supported in all types of texts. ### Reproduction steps 1. Use localization text file to give item names color using ||color:###,###,###,###||||color:end|| 2. color appears properly in tool tips, chat window, fabrication tooltip 3. color does not appear but the code itself appears in chat bubbbles and fab/shop menus ### Bug prevalence Happens every time I play ### Single player or multiplayer? Happens in both single player and multiplayer ### - _No response_ ### Version v1.5.9.1 (Summer Update Hotfix 2) ### - _No response_ ### Which operating system did you encounter this bug on? Windows ### Relevant error messages and crash reports _No response_
Regalis11 commented 2 months ago

Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/e5d6ce72b2795349db55179ceae48215d88affd4