diff --git a/docs/index.html b/docs/index.html index 3ffa283..c7116f4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,6 +36,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -93,6 +94,10 @@ druid.checkbox_group Checkbox group module + + druid.drag + Component to handle drag action on node. + druid.grid Component to handle placing components by row and columns. @@ -195,7 +200,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/component.html b/docs/modules/component.html index 37fd89c..aae8da2 100644 --- a/docs/modules/component.html +++ b/docs/modules/component.html @@ -43,6 +43,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -478,7 +479,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.back_handler.html b/docs/modules/druid.back_handler.html index 0bc2cc0..7e95a33 100644 --- a/docs/modules/druid.back_handler.html +++ b/docs/modules/druid.back_handler.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -217,7 +218,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.blocker.html b/docs/modules/druid.blocker.html index 02feafd..721f904 100644 --- a/docs/modules/druid.blocker.html +++ b/docs/modules/druid.blocker.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -236,7 +237,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.button.html b/docs/modules/druid.button.html index b59dd1c..883e585 100644 --- a/docs/modules/druid.button.html +++ b/docs/modules/druid.button.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -416,7 +417,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.checkbox.html b/docs/modules/druid.checkbox.html index 1411d1c..ea9bf32 100644 --- a/docs/modules/druid.checkbox.html +++ b/docs/modules/druid.checkbox.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -279,7 +280,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.checkbox_group.html b/docs/modules/druid.checkbox_group.html index 0a7c625..ee56ba9 100644 --- a/docs/modules/druid.checkbox_group.html +++ b/docs/modules/druid.checkbox_group.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -241,7 +242,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.drag.html b/docs/modules/druid.drag.html index ae4e709..a25b190 100644 --- a/docs/modules/druid.drag.html +++ b/docs/modules/druid.drag.html @@ -279,7 +279,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-05-04 00:06:50 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.grid.html b/docs/modules/druid.grid.html index 0a0ae13..a487fda 100644 --- a/docs/modules/druid.grid.html +++ b/docs/modules/druid.grid.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -372,7 +373,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.helper.html b/docs/modules/druid.helper.html index 822ba15..e05799f 100644 --- a/docs/modules/druid.helper.html +++ b/docs/modules/druid.helper.html @@ -43,6 +43,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -100,6 +101,18 @@ get_pivot_offset(pivot) Get node offset for given gui pivot + + helper..is_mobile() + Check if device is mobile (Android or iOS) + + + is_web() + Check if device is HTML5 + + + get_border() + Distance from node to size border +
    @@ -230,6 +243,53 @@ + +
    + + helper..is_mobile() +
    +
    + Check if device is mobile (Android or iOS) + + + + + + + +
    +
    + + is_web() +
    +
    + Check if device is HTML5 + + + + + + + +
    +
    + + get_border() +
    +
    + Distance from node to size border + + + +

    Returns:

    +
      + + vector4 (left, top, right, down) +
    + + + +
    @@ -238,7 +298,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.hover.html b/docs/modules/druid.hover.html index 5313e41..7d36b64 100644 --- a/docs/modules/druid.hover.html +++ b/docs/modules/druid.hover.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -213,7 +214,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.html b/docs/modules/druid.html index 021f3db..ea8c216 100644 --- a/docs/modules/druid.html +++ b/docs/modules/druid.html @@ -43,6 +43,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -114,7 +115,9 @@ set_text_function(callback) - Set text function. + Set text function + Druid locale component will call this function + to get translated text. set_sound_function(callback) @@ -226,9 +229,9 @@ set_text_function(callback)
    - Set text function. + Set text function Druid locale component will call this function - to get translated text. After settextfuntion + to get translated text. After settextfuntion all existing locale component will be updated @@ -326,7 +329,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.input.html b/docs/modules/druid.input.html index 8f6b84b..737bc3d 100644 --- a/docs/modules/druid.input.html +++ b/docs/modules/druid.input.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -96,11 +97,11 @@ Return current input field text - set_max_length(max_length, Self) + set_max_length(max_length) Set maximum length for input field. - set_allowerd_characters(characters, Self) + set_allowerd_characters(characters) Set allowed charaters for input field. @@ -174,7 +175,7 @@
    - set_max_length(max_length, Self) + set_max_length(max_length)
    Set maximum length for input field. @@ -187,12 +188,14 @@ number Maximum length for input text field -
  • Self - druid.input - instance to make chain calls -
  • +

    Returns:

    +
      + + druid.input + Self instance to make chain calls +
    @@ -200,7 +203,7 @@
    - set_allowerd_characters(characters, Self) + set_allowerd_characters(characters)
    Set allowed charaters for input field. @@ -214,12 +217,14 @@ string Regulax exp. for validate user input -
  • Self - druid.input - instance to make chain calls -
  • +

    Returns:

    +
      + + druid.input + Self instance to make chain calls +
    @@ -383,7 +388,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.lang_text.html b/docs/modules/druid.lang_text.html index 3ffaa4c..8345b88 100644 --- a/docs/modules/druid.lang_text.html +++ b/docs/modules/druid.lang_text.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -242,7 +243,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.progress.html b/docs/modules/druid.progress.html index 2181941..60b3a72 100644 --- a/docs/modules/druid.progress.html +++ b/docs/modules/druid.progress.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -381,7 +382,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.radio_group.html b/docs/modules/druid.radio_group.html index e2de393..65b2d6f 100644 --- a/docs/modules/druid.radio_group.html +++ b/docs/modules/druid.radio_group.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -241,7 +242,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.scroll.html b/docs/modules/druid.scroll.html index a4b9263..e9aae94 100644 --- a/docs/modules/druid.scroll.html +++ b/docs/modules/druid.scroll.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -89,40 +90,48 @@

    Functions

    - - + + - + + + + + - - + + - - + + - - + + - - + + - - + + + + + +
    init(scroll_parent, input_zone)Component init functioninit(view_node, content_node)Scroll constructor.
    scroll_to(vector3[, is_instant])Start scroll to target pointStart scroll to target point.
    scroll_to_index(index[, skip_cb])Scroll to item in scroll by point index.
    scroll_to_percent(vector3[, is_instant]) Start scroll to target scroll percent
    init(index[, skip_cb])Scroll to item in scroll by point indexget_percent()Return current scroll progress status.
    set_points(points)Set points of interest.set_size(size)Set scroll content size.
    set_inert(state) Enable or disable scroll inert.
    on_point_move(callback)Set the callback on scrolling to point (if exist)is_inert()Return if scroll have inertion.
    set_border(border)Set the scroll possibly areaset_extra_strech_size(stretch_size)Set extra size for scroll stretching.
    get_scroll_percent()Return current scroll progressget_scroll_size()Return vector of scroll size with width and height.
    set_points(points)Set points of interest.

    Tables

    @@ -150,21 +159,21 @@
    - init(scroll_parent, input_zone) + init(view_node, content_node)
    - Component init function + Scroll constructor.

    Parameters:

      -
    • scroll_parent +
    • view_node node - Gui node where placed scroll content. This node will change position + GUI view scroll node
    • -
    • input_zone +
    • content_node node - Gui node where input is catched + GUI content scroll node
    @@ -178,18 +187,18 @@ scroll_to(vector3[, is_instant])
    - Start scroll to target point + Start scroll to target point.

    Parameters:

    • vector3 point - target point + Target point
    • is_instant bool - instant scroll flag + Instant scroll flag (optional)
    @@ -203,6 +212,32 @@
  • scroll:scroll_to(vmath.vector3(0), true)
  • +
    +
    + + scroll_to_index(index[, skip_cb]) +
    +
    + Scroll to item in scroll by point index. + + +

    Parameters:

    +
      +
    • index + number + Point index +
    • +
    • skip_cb + bool + If true, skip the point callback + (optional) +
    • +
    + + + + +
    @@ -235,48 +270,49 @@
    - - init(index[, skip_cb]) + + get_percent()
    - Scroll to item in scroll by point index + Return current scroll progress status. + Values will be in [0..1] interval -

    Parameters:

    - +

    Returns:

    +
      + + vector3 + New vector with scroll progress values +
    - - set_points(points) + + set_size(size)
    - Set points of interest. - Scroll will always centered on closer points + Set scroll content size. + It will change content gui node size

    Parameters:

    +

    Returns:

    +
      + + druid.scroll + Self instance +
    @@ -300,59 +336,71 @@ +

    Returns:

    +
      + + druid.scroll + Self instance +
    - - on_point_move(callback) + + is_inert()
    - Set the callback on scrolling to point (if exist) + Return if scroll have inertion. + + + +

    Returns:

    +
      + + bool + If scroll have inertion +
    + + + + +
    +
    + + set_extra_strech_size(stretch_size) +
    +
    + Set extra size for scroll stretching. + Set 0 to disable stretching effect

    Parameters:

    +

    Returns:

    +
      + + druid.scroll + Self instance +
    - - set_border(border) + + get_scroll_size()
    - Set the scroll possibly area - - -

    Parameters:

    - - - - - - -
    -
    - - get_scroll_percent() -
    -
    - Return current scroll progress + Return vector of scroll size with width and height. @@ -360,7 +408,35 @@
      vector3 - Scroll progress + Available scroll size +
    + + + + +
    +
    + + set_points(points) +
    +
    + Set points of interest. + Scroll will always centered on closer points + + +

    Parameters:

    + + +

    Returns:

    +
      + + druid.scroll + Self instance
    @@ -410,42 +486,51 @@

    Fields:

    @@ -479,13 +564,9 @@ number Multiplier for inertion speed -
  • DEADZONE +
  • POINTS_DEADZONE number - Deadzone for start scrol in pixels -
  • -
  • SOFT_ZONE_SIZE - number - Size of outside zone in pixels (for scroll back moving) + Speed to check points of interests in no_inertion mode
  • BACK_SPEED number @@ -495,6 +576,14 @@ number Scroll gui.animation speed for scroll_to function
  • +
  • EXTRA_STRECH_SIZE + number + extra size in pixels outside of scroll (stretch effect) +
  • +
  • SMALL_CONTENT_SCROLL + bool + If true, content node with size less than view node size can be scrolled +
  • @@ -509,7 +598,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.slider.html b/docs/modules/druid.slider.html index 2c42e44..c81ac6e 100644 --- a/docs/modules/druid.slider.html +++ b/docs/modules/druid.slider.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -280,7 +281,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.swipe.html b/docs/modules/druid.swipe.html index 15505fb..6589bc4 100644 --- a/docs/modules/druid.swipe.html +++ b/docs/modules/druid.swipe.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -250,7 +251,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.text.html b/docs/modules/druid.text.html index 15e8ccc..a081325 100644 --- a/docs/modules/druid.text.html +++ b/docs/modules/druid.text.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -309,7 +310,7 @@

    Returns:

      - boolean + bool Is text node with line break
    @@ -406,7 +407,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid.timer.html b/docs/modules/druid.timer.html index 3bf0f9d..c1ad7b9 100644 --- a/docs/modules/druid.timer.html +++ b/docs/modules/druid.timer.html @@ -44,6 +44,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -295,7 +296,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid_event.html b/docs/modules/druid_event.html index df96371..877e8bc 100644 --- a/docs/modules/druid_event.html +++ b/docs/modules/druid_event.html @@ -43,6 +43,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -241,7 +242,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/modules/druid_instance.html b/docs/modules/druid_instance.html index 0a4c8b4..ad27765 100644 --- a/docs/modules/druid_instance.html +++ b/docs/modules/druid_instance.html @@ -43,6 +43,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -96,6 +97,7 @@
  • druid.checkbox_group
  • druid.radio_group
  • druid.swipe
  • +
  • druid.drag
  • @@ -880,7 +882,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/01-components.md.html b/docs/topics/01-components.md.html index 9b1000c..7f48b5e 100644 --- a/docs/topics/01-components.md.html +++ b/docs/topics/01-components.md.html @@ -68,6 +68,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -412,7 +413,7 @@ Key is value from druid const: const.SIDE.X (or just "x") or const.SIDE.Y (or ju
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/02-creating_custom_components.md.html b/docs/topics/02-creating_custom_components.md.html index 0251ceb..67a5e37 100644 --- a/docs/topics/02-creating_custom_components.md.html +++ b/docs/topics/02-creating_custom_components.md.html @@ -56,6 +56,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -244,7 +245,7 @@ There is next interests in druid:
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/03-styles.md.html b/docs/topics/03-styles.md.html index 8d2a391..8bdb3b1 100644 --- a/docs/topics/03-styles.md.html +++ b/docs/topics/03-styles.md.html @@ -54,6 +54,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -134,7 +135,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/04-druid_assets.md.html b/docs/topics/04-druid_assets.md.html index 227822d..738e4fb 100644 --- a/docs/topics/04-druid_assets.md.html +++ b/docs/topics/04-druid_assets.md.html @@ -53,6 +53,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -91,7 +92,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/05-examples.md.html b/docs/topics/05-examples.md.html index 28a3d17..187c016 100644 --- a/docs/topics/05-examples.md.html +++ b/docs/topics/05-examples.md.html @@ -53,6 +53,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -89,7 +90,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/README.md.html b/docs/topics/README.md.html index f57e3ae..2205ddb 100644 --- a/docs/topics/README.md.html +++ b/docs/topics/README.md.html @@ -63,6 +63,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -336,7 +337,7 @@ https://insality.github.io/druid/

    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46
    diff --git a/docs/topics/changelog.md.html b/docs/topics/changelog.md.html index 9eba3e8..2cfc3d9 100644 --- a/docs/topics/changelog.md.html +++ b/docs/topics/changelog.md.html @@ -49,6 +49,7 @@
  • druid.button
  • druid.checkbox
  • druid.checkbox_group
  • +
  • druid.drag
  • druid.grid
  • druid.hover
  • druid.input
  • @@ -75,7 +76,7 @@

    Druid 0.3.0:

    @@ -125,7 +162,7 @@
    generated by LDoc 1.4.6 -Last updated 2020-04-18 14:39:17 +Last updated 2020-05-04 00:51:46