Skip to content

Commit d1c7420

Browse files
committed
Add "Hide ground overlay" feature
Simple solution to the "Toggle Snow Visiblity" issue, only allows removing ground moisture/snow. (Adding toggle feature could require metatables tracking world weather component, or make it incompatible with weather component changes)
1 parent 540d622 commit d1c7420

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/devtools/submenus/playervision.lua

+12
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ return {
4343
},
4444
},
4545
{ type = MOD_DEV_TOOLS.OPTION.DIVIDER },
46+
{
47+
type = MOD_DEV_TOOLS.OPTION.ACTION,
48+
options = {
49+
label = "Hide Ground Overlay",
50+
on_accept_fn = function()
51+
for i = 0,2 do
52+
TheWorld.Map["SetOverlayColor"..i](TheWorld.Map,0,0,0,0)
53+
end
54+
end,
55+
},
56+
},
57+
{ type = MOD_DEV_TOOLS.OPTION.DIVIDER },
4658
{
4759
type = MOD_DEV_TOOLS.OPTION.CHOICES,
4860
options = {

0 commit comments

Comments
 (0)