Resource icon

Proof of Concept - Unsupported - Custom Independent Powers Colors 1.01 Patch 3

This mod is unsupported and has not been updated since 1.01.

This mod unfortunately requires edits to .css and .js files which means it will conflict with any other mods that edit the same files.

I lack the coding chops to try and make these changes conflict less, so I'm classifying this as an unsupported proof of concept mostly to just point out Firaxis' decision to hard code some aspects of the Independent Power colors when it didn't have to be that way.

Old description begins here:

Customizes the independent powers colors to be any colors other than black and white because House of Hohenzollern, that's why.

Four instances of hard coded black/white colors have been changed to use the colors assigned to PLAYERCOLOR_LIGHT_YELLOW_MINOR which is what the game looks for anyway with independent powers, so no idea why these were hard coded the way they were.

This mod is meant to be modded by you! See the Mod This Mod section at the bottom for details.

customindependentpowerscolors.png


Consider using this alongside Custom Leader Colors https://forums.civfanatics.com/resources/custom-leader-colors.31871/ and customizing either of the Friedrichs to use black and white!


Installation:
Make sure hidden files and folders are visible.
Windows: Extract to %USERPROFILE%\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Mods
MacOS: Extract to ~/Library/Application Support/Civilization VII/Mods
Linux: Extract to ~/My Games/Sid Meier's Civilization VII/Mods/

Example installation Windows:
customindependentpowerscolors installed.png


Files Edited:
ui/city-banners/city-banners.css
ui/unit-flags/unit-flags-independent-powers.js


Caveats:
The white ring separating the yellow/red friendly/hostile border had to go.

Like all mods, does not work with saved setup presets. The setup would need to be recreated from scratch then saved. Loading an old preset and resaving isn't good enough.

Does not respect colorblind settings for the leader colors. All other UI elements adjusted by colorblind settings should be unaffected though.


Mod This Mod:
Feel free to edit the colors in data/colors.sql. The colors are RGBA 0-255 with the A always being 255. The first color in each line is the UI color, the second is the unit splash color.


Useful Tools:
https://oklch.com/ Probably the best color space for keeping hues constant while adjusting perceived lightness and chroma.
https://www.myndex.com/APCA/ A perceptual contrast calculator. Since the colors will be used both light on dark and dark on light, it's a good idea to have a strong contrast for readability.


That's it, stay civilized!
  • Like
Reactions: Benualdo
Author
zinfinion
Downloads
305
Views
1,716
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from zinfinion

Latest updates

  1. Update to 1.01 Patch 3

    Updates ui\city-banners\city-banners.css
Back
Top Bottom