Skip to content

Commit

Permalink
Merge pull request #6 from dstmodders/ViktorYu234/issue-4
Browse files Browse the repository at this point in the history
Add "Hide Ground Overlay" player vision suboption
  • Loading branch information
victorpopkov authored Oct 22, 2021
2 parents 540d622 + 14ddb20 commit e02e69c
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 e02e69c

Please sign in to comment.