mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Update docs and changelog
This commit is contained in:
parent
c903000f83
commit
12dcdd970b
@ -1,4 +1,3 @@
|
||||
|
||||
[](https://insality.github.io/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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user