diff --git a/docs/index.html b/docs/index.html index 0b8f119..7d3b373 100644 --- a/docs/index.html +++ b/docs/index.html @@ -185,7 +185,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/component.html b/docs/modules/component.html index f3a81e9..c703735 100644 --- a/docs/modules/component.html +++ b/docs/modules/component.html @@ -406,7 +406,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.back_handler.html b/docs/modules/druid.back_handler.html index eaa9c22..061853f 100644 --- a/docs/modules/druid.back_handler.html +++ b/docs/modules/druid.back_handler.html @@ -215,7 +215,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.blocker.html b/docs/modules/druid.blocker.html index d821b0d..bf2dcfb 100644 --- a/docs/modules/druid.blocker.html +++ b/docs/modules/druid.blocker.html @@ -234,7 +234,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.button.html b/docs/modules/druid.button.html index 33d7a61..9273823 100644 --- a/docs/modules/druid.button.html +++ b/docs/modules/druid.button.html @@ -405,7 +405,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.checkbox.html b/docs/modules/druid.checkbox.html index eb4d359..0d56299 100644 --- a/docs/modules/druid.checkbox.html +++ b/docs/modules/druid.checkbox.html @@ -277,7 +277,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.checkbox_group.html b/docs/modules/druid.checkbox_group.html index f546f95..1636a4b 100644 --- a/docs/modules/druid.checkbox_group.html +++ b/docs/modules/druid.checkbox_group.html @@ -239,7 +239,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.grid.html b/docs/modules/druid.grid.html index 026b001..85fc6c0 100644 --- a/docs/modules/druid.grid.html +++ b/docs/modules/druid.grid.html @@ -370,7 +370,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.helper.html b/docs/modules/druid.helper.html index f89fcdb..d4f4125 100644 --- a/docs/modules/druid.helper.html +++ b/docs/modules/druid.helper.html @@ -236,7 +236,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.hover.html b/docs/modules/druid.hover.html index 7114a9a..39a0670 100644 --- a/docs/modules/druid.hover.html +++ b/docs/modules/druid.hover.html @@ -211,7 +211,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.html b/docs/modules/druid.html index e1661a0..b7c0412 100644 --- a/docs/modules/druid.html +++ b/docs/modules/druid.html @@ -181,7 +181,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.input.html b/docs/modules/druid.input.html index d44bd0b..7847d31 100644 --- a/docs/modules/druid.input.html +++ b/docs/modules/druid.input.html @@ -86,7 +86,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.lang_text.html b/docs/modules/druid.lang_text.html index 19324ec..79e417c 100644 --- a/docs/modules/druid.lang_text.html +++ b/docs/modules/druid.lang_text.html @@ -240,7 +240,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.progress.html b/docs/modules/druid.progress.html index 98444fd..30ecee2 100644 --- a/docs/modules/druid.progress.html +++ b/docs/modules/druid.progress.html @@ -378,7 +378,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.radio_group.html b/docs/modules/druid.radio_group.html index 7daa804..c0d19cf 100644 --- a/docs/modules/druid.radio_group.html +++ b/docs/modules/druid.radio_group.html @@ -239,7 +239,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.scroll.html b/docs/modules/druid.scroll.html index 83bf1f9..8bf1938 100644 --- a/docs/modules/druid.scroll.html +++ b/docs/modules/druid.scroll.html @@ -507,7 +507,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.slider.html b/docs/modules/druid.slider.html index e1ee7ff..c2f9507 100644 --- a/docs/modules/druid.slider.html +++ b/docs/modules/druid.slider.html @@ -278,7 +278,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.text.html b/docs/modules/druid.text.html index 78ac2f2..3e5a60a 100644 --- a/docs/modules/druid.text.html +++ b/docs/modules/druid.text.html @@ -352,7 +352,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid.timer.html b/docs/modules/druid.timer.html index ce0ba1d..610f4d2 100644 --- a/docs/modules/druid.timer.html +++ b/docs/modules/druid.timer.html @@ -307,7 +307,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid_event.html b/docs/modules/druid_event.html index 2e568e6..dbcf349 100644 --- a/docs/modules/druid_event.html +++ b/docs/modules/druid_event.html @@ -239,7 +239,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/modules/druid_instance.html b/docs/modules/druid_instance.html index 9f5def3..73f99bf 100644 --- a/docs/modules/druid_instance.html +++ b/docs/modules/druid_instance.html @@ -750,7 +750,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/topics/01-components.md.html b/docs/topics/01-components.md.html index f0b9fbc..61c39ad 100644 --- a/docs/topics/01-components.md.html +++ b/docs/topics/01-components.md.html @@ -92,23 +92,66 @@

