XCOM 2
67 ratings
[WOTC] Custom Item Name Formats
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
334.988 KB
Sep 26, 2022 @ 7:38pm
Apr 24 @ 12:36pm
23 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Custom Item Name Formats

In 1 collection by Zelfana
Actually UI
97 items
Description
Overview
This mod allows you to customize your item names. You can change colors, add custom prefixes or suffixes. Everything is highly configurable.

Default settings include colors for the vanilla game and a lot of mods. Equipment is colored by tech tier, type and slot, with unique equipment colored differently per mod. Corpses and some mod-specific resources are colored differently from other resources.

Configuration
<Steam>\steamapps\workshop\content\268500\2868237788\Config\XComZelfCustomItemNameFormats.ini

Format presets make it easy to change an entire item category's look in one place. Presets are then applied by configurable rules. Rules have many options.

There are some commented out alternatives in the config for stat based coloring for PCS and different colors for all vanilla resources.

There won't be Mod Config Menu support at this point in time. It would effectively require new functionality in MCM.

Compatibility
This mod attempts to run last and preserves color tags done by other mods by default. Formatting rules can be configured to strip existing tags. Config includes some of these commented out.

UI - Colored Weapon Tiers is incompatible due to duplicated functionality. You can edit this mod's config if you want to change the colors.

Runs before TeslaRage's Loot Mod to take priority in weapon upgrade formatting. Default colors are still the same apart from coloring Armour Upgrades differently. TLM will still colorize nicknames as usual.

Mod Class Overrides
This mod includes Mod Class Overrides (MCO) for UIInventory_ListItem and UIFacilitySummary_ListItem to improve readability for disabled/selected colored text in lists. They are not required for the colors to work in general so if you get a conflicts on them you can remove the ModClassOverrides lines in config:
<Steam>\steamapps\workshop\content\268500\2868237788\Config\XComEngine.ini

Known compatible mods that color items
... and any other mod not explicitly mentioned here that adds color in localization.

Companion mods
Color Your Techs is another mod that uses a similar system and is a good companion mod for this. As a bonus it benefits from the colored text highlighting fix.

Zelfana's Assorted Fixes Config includes config for Color Your Techs that is color-coordinated with this mod.

Credits
I snatched the idea and some remolded code from UI - Colored Weapon Tiers, but expanded functionality to all items with more customization. Thanks to ∑3245 for the work put into that mod, and TeslaRage for the additional work in Color Your Techs.

Also thanks to RustyDios for some extra color coordination. Some color choices are from Unit Flag Extended.

Notes
As mentioned this mod will not change colors done by other mods without extra config work. This is up to you, the user, to change in the configuration.

Item nicknames won't be colored by this mod as those are entirely separate from the localized name of the item. XSkin will copy colored names, though, if the option for name changing is enabled.

Some mods create items with Iridar's Template Master and those items will show WOTCIridarTemplateMaster as their script package.

Let me know in the comments of any mods that is not getting its items colored at all or it has some resource items or unique equipment that you feel should get their own special color. Also definitely tell if you found unexpected behaviour or bugs.
Popular Discussions View All (2)
0
Aug 22, 2023 @ 2:55pm
PINNED: Share your configs here
Zelfana
33 Comments
Zelfana  [author] May 13 @ 12:09am 
@HKR31

You'd need to make your own config lines for Bitterfrost Protocol items because I feel like they are more useful colored by their generic type rather than just all frosty blue since none of those items are unique apart from the Winter King's Fangs which get frost color from having FreezingLash on it.

For Children of the King it should work by just putting the relevant commented out lines in use. StripExistingTags needs to be enabled because the items have that default blue color in localization.

For the techs you're gonna have to change that directly in the localization because Color Your Techs can't remove existing color tags.
HKR31 May 12 @ 3:40pm 
@Zelfana
How do i activate the frost colors for 'bitterfrost protocol' and 'children of the king' to be the same as the vanilla viper king items (serpent armor and winter fangs?
In the configs that color is chosen (frost) but the regular blue color appears that is set for tier 2 weapons
Also in 'color my tech' mod
Zelfana  [author] Apr 17 @ 3:19am 
It's not directly a problem with this mod as that is a X2TechTemplate which this mod does not colorize. Duplicate font tags can be a problem for the game itself.
Zelfana  [author] Apr 17 @ 3:17am 
Hmm, that would be a clash with Color My Techs then as it would be adding font color tags to that as well. I'll check if I can reproduce this and also see if it happens without my mod as well.
Denis 2101 Apr 17 @ 3:09am 
The error was due to this in the localization file (Duplication of blocks in localization)
I removed the excess - the freezes are over

[PlatedVestProject X2TechTemplate]
DisplayName="Tactical Vest"
Summary="The Tactical Vest will provide armor, hit points, and critical hit resistance."

...

[PlatedVestProject X2TechTemplate]
DisplayName="<font color='#00D286'>Tactical Vest</font>"
Denis 2101 Apr 16 @ 10:27pm 
@Zelfana, Thanks for the reply. I'll try to find the reason for the error later.
Zelfana  [author] Apr 15 @ 8:07am 
I guess if you find out which mod it is, I can check if I should change something to make things work better with it if each mod works individually both you crash with both of them loaded together.
Zelfana  [author] Apr 15 @ 8:05am 
@Denis 2101

It has been 3 months since the last update to this mod and you're the first person reporting such problems. I somewhat doubt it could be directly this mod's fault. So I don't really know what else to tell you than follow the general troubleshooting guide on the modding wiki.

https://www.reddit.com/r/xcom2mods/wiki/mod_troubleshooting
Denis 2101 Apr 14 @ 10:59pm 
@Zelfana
In which case, after installing this mod, the opening of Proving Ground freezes
Assembly Features:
There is a combined laboratory
There are hand-colored objects, technologies, and so on.

How can I determine the cause of the hangup?
MrMister Jan 10 @ 11:11pm 
Thanks!