Resource icon

Enable Yield Icons by Default 1.2

koreyama

Chieftain
Joined
Feb 9, 2025
Messages
6
Description
Auto Yield Icons is a simple yet effective mod that ensures yield icons are always enabled by default in Civilization VII. With this mod, you no longer need to manually toggle the yield icons every time you start a new game.

I wasn’t sure how to add a new file instead of replacing an existing one, but I managed to get it working for now. However, I’m not sure if this is the correct approach.

Also, I’d like to localize the mod, but I’m not quite sure how to do it. If there are any good examples, I’d appreciate any guidance!

 
Interesting idea! I was manually changing this in default-lens.js for myself locally:
JavaScript:
class DefaultLens {
    constructor() {
        this.activeLayers = new Set([
            'fxs-hexgrid-layer',
            'fxs-resource-layer',
            'fxs-culture-borders-layer',
            'fxs-yields-layer'
        ]);
        this.allowedLayers = new Set([
            'fxs-appeal-layer'
        ]);
    }
}

Moving 'fxs-yields-layer' from allowed to active. But this requires overriding a file. Good to know we can hook up to events and toggle the lens layers.
 
I initially tried that method as well, but in my environment, it didn’t work properly when the tutorial was enabled.
However, thanks to that, I was able to discover the current approach, so it was a silver lining!
 
This is actually Japanese. I understand that forum posts must be in English, but do the comment lines within the mod also need to be in English? Would it be acceptable if I include English alongside the original text?
 
This doesn't seem to work anymore with the latest patch, anyone else seeing that? I don't see a version in the Steam workshop.
 
Back
Top Bottom