diff --git a/README.md b/README.md index d86c1b9..1642bd5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - [![](media/druid_logo.png)](https://insality.github.io/druid/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/insality/druid)](https://github.com/Insality/druid/releases) @@ -244,8 +243,6 @@ _You published your game and you using Druid? Note me!_ - Original idea by [AGulev](https://github.com/AGulev) - Assets from [Kenney](http://www.kenney.nl/) -**MIT** License - ## Issues and suggestions diff --git a/docs_md/02-creating_custom_components.md b/docs_md/02-creating_custom_components.md index 43c1cf7..9b93470 100644 --- a/docs_md/02-creating_custom_components.md +++ b/docs_md/02-creating_custom_components.md @@ -11,7 +11,6 @@ Every component is the children of Basic Druid component. Read the [basic compon Basic custom component template looks like this: ```lua -local const = require("druid.const") local component = require("druid.component") local M = component.create("my_component") @@ -20,11 +19,11 @@ local M = component.create("my_component") function M.init(self, ...) end --- Call only if exist interest: const.ON_UPDATE +-- Call only if exist interest: component.ON_UPDATE function M.update(self, dt) end --- Call only if exist interest: const.ON_INPUT or const.ON_INPUT_HIGH +-- Call only if exist interest: component.ON_INPUT or component.ON_INPUT_HIGH function M.on_input(self, action_id, action) end @@ -32,7 +31,7 @@ end function M.on_style_change(self, style) end --- Call only if exist interest: const.ON_MESSAGE +-- Call only if exist interest: component.ON_MESSAGE function M.on_message(self, message_id, message, sender) end diff --git a/docs_md/changelog.md b/docs_md/changelog.md index e827bb9..177c2d1 100644 --- a/docs_md/changelog.md +++ b/docs_md/changelog.md @@ -143,6 +143,7 @@ Desc - **#103** Add `helper.centate_nodes` function. It can horizontal align several Box and Text nodes - **#105** Add `Input:select` and `Input:unselect` function. - **#106** Add `Input IS_UNSELECT_ON_RESELECT` style param. If true, it will be unselect input on click on input box, not only on outside click. +- **#108** Add component interests const to `component.lua` - **#116** You can pass Text component in Input component instead of text node - **#124** Add `Scroll:set_click_zone` function. This is just link to `Drag:set_click_zone` function inside scroll component. - **#102** __[BREAKING]__ Removed `component:increase_input_priority` component function. Use `component:set_input_priority` function instead. The bigger priority value processed first. The value 10 is default for Druid components, the 100 value is maximum priority for acquire input in _drag_ and _input_ components