#111 Add druid.stencil_check for auto stencil check to call set_click_zone

This commit is contained in:
Insality
2021-10-23 14:08:24 +03:00
parent 063e4f4a31
commit 91fb8ced52
13 changed files with 126 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ end
function M.update(self, dt)
end
-- Call only if exist interest: component.ON_INPUT or component.ON_INPUT_HIGH
-- Call only if exist interest: component.ON_INPUT
function M.on_input(self, action_id, action)
end
@@ -60,6 +60,10 @@ end
function M.on_focus_gained(self)
end
-- Call only if exist interest: component.ON_LATE_INIT
function M.on_late_init(self)
end
-- Call on component remove or on druid:final
function M.on_remove(self)
end
@@ -117,6 +121,8 @@ There is next interests in druid:
- **ON_FOCUS_GAINED** will call _on_focust_gained_ function in on focus gained event. You need to pass window_callback to global `druid:on_window_callback`
- **ON_LATE_INIT** will call _on_late_init_ function once after component init on update step.
## Best practice on custom components
On each component recommended describe component scheme in next way: