From e683eed90fc6fdf31fb8f387b8c36c6e6645cf22 Mon Sep 17 00:00:00 2001 From: Insality Date: Tue, 6 Sep 2022 21:35:43 +0300 Subject: [PATCH] Solve #202 set check stencil node enabled by default --- README.md | 6 +++--- druid/const.lua | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6944e06..681033d 100644 --- a/README.md +++ b/README.md @@ -78,11 +78,11 @@ no_auto_template = 1 ### Stencil check [optional] -When creating input components inside stencil nodes, you probably will use `component:set_click_zone()` to restrict clicks outside this stencil zone. -Druid can do it automatically on _late_init_ component step. To enable this feature add next field in your _game.project_ file +When creating input components inside stencil nodes, **Druid** automatically setup `component:set_click_zone()` on _late_init_ component step to restrict input clicks outside this stencil zone. +To disable this feature add next field in your _game.project_ file ``` [druid] -stencil_check = 1 +no_stencil_check = 1 ``` diff --git a/druid/const.lua b/druid/const.lua index 12839ba..5276299 100755 --- a/druid/const.lua +++ b/druid/const.lua @@ -21,7 +21,7 @@ M.ACTION_SCROLL_UP = hash(sys.get_config("druid.input_scroll_up", "scroll_up")) M.ACTION_SCROLL_DOWN = hash(sys.get_config("druid.input_scroll_down", "scroll_down")) -M.IS_STENCIL_CHECK = sys.get_config("druid.stencil_check") == "1" +M.IS_STENCIL_CHECK = not (sys.get_config("druid.no_stencil_check") == "1") M.RELEASED = "released" @@ -93,7 +93,6 @@ M.LAYOUT_MODE = { STRETCH = gui.ADJUST_STRETCH, } - M.VECTOR_ZERO = vmath.vector3(0) M.VECTOR_ONE = vmath.vector3(1) M.SYS_INFO = sys.get_sys_info()