Color-Coded Traits

If you liked this item, please rate it up on Steam Workshop page.

Author: Meme Machine

Last revision: 1 Jul, 2024 at 10:41 UTC (2)

File size: 199.17 KB

On Steam Workshop

Description:

Adds color-coding to councilor traits:

– green: Quick Learner, Striver
– orange: Government, Criminal, Enemy of the State, Pariah, National Hero (they’re all mutually exclusive)
– lime: scientist traits
– yellow: dangerous traits
– red: purely negative traits
– cyan: cybernetic augmentations
– magenta: pherocyte emitters

The way this mod functions is it adds Unity/TextMeshPro rich text tags to any relevant trait in the localization file TITraitTemplate(.en or whatever the language is). For example, in TITraitTemplate.en:

TITraitTemplate.displayName.Government=Government

becomes:

TITraitTemplate.displayName.Government=<color=orange>Government</color>

Built and tested on Terra Invicta 0.4.19. Verified on RC13. This mod should work with any version of the game and other mods, as long as the names of traits in the localization files are not changed.

Compatibility

This mod only modifies some trait string in the localization files, so as long as those are not modified, it should work fine.

Language

It works with every language officially supported by the base game, with a caveat: I don’t know most of these languages. So if you find any inconsistency with some colored traits, let me know, as I might have messed up something, given that I most likely do not speak the language.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.