Prepare for release 0.8.0

This commit is contained in:
Insality
2022-02-12 17:02:27 +02:00
parent a75dd5a6f9
commit 4e0fd264b1
39 changed files with 280 additions and 175 deletions

View File

@@ -13,54 +13,54 @@ function Component:init(...)
end
-- Call every update step
-- [OPTIONAL] Call every update step
function Component:update(dt)
end
-- Call default on_input from gui script
-- [OPTIONAL] Call default on_input from gui script
function Component:on_input(action_id, action)
return false
end
-- Call on component creation and on component:set_style() function
-- [OPTIONAL] Call on component creation and on component:set_style() function
function Component:on_style_change(style)
end
-- Call default on_message from gui script
-- [OPTIONAL] Call default on_message from gui script
function Component:on_message(message_id, message, sender)
end
-- Call if druid has triggered on_language_change
-- [OPTIONAL] Call if druid has triggered on_language_change
function Component:on_language_change()
end
-- Call if game layout has changed and need to restore values in component
-- [OPTIONAL] Call if game layout has changed and need to restore values in component
function Component:on_layout_change()
end
-- Call, if input was capturing before this component
-- [OPTIONAL] Call, if input was capturing before this component
-- Example: scroll is start scrolling, so you need unhover button
function Component:on_input_interrupt()
end
-- Call, if game lost focus
-- [OPTIONAL] Call, if game lost focus
function Component:on_focus_lost()
end
-- Call, if game gained focus
-- [OPTIONAL] Call, if game gained focus
function Component:on_focus_gained()
end
-- Call on component remove or on druid:final
-- [OPTIONAL] Call on component remove or on druid:final
function Component:on_remove()
end