Page MenuHomeWildfire Games

disable "cutoff distance" slider when "cover whole map" is on
Needs ReviewPublic

Authored by abian on Sep 27 2023, 6:03 PM.

Details

Summary

In line with other configuration options, the "Cutoff distance" slider on the "Graphics (advanced)" tab of the game settings screen should be disabled when the "Cover whole map" configuration option is on.

Test Plan

Test in the game turning "Cover whole map" on/off.

Event Timeline

abian created this revision.Sep 27 2023, 6:03 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7339/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8428/display/redirect

abian updated this revision to Diff 22331.Sep 27 2023, 6:15 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7340/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8429/display/redirect

abian published this revision for review.Sep 27 2023, 6:24 PM
vladislavbelov added inline comments.
binaries/data/mods/public/gui/options/options.json
329

I think you can just write:

"dependencies": ["shadows", {"config": "shadowscovermap", "value": false}],
sera added a subscriber: sera.Sep 27 2023, 7:05 PM

It makes sense that dependencies on disabled should be a thing, just wonder what the spec should be. I mean we might also need something like var>=5 or var!=testing_mode and many others further down the road. So it might make sense to think a bit more about the spec. !var could also be var=false for instance.

Anyway whatever the spec, it should be document in the doxy comment for enableButtons().

abian updated this revision to Diff 22339.Sep 30 2023, 3:32 PM

Thank you both! Now the comparison is specified with "false" and the format is documented.

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7346/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8435/display/redirect