From 14ddb20ee84bf73ff62f3762e5df7b08cedff4eb Mon Sep 17 00:00:00 2001 From: Viktor Date: Fri, 22 Oct 2021 02:17:10 +0200 Subject: [PATCH] Add "Hide Ground Overlay" player vision suboption A simple solution to the "Toggle Snow Visibility" issue (fixes partly #4), allowing to remove ground moisture/snow. --- scripts/devtools/submenus/playervision.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/devtools/submenus/playervision.lua b/scripts/devtools/submenus/playervision.lua index df25436..7c4ce79 100644 --- a/scripts/devtools/submenus/playervision.lua +++ b/scripts/devtools/submenus/playervision.lua @@ -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 = {