地球不屈 Terra Invicta

地球不屈 Terra Invicta

100 个评价
Color-Coded Traits
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
199.167 KB
2024 年 4 月 14 日 上午 1:13
2024 年 7 月 1 日 上午 2:41
6 项改动说明 ( 查看 )

订阅以下载
Color-Coded Traits

在 Meme Machine 的 1 个合集中
Meme Machine's UI Mods
24 件物品
描述
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 0.4.43.

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.
9 条留言
Meme Machine  [作者] 2024 年 6 月 30 日 上午 3:07 
That's because the only files I'm changing in this mod are .en (English) localization files. Modifying all other languages is on my "to do" list.
shimmer 2024 年 6 月 30 日 上午 1:12 
This only works with English language.
Meme Machine  [作者] 2024 年 6 月 5 日 下午 9:41 
Just subscribing to the mod in the Workshop page is not enough, you need to go to the in-game mod browser and click the install button yourself. Here's a guide I made that explains how to do it:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3260872800
Lumas 2024 年 6 月 5 日 下午 4:04 
Is there something special you need to do to install this? It's not working or showing up in the mod list inside the game.
Meme Machine  [作者] 2024 年 6 月 1 日 上午 1:20 
I've just added alphabetical trait sorting to Councilor Screen and Org Color-Coding, another mod of mine, here's the link: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3231718971
FenitWithin 2024 年 5 月 31 日 下午 2:24 
Thanks! Agree this mod is great as-is, and I like that it's simple enough for me to adjust with a text editor. I'd love to see the trait sorting if it's ever something you have the inclination to make, but already your UI mods have been awesome for improving QOL, thank you!
Meme Machine  [作者] 2024 年 5 月 31 日 上午 6:57 
It is definitely possible, but it would require modifying the code, hence that'd require using Unity Mod Manager or something similar. I'd keep this mod as it is, since it's basically my only mod that doesn't require it, but I can add it as an optional feature to another (code) mod.
FenitWithin 2024 年 5 月 30 日 下午 6:31 
Do you know if it is possible to sort traits a councilor has by their grouping? The color coding is great for quick ID, but I would love to make it so for example "Affluent" always shows first on the list.
FenitWithin 2024 年 4 月 14 日 上午 10:52 
This is awesome! Great way to ID traits at a glance, since they do not sort in a uniform order, thank you!