Timberborn-Modding-Central / TimberAPI

The one and only
https://timberapi.com
GNU General Public License v3.0
32 stars 18 forks source link

Fix #73 #74

Closed ihsoft closed 1 year ago

KYPremco commented 1 year ago

Thanks, i'm going to test this when i'm patching the meshy problem!

ps. Do you have any examples and screenshots of the problem / solution

ihsoft commented 1 year ago

ps. Do you have any examples and screenshots of the problem / solution

Simply add any localization string, like Test <SolidHighlight>solid</SolidHighlight> into TimberAPI lang folder. Then, try to get this value via Loc.T. In the result the solid tag should have replaced with Unity's <color> rich text tag, but it won't happen in TimberAPI. On the other hand, if you check the stock localization strings, you may find many examples there. Like:

Work.BeaverOnly,<SolidHighlight>Beaver-only:</SolidHighlight> Only beavers are allowed to work in this workplace.,Shown on a tooltip at workplaces where only beavers can work in