Resource icon

KayleeR's Misc UI Modifications 1.13

KayleeR

Chieftain
Joined
Feb 11, 2025
Messages
42
Makes miscellaneous improvements to the base game UI.

Current improvements include:
  • The resource screen now sorts cities first and then by total resource slots. Resources on the resource screen are sorted.
  • City yields on the resource screen are displayed on the same line as the city name to save space.
  • Adds a discovery map layer to show an icon above discoveries (goody huts). Needs to be enabled by clicking the button above the minimap and selecting the discoveries layer.
  • The resource map layer shows a gold border around resource that can produce treasure fleets in the Exploration Age.
  • When placing unique buildings that can complete a unique quarter highlights that hex in purple.
  • BETA (disabled by default): Ultrawide screen support to display two columns of cities on the resource screen.
Compatible with Sukritact's Simple UI Adjustments 0.121

Installation:
Extract to your "{user}\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Mods" folder

Beta options:
To enable ultrawide screen UI for the resource screen uncomment the commented out beta section of ui\resource-allocation\screen-resource-allocation.css
Note: There are still some occasional graphical oddities hence why this is defaulting to disabled.

Download:
https://forums.civfanatics.com/resources/kayleers-misc-ui-modifications.31885/

KUI-Discoveries.JPG
KUI-TreasureResources.JPG
KUI-UniqueQuarterPlacement.JPG
KUI-ResourcesSorted.JPG


Known issues:
  • The information for the discoverable display is populated when the mod loads. If you're loading a save game after a discoverable is claimed by another civ you won't see an icon in the fog of war anymore. Not sure this is currently fixable as it needs either access to the old fog of war information or the ability to append information to the save file.
 
Last edited:
Included is also a beta version of ultrawide screen support for the resources screen to display two columns of cities. It's currently disabled by default as there are still some occasional bugs with the display but it should be generally usable if you want to test it out. To enable it, find the commented out beta section of ui\resource-allocation\screen-resource-allocation.css

KUI-Widescreen-Resources.JPG


KUI-WidescreenEnableCss.JPG
 
ooh, this is great!

Craimasjien figured out how to install new lenses non-destructively so that lens mods don't conflict with each other. This mod conflicts with Moxl's Map Search mod, so i tried out Craimasjien's technique and got them working together! would you like to see how i did it?
 
KayleeR updated KayleeR's Misc UI Modifications with a new update entry:

v1.12

- Update how the mini map lens checkbox is added to not require replacing the mini-map panel class to avoid conflicts with other mods.
- Update discovery logic to no longer provide information not available to the player (resets fog of war discovery icons on load)
- Add repair category to the production screen.
- Fix base game bug where repairing items doesn't cause the production UI to correctly remove no longer valid repair items.

View attachment 721553

Read the rest of this update entry...
 
i don't think the code to remove discovery icons is working properly. i have a lot of empty hexes with discovery icons even though i have vision on them. it's more reliable to check whether the hex has a Discovery improvement – wltk's Discovery Lens mod has an example of how to do it.
I updated this to not conflict with other lens mods. I also slightly changed the logic on how discovery icons are updated though I'm not sure it will have changed the behavior you're reporting. Do you know how the discovery is getting removed in that instance? The icon should be removed whenever you see someone remove it or if you reveal the fog of war on an old tile and the discovery is no longer present. I haven't seen any issues with the previous or current logic that would replicate the behavior you're seeing.
 
I also slightly changed the logic on how discovery icons are updated though I'm not sure it will have changed the behavior you're reporting. Do you know how the discovery is getting removed in that instance? The icon should be removed whenever you see someone remove it or if you reveal the fog of war on an old tile and the discovery is no longer present. I haven't seen any issues with the previous or current logic that would replicate the behavior you're seeing.
i installed the mod in the middle of a playthrough, so the discovery and the fog of war were already gone when i enabled the mod. i'll check whether the new version changes anything.
 
the new version has made things slightly worse for me. i installed it and loaded a save with some discoveries still on the map and others removed. on the left is an archer on a hex that used to have a discovery (but not anymore). on the right is a cairn that i previously discovered but don't have vision on. i can make the missing icon appear by getting vision on it again, but i cannot make the other icon disappear.

Screenshot 2025-02-22 200307.jpg
Screenshot 2025-02-22 200517.jpg
 
Last edited:
Does the discovery lens/decoration not work for anyone anymore after the update? Or is that just me, lol

Edit: was able to make it show up by changing mini-map-decorator.js to decorate panel-mini-map instead of lens-panel
 
Last edited:
Does the discovery lens/decoration not work for anyone anymore after the update? Or is that just me, lol

Edit: was able to make it show up by changing mini-map-decorator.js to decorate panel-mini-map instead of lens-panel
Are you on the latest patch because they added lens-panel in 1.1.0.
 
Are you on the latest patch because they added lens-panel in 1.1.0.
So I double checked, I'm on build 1.1.0 (1098027). I thought that since I loaded a save from a previous build, that might be the cause so I started a new game (even played as Ada Lovelace) and the discovery toggle still doesn't show up with "lens-panel".

You for sure know more than me about this, so it might just be on my system. Could it be because of another mod installed? I do have a bunch of them haha
 
So I double checked, I'm on build 1.1.0 (1098027). I thought that since I loaded a save from a previous build, that might be the cause so I started a new game (even played as Ada Lovelace) and the discovery toggle still doesn't show up with "lens-panel".

You for sure know more than me about this, so it might just be on my system. Could it be because of another mod installed? I do have a bunch of them haha
If there's another mod that's overwriting the mini map instead of using the better decorator pattern to just add its own checkbox then that could do it.
 
If there's another mod that's overwriting the mini map instead of using the better decorator pattern to just add its own checkbox then that could do it.
And you were absolutely right! Moxl's map search mod still edits the whole mini-map file instead of using a decorator. Once I removed that, the discovery toggle showed up. Thanks for the mod, as always!
 
I totally understand the ultrawide resource screen is a beta version, but it's been fantastic to use. Finally came across a minor bug with it though (which you may already know):

When a single resource slot wraps around to a 2nd line, it's not expanding the spacing between settlements, so the 2nd line overlaps the next settlement. When I add another camel, such that there are now 4 slots on the 2nd line instead of 1, it works correctly. Not sure yet what the threshold number of slots is for it to work.
 

Attachments

  • 1 Slot.png
    1 Slot.png
    3.4 MB · Views: 10
  • 4 Slots.png
    4 Slots.png
    3.4 MB · Views: 12
I totally understand the ultrawide resource screen is a beta version, but it's been fantastic to use. Finally came across a minor bug with it though (which you may already know):

When a single resource slot wraps around to a 2nd line, it's not expanding the spacing between settlements, so the 2nd line overlaps the next settlement. When I add another camel, such that there are now 4 slots on the 2nd line instead of 1, it works correctly. Not sure yet what the threshold number of slots is for it to work.
Yeah, this is known hence why it's still beta. Unfortunately there's some weird issues with the css layout that I haven't had the time to dig into and it's not currently a priority for me. The screen should still function though. Glad you're enjoying it though :)
 
Back
Top Bottom