mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Solve #202 set check stencil node enabled by default
This commit is contained in:
parent
2c92a792f7
commit
e683eed90f
@ -78,11 +78,11 @@ no_auto_template = 1
|
|||||||
|
|
||||||
### Stencil check [optional]
|
### 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.
|
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.
|
||||||
Druid can do it automatically on _late_init_ component step. To enable this feature add next field in your _game.project_ file
|
To disable this feature add next field in your _game.project_ file
|
||||||
```
|
```
|
||||||
[druid]
|
[druid]
|
||||||
stencil_check = 1
|
no_stencil_check = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -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.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"
|
M.RELEASED = "released"
|
||||||
@ -93,7 +93,6 @@ M.LAYOUT_MODE = {
|
|||||||
STRETCH = gui.ADJUST_STRETCH,
|
STRETCH = gui.ADJUST_STRETCH,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
M.VECTOR_ZERO = vmath.vector3(0)
|
M.VECTOR_ZERO = vmath.vector3(0)
|
||||||
M.VECTOR_ONE = vmath.vector3(1)
|
M.VECTOR_ONE = vmath.vector3(1)
|
||||||
M.SYS_INFO = sys.get_sys_info()
|
M.SYS_INFO = sys.get_sys_info()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user