Skip to content

Commit

Permalink
Add "Hide Ground Overlay" player vision suboption
Browse files Browse the repository at this point in the history
A simple solution to the "Toggle Snow Visibility" issue (fixes partly #4),
allowing to remove ground moisture/snow.
  • Loading branch information
ViktorYu234 committed Oct 22, 2021
1 parent 540d622 commit 14ddb20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/devtools/submenus/playervision.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ return {
},
},
{ type = MOD_DEV_TOOLS.OPTION.DIVIDER },
{
type = MOD_DEV_TOOLS.OPTION.ACTION,
options = {
label = "Hide Ground Overlay",
on_accept_fn = function()
for i = 0, 2 do
TheWorld.Map["SetOverlayColor" .. i](TheWorld.Map, 0, 0, 0, 0)
end
end,
},
},
{ type = MOD_DEV_TOOLS.OPTION.DIVIDER },
{
type = MOD_DEV_TOOLS.OPTION.CHOICES,
options = {
Expand Down

0 comments on commit 14ddb20

Please sign in to comment.