mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Update README md
This commit is contained in:
parent
669b525c15
commit
fc2d93c34f
20
README.md
20
README.md
@ -57,13 +57,25 @@ input_scroll_down = scroll_down
|
|||||||
|
|
||||||
By default, **Druid** will auto-capture input focus, if any input component will be created. So you don't need to call `msg.post(".", "acquire_input_focus")`
|
By default, **Druid** will auto-capture input focus, if any input component will be created. So you don't need to call `msg.post(".", "acquire_input_focus")`
|
||||||
|
|
||||||
If you don't need this behaviour, you can disable it by settings `druid.no_auto_input` field in _game.project_:
|
If you don't need this behaviour, you can disable it by setting `druid.no_auto_input` field in _game.project_:
|
||||||
```
|
```
|
||||||
[druid]
|
[druid]
|
||||||
no_auto_input = 1
|
no_auto_input = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Template name check [optional]
|
||||||
|
|
||||||
|
By default, **Druid** will auto check the parent component template name to build the full template name for component.
|
||||||
|
|
||||||
|
If for some reason you want to pass the full template name by yourself, you can disable it by setting `druid.no_auto_input` field in _game.project_:
|
||||||
|
|
||||||
|
```
|
||||||
|
[druid]
|
||||||
|
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, you probably will use `component:set_click_zone()` to restrict clicks outside this stencil zone.
|
||||||
@ -73,6 +85,7 @@ Druid can do it automatically on _late_init_ component step. To enable this feat
|
|||||||
stencil_check = 1
|
stencil_check = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Code [optional]
|
### Code [optional]
|
||||||
|
|
||||||
Adjust **Druid** settings, if needed:
|
Adjust **Druid** settings, if needed:
|
||||||
@ -265,11 +278,6 @@ You can fund the full **Druid** documentation here:
|
|||||||
https://insality.github.io/druid/
|
https://insality.github.io/druid/
|
||||||
|
|
||||||
|
|
||||||
## Games powered by Druid
|
|
||||||
|
|
||||||
_You published your game and you using Druid? Note me!_
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
- Developed and supported by [Insality](https://github.com/Insality)
|
- Developed and supported by [Insality](https://github.com/Insality)
|
||||||
|
@ -143,7 +143,8 @@ end
|
|||||||
--- Get node for component by name.
|
--- Get node for component by name.
|
||||||
-- If component has nodes, node_or_name should be string
|
-- If component has nodes, node_or_name should be string
|
||||||
-- It auto pick node by template name or from nodes by clone_tree
|
-- It auto pick node by template name or from nodes by clone_tree
|
||||||
-- if they was setup via component:set_nodes, component:set_template
|
-- if they was setup via component:set_nodes, component:set_template.
|
||||||
|
-- If node is not found, the exception will fired
|
||||||
-- @tparam BaseComponent self @{BaseComponent}
|
-- @tparam BaseComponent self @{BaseComponent}
|
||||||
-- @tparam string|node node_or_name Node name or node itself
|
-- @tparam string|node node_or_name Node name or node itself
|
||||||
-- @treturn node Gui node
|
-- @treturn node Gui node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user