mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
#111 Add druid.stencil_check for auto stencil check to call set_click_zone
This commit is contained in:
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user