Button

-

Basic game button

+

Basic Druid input component

+ +

Text

-

Wrap on text node with text size adjusting

+

Basic Druid text component

+ +

Blocker

-

Block input in node zone

+

Druid component for block input

+ +

It can be used for block input in special zone.

+ +

Example: +

+ +

Blue zone is button with close_window callback

+ +

Yellow zone is blocker with window content

+ +

So you can do the safe zones, when you have the big buttons

Back Handler

-

Handle back button (Android, backspace)

+

Component to handle back button

+ +

It works on Android back button and Backspace. Key triggers in input.binding should be setup

Locale

-

Text component with handle localization system

+

Wrap on Druid text component to handle localization

Timer

@@ -155,7 +198,7 @@
generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
diff --git a/docs/topics/02-creating_custom_components.md.html b/docs/topics/02-creating_custom_components.md.html index ad82742..242991d 100644 --- a/docs/topics/02-creating_custom_components.md.html +++ b/docs/topics/02-creating_custom_components.md.html @@ -35,6 +35,7 @@
  • Overview
  • Custom components
  • Best practice on custom components
  • +
  • Power of using templates
  • @@ -80,18 +81,20 @@

    Overview

    +

    Druid allows you to create your custom components from druid basic components or other custom components

    Custom components

    +

    Basic custom component template looks like this:

     local const = require("druid.const")
     local component = require("druid.component")
     
    -local M = component.create("your_component")
    +local M = component.create("name_your_component")
     
     -- Component constructor
     function M.init(self, ...)
    @@ -150,7 +153,7 @@ There is next interests in druid:
     
     

    Best practice on custom components

    -

    On each component recomended describe component scheme in next way:

    +

    On each component recommended describe component scheme in next way:

    @@ -160,9 +163,9 @@ There is next interests in druid:
     local M = component.create("your_component")
     
     local SCHEME = {
    -    ROOT = "/root",
    -    ITEM = "/item",
    -    TITLE = "/title"
    +    ROOT = "root",
    +    ITEM = "item",
    +    TITLE = "title"
     }
     
     function M.init(self, template_name, node_table)
    @@ -189,11 +192,17 @@ There is next interests in druid:
     
     
     
    +

    +

    Power of using templates

    + +

    You can use one component, but creating and customizing templates for them. Templates only requires to match the component scheme.

    + +
    generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
    diff --git a/docs/topics/03-styles.md.html b/docs/topics/03-styles.md.html index 2cda9d2..b4eb753 100644 --- a/docs/topics/03-styles.md.html +++ b/docs/topics/03-styles.md.html @@ -138,7 +138,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
    diff --git a/docs/topics/04-druid_assets.md.html b/docs/topics/04-druid_assets.md.html index d1b551b..f75ffee 100644 --- a/docs/topics/04-druid_assets.md.html +++ b/docs/topics/04-druid_assets.md.html @@ -89,7 +89,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
    diff --git a/docs/topics/05-examples.md.html b/docs/topics/05-examples.md.html index 5c7839a..b62e37b 100644 --- a/docs/topics/05-examples.md.html +++ b/docs/topics/05-examples.md.html @@ -87,7 +87,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-03-22 02:23:51 +Last updated 2020-03-22 12:55:11
    diff --git a/docs/topics/README.md.html b/docs/topics/README.md.html index bb9eeb2..78e9d71 100644 --- a/docs/topics/README.md.html +++ b/docs/topics/README.md.html @@ -34,7 +34,9 @@