View Tokens Over SimpleFog

Type: Module Update
Short Description: Fix the Z layering behaviour in SimpleFog

Long Description:
As detailed in https://github.com/League-of-Foundry-Developers/simplefog/issues/75 and https://github.com/League-of-Foundry-Developers/simplefog/issues/91, the Z layering in SimpleFog is not working: It renders on top of the whole canvas and seems to ignore the Z index setting (default 220). This means in map exploration scenarios, tokens cannot be made visible above the fog of war, even player tokens.

I'm offering $50 to anyone who can patch this and either get a PR accepted or fork it and provide an alternate working Manifest URL so that SimpleFog respects layer height again.

Notable code snippet from MaskLayer.js:
    static get layerOptions() {
        //@ts-ignore
        return mergeObject(super.layerOptions, {
            // ToDo: is ugly hack still needed?
            // Ugly hack - render at very high zindex and then re-render at layer init with layerZindex value
            zIndex: game.settings.get("simplefog", "zIndex"),
        });
    }
188023132-b89f9d4c-e8b0-4ab2-ba93-93a85957e37f.png
Was this page helpful?