diff --git a/README.md b/README.md
index c40d6f2..e186b98 100644
--- a/README.md
+++ b/README.md
@@ -137,7 +137,10 @@ end
Create a new lua file to create a new widget class. This widget can be created with `self.druid:new_widget(widget_class, [template], [nodes])`
+Usually this widget lua file is placed nearby with the `GUI` file it belong to and have the same name.
+
```lua
+---@class your_widget_class: druid.widget
local M = {}
function M:init()
@@ -155,18 +158,13 @@ return M
### API Documentation
-**Druid** offers a wide range of components and functions. To facilitate usage, **Druid** provides comprehensive API documentation with examples and annotations.
+Best start is from the [Quick API Reference](api/quick_api_reference.md)
-Start reading the API documentation [here](https://insality.github.io/druid/modules/Druid.html).
+With next quick links:
-**Druid** provide the *EmmyLua* annotations to add autocomplete inside your IDE. Check [EmmyLua Setup here](docs_md/advanced-setup.md#emmylua-annotations).
-
-
-### Create custom components
-
-If you want to create your own components, refer to the [Create Custom Components](docs_md/02-creating_custom_components.md) section in the documentation.
-
-Custom components are one of the most powerful features of **Druid**. They allow you to create your own components effortlessly and utilize them in your game.
+- [Druid Instance](api/druid_instance_api.md) - **Druid** instance returned from `druid.new(self)`
+- [Helper](api/helper_api.md) - A lot of useful functions
+- [Widgets](wiki/widgets.md) - All widgets with examples
## Druid Components
@@ -208,10 +206,24 @@ All **Druid** components using [Defold Event](https://github.com/Insality/defold
- **event:unsubscribe**(callback)
-- **event:clear**()
-
You can subscribe several callbacks to a single event.
+Examples:
+
+```lua
+button.on_click_event:subscribe(function(self, args)
+ print("Button clicked!")
+end)
+
+scroll.on_scroll:subscribe(function(self, position)
+ print("Scroll scrolled!")
+end)
+
+input.on_input_unselect:subscribe(function(self, text)
+ print("User enter input:", text)
+end)
+```
+
## Details
- **Druid** processes input in a stack-based manner. The most recently created button will be checked first. Create your input GUI components from back to front.
@@ -230,15 +242,15 @@ Or refer directly to the [**example folder**](https://github.com/Insality/druid/
## Documentation
+You can find the full **Druid** functions at [Quick API Reference](api/quick_api_reference.md)
+
To better understand **Druid**, read the following documentation:
- [How To GUI in Defold](https://forum.defold.com/t/how-to-gui-in-defold/73256)
+- [Widgets](wiki/widgets.md)
- [Druid components](docs_md/01-components.md)
- [Create custom components](docs_md/02-creating_custom_components.md)
-- [See FAQ article](docs_md/FAQ.md)
- [Druid styles](docs_md/03-styles.md)
-You can find the full **Druid** [documentation here](https://insality.github.io/druid/modules/Druid.html).
-
## Licenses
diff --git a/api/components/widgets/fps_panel_api.md b/api/components/widgets/fps_panel_api.md
index e69de29..273120d 100644
--- a/api/components/widgets/fps_panel_api.md
+++ b/api/components/widgets/fps_panel_api.md
@@ -0,0 +1,97 @@
+# druid.widget.fps_panel API
+
+> at /druid/widget/fps_panel/fps_panel.lua
+
+
+## Functions
+- [init](#init)
+- [on_remove](#on_remove)
+- [update](#update)
+- [push_fps_value](#push_fps_value)
+
+
+## Fields
+- [root](#root)
+- [delta_time](#delta_time)
+- [collect_time](#collect_time)
+- [collect_time_counter](#collect_time_counter)
+- [graph_samples](#graph_samples)
+- [fps_samples](#fps_samples)
+- [mini_graph](#mini_graph)
+- [text_min_fps](#text_min_fps)
+- [text_fps](#text_fps)
+- [timer_id](#timer_id)
+- [previous_time](#previous_time)
+
+
+
+### init
+
+---
+```lua
+fps_panel:init()
+```
+
+### on_remove
+
+---
+```lua
+fps_panel:on_remove()
+```
+
+### update
+
+---
+```lua
+fps_panel:update([dt])
+```
+
+- **Parameters:**
+ - `[dt]` *(any)*:
+
+### push_fps_value
+
+---
+```lua
+fps_panel:push_fps_value()
+```
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **delta_time** (_number_): in seconds
+
+
+- **collect_time** (_integer_): in seconds
+
+
+- **collect_time_counter** (_integer_)
+
+
+- **graph_samples** (_number_)
+
+
+- **fps_samples** (_table_): Store frame time in seconds last collect_time seconds
+
+
+- **mini_graph** (_druid.widget.mini_graph_): Widget to display a several lines with different height in a row
+Init, set amount of samples and max value of value means that the line will be at max height
+Use `push_line_value` to add a new value to the line
+Or `set_line_value` to set a value to the line by index
+Setup colors inside template file (at minimum and maximum)
+
+
+- **text_min_fps** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **text_fps** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **timer_id** (_unknown_)
+
+
+- **previous_time** (_unknown_)
+
diff --git a/api/components/widgets/memory_panel_api.md b/api/components/widgets/memory_panel_api.md
index e69de29..a530bc8 100644
--- a/api/components/widgets/memory_panel_api.md
+++ b/api/components/widgets/memory_panel_api.md
@@ -0,0 +1,105 @@
+# druid.widget.memory_panel API
+
+> at /druid/widget/memory_panel/memory_panel.lua
+
+
+## Functions
+- [init](#init)
+- [on_remove](#on_remove)
+- [set_low_memory_limit](#set_low_memory_limit)
+- [push_next_value](#push_next_value)
+- [update_text_memory](#update_text_memory)
+
+
+## Fields
+- [root](#root)
+- [delta_time](#delta_time)
+- [samples_count](#samples_count)
+- [memory_limit](#memory_limit)
+- [mini_graph](#mini_graph)
+- [max_value](#max_value)
+- [text_per_second](#text_per_second)
+- [text_memory](#text_memory)
+- [memory](#memory)
+- [memory_samples](#memory_samples)
+- [timer_id](#timer_id)
+
+
+
+### init
+
+---
+```lua
+memory_panel:init()
+```
+
+### on_remove
+
+---
+```lua
+memory_panel:on_remove()
+```
+
+### set_low_memory_limit
+
+---
+```lua
+memory_panel:set_low_memory_limit([limit])
+```
+
+- **Parameters:**
+ - `[limit]` *(any)*:
+
+### push_next_value
+
+---
+```lua
+memory_panel:push_next_value()
+```
+
+### update_text_memory
+
+---
+```lua
+memory_panel:update_text_memory()
+```
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **delta_time** (_number_)
+
+
+- **samples_count** (_integer_)
+
+
+- **memory_limit** (_integer_)
+
+
+- **mini_graph** (_druid.widget.mini_graph_): Widget to display a several lines with different height in a row
+Init, set amount of samples and max value of value means that the line will be at max height
+Use `push_line_value` to add a new value to the line
+Or `set_line_value` to set a value to the line by index
+Setup colors inside template file (at minimum and maximum)
+
+
+- **max_value** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **text_per_second** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **text_memory** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **memory** (_unknown_)
+
+
+- **memory_samples** (_table_)
+
+
+- **timer_id** (_unknown_)
+
diff --git a/api/components/widgets/mini_graph_api.md b/api/components/widgets/mini_graph_api.md
index 38416e1..e34291e 100644
--- a/api/components/widgets/mini_graph_api.md
+++ b/api/components/widgets/mini_graph_api.md
@@ -1,4 +1,4 @@
-# widget.mini_graph API
+# druid.widget.mini_graph API
> at /druid/widget/mini_graph/mini_graph.lua
@@ -8,8 +8,6 @@ Use `push_line_value` to add a new value to the line
Or `set_line_value` to set a value to the line by index
Setup colors inside template file (at minimum and maximum)
-## Table of Contents
-
## Functions
- [init](#init)
@@ -96,8 +94,6 @@ mini_graph:set_line_value(index, value)
```
Set normalized to control the color of the line
- for index = 1, mini_graph:get_samples() do
- end
- **Parameters:**
- `index` *(number)*:
@@ -106,7 +102,9 @@ Set normalized to control the color of the line
- **Example Usage:**
```lua
-mini_graph:set_line_value(index, math.random())
+for index = 1, mini_graph:get_samples() do
+ mini_graph:set_line_value(index, math.random())
+end
```
### get_line_value
@@ -184,7 +182,7 @@ mini_graph:toggle_hide()
```
- **Returns:**
- - `` *(widget.mini_graph)*:
+ - `` *(druid.widget.mini_graph)*:
## Fields
@@ -192,7 +190,7 @@ mini_graph:toggle_hide()
- **root** (_node_)
-- **text_header** (_druid.text_)
+- **text_header** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
- **icon_drag** (_node_)
@@ -201,7 +199,7 @@ mini_graph:toggle_hide()
- **content** (_node_)
-- **layout** (_druid.layout_)
+- **layout** (_druid.layout_): The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node
- **prefab_line** (_node_)
@@ -225,7 +223,7 @@ mini_graph:toggle_hide()
- **values** (_table_)
-- **container** (_druid.container_)
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
- **default_size** (_vector3_)
diff --git a/api/components/widgets/node_repeat_api.md b/api/components/widgets/node_repeat_api.md
deleted file mode 100644
index e69de29..0000000
diff --git a/api/components/widgets/properties_panel/property_button_api.md b/api/components/widgets/properties_panel/property_button_api.md
new file mode 100644
index 0000000..fd9daa4
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_button_api.md
@@ -0,0 +1,97 @@
+# druid.widget.property_button API
+
+> at /druid/widget/properties_panel/properties/property_button.lua
+
+
+## Functions
+- [init](#init)
+- [on_click](#on_click)
+- [set_text_property](#set_text_property)
+- [set_text_button](#set_text_button)
+- [set_color](#set_color)
+
+
+## Fields
+- [root](#root)
+- [container](#container)
+- [text_name](#text_name)
+- [button](#button)
+- [text_button](#text_button)
+- [druid](#druid)
+- [selected](#selected)
+
+
+
+### init
+
+---
+```lua
+property_button:init()
+```
+
+### on_click
+
+---
+```lua
+property_button:on_click()
+```
+
+### set_text_property
+
+---
+```lua
+property_button:set_text_property(text)
+```
+
+- **Parameters:**
+ - `text` *(string)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_button)*:
+
+### set_text_button
+
+---
+```lua
+property_button:set_text_button(text)
+```
+
+- **Parameters:**
+ - `text` *(string)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_button)*:
+
+### set_color
+
+---
+```lua
+property_button:set_color([color_value])
+```
+
+- **Parameters:**
+ - `[color_value]` *(any)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **text_button** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **selected** (_node_)
+
diff --git a/api/components/widgets/properties_panel/property_checkbox_api.md b/api/components/widgets/properties_panel/property_checkbox_api.md
new file mode 100644
index 0000000..95cf50c
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_checkbox_api.md
@@ -0,0 +1,112 @@
+
+# druid.widget.property_checkbox API
+
+> at /druid/widget/properties_panel/properties/property_checkbox.lua
+
+
+## Functions
+- [init](#init)
+- [set_value](#set_value)
+- [get_value](#get_value)
+- [on_click](#on_click)
+- [set_text_property](#set_text_property)
+- [on_change](#on_change)
+
+
+## Fields
+- [root](#root)
+- [druid](#druid)
+- [text_name](#text_name)
+- [button](#button)
+- [selected](#selected)
+- [icon](#icon)
+- [container](#container)
+- [on_change_value](#on_change_value)
+
+
+
+### init
+
+---
+```lua
+property_checkbox:init()
+```
+
+### set_value
+
+---
+```lua
+property_checkbox:set_value(value, [is_instant])
+```
+
+- **Parameters:**
+ - `value` *(boolean)*:
+ - `[is_instant]` *(any)*:
+
+### get_value
+
+---
+```lua
+property_checkbox:get_value()
+```
+
+- **Returns:**
+ - `` *(boolean)*:
+
+### on_click
+
+---
+```lua
+property_checkbox:on_click()
+```
+
+### set_text_property
+
+---
+```lua
+property_checkbox:set_text_property(text)
+```
+
+Set the text property of the checkbox
+
+- **Parameters:**
+ - `text` *(string)*:
+
+### on_change
+
+---
+```lua
+property_checkbox:on_change(callback)
+```
+
+Set the callback function for when the checkbox value changes
+
+- **Parameters:**
+ - `callback` *(function)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **selected** (_node_)
+
+
+- **icon** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **on_change_value** (_unknown_)
+
diff --git a/api/components/widgets/properties_panel/property_input_api.md b/api/components/widgets/properties_panel/property_input_api.md
new file mode 100644
index 0000000..8e5fdfe
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_input_api.md
@@ -0,0 +1,90 @@
+# druid.widget.property_input API
+
+> at /druid/widget/properties_panel/properties/property_input.lua
+
+
+## Functions
+- [init](#init)
+- [set_text_property](#set_text_property)
+- [set_text_value](#set_text_value)
+- [on_change](#on_change)
+
+
+## Fields
+- [root](#root)
+- [container](#container)
+- [text_name](#text_name)
+- [button](#button)
+- [druid](#druid)
+- [selected](#selected)
+- [rich_input](#rich_input)
+
+
+
+### init
+
+---
+```lua
+property_input:init()
+```
+
+### set_text_property
+
+---
+```lua
+property_input:set_text_property(text)
+```
+
+- **Parameters:**
+ - `text` *(string)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_input)*:
+
+### set_text_value
+
+---
+```lua
+property_input:set_text_value(text)
+```
+
+- **Parameters:**
+ - `text` *(string|number)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_input)*:
+
+### on_change
+
+---
+```lua
+property_input:on_change(callback, [callback_context])
+```
+
+- **Parameters:**
+ - `callback` *(fun(self: druid.widget.property_input, text: string))*:
+ - `[callback_context]` *(any)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **selected** (_node_)
+
+
+- **rich_input** (_druid.rich_input_): The component that handles a rich text input field, it's a wrapper around the druid.input component
+
diff --git a/api/components/widgets/properties_panel/property_left_right_selector_api.md b/api/components/widgets/properties_panel/property_left_right_selector_api.md
new file mode 100644
index 0000000..db194e2
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_left_right_selector_api.md
@@ -0,0 +1,171 @@
+# druid.widget.property_left_right_selector API
+
+> at /druid/widget/properties_panel/properties/property_left_right_selector.lua
+
+
+## Functions
+- [init](#init)
+- [set_text](#set_text)
+- [on_button_left](#on_button_left)
+- [on_button_right](#on_button_right)
+- [add_step](#add_step)
+- [set_number_type](#set_number_type)
+- [set_array_type](#set_array_type)
+- [set_value](#set_value)
+- [get_value](#get_value)
+
+
+## Fields
+- [root](#root)
+- [druid](#druid)
+- [text_name](#text_name)
+- [button](#button)
+- [selected](#selected)
+- [value](#value)
+- [on_change_value](#on_change_value)
+- [text_value](#text_value)
+- [button_left](#button_left)
+- [button_right](#button_right)
+- [container](#container)
+- [number_type](#number_type)
+- [array_type](#array_type)
+
+
+
+### init
+
+---
+```lua
+property_left_right_selector:init()
+```
+
+### set_text
+
+---
+```lua
+property_left_right_selector:set_text([text])
+```
+
+- **Parameters:**
+ - `[text]` *(any)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_left_right_selector)*:
+
+### on_button_left
+
+---
+```lua
+property_left_right_selector:on_button_left()
+```
+
+### on_button_right
+
+---
+```lua
+property_left_right_selector:on_button_right()
+```
+
+### add_step
+
+---
+```lua
+property_left_right_selector:add_step(koef)
+```
+
+- **Parameters:**
+ - `koef` *(number)*: -1 0 1, on 0 will not move
+
+### set_number_type
+
+---
+```lua
+property_left_right_selector:set_number_type([min], [max], [is_loop], [steps])
+```
+
+- **Parameters:**
+ - `[min]` *(any)*:
+ - `[max]` *(any)*:
+ - `[is_loop]` *(any)*:
+ - `[steps]` *(any)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_left_right_selector)*:
+
+### set_array_type
+
+---
+```lua
+property_left_right_selector:set_array_type([array], [is_loop], [steps])
+```
+
+- **Parameters:**
+ - `[array]` *(any)*:
+ - `[is_loop]` *(any)*:
+ - `[steps]` *(any)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_left_right_selector)*:
+
+### set_value
+
+---
+```lua
+property_left_right_selector:set_value(value, [is_instant])
+```
+
+- **Parameters:**
+ - `value` *(string|number)*:
+ - `[is_instant]` *(any)*:
+
+### get_value
+
+---
+```lua
+property_left_right_selector:get_value()
+```
+
+- **Returns:**
+ - `` *(string|number)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **selected** (_node_)
+
+
+- **value** (_string_)
+
+
+- **on_change_value** (_event_): fun(value: string|number)
+
+
+- **text_value** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button_left** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **button_right** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **number_type** (_table_)
+
+
+- **array_type** (_table_)
+
diff --git a/api/components/widgets/properties_panel/property_slider_api.md b/api/components/widgets/properties_panel/property_slider_api.md
new file mode 100644
index 0000000..3c0cb19
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_slider_api.md
@@ -0,0 +1,150 @@
+# druid.widget.property_slider API
+
+> at /druid/widget/properties_panel/properties/property_slider.lua
+
+
+## Functions
+- [init](#init)
+- [set_text_function](#set_text_function)
+- [set_text_property](#set_text_property)
+- [on_change](#on_change)
+- [set_value](#set_value)
+- [get_value](#get_value)
+- [update_value](#update_value)
+- [set_number_type](#set_number_type)
+
+
+## Fields
+- [root](#root)
+- [container](#container)
+- [druid](#druid)
+- [text_name](#text_name)
+- [text_value](#text_value)
+- [slider](#slider)
+- [on_change_value](#on_change_value)
+- [selected](#selected)
+- [min](#min)
+- [max](#max)
+- [step](#step)
+
+
+
+### init
+
+---
+```lua
+property_slider:init()
+```
+
+### set_text_function
+
+---
+```lua
+property_slider:set_text_function(callback)
+```
+
+- **Parameters:**
+ - `callback` *(fun(value: number):string)*:
+
+### set_text_property
+
+---
+```lua
+property_slider:set_text_property(text)
+```
+
+Sets the text property of the slider
+
+- **Parameters:**
+ - `text` *(string)*:
+
+### on_change
+
+---
+```lua
+property_slider:on_change(callback)
+```
+
+Sets the callback function for when the slider value changes
+
+- **Parameters:**
+ - `callback` *(fun(value: number))*:
+
+### set_value
+
+---
+```lua
+property_slider:set_value(value, [is_instant])
+```
+
+- **Parameters:**
+ - `value` *(number)*:
+ - `[is_instant]` *(any)*:
+
+### get_value
+
+---
+```lua
+property_slider:get_value()
+```
+
+- **Returns:**
+ - `` *(number)*:
+
+### update_value
+
+---
+```lua
+property_slider:update_value([value])
+```
+
+- **Parameters:**
+ - `[value]` *(any)*:
+
+### set_number_type
+
+---
+```lua
+property_slider:set_number_type([min], [max], [step])
+```
+
+- **Parameters:**
+ - `[min]` *(any)*:
+ - `[max]` *(any)*:
+ - `[step]` *(any)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **text_value** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **slider** (_druid.slider_): The component to make a draggable node over a line with a progress report
+
+
+- **on_change_value** (_event_): fun(value:number)
+
+
+- **selected** (_node_)
+
+
+- **min** (_integer_)
+
+
+- **max** (_integer_)
+
+
+- **step** (_number_)
+
diff --git a/api/components/widgets/properties_panel/property_text_api.md b/api/components/widgets/properties_panel/property_text_api.md
new file mode 100644
index 0000000..331e1bf
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_text_api.md
@@ -0,0 +1,66 @@
+# druid.widget.property_text API
+
+> at /druid/widget/properties_panel/properties/property_text.lua
+
+
+## Functions
+- [init](#init)
+- [set_text_property](#set_text_property)
+- [set_text_value](#set_text_value)
+
+
+## Fields
+- [root](#root)
+- [container](#container)
+- [text_name](#text_name)
+- [text_right](#text_right)
+
+
+
+### init
+
+---
+```lua
+property_text:init()
+```
+
+### set_text_property
+
+---
+```lua
+property_text:set_text_property(text)
+```
+
+- **Parameters:**
+ - `text` *(string)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_text)*:
+
+### set_text_value
+
+---
+```lua
+property_text:set_text_value([text])
+```
+
+- **Parameters:**
+ - `[text]` *(string|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_text)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **text_right** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
diff --git a/api/components/widgets/properties_panel/property_vector3_api.md b/api/components/widgets/properties_panel/property_vector3_api.md
new file mode 100644
index 0000000..a7eda57
--- /dev/null
+++ b/api/components/widgets/properties_panel/property_vector3_api.md
@@ -0,0 +1,104 @@
+# druid.widget.property_vector3 API
+
+> at /druid/widget/properties_panel/properties/property_vector3.lua
+
+
+## Functions
+- [init](#init)
+- [set_text_property](#set_text_property)
+- [set_value](#set_value)
+
+
+## Fields
+- [root](#root)
+- [container](#container)
+- [text_name](#text_name)
+- [button](#button)
+- [druid](#druid)
+- [selected_x](#selected_x)
+- [selected_y](#selected_y)
+- [selected_z](#selected_z)
+- [rich_input_x](#rich_input_x)
+- [rich_input_y](#rich_input_y)
+- [rich_input_z](#rich_input_z)
+- [value](#value)
+- [on_change](#on_change)
+
+
+
+### init
+
+---
+```lua
+property_vector3:init()
+```
+
+### set_text_property
+
+---
+```lua
+property_vector3:set_text_property(text)
+```
+
+- **Parameters:**
+ - `text` *(string)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_vector3)*:
+
+### set_value
+
+---
+```lua
+property_vector3:set_value(x, y, z)
+```
+
+- **Parameters:**
+ - `x` *(number)*:
+ - `y` *(number)*:
+ - `z` *(number)*:
+
+- **Returns:**
+ - `` *(druid.widget.property_vector3)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **text_name** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **button** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **druid** (_druid.instance_): The Druid Factory used to create components
+
+
+- **selected_x** (_node_)
+
+
+- **selected_y** (_node_)
+
+
+- **selected_z** (_node_)
+
+
+- **rich_input_x** (_druid.rich_input_): The component that handles a rich text input field, it's a wrapper around the druid.input component
+
+
+- **rich_input_y** (_druid.rich_input_): The component that handles a rich text input field, it's a wrapper around the druid.input component
+
+
+- **rich_input_z** (_druid.rich_input_): The component that handles a rich text input field, it's a wrapper around the druid.input component
+
+
+- **value** (_unknown_)
+
+
+- **on_change** (_unknown_)
+
diff --git a/api/components/widgets/properties_panel_api.md b/api/components/widgets/properties_panel_api.md
index e69de29..2b82694 100644
--- a/api/components/widgets/properties_panel_api.md
+++ b/api/components/widgets/properties_panel_api.md
@@ -0,0 +1,366 @@
+# druid.widget.properties_panel API
+
+> at /druid/widget/properties_panel/properties_panel.lua
+
+
+## Functions
+- [properties_constructors](#properties_constructors)
+- [init](#init)
+- [on_remove](#on_remove)
+- [on_drag_widget](#on_drag_widget)
+- [clear_created_properties](#clear_created_properties)
+- [clear](#clear)
+- [on_size_changed](#on_size_changed)
+- [update](#update)
+- [add_checkbox](#add_checkbox)
+- [add_slider](#add_slider)
+- [add_button](#add_button)
+- [add_input](#add_input)
+- [add_text](#add_text)
+- [add_left_right_selector](#add_left_right_selector)
+- [add_vector3](#add_vector3)
+- [add_inner_widget](#add_inner_widget)
+- [add_widget](#add_widget)
+- [remove](#remove)
+- [set_hidden](#set_hidden)
+- [is_hidden](#is_hidden)
+- [set_properties_per_page](#set_properties_per_page)
+- [set_page](#set_page)
+
+
+## Fields
+- [root](#root)
+- [scroll](#scroll)
+- [layout](#layout)
+- [container](#container)
+- [container_content](#container_content)
+- [container_scroll_view](#container_scroll_view)
+- [contaienr_scroll_content](#contaienr_scroll_content)
+- [button_hidden](#button_hidden)
+- [text_header](#text_header)
+- [paginator](#paginator)
+- [properties](#properties)
+- [content](#content)
+- [default_size](#default_size)
+- [current_page](#current_page)
+- [properties_per_page](#properties_per_page)
+- [property_checkbox_prefab](#property_checkbox_prefab)
+- [property_slider_prefab](#property_slider_prefab)
+- [property_button_prefab](#property_button_prefab)
+- [property_input_prefab](#property_input_prefab)
+- [property_text_prefab](#property_text_prefab)
+- [property_left_right_selector_prefab](#property_left_right_selector_prefab)
+- [property_vector3_prefab](#property_vector3_prefab)
+- [is_dirty](#is_dirty)
+
+
+
+### properties_constructors
+
+---
+```lua
+properties_panel:properties_constructors()
+```
+
+List of properties functions to create a new widget. Used to not spawn non-visible widgets but keep the reference
+
+### init
+
+---
+```lua
+properties_panel:init()
+```
+
+### on_remove
+
+---
+```lua
+properties_panel:on_remove()
+```
+
+### on_drag_widget
+
+---
+```lua
+properties_panel:on_drag_widget([dx], [dy])
+```
+
+- **Parameters:**
+ - `[dx]` *(any)*:
+ - `[dy]` *(any)*:
+
+### clear_created_properties
+
+---
+```lua
+properties_panel:clear_created_properties()
+```
+
+### clear
+
+---
+```lua
+properties_panel:clear()
+```
+
+### on_size_changed
+
+---
+```lua
+properties_panel:on_size_changed([new_size])
+```
+
+- **Parameters:**
+ - `[new_size]` *(any)*:
+
+### update
+
+---
+```lua
+properties_panel:update([dt])
+```
+
+- **Parameters:**
+ - `[dt]` *(any)*:
+
+### add_checkbox
+
+---
+```lua
+properties_panel:add_checkbox([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(checkbox: druid.widget.property_checkbox)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_slider
+
+---
+```lua
+properties_panel:add_slider([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(slider: druid.widget.property_slider)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_button
+
+---
+```lua
+properties_panel:add_button([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(button: druid.widget.property_button)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_input
+
+---
+```lua
+properties_panel:add_input([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(input: druid.widget.property_input)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_text
+
+---
+```lua
+properties_panel:add_text([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(text: druid.widget.property_text)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_left_right_selector
+
+---
+```lua
+properties_panel:add_left_right_selector([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(selector: druid.widget.property_left_right_selector)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_vector3
+
+---
+```lua
+properties_panel:add_vector3([on_create])
+```
+
+- **Parameters:**
+ - `[on_create]` *(fun(vector3: druid.widget.property_vector3)|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_inner_widget
+
+---
+```lua
+properties_panel:add_inner_widget(widget_class, [template], [nodes], [on_create])
+```
+
+- **Parameters:**
+ - `widget_class` *()*:
+ - `[template]` *(string|nil)*:
+ - `[nodes]` *(node|table|nil)*:
+ - `[on_create]` *(fun(widget: )|nil)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### add_widget
+
+---
+```lua
+properties_panel:add_widget(create_widget_callback)
+```
+
+- **Parameters:**
+ - `create_widget_callback` *(fun():druid.widget)*:
+
+- **Returns:**
+ - `` *(druid.widget.properties_panel)*:
+
+### remove
+
+---
+```lua
+properties_panel:remove([widget])
+```
+
+- **Parameters:**
+ - `[widget]` *(any)*:
+
+### set_hidden
+
+---
+```lua
+properties_panel:set_hidden([is_hidden])
+```
+
+- **Parameters:**
+ - `[is_hidden]` *(any)*:
+
+### is_hidden
+
+---
+```lua
+properties_panel:is_hidden()
+```
+
+- **Returns:**
+ - `` *(unknown)*:
+
+### set_properties_per_page
+
+---
+```lua
+properties_panel:set_properties_per_page(properties_per_page)
+```
+
+- **Parameters:**
+ - `properties_per_page` *(number)*:
+
+### set_page
+
+---
+```lua
+properties_panel:set_page([page])
+```
+
+- **Parameters:**
+ - `[page]` *(any)*:
+
+
+## Fields
+
+- **root** (_node_)
+
+
+- **scroll** (_druid.scroll_)
+
+
+- **layout** (_druid.layout_): The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node
+
+
+- **container** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **container_content** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **container_scroll_view** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **contaienr_scroll_content** (_druid.container_): The component used for managing the size and positions with other containers relations to create a adaptable layouts
+
+
+- **button_hidden** (_druid.button_): Druid component to make clickable node with various interaction callbacks
+
+
+- **text_header** (_druid.text_): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
+
+
+- **paginator** (_druid.widget.property_left_right_selector_)
+
+
+- **properties** (_druid.widget[]_): List of created properties
+
+
+- **content** (_node_)
+
+
+- **default_size** (_vector3_)
+
+
+- **current_page** (_integer_)
+
+
+- **properties_per_page** (_integer_)
+
+
+- **property_checkbox_prefab** (_node_)
+
+
+- **property_slider_prefab** (_node_)
+
+
+- **property_button_prefab** (_node_)
+
+
+- **property_input_prefab** (_node_)
+
+
+- **property_text_prefab** (_node_)
+
+
+- **property_left_right_selector_prefab** (_node_)
+
+
+- **property_vector3_prefab** (_node_)
+
+
+- **is_dirty** (_boolean_)
+
diff --git a/api/quick_api_reference.md b/api/quick_api_reference.md
index 479b850..9ec47d8 100644
--- a/api/quick_api_reference.md
+++ b/api/quick_api_reference.md
@@ -25,6 +25,7 @@
19. [Text](#text)
20. [Timer](#timer)
4. [Helper](#helper)
+5. [Widgets](#widgets)
# API Reference
@@ -50,11 +51,12 @@ self.druid:final()
self.druid:update(dt)
self.druid:on_input(action_id, action)
self.druid:on_message(message_id, message, sender)
-self.druid:on_window_event([window_event])
--- Component creation
+-- Custom components
self.druid:new(component, ...)
self.druid:new_widget(widget, [template], [nodes], ...)
+
+-- Built-in components
self.druid:new_button(node, [callback], [params], [anim_node])
self.druid:new_text(node, [value], [no_adjust])
self.druid:new_grid(parent_node, item, [in_row])
@@ -76,6 +78,7 @@ self.druid:new_hotkey(keys_array, [callback], [callback_argument])
self.druid:new_slider(pin_node, end_pos, [callback])
self.druid:new_timer(node, [seconds_from], [seconds_to], [callback])
+-- Operational
self.druid:remove(component)
self.druid:set_blacklist(blacklist_components)
self.druid:set_whitelist(whitelist_components)
@@ -85,7 +88,7 @@ self.druid:set_whitelist(whitelist_components)
### [Base Component](components/base/component_api.md)
-Basic methods for all components.
+Basic methods for all components and widgets.
```lua
component:get_childrens()
@@ -102,6 +105,9 @@ component:set_input_priority(value, [is_temporary])
component:set_nodes(nodes)
component:set_style([druid_style])
component:set_template([template])
+
+-- All widgets goes with created Druid instance
+widget.druid
```
### [Blocker](components/base/blocker_api.md)
@@ -116,15 +122,42 @@ blocker:set_enabled(state)
### [Button](components/base/button_api.md)
```lua
-local button = self.druid:new_button(node, [callback], [params], [anim_node])
+local button = require("druid.base.button")
-button:get_key_trigger()
-button:is_enabled()
-button:set_check_function([check_function], [failure_callback])
-button:set_click_zone([zone])
+button:init(node_or_node_id, [callback], [custom_args], [anim_node])
+button:set_animations_disabled()
button:set_enabled([state])
+button:is_enabled()
+button:set_click_zone([zone])
button:set_key_trigger(key)
+button:get_key_trigger()
+button:set_check_function([check_function], [failure_callback])
button:set_web_user_interaction([is_web_mode])
+
+button.on_click
+button.on_pressed
+button.on_repeated_click
+button.on_long_click
+button.on_double_click
+button.on_hold_callback
+button.on_click_outside
+button.node
+button.node_id
+button.anim_node
+button.params
+button.hover
+button.click_zone
+button.start_scale
+button.start_pos
+button.disabled
+button.key_trigger
+button.style
+button.druid
+button.is_repeated_started
+button.last_pressed_time
+button.last_released_time
+button.click_in_row
+button.can_action
```
### [Container](components/extended/container_api.md)
@@ -447,3 +480,142 @@ helper.sign(val)
helper.step(current, target, step)
helper.table_to_string(t)
```
+
+## [Widgets](widgets_api.md)
+
+### [FPS Panel](widgets/fps_panel_api.md)
+
+```lua
+local fps_panel = require("druid.widget.fps_panel.fps_panel")
+
+fps_panel:init()
+fps_panel:on_remove()
+fps_panel:update([dt])
+fps_panel:push_fps_value()
+
+fps_panel.root
+fps_panel.delta_time
+fps_panel.collect_time
+fps_panel.collect_time_counter
+fps_panel.graph_samples
+fps_panel.fps_samples
+fps_panel.mini_graph
+fps_panel.text_min_fps
+fps_panel.text_fps
+fps_panel.timer_id
+fps_panel.previous_time
+```
+
+### [Memory Panel](widgets/memory_panel_api.md)
+
+```lua
+local memory_panel = require("druid.widget.memory_panel.memory_panel")
+
+memory_panel:init()
+memory_panel:on_remove()
+memory_panel:set_low_memory_limit([limit])
+memory_panel:push_next_value()
+memory_panel:update_text_memory()
+
+memory_panel.root
+memory_panel.delta_time
+memory_panel.samples_count
+memory_panel.memory_limit
+memory_panel.mini_graph
+memory_panel.max_value
+memory_panel.text_per_second
+memory_panel.text_memory
+memory_panel.memory
+memory_panel.memory_samples
+memory_panel.timer_id
+```
+
+### [Mini Graph](widgets/mini_graph_api.md)
+
+```lua
+local mini_graph = require("druid.widget.mini_graph.mini_graph")
+
+mini_graph:init()
+mini_graph:on_remove()
+mini_graph:clear()
+mini_graph:set_samples([samples])
+mini_graph:get_samples()
+mini_graph:set_line_value(index, value)
+mini_graph:get_line_value([index])
+mini_graph:push_line_value([value])
+mini_graph:set_max_value([max_value])
+mini_graph:set_line_height([index])
+mini_graph:get_lowest_value()
+mini_graph:get_highest_value()
+mini_graph:on_drag_widget([dx], [dy])
+mini_graph:toggle_hide()
+
+mini_graph.root
+mini_graph.text_header
+mini_graph.icon_drag
+mini_graph.content
+mini_graph.layout
+mini_graph.prefab_line
+mini_graph.color_zero
+mini_graph.color_one
+mini_graph.is_hidden
+mini_graph.max_value
+mini_graph.lines
+mini_graph.values
+mini_graph.container
+mini_graph.default_size
+mini_graph.samples
+```
+
+### [Properties Panel](widgets/properties_panel_api.md)
+
+```lua
+local properties_panel = require("druid.widget.properties_panel.properties_panel")
+
+properties_panel:properties_constructors()
+properties_panel:init()
+properties_panel:on_remove()
+properties_panel:on_drag_widget([dx], [dy])
+properties_panel:clear_created_properties()
+properties_panel:clear()
+properties_panel:on_size_changed([new_size])
+properties_panel:update([dt])
+properties_panel:add_checkbox([on_create])
+properties_panel:add_slider([on_create])
+properties_panel:add_button([on_create])
+properties_panel:add_input([on_create])
+properties_panel:add_text([on_create])
+properties_panel:add_left_right_selector([on_create])
+properties_panel:add_vector3([on_create])
+properties_panel:add_inner_widget(widget_class, [template], [nodes], [on_create])
+properties_panel:add_widget(create_widget_callback)
+properties_panel:remove([widget])
+properties_panel:set_hidden([is_hidden])
+properties_panel:is_hidden()
+properties_panel:set_properties_per_page(properties_per_page)
+properties_panel:set_page([page])
+
+properties_panel.root
+properties_panel.scroll
+properties_panel.layout
+properties_panel.container
+properties_panel.container_content
+properties_panel.container_scroll_view
+properties_panel.contaienr_scroll_content
+properties_panel.button_hidden
+properties_panel.text_header
+properties_panel.paginator
+properties_panel.properties
+properties_panel.content
+properties_panel.default_size
+properties_panel.current_page
+properties_panel.properties_per_page
+properties_panel.property_checkbox_prefab
+properties_panel.property_slider_prefab
+properties_panel.property_button_prefab
+properties_panel.property_input_prefab
+properties_panel.property_text_prefab
+properties_panel.property_left_right_selector_prefab
+properties_panel.property_vector3_prefab
+properties_panel.is_dirty
+```
diff --git a/doc.json b/doc.json
new file mode 100644
index 0000000..694e99a
--- /dev/null
+++ b/doc.json
@@ -0,0 +1,397647 @@
+[
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 10,
+ 24
+ ],
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "GUITextMetrics",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 12,
+ 23
+ ],
+ "start": [
+ 12,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 23
+ ],
+ "start": [
+ 12,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 12,
+ 23
+ ],
+ "name": "height",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 13,
+ 27
+ ],
+ "start": [
+ 13,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 27
+ ],
+ "start": [
+ 13,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 13,
+ 27
+ ],
+ "name": "max_ascent",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 14,
+ 28
+ ],
+ "start": [
+ 14,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 28
+ ],
+ "start": [
+ 14,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 14,
+ 28
+ ],
+ "name": "max_descent",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 15,
+ 25
+ ],
+ "start": [
+ 15,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 25
+ ],
+ "start": [
+ 15,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 15,
+ 25
+ ],
+ "name": "offset_x",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 16,
+ 25
+ ],
+ "start": [
+ 16,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 25
+ ],
+ "start": [
+ 16,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 16,
+ 25
+ ],
+ "name": "offset_y",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 11,
+ 22
+ ],
+ "start": [
+ 11,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 22
+ ],
+ "start": [
+ 11,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 11,
+ 22
+ ],
+ "name": "width",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ }
+ ],
+ "name": "GUITextMetrics",
+ "type": "type",
+ "view": "GUITextMetrics"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 36,
+ 16
+ ],
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "action",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The change in x value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 45,
+ 19
+ ],
+ "start": [
+ 45,
+ 13
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 45,
+ 19
+ ],
+ "start": [
+ 45,
+ 13
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 45,
+ 19
+ ],
+ "name": "dx",
+ "rawdesc": "The change in x value of a pointer device, if present.",
+ "start": [
+ 45,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The change in y value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 46,
+ 19
+ ],
+ "start": [
+ 46,
+ 13
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 46,
+ 19
+ ],
+ "start": [
+ 46,
+ 13
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 46,
+ 19
+ ],
+ "name": "dy",
+ "rawdesc": "The change in y value of a pointer device, if present.",
+ "start": [
+ 46,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The index of the gamepad device that provided the input.",
+ "extends": {
+ "finish": [
+ 49,
+ 24
+ ],
+ "start": [
+ 49,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 49,
+ 24
+ ],
+ "start": [
+ 49,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 49,
+ 24
+ ],
+ "name": "gamepad",
+ "rawdesc": "The index of the gamepad device that provided the input.",
+ "start": [
+ 49,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If the input was pressed this frame. This is not present for mouse movement.",
+ "extends": {
+ "finish": [
+ 38,
+ 25
+ ],
+ "start": [
+ 38,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 38,
+ 25
+ ],
+ "start": [
+ 38,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 38,
+ 25
+ ],
+ "name": "pressed",
+ "rawdesc": "If the input was pressed this frame. This is not present for mouse movement.",
+ "start": [
+ 38,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If the input was released this frame. This is not present for mouse movement.",
+ "extends": {
+ "finish": [
+ 39,
+ 26
+ ],
+ "start": [
+ 39,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 39,
+ 26
+ ],
+ "start": [
+ 39,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 39,
+ 26
+ ],
+ "name": "released",
+ "rawdesc": "If the input was released this frame. This is not present for mouse movement.",
+ "start": [
+ 39,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement.",
+ "extends": {
+ "finish": [
+ 40,
+ 26
+ ],
+ "start": [
+ 40,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 40,
+ 26
+ ],
+ "start": [
+ 40,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 40,
+ 26
+ ],
+ "name": "repeated",
+ "rawdesc": "If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement.",
+ "start": [
+ 40,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The change in screen space x value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 47,
+ 26
+ ],
+ "start": [
+ 47,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 47,
+ 26
+ ],
+ "start": [
+ 47,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 47,
+ 26
+ ],
+ "name": "screen_dx",
+ "rawdesc": "The change in screen space x value of a pointer device, if present.",
+ "start": [
+ 47,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The change in screen space y value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 48,
+ 26
+ ],
+ "start": [
+ 48,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 48,
+ 26
+ ],
+ "start": [
+ 48,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 48,
+ 26
+ ],
+ "name": "screen_dy",
+ "rawdesc": "The change in screen space y value of a pointer device, if present.",
+ "start": [
+ 48,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The screen space x value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 43,
+ 25
+ ],
+ "start": [
+ 43,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 43,
+ 25
+ ],
+ "start": [
+ 43,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 43,
+ 25
+ ],
+ "name": "screen_x",
+ "rawdesc": "The screen space x value of a pointer device, if present.",
+ "start": [
+ 43,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The screen space y value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 44,
+ 25
+ ],
+ "start": [
+ 44,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 44,
+ 25
+ ],
+ "start": [
+ 44,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 44,
+ 25
+ ],
+ "name": "screen_y",
+ "rawdesc": "The screen space y value of a pointer device, if present.",
+ "start": [
+ 44,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "List of touch input, one element per finger, if present. See table below about touch input",
+ "extends": {
+ "finish": [
+ 50,
+ 23
+ ],
+ "start": [
+ 50,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 50,
+ 23
+ ],
+ "start": [
+ 50,
+ 16
+ ],
+ "type": "doc.type.array",
+ "view": "touch[]"
+ }
+ ],
+ "view": "touch[]"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 50,
+ 23
+ ],
+ "name": "touch",
+ "rawdesc": "List of touch input, one element per finger, if present. See table below about touch input",
+ "start": [
+ 50,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "touch[]",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement.",
+ "extends": {
+ "finish": [
+ 37,
+ 22
+ ],
+ "start": [
+ 37,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 22
+ ],
+ "start": [
+ 37,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 37,
+ 22
+ ],
+ "name": "value",
+ "rawdesc": "The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement.",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The x value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 41,
+ 18
+ ],
+ "start": [
+ 41,
+ 12
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 41,
+ 18
+ ],
+ "start": [
+ 41,
+ 12
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 41,
+ 18
+ ],
+ "name": "x",
+ "rawdesc": "The x value of a pointer device, if present.",
+ "start": [
+ 41,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The y value of a pointer device, if present.",
+ "extends": {
+ "finish": [
+ 42,
+ 18
+ ],
+ "start": [
+ 42,
+ 12
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 42,
+ 18
+ ],
+ "start": [
+ 42,
+ 12
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_annotations.lua",
+ "finish": [
+ 42,
+ 18
+ ],
+ "name": "y",
+ "rawdesc": "The y value of a pointer device, if present.",
+ "start": [
+ 42,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ }
+ ],
+ "name": "action",
+ "type": "type",
+ "view": "action"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Entry point for Druid UI Framework.\nCreate a new Druid instance and adjust the Druid settings here.",
+ "file": "/druid/druid.lua",
+ "finish": [
+ 10,
+ 15
+ ],
+ "rawdesc": "Entry point for Druid UI Framework.\nCreate a new Druid instance and adjust the Druid settings here.",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get a binded widget to the current game object.\n\n@*param* `widget_class` — The class of the widget to return\n\n@*param* `gui_url_string` — GUI url, if nil current gui will be used",
+ "extends": {
+ "args": [
+ {
+ "desc": "The class of the widget to return",
+ "finish": [
+ 118,
+ 34
+ ],
+ "name": "widget_class",
+ "rawdesc": "The class of the widget to return",
+ "start": [
+ 118,
+ 22
+ ],
+ "type": "local",
+ "view": ""
+ },
+ {
+ "desc": "GUI url, if nil current gui will be used",
+ "finish": [
+ 118,
+ 50
+ ],
+ "name": "gui_url_string",
+ "rawdesc": "GUI url, if nil current gui will be used",
+ "start": [
+ 118,
+ 36
+ ],
+ "type": "local",
+ "view": "string?"
+ }
+ ],
+ "desc": "Get a binded widget to the current game object.\n\n@*param* `widget_class` — The class of the widget to return\n\n@*param* `gui_url_string` — GUI url, if nil current gui will be used",
+ "finish": [
+ 133,
+ 3
+ ],
+ "rawdesc": "Get a binded widget to the current game object.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 118,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.get_widget(widget_class: , gui_url_string?: string)\n -> "
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 118,
+ 21
+ ],
+ "name": "get_widget",
+ "rawdesc": "Get a binded widget to the current game object.",
+ "start": [
+ 118,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Subscribe Druid to the window listener. It will override your previous\nwindow listener, so if you have one, you should call M.on_window_callback manually.",
+ "extends": {
+ "args": [],
+ "desc": "Subscribe Druid to the window listener. It will override your previous\nwindow listener, so if you have one, you should call M.on_window_callback manually.",
+ "finish": [
+ 70,
+ 3
+ ],
+ "rawdesc": "Subscribe Druid to the window listener. It will override your previous\nwindow listener, so if you have one, you should call M.on_window_callback manually.",
+ "start": [
+ 66,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.init_window_listener()"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 66,
+ 31
+ ],
+ "name": "init_window_listener",
+ "rawdesc": "Subscribe Druid to the window listener. It will override your previous\nwindow listener, so if you have one, you should call M.on_window_callback manually.",
+ "start": [
+ 66,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create a new Druid instance for creating GUI components.\n\n@*param* `context` — The Druid context. Usually, this is the self of the gui_script. It is passed into all Druid callbacks.\n\n@*param* `style` — The Druid style table to override style parameters for this Druid instance.\n\n@*return* `druid_instance` — The new Druid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid context. Usually, this is the self of the gui_script. It is passed into all Druid callbacks.",
+ "finish": [
+ 18,
+ 22
+ ],
+ "name": "context",
+ "rawdesc": "The Druid context. Usually, this is the self of the gui_script. It is passed into all Druid callbacks.",
+ "start": [
+ 18,
+ 15
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The Druid style table to override style parameters for this Druid instance.",
+ "finish": [
+ 18,
+ 29
+ ],
+ "name": "style",
+ "rawdesc": "The Druid style table to override style parameters for this Druid instance.",
+ "start": [
+ 18,
+ 24
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Create a new Druid instance for creating GUI components.\n\n@*param* `context` — The Druid context. Usually, this is the self of the gui_script. It is passed into all Druid callbacks.\n\n@*param* `style` — The Druid style table to override style parameters for this Druid instance.\n\n@*return* `druid_instance` — The new Druid instance",
+ "finish": [
+ 24,
+ 3
+ ],
+ "rawdesc": "Create a new Druid instance for creating GUI components.",
+ "returns": [
+ {
+ "desc": "The new Druid instance",
+ "name": "druid_instance",
+ "rawdesc": "The new Druid instance",
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 18,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.new(context: table, style: table|nil)\n -> druid_instance: druid.instance"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 18,
+ 14
+ ],
+ "name": "new",
+ "rawdesc": "Create a new Druid instance for creating GUI components.",
+ "start": [
+ 18,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Call this function when the game language changes.\nIt will notify all Druid instances to update the lang text components.",
+ "extends": {
+ "args": [],
+ "desc": "Call this function when the game language changes.\nIt will notify all Druid instances to update the lang text components.",
+ "finish": [
+ 84,
+ 3
+ ],
+ "rawdesc": "Call this function when the game language changes.\nIt will notify all Druid instances to update the lang text components.",
+ "start": [
+ 82,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.on_language_change()"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 82,
+ 29
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Call this function when the game language changes.\nIt will notify all Druid instances to update the lang text components.",
+ "start": [
+ 82,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the window callback to enable Druid window events.\n\n@*param* `window_event` — Event param from window listener",
+ "extends": {
+ "args": [
+ {
+ "desc": "Event param from window listener",
+ "finish": [
+ 75,
+ 42
+ ],
+ "name": "window_event",
+ "rawdesc": "Event param from window listener",
+ "start": [
+ 75,
+ 30
+ ],
+ "type": "local",
+ "view": "constant"
+ }
+ ],
+ "desc": "Set the window callback to enable Druid window events.\n\n@*param* `window_event` — Event param from window listener",
+ "finish": [
+ 77,
+ 3
+ ],
+ "rawdesc": "Set the window callback to enable Druid window events.",
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.on_window_callback(window_event: constant)"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 75,
+ 29
+ ],
+ "name": "on_window_callback",
+ "rawdesc": "Set the window callback to enable Druid window events.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": true,
+ "desc": "Register a new external Druid component.\nRegister component just makes the druid:new_{name} function.\nFor example, if you register a component called \"my_component\", you can create it using druid:new_my_component(...).\nThis can be useful if you have your own \"basic\" components that you don't want to require in every file.\nThe default way to create component is `druid_instance:new(component_class, ...)`.\n\n@*param* `name` — Module name\n\n@*param* `module` — Lua table with component",
+ "extends": {
+ "args": [
+ {
+ "desc": "Module name",
+ "finish": [
+ 35,
+ 24
+ ],
+ "name": "name",
+ "rawdesc": "Module name",
+ "start": [
+ 35,
+ 20
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "Lua table with component",
+ "finish": [
+ 35,
+ 32
+ ],
+ "name": "module",
+ "rawdesc": "Lua table with component",
+ "start": [
+ 35,
+ 26
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Register a new external Druid component.\nRegister component just makes the druid:new_{name} function.\nFor example, if you register a component called \"my_component\", you can create it using druid:new_my_component(...).\nThis can be useful if you have your own \"basic\" components that you don't want to require in every file.\nThe default way to create component is `druid_instance:new(component_class, ...)`.\n\n@*param* `name` — Module name\n\n@*param* `module` — Lua table with component",
+ "finish": [
+ 39,
+ 3
+ ],
+ "rawdesc": "Register a new external Druid component.\nRegister component just makes the druid:new_{name} function.\nFor example, if you register a component called \"my_component\", you can create it using druid:new_my_component(...).\nThis can be useful if you have your own \"basic\" components that you don't want to require in every file.\nThe default way to create component is `druid_instance:new(component_class, ...)`.",
+ "start": [
+ 35,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.register(name: string, module: table)"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 35,
+ 19
+ ],
+ "name": "register",
+ "rawdesc": "Register a new external Druid component.\nRegister component just makes the druid:new_{name} function.\nFor example, if you register a component called \"my_component\", you can create it using druid:new_my_component(...).\nThis can be useful if you have your own \"basic\" components that you don't want to require in every file.\nThe default way to create component is `druid_instance:new(component_class, ...)`.",
+ "start": [
+ 35,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Register a widget to the current game object.\n\n@*param* `druid` — The druid instance to register",
+ "extends": {
+ "args": [
+ {
+ "desc": "The druid instance to register",
+ "finish": [
+ 138,
+ 41
+ ],
+ "name": "druid",
+ "rawdesc": "The druid instance to register",
+ "start": [
+ 138,
+ 36
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Register a widget to the current game object.\n\n@*param* `druid` — The druid instance to register",
+ "finish": [
+ 148,
+ 3
+ ],
+ "rawdesc": "Register a widget to the current game object.",
+ "start": [
+ 138,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.register_druid_as_widget(druid: druid.instance)"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 138,
+ 35
+ ],
+ "name": "register_druid_as_widget",
+ "rawdesc": "Register a widget to the current game object.",
+ "start": [
+ 138,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the default style for all Druid instances.\n\n@*param* `style` — Default style",
+ "extends": {
+ "args": [
+ {
+ "desc": "Default style",
+ "finish": [
+ 44,
+ 34
+ ],
+ "name": "style",
+ "rawdesc": "Default style",
+ "start": [
+ 44,
+ 29
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set the default style for all Druid instances.\n\n@*param* `style` — Default style",
+ "finish": [
+ 46,
+ 3
+ ],
+ "rawdesc": "Set the default style for all Druid instances.",
+ "start": [
+ 44,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.set_default_style(style: table)"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 44,
+ 28
+ ],
+ "name": "set_default_style",
+ "rawdesc": "Set the default style for all Druid instances.",
+ "start": [
+ 44,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the sound function to able components to play sounds.\n\n@*param* `callback` — Sound play callback",
+ "extends": {
+ "args": [
+ {
+ "desc": "Sound play callback",
+ "finish": [
+ 59,
+ 38
+ ],
+ "name": "callback",
+ "rawdesc": "Sound play callback",
+ "start": [
+ 59,
+ 30
+ ],
+ "type": "local",
+ "view": "fun(sound_id: string)"
+ }
+ ],
+ "desc": "Set the sound function to able components to play sounds.\n\n@*param* `callback` — Sound play callback",
+ "finish": [
+ 61,
+ 3
+ ],
+ "rawdesc": "Set the sound function to able components to play sounds.",
+ "start": [
+ 59,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.set_sound_function(callback: fun(sound_id: string))"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 59,
+ 29
+ ],
+ "name": "set_sound_function",
+ "rawdesc": "Set the sound function to able components to play sounds.",
+ "start": [
+ 59,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the text function for the LangText component.\n\n@*param* `callback` — Get localized text function",
+ "extends": {
+ "args": [
+ {
+ "desc": "Get localized text function",
+ "finish": [
+ 51,
+ 37
+ ],
+ "name": "callback",
+ "rawdesc": "Get localized text function",
+ "start": [
+ 51,
+ 29
+ ],
+ "type": "local",
+ "view": "fun(text_id: string):string"
+ }
+ ],
+ "desc": "Set the text function for the LangText component.\n\n@*param* `callback` — Get localized text function",
+ "finish": [
+ 54,
+ 3
+ ],
+ "rawdesc": "Set the text function for the LangText component.",
+ "start": [
+ 51,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.set_text_function(callback: fun(text_id: string):string)"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 51,
+ 28
+ ],
+ "name": "set_text_function",
+ "rawdesc": "Set the text function for the LangText component.",
+ "start": [
+ 51,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Unregister a druid instance from the current game object.",
+ "extends": {
+ "args": [],
+ "desc": "Unregister a druid instance from the current game object.",
+ "finish": [
+ 169,
+ 3
+ ],
+ "rawdesc": "Unregister a druid instance from the current game object.",
+ "start": [
+ 152,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.unregister_druid_as_widget()"
+ },
+ "file": "/druid/druid.lua",
+ "finish": [
+ 152,
+ 37
+ ],
+ "name": "unregister_druid_as_widget",
+ "rawdesc": "Unregister a druid instance from the current game object.",
+ "start": [
+ 152,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ }
+ ],
+ "name": "druid",
+ "type": "type",
+ "view": "druid"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component that handles the back handler action, like backspace or android back button",
+ "extends": [
+ {
+ "finish": [
+ 5,
+ 45
+ ],
+ "start": [
+ 5,
+ 30
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/back_handler.lua",
+ "finish": [
+ 5,
+ 45
+ ],
+ "rawdesc": "The component that handles the back handler action, like backspace or android back button",
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.back_handler",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `callback` — The callback to call when the back handler is triggered\n\n@*param* `params` — Custom args to pass in the callback",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component that handles the back handler action, like backspace or android back button",
+ "finish": [
+ 13,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component that handles the back handler action, like backspace or android back button",
+ "start": [
+ 13,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.back_handler"
+ },
+ {
+ "desc": "The callback to call when the back handler is triggered",
+ "finish": [
+ 13,
+ 24
+ ],
+ "name": "callback",
+ "rawdesc": "The callback to call when the back handler is triggered",
+ "start": [
+ 13,
+ 16
+ ],
+ "type": "local",
+ "view": "function|nil"
+ },
+ {
+ "desc": "Custom args to pass in the callback",
+ "finish": [
+ 13,
+ 32
+ ],
+ "name": "params",
+ "rawdesc": "Custom args to pass in the callback",
+ "start": [
+ 13,
+ 26
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "@*param* `callback` — The callback to call when the back handler is triggered\n\n@*param* `params` — Custom args to pass in the callback",
+ "finish": [
+ 16,
+ 3
+ ],
+ "start": [
+ 13,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.back_handler:init(callback: function|nil, params?: any)"
+ },
+ "file": "/druid/base/back_handler.lua",
+ "finish": [
+ 13,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 13,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on back handler action, fun(self, params)",
+ "extends": {
+ "finish": [
+ 6,
+ 23
+ ],
+ "start": [
+ 6,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 6,
+ 23
+ ],
+ "start": [
+ 6,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/back_handler.lua",
+ "finish": [
+ 6,
+ 23
+ ],
+ "name": "on_back",
+ "rawdesc": "Trigger on back handler action, fun(self, params)",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component that handles the back handler action, like backspace or android back button",
+ "finish": [
+ 23,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component that handles the back handler action, like backspace or android back button",
+ "start": [
+ 23,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.back_handler"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 23,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 23,
+ 20
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "The action table",
+ "finish": [
+ 23,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "The action table",
+ "start": [
+ 23,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "finish": [
+ 30,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input was consumed",
+ "name": "is_consumed",
+ "rawdesc": "True if the input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 23,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.back_handler:on_input(action_id: hash, action: table)\n -> is_consumed: boolean"
+ },
+ "file": "/druid/base/back_handler.lua",
+ "finish": [
+ 23,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 23,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Custom args to pass in the callback",
+ "extends": {
+ "finish": [
+ 7,
+ 24
+ ],
+ "start": [
+ 7,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 20
+ ],
+ "start": [
+ 7,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 7,
+ 24
+ ],
+ "start": [
+ 7,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "any"
+ },
+ "file": "/druid/base/back_handler.lua",
+ "finish": [
+ 7,
+ 24
+ ],
+ "name": "params",
+ "rawdesc": "Custom args to pass in the callback",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "any",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.back_handler",
+ "type": "type",
+ "view": "druid.back_handler"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": [
+ {
+ "finish": [
+ 3,
+ 40
+ ],
+ "start": [
+ 3,
+ 25
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 3,
+ 40
+ ],
+ "start": [
+ 3,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.blocker",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 5,
+ 37
+ ],
+ "start": [
+ 5,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 5,
+ 37
+ ],
+ "start": [
+ 5,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 5,
+ 37
+ ],
+ "name": "_is_enabled",
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `node` — The node to use as a blocker",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 10,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 10,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.blocker"
+ },
+ {
+ "desc": "The node to use as a blocker",
+ "finish": [
+ 10,
+ 20
+ ],
+ "name": "node",
+ "rawdesc": "The node to use as a blocker",
+ "start": [
+ 10,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "@*param* `node` — The node to use as a blocker",
+ "finish": [
+ 13,
+ 3
+ ],
+ "start": [
+ 10,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.blocker:init(node: string|node)"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 10,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 10,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get blocker enabled state\n\n@*return* `is_enabled` — True if the blocker is enabled",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 55,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 55,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.blocker"
+ }
+ ],
+ "desc": "Get blocker enabled state\n\n@*return* `is_enabled` — True if the blocker is enabled",
+ "finish": [
+ 57,
+ 3
+ ],
+ "rawdesc": "Get blocker enabled state",
+ "returns": [
+ {
+ "desc": "True if the blocker is enabled",
+ "name": "is_enabled",
+ "rawdesc": "True if the blocker is enabled",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 55,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.blocker:is_enabled()\n -> is_enabled: boolean"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 55,
+ 21
+ ],
+ "name": "is_enabled",
+ "rawdesc": "Get blocker enabled state",
+ "start": [
+ 55,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 4,
+ 19
+ ],
+ "start": [
+ 4,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 4,
+ 19
+ ],
+ "start": [
+ 4,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 4,
+ 19
+ ],
+ "name": "node",
+ "start": [
+ 4,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 20,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 20,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.blocker"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 20,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 20,
+ 20
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "The action table",
+ "finish": [
+ 20,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "The action table",
+ "start": [
+ 20,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "finish": [
+ 40,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input was consumed",
+ "name": "is_consumed",
+ "rawdesc": "True if the input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 20,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.blocker:on_input(action_id: string, action: table)\n -> is_consumed: boolean"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 20,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 20,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set blocker enabled state\n\n@*param* `state` — The new enabled state\n\n@*return* `self` — The blocker instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 46,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 46,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.blocker"
+ },
+ {
+ "desc": "The new enabled state",
+ "finish": [
+ 46,
+ 28
+ ],
+ "name": "state",
+ "rawdesc": "The new enabled state",
+ "start": [
+ 46,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set blocker enabled state\n\n@*param* `state` — The new enabled state\n\n@*return* `self` — The blocker instance",
+ "finish": [
+ 50,
+ 3
+ ],
+ "rawdesc": "Set blocker enabled state",
+ "returns": [
+ {
+ "desc": "The blocker instance",
+ "name": "self",
+ "rawdesc": "The blocker instance",
+ "type": "function.return",
+ "view": "druid.blocker"
+ }
+ ],
+ "start": [
+ 46,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.blocker:set_enabled(state: boolean)\n -> self: druid.blocker"
+ },
+ "file": "/druid/base/blocker.lua",
+ "finish": [
+ 46,
+ 22
+ ],
+ "name": "set_enabled",
+ "rawdesc": "Set blocker enabled state",
+ "start": [
+ 46,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.blocker",
+ "type": "type",
+ "view": "druid.blocker"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "extends": [
+ {
+ "finish": [
+ 18,
+ 39
+ ],
+ "start": [
+ 18,
+ 24
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 18,
+ 39
+ ],
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.button",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 63,
+ 27
+ ],
+ "start": [
+ 63,
+ 24
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 63,
+ 21
+ ],
+ "name": "_check_function",
+ "start": [
+ 63,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "Should return true or false. If true - button can be pressed.",
+ "finish": [
+ 276,
+ 38
+ ],
+ "rawdesc": "Should return true or false. If true - button can be pressed.",
+ "start": [
+ 276,
+ 24
+ ],
+ "type": "getlocal",
+ "view": "function|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 276,
+ 21
+ ],
+ "name": "_check_function",
+ "start": [
+ 276,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 64,
+ 29
+ ],
+ "start": [
+ 64,
+ 26
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 64,
+ 23
+ ],
+ "name": "_failure_callback",
+ "start": [
+ 64,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "Function will be called on button click, if check function return false",
+ "finish": [
+ 277,
+ 42
+ ],
+ "rawdesc": "Function will be called on button click, if check function return false",
+ "start": [
+ 277,
+ 26
+ ],
+ "type": "getlocal",
+ "view": "function|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 277,
+ 23
+ ],
+ "name": "_failure_callback",
+ "start": [
+ 277,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 66,
+ 36
+ ],
+ "start": [
+ 66,
+ 31
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 66,
+ 28
+ ],
+ "name": "_is_html5_listener_set",
+ "start": [
+ 66,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 150,
+ 38
+ ],
+ "start": [
+ 150,
+ 33
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 150,
+ 30
+ ],
+ "name": "_is_html5_listener_set",
+ "start": [
+ 150,
+ 3
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 169,
+ 37
+ ],
+ "start": [
+ 169,
+ 33
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 169,
+ 30
+ ],
+ "name": "_is_html5_listener_set",
+ "start": [
+ 169,
+ 3
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 327,
+ 37
+ ],
+ "start": [
+ 327,
+ 32
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 327,
+ 29
+ ],
+ "name": "_is_html5_listener_set",
+ "start": [
+ 327,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 65,
+ 28
+ ],
+ "start": [
+ 65,
+ 23
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 65,
+ 20
+ ],
+ "name": "_is_html5_mode",
+ "start": [
+ 65,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 292,
+ 54
+ ],
+ "start": [
+ 292,
+ 23
+ ],
+ "type": "unary",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 292,
+ 20
+ ],
+ "name": "_is_html5_mode",
+ "start": [
+ 292,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*return* `is_match` — True if the input matches the button",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 300,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 300,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 300,
+ 36
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 300,
+ 27
+ ],
+ "type": "local",
+ "view": "hash"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*return* `is_match` — True if the input matches the button",
+ "finish": [
+ 310,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input matches the button",
+ "name": "is_match",
+ "rawdesc": "True if the input matches the button",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 300,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_is_input_match(action_id: hash)\n -> is_match: boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 300,
+ 26
+ ],
+ "name": "_is_input_match",
+ "start": [
+ 300,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 325,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 325,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 333,
+ 3
+ ],
+ "start": [
+ 325,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_click()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 325,
+ 27
+ ],
+ "name": "_on_button_click",
+ "start": [
+ 325,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 356,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 356,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 360,
+ 3
+ ],
+ "start": [
+ 356,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_double_click()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 356,
+ 34
+ ],
+ "name": "_on_button_double_click",
+ "start": [
+ 356,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `press_time` — Amount of time the button was held",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 364,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 364,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Amount of time the button was held",
+ "finish": [
+ 364,
+ 37
+ ],
+ "name": "press_time",
+ "rawdesc": "Amount of time the button was held",
+ "start": [
+ 364,
+ 27
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "@*param* `press_time` — Amount of time the button was held",
+ "finish": [
+ 366,
+ 3
+ ],
+ "start": [
+ 364,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_hold(press_time: number)"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 364,
+ 26
+ ],
+ "name": "_on_button_hold",
+ "start": [
+ 364,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `hover_state` — True if the hover state is active",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 314,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 314,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "True if the hover state is active",
+ "finish": [
+ 314,
+ 39
+ ],
+ "name": "hover_state",
+ "rawdesc": "True if the hover state is active",
+ "start": [
+ 314,
+ 28
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "@*param* `hover_state` — True if the hover state is active",
+ "finish": [
+ 316,
+ 3
+ ],
+ "start": [
+ 314,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_hover(hover_state: boolean)"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 314,
+ 27
+ ],
+ "name": "_on_button_hover",
+ "start": [
+ 314,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 348,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 348,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 353,
+ 3
+ ],
+ "start": [
+ 348,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_long_click()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 348,
+ 32
+ ],
+ "name": "_on_button_long_click",
+ "start": [
+ 348,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `hover_state` — True if the hover state is active",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 320,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 320,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "True if the hover state is active",
+ "finish": [
+ 320,
+ 45
+ ],
+ "name": "hover_state",
+ "rawdesc": "True if the hover state is active",
+ "start": [
+ 320,
+ 34
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "@*param* `hover_state` — True if the hover state is active",
+ "finish": [
+ 322,
+ 3
+ ],
+ "start": [
+ 320,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_mouse_hover(hover_state: boolean)"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 320,
+ 33
+ ],
+ "name": "_on_button_mouse_hover",
+ "start": [
+ 320,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 369,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 369,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 415,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 369,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_release()\n -> boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 369,
+ 29
+ ],
+ "name": "_on_button_release",
+ "start": [
+ 369,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 336,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 336,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 345,
+ 3
+ ],
+ "start": [
+ 336,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:_on_button_repeated_click()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 336,
+ 36
+ ],
+ "name": "_on_button_repeated_click",
+ "start": [
+ 336,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Animation node. In default case equals to clickable node",
+ "extends": {
+ "finish": [
+ 28,
+ 24
+ ],
+ "start": [
+ 28,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 28,
+ 24
+ ],
+ "start": [
+ 28,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 28,
+ 24
+ ],
+ "name": "anim_node",
+ "rawdesc": "Animation node. In default case equals to clickable node",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": " Can't interact, if touch outside of button",
+ "extends": {
+ "finish": [
+ 144,
+ 25
+ ],
+ "start": [
+ 144,
+ 20
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 144,
+ 17
+ ],
+ "name": "can_action",
+ "rawdesc": " Can't interact, if touch outside of button",
+ "start": [
+ 144,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": " Can interact if start touch on the button",
+ "extends": {
+ "finish": [
+ 163,
+ 24
+ ],
+ "start": [
+ 163,
+ 20
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 163,
+ 17
+ ],
+ "name": "can_action",
+ "rawdesc": " Can interact if start touch on the button",
+ "start": [
+ 163,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 209,
+ 24
+ ],
+ "start": [
+ 209,
+ 19
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 209,
+ 16
+ ],
+ "name": "can_action",
+ "start": [
+ 209,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 389,
+ 26
+ ],
+ "start": [
+ 389,
+ 21
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 389,
+ 18
+ ],
+ "name": "can_action",
+ "start": [
+ 389,
+ 3
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 60,
+ 22
+ ],
+ "start": [
+ 60,
+ 21
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 60,
+ 18
+ ],
+ "name": "click_in_row",
+ "start": [
+ 60,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 330,
+ 22
+ ],
+ "start": [
+ 330,
+ 21
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 330,
+ 18
+ ],
+ "name": "click_in_row",
+ "start": [
+ 330,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 338,
+ 23
+ ],
+ "start": [
+ 338,
+ 22
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 338,
+ 19
+ ],
+ "name": "click_in_row",
+ "start": [
+ 338,
+ 2
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 342,
+ 42
+ ],
+ "start": [
+ 342,
+ 21
+ ],
+ "type": "binary",
+ "view": "unknown"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 342,
+ 18
+ ],
+ "name": "click_in_row",
+ "start": [
+ 342,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 349,
+ 22
+ ],
+ "start": [
+ 349,
+ 21
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 349,
+ 18
+ ],
+ "name": "click_in_row",
+ "start": [
+ 349,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 357,
+ 42
+ ],
+ "start": [
+ 357,
+ 21
+ ],
+ "type": "binary",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 357,
+ 18
+ ],
+ "name": "click_in_row",
+ "start": [
+ 357,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Click zone node to restrict click area",
+ "extends": {
+ "finish": [
+ 31,
+ 29
+ ],
+ "start": [
+ 31,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 31,
+ 25
+ ],
+ "start": [
+ 31,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ },
+ {
+ "finish": [
+ 31,
+ 29
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "node|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 31,
+ 29
+ ],
+ "name": "click_zone",
+ "rawdesc": "Click zone node to restrict click area",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Is button disabled",
+ "extends": {
+ "finish": [
+ 34,
+ 26
+ ],
+ "start": [
+ 34,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 34,
+ 26
+ ],
+ "start": [
+ 34,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 34,
+ 26
+ ],
+ "name": "disabled",
+ "rawdesc": "Is button disabled",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 46,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 46,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.instance"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 46,
+ 11
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 46,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current key name to trigger this button.\n\n@*return* `key_trigger` — The action_id of the input key",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 266,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 266,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "desc": "Get current key name to trigger this button.\n\n@*return* `key_trigger` — The action_id of the input key",
+ "finish": [
+ 268,
+ 3
+ ],
+ "rawdesc": "Get current key name to trigger this button.",
+ "returns": [
+ {
+ "desc": "The action_id of the input key",
+ "name": "key_trigger",
+ "rawdesc": "The action_id of the input key",
+ "type": "function.return",
+ "view": "hash"
+ }
+ ],
+ "start": [
+ 266,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:get_key_trigger()\n -> key_trigger: hash"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 266,
+ 26
+ ],
+ "name": "get_key_trigger",
+ "rawdesc": "Get current key name to trigger this button.",
+ "start": [
+ 266,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Hover component for this button",
+ "extends": {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 30,
+ 27
+ ],
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 30,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 30,
+ 27
+ ],
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 30,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.hover"
+ }
+ ],
+ "view": "druid.hover"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 30,
+ 27
+ ],
+ "name": "hover",
+ "rawdesc": "Hover component for this button",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.hover",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The constructor for the button component\n\n@*param* `node_or_node_id` — Node name or GUI Node itself\n\n@*param* `callback` — Callback on button click\n\n@*param* `custom_args` — Custom args for any Button event\n\n@*param* `anim_node` — Node to animate instead of trigger node",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 45,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 45,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Node name or GUI Node itself",
+ "finish": [
+ 45,
+ 31
+ ],
+ "name": "node_or_node_id",
+ "rawdesc": "Node name or GUI Node itself",
+ "start": [
+ 45,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Callback on button click",
+ "finish": [
+ 45,
+ 41
+ ],
+ "name": "callback",
+ "rawdesc": "Callback on button click",
+ "start": [
+ 45,
+ 33
+ ],
+ "type": "local",
+ "view": "fun()|nil"
+ },
+ {
+ "desc": "Custom args for any Button event",
+ "finish": [
+ 45,
+ 54
+ ],
+ "name": "custom_args",
+ "rawdesc": "Custom args for any Button event",
+ "start": [
+ 45,
+ 43
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "desc": "Node to animate instead of trigger node",
+ "finish": [
+ 45,
+ 65
+ ],
+ "name": "anim_node",
+ "rawdesc": "Node to animate instead of trigger node",
+ "start": [
+ 45,
+ 56
+ ],
+ "type": "local",
+ "view": "string|node|nil"
+ }
+ ],
+ "desc": "The constructor for the button component\n\n@*param* `node_or_node_id` — Node name or GUI Node itself\n\n@*param* `callback` — Callback on button click\n\n@*param* `custom_args` — Custom args for any Button event\n\n@*param* `anim_node` — Node to animate instead of trigger node",
+ "finish": [
+ 76,
+ 3
+ ],
+ "rawdesc": "The constructor for the button component",
+ "start": [
+ 45,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:init(node_or_node_id: string|node, callback: fun()|nil, custom_args: any, anim_node: string|node|nil)"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 45,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "The constructor for the button component",
+ "start": [
+ 45,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get button enabled state.\nBy default all Buttons is enabled on creating.\n\n@*return* `is_enabled` — True, if button is enabled now, False overwise",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 232,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 232,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "desc": "Get button enabled state.\nBy default all Buttons is enabled on creating.\n\n@*return* `is_enabled` — True, if button is enabled now, False overwise",
+ "finish": [
+ 234,
+ 3
+ ],
+ "rawdesc": "Get button enabled state.\nBy default all Buttons is enabled on creating.",
+ "returns": [
+ {
+ "desc": "True, if button is enabled now, False overwise",
+ "name": "is_enabled",
+ "rawdesc": "True, if button is enabled now, False overwise",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 232,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:is_enabled()\n -> is_enabled: boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 232,
+ 21
+ ],
+ "name": "is_enabled",
+ "rawdesc": "Get button enabled state.\nBy default all Buttons is enabled on creating.",
+ "start": [
+ 232,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 57,
+ 33
+ ],
+ "start": [
+ 57,
+ 28
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 57,
+ 25
+ ],
+ "name": "is_repeated_started",
+ "start": [
+ 57,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 164,
+ 34
+ ],
+ "start": [
+ 164,
+ 29
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 164,
+ 26
+ ],
+ "name": "is_repeated_started",
+ "start": [
+ 164,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 339,
+ 33
+ ],
+ "start": [
+ 339,
+ 29
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 339,
+ 26
+ ],
+ "name": "is_repeated_started",
+ "start": [
+ 339,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Key trigger for this button",
+ "extends": {
+ "finish": [
+ 35,
+ 26
+ ],
+ "start": [
+ 35,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 35,
+ 26
+ ],
+ "start": [
+ 35,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "hash"
+ }
+ ],
+ "view": "hash"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 35,
+ 26
+ ],
+ "name": "key_trigger",
+ "rawdesc": "Key trigger for this button",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "hash",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 58,
+ 27
+ ],
+ "start": [
+ 58,
+ 26
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 58,
+ 23
+ ],
+ "name": "last_pressed_time",
+ "start": [
+ 58,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 165,
+ 43
+ ],
+ "start": [
+ 165,
+ 27
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 165,
+ 24
+ ],
+ "name": "last_pressed_time",
+ "start": [
+ 165,
+ 2
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 59,
+ 28
+ ],
+ "start": [
+ 59,
+ 27
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 59,
+ 24
+ ],
+ "name": "last_released_time",
+ "start": [
+ 59,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 411,
+ 33
+ ],
+ "start": [
+ 411,
+ 29
+ ],
+ "type": "getlocal",
+ "view": "unknown"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 411,
+ 26
+ ],
+ "name": "last_released_time",
+ "start": [
+ 411,
+ 3
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Clickable node",
+ "extends": {
+ "finish": [
+ 26,
+ 19
+ ],
+ "start": [
+ 26,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 26,
+ 19
+ ],
+ "start": [
+ 26,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 26,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "Clickable node",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Node id",
+ "extends": {
+ "finish": [
+ 27,
+ 22
+ ],
+ "start": [
+ 27,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 27,
+ 22
+ ],
+ "start": [
+ 27,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "hash"
+ }
+ ],
+ "view": "hash"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 27,
+ 22
+ ],
+ "name": "node_id",
+ "rawdesc": "Node id",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "hash",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance)",
+ "extends": {
+ "finish": [
+ 19,
+ 24
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 24
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 19,
+ 24
+ ],
+ "name": "on_click",
+ "rawdesc": "function(self, custom_args, button_instance)",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance)",
+ "extends": {
+ "finish": [
+ 25,
+ 32
+ ],
+ "start": [
+ 25,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 25,
+ 32
+ ],
+ "start": [
+ 25,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 25,
+ 32
+ ],
+ "name": "on_click_outside",
+ "rawdesc": "function(self, custom_args, button_instance)",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance, click_amount)",
+ "extends": {
+ "finish": [
+ 23,
+ 31
+ ],
+ "start": [
+ 23,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 31
+ ],
+ "start": [
+ 23,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 23,
+ 31
+ ],
+ "name": "on_double_click",
+ "rawdesc": "function(self, custom_args, button_instance, click_amount)",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance, press_time)",
+ "extends": {
+ "finish": [
+ 24,
+ 32
+ ],
+ "start": [
+ 24,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 32
+ ],
+ "start": [
+ 24,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 24,
+ 32
+ ],
+ "name": "on_hold_callback",
+ "rawdesc": "function(self, custom_args, button_instance, press_time)",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 126,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 126,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 126,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 126,
+ 20
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "The action table",
+ "finish": [
+ 126,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "The action table",
+ "start": [
+ 126,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action table\n\n@*return* `is_consumed` — True if the input was consumed",
+ "finish": [
+ 204,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input was consumed",
+ "name": "is_consumed",
+ "rawdesc": "True if the input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 126,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:on_input(action_id: hash, action: table)\n -> is_consumed: boolean"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 126,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 126,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 208,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 208,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 212,
+ 3
+ ],
+ "start": [
+ 208,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:on_input_interrupt()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 208,
+ 29
+ ],
+ "name": "on_input_interrupt",
+ "start": [
+ 208,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 112,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 112,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "finish": [
+ 119,
+ 3
+ ],
+ "start": [
+ 112,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:on_late_init()"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 112,
+ 23
+ ],
+ "name": "on_late_init",
+ "start": [
+ 112,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance, hold_time)",
+ "extends": {
+ "finish": [
+ 22,
+ 29
+ ],
+ "start": [
+ 22,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 22,
+ 29
+ ],
+ "start": [
+ 22,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 22,
+ 29
+ ],
+ "name": "on_long_click",
+ "rawdesc": "function(self, custom_args, button_instance, hold_time)",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance)",
+ "extends": {
+ "finish": [
+ 20,
+ 26
+ ],
+ "start": [
+ 20,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 26
+ ],
+ "start": [
+ 20,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 20,
+ 26
+ ],
+ "name": "on_pressed",
+ "rawdesc": "function(self, custom_args, button_instance)",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "function(self, custom_args, button_instance, click_count)",
+ "extends": {
+ "finish": [
+ 21,
+ 33
+ ],
+ "start": [
+ 21,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 21,
+ 33
+ ],
+ "start": [
+ 21,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 21,
+ 33
+ ],
+ "name": "on_repeated_click",
+ "rawdesc": "function(self, custom_args, button_instance, click_count)",
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 81,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 81,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Button style params.\nYou can override this component styles params in Druid styles table or create your own style",
+ "finish": [
+ 81,
+ 32
+ ],
+ "name": "style",
+ "rawdesc": "Button style params.\nYou can override this component styles params in Druid styles table or create your own style",
+ "start": [
+ 81,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.button.style"
+ }
+ ],
+ "finish": [
+ 93,
+ 3
+ ],
+ "start": [
+ 81,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:on_style_change(style: druid.button.style)"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 81,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 81,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Custom arguments for any Button event",
+ "extends": {
+ "finish": [
+ 29,
+ 20
+ ],
+ "start": [
+ 29,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 29,
+ 20
+ ],
+ "start": [
+ 29,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "any"
+ }
+ ],
+ "view": "any"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 29,
+ 20
+ ],
+ "name": "params",
+ "rawdesc": "Custom arguments for any Button event",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "any",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove default button style animations\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 98,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 98,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ }
+ ],
+ "desc": "Remove default button style animations\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 108,
+ 3
+ ],
+ "rawdesc": "Remove default button style animations",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 98,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_animations_disabled()\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 98,
+ 34
+ ],
+ "name": "set_animations_disabled",
+ "rawdesc": "Remove default button style animations",
+ "start": [
+ 98,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set function for additional check for button click availability\n\n@*param* `check_function` — Should return true or false. If true - button can be pressed.\n\n@*param* `failure_callback` — Function will be called on button click, if check function return false\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 275,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 275,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Should return true or false. If true - button can be pressed.",
+ "finish": [
+ 275,
+ 44
+ ],
+ "name": "check_function",
+ "rawdesc": "Should return true or false. If true - button can be pressed.",
+ "start": [
+ 275,
+ 30
+ ],
+ "type": "local",
+ "view": "function|nil"
+ },
+ {
+ "desc": "Function will be called on button click, if check function return false",
+ "finish": [
+ 275,
+ 62
+ ],
+ "name": "failure_callback",
+ "rawdesc": "Function will be called on button click, if check function return false",
+ "start": [
+ 275,
+ 46
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Set function for additional check for button click availability\n\n@*param* `check_function` — Should return true or false. If true - button can be pressed.\n\n@*param* `failure_callback` — Function will be called on button click, if check function return false\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 280,
+ 3
+ ],
+ "rawdesc": "Set function for additional check for button click availability",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 275,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_check_function(check_function: function|nil, failure_callback: function|nil)\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 275,
+ 29
+ ],
+ "name": "set_check_function",
+ "rawdesc": "Set function for additional check for button click availability",
+ "start": [
+ 275,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set additional button click area.\nUseful to restrict click outside out stencil node or scrollable content.\nIf button node placed inside stencil node, it will be automatically set to this stencil node.\n\n@*param* `zone` — Gui node\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 242,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 242,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Gui node",
+ "finish": [
+ 242,
+ 30
+ ],
+ "name": "zone",
+ "rawdesc": "Gui node",
+ "start": [
+ 242,
+ 26
+ ],
+ "type": "local",
+ "view": "string|node|nil"
+ }
+ ],
+ "desc": "Set additional button click area.\nUseful to restrict click outside out stencil node or scrollable content.\nIf button node placed inside stencil node, it will be automatically set to this stencil node.\n\n@*param* `zone` — Gui node\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 247,
+ 3
+ ],
+ "rawdesc": "Set additional button click area.\nUseful to restrict click outside out stencil node or scrollable content.\nIf button node placed inside stencil node, it will be automatically set to this stencil node.",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 242,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_click_zone(zone: string|node|nil)\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 242,
+ 25
+ ],
+ "name": "set_click_zone",
+ "rawdesc": "Set additional button click area.\nUseful to restrict click outside out stencil node or scrollable content.\nIf button node placed inside stencil node, it will be automatically set to this stencil node.",
+ "start": [
+ 242,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set button enabled state.\nThe style.on_set_enabled will be triggered.\nDisabled button is not clickable.\n\n@*param* `state` — Enabled state\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 220,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 220,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "Enabled state",
+ "finish": [
+ 220,
+ 28
+ ],
+ "name": "state",
+ "rawdesc": "Enabled state",
+ "start": [
+ 220,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set button enabled state.\nThe style.on_set_enabled will be triggered.\nDisabled button is not clickable.\n\n@*param* `state` — Enabled state\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 226,
+ 3
+ ],
+ "rawdesc": "Set button enabled state.\nThe style.on_set_enabled will be triggered.\nDisabled button is not clickable.",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 220,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_enabled(state: boolean|nil)\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 220,
+ 22
+ ],
+ "name": "set_enabled",
+ "rawdesc": "Set button enabled state.\nThe style.on_set_enabled will be triggered.\nDisabled button is not clickable.",
+ "start": [
+ 220,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set key name to trigger this button by keyboard.\n\n@*param* `key` — The action_id of the input key. Example: \"key_space\"\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 253,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 253,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "The action_id of the input key. Example: \"key_space\"",
+ "finish": [
+ 253,
+ 30
+ ],
+ "name": "key",
+ "rawdesc": "The action_id of the input key. Example: \"key_space\"",
+ "start": [
+ 253,
+ 27
+ ],
+ "type": "local",
+ "view": "string|hash"
+ }
+ ],
+ "desc": "Set key name to trigger this button by keyboard.\n\n@*param* `key` — The action_id of the input key. Example: \"key_space\"\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 261,
+ 3
+ ],
+ "rawdesc": "Set key name to trigger this button by keyboard.",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 253,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_key_trigger(key: string|hash)\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 253,
+ 26
+ ],
+ "name": "set_key_trigger",
+ "rawdesc": "Set key name to trigger this button by keyboard.",
+ "start": [
+ 253,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set Button mode to work inside user HTML5 interaction event.\n\nIt's required to make protected things like copy & paste text, show mobile keyboard, etc\nThe HTML5 button's doesn't call any events except on_click event.\n\nIf the game is not HTML, html mode will be not enabled\n\n@*param* `is_web_mode` — If true - button will be called inside html5 callback\n\n@*return* `self` — The current button instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 291,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 291,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.button"
+ },
+ {
+ "desc": "If true - button will be called inside html5 callback",
+ "finish": [
+ 291,
+ 47
+ ],
+ "name": "is_web_mode",
+ "rawdesc": "If true - button will be called inside html5 callback",
+ "start": [
+ 291,
+ 36
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set Button mode to work inside user HTML5 interaction event.\n\nIt's required to make protected things like copy & paste text, show mobile keyboard, etc\nThe HTML5 button's doesn't call any events except on_click event.\n\nIf the game is not HTML, html mode will be not enabled\n\n@*param* `is_web_mode` — If true - button will be called inside html5 callback\n\n@*return* `self` — The current button instance",
+ "finish": [
+ 294,
+ 3
+ ],
+ "rawdesc": "Set Button mode to work inside user HTML5 interaction event.\n\nIt's required to make protected things like copy & paste text, show mobile keyboard, etc\nThe HTML5 button's doesn't call any events except on_click event.\n\nIf the game is not HTML, html mode will be not enabled",
+ "returns": [
+ {
+ "desc": "The current button instance",
+ "name": "self",
+ "rawdesc": "The current button instance",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 291,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.button:set_web_user_interaction(is_web_mode: boolean|nil)\n -> self: druid.button"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 291,
+ 35
+ ],
+ "name": "set_web_user_interaction",
+ "rawdesc": "Set Button mode to work inside user HTML5 interaction event.\n\nIt's required to make protected things like copy & paste text, show mobile keyboard, etc\nThe HTML5 button's doesn't call any events except on_click event.\n\nIf the game is not HTML, html mode will be not enabled",
+ "start": [
+ 291,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Start position of the button",
+ "extends": {
+ "finish": [
+ 33,
+ 27
+ ],
+ "start": [
+ 33,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 33,
+ 27
+ ],
+ "start": [
+ 33,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 33,
+ 27
+ ],
+ "name": "start_pos",
+ "rawdesc": "Start position of the button",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Start scale of the button",
+ "extends": {
+ "finish": [
+ 32,
+ 29
+ ],
+ "start": [
+ 32,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 32,
+ 29
+ ],
+ "start": [
+ 32,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 32,
+ 29
+ ],
+ "name": "start_scale",
+ "rawdesc": "Start scale of the button",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Style for this button",
+ "extends": {
+ "finish": [
+ 36,
+ 21
+ ],
+ "start": [
+ 36,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 21
+ ],
+ "start": [
+ 36,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 36,
+ 21
+ ],
+ "name": "style",
+ "rawdesc": "Style for this button",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.button",
+ "type": "type",
+ "view": "druid.button"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Button style params.\nYou can override this component styles params in Druid styles table or create your own style",
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 7,
+ 28
+ ],
+ "rawdesc": "Button style params.\nYou can override this component styles params in Druid styles table or create your own style",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.button.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Maximum hold time to trigger button release while holding. Default: 0.8",
+ "extends": {
+ "finish": [
+ 9,
+ 37
+ ],
+ "start": [
+ 9,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 33
+ ],
+ "start": [
+ 9,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 9,
+ 37
+ ],
+ "start": [
+ 9,
+ 34
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "number|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 9,
+ 37
+ ],
+ "name": "AUTOHOLD_TRIGGER",
+ "rawdesc": "Maximum hold time to trigger button release while holding. Default: 0.8",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Time between double taps. Default: 0.4",
+ "extends": {
+ "finish": [
+ 10,
+ 35
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 31
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 10,
+ 35
+ ],
+ "start": [
+ 10,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "number|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 10,
+ 35
+ ],
+ "name": "DOUBLETAP_TIME",
+ "rawdesc": "Time between double taps. Default: 0.4",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Minimum time to trigger on_hold_callback. Default: 0.4",
+ "extends": {
+ "finish": [
+ 8,
+ 33
+ ],
+ "start": [
+ 8,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 8,
+ 29
+ ],
+ "start": [
+ 8,
+ 23
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 8,
+ 33
+ ],
+ "start": [
+ 8,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "number|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 8,
+ 33
+ ],
+ "name": "LONGTAP_TIME",
+ "rawdesc": "Minimum time to trigger on_hold_callback. Default: 0.4",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 11,
+ 38
+ ],
+ "start": [
+ 11,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 11,
+ 27
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 11,
+ 27
+ ],
+ "start": [
+ 11,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 11,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 11,
+ 33
+ ],
+ "name": {
+ "[1]": "node",
+ "finish": [
+ 11,
+ 33
+ ],
+ "start": [
+ 11,
+ 29
+ ],
+ "type": "doc.type.arg.name",
+ "view": "node"
+ },
+ "start": [
+ 11,
+ 29
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 11,
+ 34
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 11,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: any, node: any)"
+ },
+ {
+ "finish": [
+ 11,
+ 38
+ ],
+ "start": [
+ 11,
+ 35
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: any, node: any)|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 11,
+ 38
+ ],
+ "name": "on_click",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: any, node: any)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 12,
+ 47
+ ],
+ "start": [
+ 12,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 12,
+ 36
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 12,
+ 36
+ ],
+ "start": [
+ 12,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 12,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 12,
+ 42
+ ],
+ "name": {
+ "[1]": "node",
+ "finish": [
+ 12,
+ 42
+ ],
+ "start": [
+ 12,
+ 38
+ ],
+ "type": "doc.type.arg.name",
+ "view": "node"
+ },
+ "start": [
+ 12,
+ 38
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 12,
+ 43
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 12,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: any, node: any)"
+ },
+ {
+ "finish": [
+ 12,
+ 47
+ ],
+ "start": [
+ 12,
+ 44
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: any, node: any)|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 12,
+ 47
+ ],
+ "name": "on_click_disabled",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: any, node: any)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 13,
+ 51
+ ],
+ "start": [
+ 13,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 13,
+ 27
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 13,
+ 27
+ ],
+ "start": [
+ 13,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 13,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 13,
+ 33
+ ],
+ "name": {
+ "[1]": "node",
+ "finish": [
+ 13,
+ 33
+ ],
+ "start": [
+ 13,
+ 29
+ ],
+ "type": "doc.type.arg.name",
+ "view": "node"
+ },
+ "start": [
+ 13,
+ 29
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 13,
+ 46
+ ],
+ "name": {
+ "[1]": "hover_state",
+ "finish": [
+ 13,
+ 46
+ ],
+ "start": [
+ 13,
+ 35
+ ],
+ "type": "doc.type.arg.name",
+ "view": "hover_state"
+ },
+ "start": [
+ 13,
+ 35
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 13,
+ 47
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 13,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: any, node: any, hover_state: any)"
+ },
+ {
+ "finish": [
+ 13,
+ 51
+ ],
+ "start": [
+ 13,
+ 48
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: any, node: any, hover_state: any)|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 13,
+ 51
+ ],
+ "name": "on_hover",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: any, node: any, hover_state: any)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 14,
+ 57
+ ],
+ "start": [
+ 14,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 14,
+ 33
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 14,
+ 33
+ ],
+ "start": [
+ 14,
+ 29
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 14,
+ 29
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 14,
+ 39
+ ],
+ "name": {
+ "[1]": "node",
+ "finish": [
+ 14,
+ 39
+ ],
+ "start": [
+ 14,
+ 35
+ ],
+ "type": "doc.type.arg.name",
+ "view": "node"
+ },
+ "start": [
+ 14,
+ 35
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 14,
+ 52
+ ],
+ "name": {
+ "[1]": "hover_state",
+ "finish": [
+ 14,
+ 52
+ ],
+ "start": [
+ 14,
+ 41
+ ],
+ "type": "doc.type.arg.name",
+ "view": "hover_state"
+ },
+ "start": [
+ 14,
+ 41
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 14,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 14,
+ 25
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: any, node: any, hover_state: any)"
+ },
+ {
+ "finish": [
+ 14,
+ 57
+ ],
+ "start": [
+ 14,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: any, node: any, hover_state: any)|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 14,
+ 57
+ ],
+ "name": "on_mouse_hover",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: any, node: any, hover_state: any)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 15,
+ 59
+ ],
+ "start": [
+ 15,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 15,
+ 33
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 15,
+ 33
+ ],
+ "start": [
+ 15,
+ 29
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 15,
+ 29
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 15,
+ 39
+ ],
+ "name": {
+ "[1]": "node",
+ "finish": [
+ 15,
+ 39
+ ],
+ "start": [
+ 15,
+ 35
+ ],
+ "type": "doc.type.arg.name",
+ "view": "node"
+ },
+ "start": [
+ 15,
+ 35
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 15,
+ 54
+ ],
+ "name": {
+ "[1]": "enabled_state",
+ "finish": [
+ 15,
+ 54
+ ],
+ "start": [
+ 15,
+ 41
+ ],
+ "type": "doc.type.arg.name",
+ "view": "enabled_state"
+ },
+ "start": [
+ 15,
+ 41
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 15,
+ 55
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 15,
+ 25
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: any, node: any, enabled_state: any)"
+ },
+ {
+ "finish": [
+ 15,
+ 59
+ ],
+ "start": [
+ 15,
+ 56
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: any, node: any, enabled_state: any)|nil"
+ },
+ "file": "/druid/base/button.lua",
+ "finish": [
+ 15,
+ 59
+ ],
+ "name": "on_set_enabled",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: any, node: any, enabled_state: any)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.button.style",
+ "type": "type",
+ "view": "druid.button.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/component.lua",
+ "finish": [
+ 21,
+ 25
+ ],
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.component",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is created",
+ "extends": {
+ "finish": [
+ 23,
+ 49
+ ],
+ "start": [
+ 23,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 23,
+ 39
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 23,
+ 23
+ ],
+ "start": [
+ 23,
+ 19
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 23,
+ 19
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 23,
+ 44
+ ],
+ "name": {
+ "[1]": "...",
+ "finish": [
+ 23,
+ 44
+ ],
+ "start": [
+ 23,
+ 41
+ ],
+ "type": "doc.type.arg.name",
+ "view": "..."
+ },
+ "start": [
+ 23,
+ 41
+ ],
+ "type": "doc.type.arg",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 23,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 23,
+ 15
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, ...any)"
+ },
+ {
+ "finish": [
+ 23,
+ 49
+ ],
+ "start": [
+ 23,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, ...any)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 23,
+ 49
+ ],
+ "name": "init",
+ "rawdesc": "Called when component is created",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, ...any)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.component",
+ "type": "type",
+ "view": "druid.component"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/component.lua",
+ "finish": [
+ 14,
+ 35
+ ],
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.component.component",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 18,
+ 44
+ ],
+ "start": [
+ 18,
+ 37
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 44
+ ],
+ "start": [
+ 18,
+ 37
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 18,
+ 44
+ ],
+ "name": "_is_input_priority_changed",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 19,
+ 21
+ ],
+ "start": [
+ 19,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 21
+ ],
+ "start": [
+ 19,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 19,
+ 21
+ ],
+ "name": "_uid",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 17,
+ 39
+ ],
+ "start": [
+ 17,
+ 33
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 39
+ ],
+ "start": [
+ 17,
+ 33
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 17,
+ 39
+ ],
+ "name": "default_input_priority",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 16,
+ 31
+ ],
+ "start": [
+ 16,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 31
+ ],
+ "start": [
+ 16,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 16,
+ 31
+ ],
+ "name": "input_priority",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 15,
+ 21
+ ],
+ "start": [
+ 15,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 21
+ ],
+ "start": [
+ 15,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 15,
+ 21
+ ],
+ "name": "name",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.component.component",
+ "type": "type",
+ "view": "druid.component.component"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/component.lua",
+ "finish": [
+ 3,
+ 30
+ ],
+ "start": [
+ 3,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.component.meta",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 10,
+ 24
+ ],
+ "start": [
+ 10,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 24
+ ],
+ "start": [
+ 10,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 10,
+ 24
+ ],
+ "name": "children",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 5,
+ 23
+ ],
+ "start": [
+ 5,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 5,
+ 23
+ ],
+ "start": [
+ 5,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 5,
+ 23
+ ],
+ "name": "context",
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 8,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 8,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 8,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 8,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 8,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 9,
+ 31
+ ],
+ "start": [
+ 9,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 31
+ ],
+ "start": [
+ 9,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 9,
+ 31
+ ],
+ "name": "input_enabled",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 12,
+ 30
+ ],
+ "name": "instance_class",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 6,
+ 37
+ ],
+ "start": [
+ 6,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 6,
+ 33
+ ],
+ "start": [
+ 6,
+ 16
+ ],
+ "type": "doc.type.sign",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 6,
+ 37
+ ],
+ "start": [
+ 6,
+ 34
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 6,
+ 37
+ ],
+ "name": "nodes",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 11,
+ 36
+ ],
+ "start": [
+ 11,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 32
+ ],
+ "start": [
+ 11,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 11,
+ 36
+ ],
+ "start": [
+ 11,
+ 33
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 11,
+ 36
+ ],
+ "name": "parent",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 7,
+ 25
+ ],
+ "start": [
+ 7,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 21
+ ],
+ "start": [
+ 7,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 7,
+ 25
+ ],
+ "start": [
+ 7,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 7,
+ 25
+ ],
+ "name": "style",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 4,
+ 25
+ ],
+ "start": [
+ 4,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 4,
+ 25
+ ],
+ "start": [
+ 4,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 4,
+ 25
+ ],
+ "name": "template",
+ "start": [
+ 4,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.component.meta",
+ "type": "type",
+ "view": "druid.component.meta"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "extends": [
+ {
+ "finish": [
+ 33,
+ 42
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 33,
+ 42
+ ],
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.container",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The containers",
+ "extends": {
+ "finish": [
+ 49,
+ 27
+ ],
+ "start": [
+ 49,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 49,
+ 27
+ ],
+ "start": [
+ 49,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 49,
+ 27
+ ],
+ "name": "_containers",
+ "rawdesc": "The containers",
+ "start": [
+ 49,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The draggable corners",
+ "extends": {
+ "finish": [
+ 50,
+ 34
+ ],
+ "start": [
+ 50,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 50,
+ 34
+ ],
+ "start": [
+ 50,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 50,
+ 34
+ ],
+ "name": "_draggable_corners",
+ "rawdesc": "The draggable corners",
+ "start": [
+ 50,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 537,
+ 37
+ ],
+ "start": [
+ 537,
+ 18
+ ],
+ "type": "select",
+ "view": "node"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 537,
+ 15
+ ],
+ "name": "_fit_node",
+ "start": [
+ 537,
+ 1
+ ],
+ "type": "setfield",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 497,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 497,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "finish": [
+ 497,
+ 28
+ ],
+ "name": "x",
+ "start": [
+ 497,
+ 27
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 497,
+ 31
+ ],
+ "name": "y",
+ "start": [
+ 497,
+ 30
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 497,
+ 46
+ ],
+ "name": "corner_offset",
+ "start": [
+ 497,
+ 33
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 530,
+ 3
+ ],
+ "start": [
+ 497,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:_on_corner_drag(x: any, y: any, corner_offset: any)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 497,
+ 26
+ ],
+ "name": "_on_corner_drag",
+ "start": [
+ 497,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The parent container",
+ "extends": {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 48,
+ 43
+ ],
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 48,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 48,
+ 43
+ ],
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 48,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "druid.container"
+ }
+ ],
+ "view": "druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 48,
+ 43
+ ],
+ "name": "_parent_container",
+ "rawdesc": "The parent container",
+ "start": [
+ 48,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.container",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 68,
+ 45
+ ],
+ "start": [
+ 68,
+ 18
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 68,
+ 15
+ ],
+ "name": "_position",
+ "start": [
+ 68,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `mode` — stretch, fit, stretch_x, stretch_y. Default: Pick from node, \"fit\" or \"stretch\"\n\n@*return* `Container` — New created layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 251,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 251,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 251,
+ 42
+ ],
+ "name": "node_or_container",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 251,
+ 25
+ ],
+ "type": "local",
+ "view": "string|table|druid.container|node"
+ },
+ {
+ "desc": "stretch, fit, stretch_x, stretch_y. Default: Pick from node, \"fit\" or \"stretch\"",
+ "finish": [
+ 251,
+ 48
+ ],
+ "name": "mode",
+ "rawdesc": "stretch, fit, stretch_x, stretch_y. Default: Pick from node, \"fit\" or \"stretch\"",
+ "start": [
+ 251,
+ 44
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 251,
+ 68
+ ],
+ "name": "on_resize_callback",
+ "start": [
+ 251,
+ 50
+ ],
+ "type": "local",
+ "view": "fun(self: userdata, size: vector3)|nil"
+ }
+ ],
+ "desc": "@*param* `mode` — stretch, fit, stretch_x, stretch_y. Default: Pick from node, \"fit\" or \"stretch\"\n\n@*return* `Container` — New created layout instance",
+ "finish": [
+ 274,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "New created layout instance",
+ "name": "Container",
+ "rawdesc": "New created layout instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 251,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:add_container(node_or_container: string|table|druid.container|node, mode: string|nil, on_resize_callback: fun(self: userdata, size: vector3)|nil)\n -> Container: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 251,
+ 24
+ ],
+ "name": "add_container",
+ "start": [
+ 251,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The center offset",
+ "extends": {
+ "finish": [
+ 42,
+ 31
+ ],
+ "start": [
+ 42,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 42,
+ 31
+ ],
+ "start": [
+ 42,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 42,
+ 31
+ ],
+ "name": "center_offset",
+ "rawdesc": "The center offset",
+ "start": [
+ 42,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 483,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 483,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "@*return* `self` — Current container instance",
+ "finish": [
+ 494,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 483,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:clear_draggable_corners()\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 483,
+ 34
+ ],
+ "name": "clear_draggable_corners",
+ "start": [
+ 483,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 453,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 453,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "@*return* `self` — Current container instance",
+ "finish": [
+ 479,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 453,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:create_draggable_corners()\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 453,
+ 35
+ ],
+ "name": "create_draggable_corners",
+ "start": [
+ 453,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The druid instance",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 35,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 35,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 35,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 35,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 35,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "The druid instance",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set node for layout node to fit inside it. Pass nil to reset\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 536,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 536,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 536,
+ 29
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 536,
+ 25
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Set node for layout node to fit inside it. Pass nil to reset\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*return* `self` — Current container instance",
+ "finish": [
+ 540,
+ 3
+ ],
+ "rawdesc": "Set node for layout node to fit inside it. Pass nil to reset",
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 536,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:fit_into_node(node: string|node)\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 536,
+ 24
+ ],
+ "name": "fit_into_node",
+ "rawdesc": "Set node for layout node to fit inside it. Pass nil to reset",
+ "start": [
+ 536,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set size for layout node to fit inside it\n\n@*param* `target_size` — The target size to fit into\n\n@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 220,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 220,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The target size to fit into",
+ "finish": [
+ 220,
+ 36
+ ],
+ "name": "target_size",
+ "rawdesc": "The target size to fit into",
+ "start": [
+ 220,
+ 25
+ ],
+ "type": "local",
+ "view": "vector3"
+ }
+ ],
+ "desc": "Set size for layout node to fit inside it\n\n@*param* `target_size` — The target size to fit into\n\n@*return* `self` — Current container instance",
+ "finish": [
+ 225,
+ 3
+ ],
+ "rawdesc": "Set size for layout node to fit inside it",
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 220,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:fit_into_size(target_size: vector3)\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 220,
+ 24
+ ],
+ "name": "fit_into_size",
+ "rawdesc": "Set size for layout node to fit inside it",
+ "start": [
+ 220,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current size for layout node to fit inside it\n\n@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 230,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 230,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "Set current size for layout node to fit inside it\n\n@*return* `self` — Current container instance",
+ "finish": [
+ 232,
+ 3
+ ],
+ "rawdesc": "Set current size for layout node to fit inside it",
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 230,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:fit_into_window()\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 230,
+ 26
+ ],
+ "name": "fit_into_window",
+ "rawdesc": "Set current size for layout node to fit inside it",
+ "start": [
+ 230,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The fit size",
+ "extends": {
+ "finish": [
+ 44,
+ 26
+ ],
+ "start": [
+ 44,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 44,
+ 26
+ ],
+ "start": [
+ 44,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 44,
+ 26
+ ],
+ "name": "fit_size",
+ "rawdesc": "The fit size",
+ "start": [
+ 44,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get the position of the container\n\n@*return* `position` — The position of the container",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 184,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 184,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "Get the position of the container\n\n@*return* `position` — The position of the container",
+ "finish": [
+ 186,
+ 3
+ ],
+ "rawdesc": "Get the position of the container",
+ "returns": [
+ {
+ "desc": "The position of the container",
+ "name": "position",
+ "rawdesc": "The position of the container",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 184,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:get_position()\n -> position: vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 184,
+ 23
+ ],
+ "name": "get_position",
+ "rawdesc": "Get the position of the container",
+ "start": [
+ 184,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get the current scale of the layout node\n\n@*return* `scale` — The current scale of the layout node",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 212,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 212,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "Get the current scale of the layout node\n\n@*return* `scale` — The current scale of the layout node",
+ "finish": [
+ 214,
+ 3
+ ],
+ "rawdesc": "Get the current scale of the layout node",
+ "returns": [
+ {
+ "desc": "The current scale of the layout node",
+ "name": "scale",
+ "rawdesc": "The current scale of the layout node",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 212,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:get_scale()\n -> scale: vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 212,
+ 20
+ ],
+ "name": "get_scale",
+ "rawdesc": "Get the current scale of the layout node",
+ "start": [
+ 212,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get the current size of the layout node\n\n@*return* `size` — The current size of the layout node",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "Get the current size of the layout node\n\n@*return* `size` — The current size of the layout node",
+ "finish": [
+ 207,
+ 3
+ ],
+ "rawdesc": "Get the current size of the layout node",
+ "returns": [
+ {
+ "desc": "The current size of the layout node",
+ "name": "size",
+ "rawdesc": "The current size of the layout node",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:get_size()\n -> size: vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 205,
+ 19
+ ],
+ "name": "get_size",
+ "rawdesc": "Get the current size of the layout node",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `node` — Gui node\n\n@*param* `mode` — Layout mode\n\n@*param* `callback` — Callback on size changed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 57,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 57,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "Gui node",
+ "finish": [
+ 57,
+ 20
+ ],
+ "name": "node",
+ "rawdesc": "Gui node",
+ "start": [
+ 57,
+ 16
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "Layout mode",
+ "finish": [
+ 57,
+ 26
+ ],
+ "name": "mode",
+ "rawdesc": "Layout mode",
+ "start": [
+ 57,
+ 22
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "Callback on size changed",
+ "finish": [
+ 57,
+ 36
+ ],
+ "name": "callback",
+ "rawdesc": "Callback on size changed",
+ "start": [
+ 57,
+ 28
+ ],
+ "type": "local",
+ "view": "fun(self: druid.container, size: vector3)|nil"
+ }
+ ],
+ "desc": "@*param* `node` — Gui node\n\n@*param* `mode` — Layout mode\n\n@*param* `callback` — Callback on size changed",
+ "finish": [
+ 93,
+ 3
+ ],
+ "start": [
+ 57,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:init(node: node, mode: string, callback: fun(self: druid.container, size: vector3)|nil)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 57,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 57,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The minimum size x",
+ "extends": {
+ "finish": [
+ 45,
+ 31
+ ],
+ "start": [
+ 45,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 45,
+ 27
+ ],
+ "start": [
+ 45,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 45,
+ 31
+ ],
+ "start": [
+ 45,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "number|nil"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 45,
+ 31
+ ],
+ "name": "min_size_x",
+ "rawdesc": "The minimum size x",
+ "start": [
+ 45,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The minimum size y",
+ "extends": {
+ "finish": [
+ 46,
+ 31
+ ],
+ "start": [
+ 46,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 46,
+ 27
+ ],
+ "start": [
+ 46,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 46,
+ 31
+ ],
+ "start": [
+ 46,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "number|nil"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 46,
+ 31
+ ],
+ "name": "min_size_y",
+ "rawdesc": "The minimum size y",
+ "start": [
+ 46,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The layout mode",
+ "extends": {
+ "finish": [
+ 43,
+ 21
+ ],
+ "start": [
+ 43,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 43,
+ 21
+ ],
+ "start": [
+ 43,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "mode",
+ "rawdesc": "The layout mode",
+ "start": [
+ 43,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The gui node",
+ "extends": {
+ "finish": [
+ 34,
+ 19
+ ],
+ "start": [
+ 34,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 34,
+ 19
+ ],
+ "start": [
+ 34,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 34,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "The gui node",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 66,
+ 23
+ ],
+ "start": [
+ 66,
+ 20
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 66,
+ 17
+ ],
+ "name": "node_fill_x",
+ "start": [
+ 66,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 338,
+ 68
+ ],
+ "start": [
+ 338,
+ 20
+ ],
+ "type": "binary",
+ "view": "integer"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 338,
+ 17
+ ],
+ "name": "node_fill_x",
+ "start": [
+ 338,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 341,
+ 22
+ ],
+ "start": [
+ 341,
+ 21
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 341,
+ 18
+ ],
+ "name": "node_fill_x",
+ "start": [
+ 341,
+ 2
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 67,
+ 23
+ ],
+ "start": [
+ 67,
+ 20
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 67,
+ 17
+ ],
+ "name": "node_fill_y",
+ "start": [
+ 67,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 345,
+ 68
+ ],
+ "start": [
+ 345,
+ 20
+ ],
+ "type": "binary",
+ "view": "integer"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 345,
+ 17
+ ],
+ "name": "node_fill_y",
+ "start": [
+ 345,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 348,
+ 22
+ ],
+ "start": [
+ 348,
+ 21
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 348,
+ 18
+ ],
+ "name": "node_fill_y",
+ "start": [
+ 348,
+ 2
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The node offset",
+ "extends": {
+ "finish": [
+ 36,
+ 29
+ ],
+ "start": [
+ 36,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 29
+ ],
+ "start": [
+ 36,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "vector4"
+ }
+ ],
+ "view": "vector4"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 36,
+ 29
+ ],
+ "name": "node_offset",
+ "rawdesc": "The node offset",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector4",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 97,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 97,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "finish": [
+ 102,
+ 3
+ ],
+ "start": [
+ 97,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:on_late_init()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 97,
+ 23
+ ],
+ "name": "on_late_init",
+ "start": [
+ 97,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 106,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 106,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "finish": [
+ 108,
+ 3
+ ],
+ "start": [
+ 106,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:on_remove()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 106,
+ 20
+ ],
+ "name": "on_remove",
+ "start": [
+ 106,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.container, size: vector3) The event triggered when the size changes",
+ "extends": {
+ "finish": [
+ 47,
+ 31
+ ],
+ "start": [
+ 47,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 47,
+ 31
+ ],
+ "start": [
+ 47,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 47,
+ 31
+ ],
+ "name": "on_size_changed",
+ "rawdesc": "fun(self: druid.container, size: vector3) The event triggered when the size changes",
+ "start": [
+ 47,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 130,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 130,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "finish": [
+ 130,
+ 32
+ ],
+ "name": "style",
+ "start": [
+ 130,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.container.style"
+ }
+ ],
+ "finish": [
+ 135,
+ 3
+ ],
+ "start": [
+ 130,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:on_style_change(style: druid.container.style)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 130,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 130,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "finish": [
+ 244,
+ 3
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:on_window_resized()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "on_window_resized",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The origin position",
+ "extends": {
+ "finish": [
+ 39,
+ 33
+ ],
+ "start": [
+ 39,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 39,
+ 33
+ ],
+ "start": [
+ 39,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 39,
+ 33
+ ],
+ "name": "origin_position",
+ "rawdesc": "The origin position",
+ "start": [
+ 39,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The origin size",
+ "extends": {
+ "finish": [
+ 37,
+ 29
+ ],
+ "start": [
+ 37,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 29
+ ],
+ "start": [
+ 37,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 37,
+ 29
+ ],
+ "name": "origin_size",
+ "rawdesc": "The origin size",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The pivot offset",
+ "extends": {
+ "finish": [
+ 41,
+ 30
+ ],
+ "start": [
+ 41,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 41,
+ 30
+ ],
+ "start": [
+ 41,
+ 23
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 41,
+ 30
+ ],
+ "name": "pivot_offset",
+ "rawdesc": "The pivot offset",
+ "start": [
+ 41,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current position",
+ "extends": {
+ "finish": [
+ 40,
+ 26
+ ],
+ "start": [
+ 40,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 40,
+ 26
+ ],
+ "start": [
+ 40,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 40,
+ 26
+ ],
+ "name": "position",
+ "rawdesc": "The current position",
+ "start": [
+ 40,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": " Glossary\n Center Offset - vector from node position to visual center of node",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 357,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 357,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": " Glossary\n Center Offset - vector from node position to visual center of node",
+ "finish": [
+ 426,
+ 3
+ ],
+ "rawdesc": " Glossary\n Center Offset - vector from node position to visual center of node",
+ "start": [
+ 357,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:refresh()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 357,
+ 18
+ ],
+ "name": "refresh",
+ "rawdesc": " Glossary\n Center Offset - vector from node position to visual center of node",
+ "start": [
+ 357,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Refresh the origins of the container, origins is the size and position of the container when it was created",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 112,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 112,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "desc": "Refresh the origins of the container, origins is the size and position of the container when it was created",
+ "finish": [
+ 116,
+ 3
+ ],
+ "rawdesc": "Refresh the origins of the container, origins is the size and position of the container when it was created",
+ "start": [
+ 112,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:refresh_origins()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 112,
+ 26
+ ],
+ "name": "refresh_origins",
+ "rawdesc": "Refresh the origins of the container, origins is the size and position of the container when it was created",
+ "start": [
+ 112,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 429,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 429,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "finish": [
+ 442,
+ 3
+ ],
+ "start": [
+ 429,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:refresh_scale()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 429,
+ 24
+ ],
+ "name": "refresh_scale",
+ "start": [
+ 429,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 278,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 278,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "finish": [
+ 278,
+ 40
+ ],
+ "name": "node",
+ "start": [
+ 278,
+ 36
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 289,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.container|nil"
+ }
+ ],
+ "start": [
+ 278,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:remove_container_by_node(node: any)\n -> druid.container|nil"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 278,
+ 35
+ ],
+ "name": "remove_container_by_node",
+ "start": [
+ 278,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the minimum size of the container\n\n@*param* `min_size_x` — The minimum size x\n\n@*param* `min_size_y` — The minimum size y\n\n@*return* `self` — Current container instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 547,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 547,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The minimum size x",
+ "finish": [
+ 547,
+ 34
+ ],
+ "name": "min_size_x",
+ "rawdesc": "The minimum size x",
+ "start": [
+ 547,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The minimum size y",
+ "finish": [
+ 547,
+ 46
+ ],
+ "name": "min_size_y",
+ "rawdesc": "The minimum size y",
+ "start": [
+ 547,
+ 36
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Set the minimum size of the container\n\n@*param* `min_size_x` — The minimum size x\n\n@*param* `min_size_y` — The minimum size y\n\n@*return* `self` — Current container instance",
+ "finish": [
+ 553,
+ 3
+ ],
+ "rawdesc": "Set the minimum size of the container",
+ "returns": [
+ {
+ "desc": "Current container instance",
+ "name": "self",
+ "rawdesc": "Current container instance",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 547,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:set_min_size(min_size_x: number|nil, min_size_y: number|nil)\n -> self: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 547,
+ 23
+ ],
+ "name": "set_min_size",
+ "rawdesc": "Set the minimum size of the container",
+ "start": [
+ 547,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 293,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 293,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 293,
+ 48
+ ],
+ "name": "parent_container",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 293,
+ 32
+ ],
+ "type": "local",
+ "view": "druid.container|nil"
+ }
+ ],
+ "finish": [
+ 352,
+ 3
+ ],
+ "start": [
+ 293,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:set_parent_container(parent_container: druid.container|nil)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 293,
+ 31
+ ],
+ "name": "set_parent_container",
+ "start": [
+ 293,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the pivot of the container\n\n@*param* `pivot` — The pivot to set",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 121,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 121,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The pivot to set",
+ "finish": [
+ 121,
+ 26
+ ],
+ "name": "pivot",
+ "rawdesc": "The pivot to set",
+ "start": [
+ 121,
+ 21
+ ],
+ "type": "local",
+ "view": "constant"
+ }
+ ],
+ "desc": "Set the pivot of the container\n\n@*param* `pivot` — The pivot to set",
+ "finish": [
+ 125,
+ 3
+ ],
+ "rawdesc": "Set the pivot of the container",
+ "start": [
+ 121,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:set_pivot(pivot: constant)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 121,
+ 20
+ ],
+ "name": "set_pivot",
+ "rawdesc": "Set the pivot of the container",
+ "start": [
+ 121,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the position of the container\n\n@*param* `pos_x` — The x position to set\n\n@*param* `pos_y` — The y position to set",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 192,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 192,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The x position to set",
+ "finish": [
+ 192,
+ 29
+ ],
+ "name": "pos_x",
+ "rawdesc": "The x position to set",
+ "start": [
+ 192,
+ 24
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "The y position to set",
+ "finish": [
+ 192,
+ 36
+ ],
+ "name": "pos_y",
+ "rawdesc": "The y position to set",
+ "start": [
+ 192,
+ 31
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Set the position of the container\n\n@*param* `pos_x` — The x position to set\n\n@*param* `pos_y` — The y position to set",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set the position of the container",
+ "start": [
+ 192,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:set_position(pos_x: number, pos_y: number)"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 192,
+ 23
+ ],
+ "name": "set_position",
+ "rawdesc": "Set the position of the container",
+ "start": [
+ 192,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set new size of layout node\n\n@*param* `width` — The width to set\n\n@*param* `height` — The height to set\n\n@*param* `anchor_pivot` — If set will keep the corner possition relative to the new size",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 143,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 143,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ },
+ {
+ "desc": "The width to set",
+ "finish": [
+ 143,
+ 25
+ ],
+ "name": "width",
+ "rawdesc": "The width to set",
+ "start": [
+ 143,
+ 20
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The height to set",
+ "finish": [
+ 143,
+ 33
+ ],
+ "name": "height",
+ "rawdesc": "The height to set",
+ "start": [
+ 143,
+ 27
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "If set will keep the corner possition relative to the new size",
+ "finish": [
+ 143,
+ 47
+ ],
+ "name": "anchor_pivot",
+ "rawdesc": "If set will keep the corner possition relative to the new size",
+ "start": [
+ 143,
+ 35
+ ],
+ "type": "local",
+ "view": "constant|nil"
+ }
+ ],
+ "desc": "Set new size of layout node\n\n@*param* `width` — The width to set\n\n@*param* `height` — The height to set\n\n@*param* `anchor_pivot` — If set will keep the corner possition relative to the new size",
+ "finish": [
+ 179,
+ 3
+ ],
+ "rawdesc": "Set new size of layout node",
+ "returns": [
+ {
+ "name": "Container",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 143,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:set_size(width: number|nil, height: number|nil, anchor_pivot: constant|nil)\n -> Container: druid.container"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 143,
+ 19
+ ],
+ "name": "set_size",
+ "rawdesc": "Set new size of layout node",
+ "start": [
+ 143,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current size",
+ "extends": {
+ "finish": [
+ 38,
+ 22
+ ],
+ "start": [
+ 38,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 38,
+ 22
+ ],
+ "start": [
+ 38,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 38,
+ 22
+ ],
+ "name": "size",
+ "rawdesc": "The current size",
+ "start": [
+ 38,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 134,
+ 2
+ ],
+ "start": [
+ 131,
+ 14
+ ],
+ "type": "table",
+ "view": "table"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 131,
+ 11
+ ],
+ "name": "style",
+ "start": [
+ 131,
+ 1
+ ],
+ "type": "setfield",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "finish": [
+ 445,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts",
+ "start": [
+ 445,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.container"
+ }
+ ],
+ "finish": [
+ 449,
+ 3
+ ],
+ "start": [
+ 445,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.container:update_child_containers()"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 445,
+ 34
+ ],
+ "name": "update_child_containers",
+ "start": [
+ 445,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 73,
+ 43
+ ],
+ "start": [
+ 73,
+ 17
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 73,
+ 14
+ ],
+ "name": "x_anchor",
+ "start": [
+ 73,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 70,
+ 21
+ ],
+ "start": [
+ 70,
+ 15
+ ],
+ "type": "getlocal",
+ "view": "number"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 70,
+ 12
+ ],
+ "name": "x_koef",
+ "start": [
+ 70,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 238,
+ 21
+ ],
+ "start": [
+ 238,
+ 15
+ ],
+ "type": "getlocal",
+ "view": "number"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 238,
+ 12
+ ],
+ "name": "x_koef",
+ "start": [
+ 238,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 74,
+ 43
+ ],
+ "start": [
+ 74,
+ 17
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 74,
+ 14
+ ],
+ "name": "y_anchor",
+ "start": [
+ 74,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 71,
+ 21
+ ],
+ "start": [
+ 71,
+ 15
+ ],
+ "type": "getlocal",
+ "view": "number"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 71,
+ 12
+ ],
+ "name": "y_koef",
+ "start": [
+ 71,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 239,
+ 21
+ ],
+ "start": [
+ 239,
+ 15
+ ],
+ "type": "getlocal",
+ "view": "number"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 239,
+ 12
+ ],
+ "name": "y_koef",
+ "start": [
+ 239,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.container",
+ "type": "type",
+ "view": "druid.container"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 28,
+ 31
+ ],
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.container.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Color of debug draggable corners",
+ "extends": {
+ "finish": [
+ 30,
+ 40
+ ],
+ "start": [
+ 30,
+ 33
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 30,
+ 40
+ ],
+ "start": [
+ 30,
+ 33
+ ],
+ "type": "doc.type.name",
+ "view": "vector4"
+ }
+ ],
+ "view": "vector4"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 30,
+ 40
+ ],
+ "name": "DRAGGABLE_CORNER_COLOR",
+ "rawdesc": "Color of debug draggable corners",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector4",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Size of box node for debug draggable corners",
+ "extends": {
+ "finish": [
+ 29,
+ 39
+ ],
+ "start": [
+ 29,
+ 32
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 29,
+ 39
+ ],
+ "start": [
+ 29,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/extended/container.lua",
+ "finish": [
+ 29,
+ 39
+ ],
+ "name": "DRAGGABLE_CORNER_SIZE",
+ "rawdesc": "Size of box node for debug draggable corners",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.container.style",
+ "type": "type",
+ "view": "druid.container.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "extends": [
+ {
+ "finish": [
+ 6,
+ 42
+ ],
+ "start": [
+ 6,
+ 27
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 6,
+ 42
+ ],
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.data_list",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add element at passed index using cache or create new\n\n@*param* `index` — The index to add the element at",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 189,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 189,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The index to add the element at",
+ "finish": [
+ 189,
+ 24
+ ],
+ "name": "index",
+ "rawdesc": "The index to add the element at",
+ "start": [
+ 189,
+ 19
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Add element at passed index using cache or create new\n\n@*param* `index` — The index to add the element at",
+ "finish": [
+ 216,
+ 3
+ ],
+ "rawdesc": "Add element at passed index using cache or create new",
+ "start": [
+ 189,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:_add_at(index: number)"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 189,
+ 18
+ ],
+ "name": "_add_at",
+ "rawdesc": "Add element at passed index using cache or create new",
+ "start": [
+ 189,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The cache table",
+ "extends": {
+ "finish": [
+ 17,
+ 30
+ ],
+ "start": [
+ 17,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 30
+ ],
+ "start": [
+ 17,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 17,
+ 30
+ ],
+ "name": "_cache",
+ "rawdesc": "The cache table",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "extends": {
+ "finish": [
+ 15,
+ 43
+ ],
+ "start": [
+ 15,
+ 35
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 43
+ ],
+ "start": [
+ 15,
+ 35
+ ],
+ "type": "doc.type.name",
+ "view": "function"
+ }
+ ],
+ "view": "function"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 15,
+ 43
+ ],
+ "name": "_create_function",
+ "rawdesc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The data table",
+ "extends": {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 18,
+ 29
+ ],
+ "name": "_data",
+ "rawdesc": "The data table",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The data visual table",
+ "extends": {
+ "finish": [
+ 19,
+ 36
+ ],
+ "start": [
+ 19,
+ 31
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 36
+ ],
+ "start": [
+ 19,
+ 31
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 19,
+ 36
+ ],
+ "name": "_data_visual",
+ "rawdesc": "The data visual table",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove",
+ "extends": {
+ "finish": [
+ 16,
+ 39
+ ],
+ "start": [
+ 16,
+ 32
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 39
+ ],
+ "start": [
+ 16,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 16,
+ 39
+ ],
+ "name": "_is_use_cache",
+ "rawdesc": "Use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Refresh all elements in DataList",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 250,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 250,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Refresh all elements in DataList",
+ "finish": [
+ 284,
+ 3
+ ],
+ "rawdesc": "Refresh all elements in DataList",
+ "start": [
+ 250,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:_refresh()"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 250,
+ 19
+ ],
+ "name": "_refresh",
+ "rawdesc": "Refresh all elements in DataList",
+ "start": [
+ 250,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove element from passed index and add it to cache if applicable\n\n@*param* `index` — The index to remove the element at",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 222,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 222,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The index to remove the element at",
+ "finish": [
+ 222,
+ 27
+ ],
+ "name": "index",
+ "rawdesc": "The index to remove the element at",
+ "start": [
+ 222,
+ 22
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Remove element from passed index and add it to cache if applicable\n\n@*param* `index` — The index to remove the element at",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Remove element from passed index and add it to cache if applicable",
+ "start": [
+ 222,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:_remove_at(index: number)"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 222,
+ 21
+ ],
+ "name": "_remove_at",
+ "rawdesc": "Remove element from passed index and add it to cache if applicable",
+ "start": [
+ 222,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add element to DataList\n\n@*param* `data` — The data to add\n\n@*param* `index` — The index to add the data at\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 91,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 91,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The data to add",
+ "finish": [
+ 91,
+ 19
+ ],
+ "name": "data",
+ "rawdesc": "The data to add",
+ "start": [
+ 91,
+ 15
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The index to add the data at",
+ "finish": [
+ 91,
+ 26
+ ],
+ "name": "index",
+ "rawdesc": "The index to add the data at",
+ "start": [
+ 91,
+ 21
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The constant from const.SHIFT.*",
+ "finish": [
+ 91,
+ 40
+ ],
+ "name": "shift_policy",
+ "rawdesc": "The constant from const.SHIFT.*",
+ "start": [
+ 91,
+ 28
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Add element to DataList\n\n@*param* `data` — The data to add\n\n@*param* `index` — The index to add the data at\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 99,
+ 3
+ ],
+ "rawdesc": "Add element to DataList",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 91,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:add(data: table, index: number|nil, shift_policy: number|nil)\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 91,
+ 14
+ ],
+ "name": "add",
+ "rawdesc": "Add element to DataList",
+ "start": [
+ 91,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Clear the DataList and refresh visuals\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 131,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 131,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Clear the DataList and refresh visuals\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 136,
+ 3
+ ],
+ "rawdesc": "Clear the DataList and refresh visuals",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 131,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:clear()\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 131,
+ 16
+ ],
+ "name": "clear",
+ "rawdesc": "Clear the DataList and refresh visuals",
+ "start": [
+ 131,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all currenly created components in DataList\n\n@*return* `components` — List of created components",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 167,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 167,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Return all currenly created components in DataList\n\n@*return* `components` — List of created components",
+ "finish": [
+ 175,
+ 3
+ ],
+ "rawdesc": "Return all currenly created components in DataList",
+ "returns": [
+ {
+ "desc": "List of created components",
+ "name": "components",
+ "rawdesc": "List of created components",
+ "type": "function.return",
+ "view": "druid.component[]"
+ }
+ ],
+ "start": [
+ 167,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:get_created_components()\n -> components: druid.component[]"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 167,
+ 33
+ ],
+ "name": "get_created_components",
+ "rawdesc": "Return all currenly created components in DataList",
+ "start": [
+ 167,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all currenly created nodes in DataList\n\n@*return* `List` — of created nodes",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Return all currenly created nodes in DataList\n\n@*return* `List` — of created nodes",
+ "finish": [
+ 162,
+ 3
+ ],
+ "rawdesc": "Return all currenly created nodes in DataList",
+ "returns": [
+ {
+ "desc": "of created nodes",
+ "name": "List",
+ "rawdesc": "of created nodes",
+ "type": "function.return",
+ "view": "node[]"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:get_created_nodes()\n -> List: node[]"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 154,
+ 28
+ ],
+ "name": "get_created_nodes",
+ "rawdesc": "Return all currenly created nodes in DataList",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current data from DataList component\n\n@*return* `data` — The current data array",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 81,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 81,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Return current data from DataList component\n\n@*return* `data` — The current data array",
+ "finish": [
+ 83,
+ 3
+ ],
+ "rawdesc": "Return current data from DataList component",
+ "returns": [
+ {
+ "desc": "The current data array",
+ "name": "data",
+ "rawdesc": "The current data array",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 81,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:get_data()\n -> data: table"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 81,
+ 19
+ ],
+ "name": "get_data",
+ "rawdesc": "Return current data from DataList component",
+ "start": [
+ 81,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return index for data value",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 141,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 141,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "finish": [
+ 141,
+ 25
+ ],
+ "name": "data",
+ "start": [
+ 141,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Return index for data value",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Return index for data value",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown|nil"
+ }
+ ],
+ "start": [
+ 141,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:get_index(data: table)\n -> unknown|nil"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 141,
+ 20
+ ],
+ "name": "get_index",
+ "rawdesc": "Return index for data value",
+ "start": [
+ 141,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The StaticGrid or DynamicGrid instance for Data List component",
+ "extends": {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 8,
+ 25
+ ],
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 8,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 8,
+ 25
+ ],
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 8,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "druid.grid"
+ }
+ ],
+ "view": "druid.grid"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 8,
+ 25
+ ],
+ "name": "grid",
+ "rawdesc": "The StaticGrid or DynamicGrid instance for Data List component",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.grid",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `scroll` — The Scroll instance for Data List component\n\n@*param* `grid` — The StaticGrid instance for Data List component\n\n@*param* `create_function` — The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 26,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 26,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The Scroll instance for Data List component",
+ "finish": [
+ 26,
+ 22
+ ],
+ "name": "scroll",
+ "rawdesc": "The Scroll instance for Data List component",
+ "start": [
+ 26,
+ 16
+ ],
+ "type": "local",
+ "view": "druid.scroll"
+ },
+ {
+ "desc": "The StaticGrid instance for Data List component",
+ "finish": [
+ 26,
+ 28
+ ],
+ "name": "grid",
+ "rawdesc": "The StaticGrid instance for Data List component",
+ "start": [
+ 26,
+ 24
+ ],
+ "type": "local",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "finish": [
+ 26,
+ 45
+ ],
+ "name": "create_function",
+ "rawdesc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "start": [
+ 26,
+ 30
+ ],
+ "type": "local",
+ "view": "function"
+ }
+ ],
+ "desc": "@*param* `scroll` — The Scroll instance for Data List component\n\n@*param* `grid` — The StaticGrid instance for Data List component\n\n@*param* `create_function` — The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "finish": [
+ 49,
+ 3
+ ],
+ "start": [
+ 26,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:init(scroll: druid.scroll, grid: druid.grid, create_function: function)"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 26,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 26,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The last index of the visible elements",
+ "extends": {
+ "finish": [
+ 13,
+ 27
+ ],
+ "start": [
+ 13,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 27
+ ],
+ "start": [
+ 13,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 13,
+ 27
+ ],
+ "name": "last_index",
+ "rawdesc": "The last index of the visible elements",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The event triggered when a new element is added",
+ "extends": {
+ "finish": [
+ 10,
+ 30
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 30
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 10,
+ 30
+ ],
+ "name": "on_element_add",
+ "rawdesc": "The event triggered when a new element is added",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The event triggered when an element is removed",
+ "extends": {
+ "finish": [
+ 11,
+ 33
+ ],
+ "start": [
+ 11,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 33
+ ],
+ "start": [
+ 11,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 11,
+ 33
+ ],
+ "name": "on_element_remove",
+ "rawdesc": "The event triggered when an element is removed",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid System on_remove function",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 53,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 53,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ }
+ ],
+ "desc": "Druid System on_remove function",
+ "finish": [
+ 56,
+ 3
+ ],
+ "rawdesc": "Druid System on_remove function",
+ "start": [
+ 53,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:on_remove()"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 53,
+ 20
+ ],
+ "name": "on_remove",
+ "rawdesc": "Druid System on_remove function",
+ "start": [
+ 53,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The event triggered when the scroll progress changes",
+ "extends": {
+ "finish": [
+ 9,
+ 41
+ ],
+ "start": [
+ 9,
+ 36
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 41
+ ],
+ "start": [
+ 9,
+ 36
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 9,
+ 41
+ ],
+ "name": "on_scroll_progress_change",
+ "rawdesc": "The event triggered when the scroll progress changes",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove element from DataList\n\n@*param* `index` — The index to remove the data at\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 106,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 106,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The index to remove the data at",
+ "finish": [
+ 106,
+ 23
+ ],
+ "name": "index",
+ "rawdesc": "The index to remove the data at",
+ "start": [
+ 106,
+ 18
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The constant from const.SHIFT.*",
+ "finish": [
+ 106,
+ 37
+ ],
+ "name": "shift_policy",
+ "rawdesc": "The constant from const.SHIFT.*",
+ "start": [
+ 106,
+ 25
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Remove element from DataList\n\n@*param* `index` — The index to remove the data at\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 111,
+ 3
+ ],
+ "rawdesc": "Remove element from DataList",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 106,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:remove(index: number|nil, shift_policy: number|nil)\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 106,
+ 17
+ ],
+ "name": "remove",
+ "rawdesc": "Remove element from DataList",
+ "start": [
+ 106,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove element from DataList by data value\n\n@*param* `data` — The data to remove\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 118,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 118,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The data to remove",
+ "finish": [
+ 118,
+ 30
+ ],
+ "name": "data",
+ "rawdesc": "The data to remove",
+ "start": [
+ 118,
+ 26
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The constant from const.SHIFT.*",
+ "finish": [
+ 118,
+ 44
+ ],
+ "name": "shift_policy",
+ "rawdesc": "The constant from const.SHIFT.*",
+ "start": [
+ 118,
+ 32
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Remove element from DataList by data value\n\n@*param* `data` — The data to remove\n\n@*param* `shift_policy` — The constant from const.SHIFT.*\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 126,
+ 3
+ ],
+ "rawdesc": "Remove element from DataList by data value",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 118,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:remove_by_data(data: table, shift_policy: number|nil)\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 118,
+ 25
+ ],
+ "name": "remove_by_data",
+ "rawdesc": "Remove element from DataList by data value",
+ "start": [
+ 118,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The scroll instance for Data List component",
+ "extends": {
+ "finish": [
+ 7,
+ 29
+ ],
+ "start": [
+ 7,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 29
+ ],
+ "start": [
+ 7,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "druid.scroll"
+ }
+ ],
+ "view": "druid.scroll"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 7,
+ 29
+ ],
+ "name": "scroll",
+ "rawdesc": "The scroll instance for Data List component",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.scroll",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The scroll progress",
+ "extends": {
+ "finish": [
+ 14,
+ 32
+ ],
+ "start": [
+ 14,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 32
+ ],
+ "start": [
+ 14,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 14,
+ 32
+ ],
+ "name": "scroll_progress",
+ "rawdesc": "The scroll progress",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Instant scroll to element with passed index\n\n@*param* `index` — The index to scroll to",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 180,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 180,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The index to scroll to",
+ "finish": [
+ 180,
+ 32
+ ],
+ "name": "index",
+ "rawdesc": "The index to scroll to",
+ "start": [
+ 180,
+ 27
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Instant scroll to element with passed index\n\n@*param* `index` — The index to scroll to",
+ "finish": [
+ 183,
+ 3
+ ],
+ "rawdesc": "Instant scroll to element with passed index",
+ "start": [
+ 180,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:scroll_to_index(index: number)"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 180,
+ 26
+ ],
+ "name": "scroll_to_index",
+ "rawdesc": "Instant scroll to element with passed index",
+ "start": [
+ 180,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set new data set for DataList component\n\n@*param* `data` — The new data array\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 71,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 71,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "The new data array",
+ "finish": [
+ 71,
+ 24
+ ],
+ "name": "data",
+ "rawdesc": "The new data array",
+ "start": [
+ 71,
+ 20
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set new data set for DataList component\n\n@*param* `data` — The new data array\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 76,
+ 3
+ ],
+ "rawdesc": "Set new data set for DataList component",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 71,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:set_data(data: table)\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 71,
+ 19
+ ],
+ "name": "set_data",
+ "rawdesc": "Set new data set for DataList component",
+ "start": [
+ 71,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove\n\n@*param* `is_use_cache` — Use cache version of DataList\n\n@*return* `self` — Current DataList instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "finish": [
+ 62,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements",
+ "start": [
+ 62,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.data_list"
+ },
+ {
+ "desc": "Use cache version of DataList",
+ "finish": [
+ 62,
+ 37
+ ],
+ "name": "is_use_cache",
+ "rawdesc": "Use cache version of DataList",
+ "start": [
+ 62,
+ 25
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove\n\n@*param* `is_use_cache` — Use cache version of DataList\n\n@*return* `self` — Current DataList instance",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove",
+ "returns": [
+ {
+ "desc": "Current DataList instance",
+ "name": "self",
+ "rawdesc": "Current DataList instance",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 62,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.data_list:set_use_cache(is_use_cache: boolean)\n -> self: druid.data_list"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 62,
+ 24
+ ],
+ "name": "set_use_cache",
+ "rawdesc": "Set use cache version of DataList. Requires make setup of components in on_element_add callback and clean in on_element_remove",
+ "start": [
+ 62,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The top index of the visible elements",
+ "extends": {
+ "finish": [
+ 12,
+ 26
+ ],
+ "start": [
+ 12,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 26
+ ],
+ "start": [
+ 12,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/extended/data_list.lua",
+ "finish": [
+ 12,
+ 26
+ ],
+ "name": "top_index",
+ "rawdesc": "The top index of the visible elements",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.data_list",
+ "type": "type",
+ "view": "druid.data_list"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "extends": [
+ {
+ "finish": [
+ 10,
+ 37
+ ],
+ "start": [
+ 10,
+ 22
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 10,
+ 37
+ ],
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.drag",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 253,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 253,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "finish": [
+ 253,
+ 27
+ ],
+ "name": "touch",
+ "start": [
+ 253,
+ 22
+ ],
+ "type": "local",
+ "view": "touch|nil"
+ }
+ ],
+ "finish": [
+ 270,
+ 3
+ ],
+ "start": [
+ 253,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:_end_touch(touch: touch|nil)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 253,
+ 21
+ ],
+ "name": "_end_touch",
+ "start": [
+ 253,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current touch action from action input data\nIf touch_id stored - return exact this touch action\n\n@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*param* `touch_id` — Touch id\n\n@*return* `touch` — Touch action",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 298,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 298,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "Action id from on_input",
+ "finish": [
+ 298,
+ 32
+ ],
+ "name": "action_id",
+ "rawdesc": "Action id from on_input",
+ "start": [
+ 298,
+ 23
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Action from on_input",
+ "finish": [
+ 298,
+ 40
+ ],
+ "name": "action",
+ "rawdesc": "Action from on_input",
+ "start": [
+ 298,
+ 34
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Touch id",
+ "finish": [
+ 298,
+ 50
+ ],
+ "name": "touch_id",
+ "rawdesc": "Touch id",
+ "start": [
+ 298,
+ 42
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Return current touch action from action input data\nIf touch_id stored - return exact this touch action\n\n@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*param* `touch_id` — Touch id\n\n@*return* `touch` — Touch action",
+ "finish": [
+ 316,
+ 3
+ ],
+ "rawdesc": "Return current touch action from action input data\nIf touch_id stored - return exact this touch action",
+ "returns": [
+ {
+ "desc": "Touch action",
+ "name": "touch",
+ "rawdesc": "Touch action",
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 298,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:_find_touch(action_id: hash, action: table, touch_id: number)\n -> touch: table|nil"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 298,
+ 22
+ ],
+ "name": "_find_touch",
+ "rawdesc": "Return current touch action from action input data\nIf touch_id stored - return exact this touch action",
+ "start": [
+ 298,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if Drag component is enabled",
+ "extends": {
+ "finish": [
+ 31,
+ 37
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 31,
+ 37
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 31,
+ 37
+ ],
+ "name": "_is_enabled",
+ "rawdesc": "True if Drag component is enabled",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Process on touch release. We should to find, if any other\ntouches exists to switch to another touch.\n\n@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "Action id from on_input",
+ "finish": [
+ 323,
+ 38
+ ],
+ "name": "action_id",
+ "rawdesc": "Action id from on_input",
+ "start": [
+ 323,
+ 29
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Action from on_input",
+ "finish": [
+ 323,
+ 46
+ ],
+ "name": "action",
+ "rawdesc": "Action from on_input",
+ "start": [
+ 323,
+ 40
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Process on touch release. We should to find, if any other\ntouches exists to switch to another touch.\n\n@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input",
+ "finish": [
+ 344,
+ 3
+ ],
+ "rawdesc": "Process on touch release. We should to find, if any other\ntouches exists to switch to another touch.",
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:_on_touch_release(action_id: hash, action: table)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 323,
+ 28
+ ],
+ "name": "_on_touch_release",
+ "rawdesc": "Process on touch release. We should to find, if any other\ntouches exists to switch to another touch.",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `touch` — Touch action",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 274,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 274,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "Touch action",
+ "finish": [
+ 274,
+ 31
+ ],
+ "name": "touch",
+ "rawdesc": "Touch action",
+ "start": [
+ 274,
+ 26
+ ],
+ "type": "local",
+ "view": "touch"
+ }
+ ],
+ "desc": "@*param* `touch` — Touch action",
+ "finish": [
+ 289,
+ 3
+ ],
+ "start": [
+ 274,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:_process_touch(touch: touch)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 274,
+ 25
+ ],
+ "name": "_process_touch",
+ "start": [
+ 274,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 60,
+ 54
+ ],
+ "start": [
+ 60,
+ 21
+ ],
+ "type": "select",
+ "view": "vector3"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 60,
+ 18
+ ],
+ "name": "_scene_scale",
+ "start": [
+ 60,
+ 1
+ ],
+ "type": "setfield",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 113,
+ 54
+ ],
+ "start": [
+ 113,
+ 21
+ ],
+ "type": "select",
+ "view": "vector3"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 113,
+ 18
+ ],
+ "name": "_scene_scale",
+ "start": [
+ 113,
+ 1
+ ],
+ "type": "setfield",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 246,
+ 54
+ ],
+ "start": [
+ 246,
+ 21
+ ],
+ "type": "select",
+ "view": "vector3"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 246,
+ 18
+ ],
+ "name": "_scene_scale",
+ "start": [
+ 246,
+ 1
+ ],
+ "type": "setfield",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 233,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 233,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "finish": [
+ 233,
+ 29
+ ],
+ "name": "touch",
+ "start": [
+ 233,
+ 24
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 249,
+ 3
+ ],
+ "start": [
+ 233,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:_start_touch(touch: any)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 233,
+ 23
+ ],
+ "name": "_start_touch",
+ "start": [
+ 233,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The x koef",
+ "extends": {
+ "finish": [
+ 32,
+ 32
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 32,
+ 32
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 32,
+ 32
+ ],
+ "name": "_x_koef",
+ "rawdesc": "The x koef",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The y koef",
+ "extends": {
+ "finish": [
+ 33,
+ 32
+ ],
+ "start": [
+ 33,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 33,
+ 32
+ ],
+ "start": [
+ 33,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 33,
+ 32
+ ],
+ "name": "_y_koef",
+ "rawdesc": "The y koef",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if Drag can move horizontally",
+ "extends": {
+ "finish": [
+ 21,
+ 23
+ ],
+ "start": [
+ 21,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 21,
+ 23
+ ],
+ "start": [
+ 21,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 21,
+ 23
+ ],
+ "name": "can_x",
+ "rawdesc": "True if Drag can move horizontally",
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if Drag can move vertically",
+ "extends": {
+ "finish": [
+ 22,
+ 23
+ ],
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 22,
+ 23
+ ],
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 22,
+ 23
+ ],
+ "name": "can_y",
+ "rawdesc": "True if Drag can move vertically",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The click zone of Drag component",
+ "extends": {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 25
+ ],
+ "start": [
+ 18,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ },
+ {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "node|nil"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 18,
+ 29
+ ],
+ "name": "click_zone",
+ "rawdesc": "The click zone of Drag component",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 41,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 41,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.instance"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 41,
+ 11
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 41,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The horizontal drag distance",
+ "extends": {
+ "finish": [
+ 23,
+ 19
+ ],
+ "start": [
+ 23,
+ 13
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 19
+ ],
+ "start": [
+ 23,
+ 13
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 23,
+ 19
+ ],
+ "name": "dx",
+ "rawdesc": "The horizontal drag distance",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The vertical drag distance",
+ "extends": {
+ "finish": [
+ 24,
+ 19
+ ],
+ "start": [
+ 24,
+ 13
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 19
+ ],
+ "start": [
+ 24,
+ 13
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 24,
+ 19
+ ],
+ "name": "dy",
+ "rawdesc": "The vertical drag distance",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component for handling hover events on a node",
+ "extends": {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 43,
+ 45
+ ],
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 43,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.hover"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 43,
+ 11
+ ],
+ "name": "hover",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 43,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.hover",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The constructor for Drag component\n\n@*param* `node_or_node_id` — The node to subscribe to drag events over\n\n@*param* `on_drag_callback` — The callback to call when a drag occurs",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 40,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 40,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "The node to subscribe to drag events over",
+ "finish": [
+ 40,
+ 31
+ ],
+ "name": "node_or_node_id",
+ "rawdesc": "The node to subscribe to drag events over",
+ "start": [
+ 40,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "The callback to call when a drag occurs",
+ "finish": [
+ 40,
+ 49
+ ],
+ "name": "on_drag_callback",
+ "rawdesc": "The callback to call when a drag occurs",
+ "start": [
+ 40,
+ 33
+ ],
+ "type": "local",
+ "view": "fun(self: any, touch: any)"
+ }
+ ],
+ "desc": "The constructor for Drag component\n\n@*param* `node_or_node_id` — The node to subscribe to drag events over\n\n@*param* `on_drag_callback` — The callback to call when a drag occurs",
+ "finish": [
+ 71,
+ 3
+ ],
+ "rawdesc": "The constructor for Drag component",
+ "start": [
+ 40,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:init(node_or_node_id: string|node, on_drag_callback: fun(self: any, touch: any))"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 40,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "The constructor for Drag component",
+ "start": [
+ 40,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if a drag is active",
+ "extends": {
+ "finish": [
+ 20,
+ 25
+ ],
+ "start": [
+ 20,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 25
+ ],
+ "start": [
+ 20,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 20,
+ 25
+ ],
+ "name": "is_drag",
+ "rawdesc": "True if a drag is active",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if Drag component is capture input\n\n@*return* `is_enabled` — True if Drag component is enabled",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 228,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 228,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ }
+ ],
+ "desc": "Check if Drag component is capture input\n\n@*return* `is_enabled` — True if Drag component is enabled",
+ "finish": [
+ 230,
+ 3
+ ],
+ "rawdesc": "Check if Drag component is capture input",
+ "returns": [
+ {
+ "desc": "True if Drag component is enabled",
+ "name": "is_enabled",
+ "rawdesc": "True if Drag component is enabled",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 228,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:is_enabled()\n -> is_enabled: boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 228,
+ 21
+ ],
+ "name": "is_enabled",
+ "rawdesc": "Check if Drag component is capture input",
+ "start": [
+ 228,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if a touch is active",
+ "extends": {
+ "finish": [
+ 19,
+ 26
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 26
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 19,
+ 26
+ ],
+ "name": "is_touch",
+ "rawdesc": "True if a touch is active",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The node to subscribe to drag events over",
+ "extends": {
+ "finish": [
+ 11,
+ 19
+ ],
+ "start": [
+ 11,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 19
+ ],
+ "start": [
+ 11,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 11,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "The node to subscribe to drag events over",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, touch) The event triggered when a drag occurs",
+ "extends": {
+ "finish": [
+ 15,
+ 23
+ ],
+ "start": [
+ 15,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 23
+ ],
+ "start": [
+ 15,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 15,
+ 23
+ ],
+ "name": "on_drag",
+ "rawdesc": "fun(self, touch) The event triggered when a drag occurs",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, touch) The event triggered when a drag ends",
+ "extends": {
+ "finish": [
+ 16,
+ 27
+ ],
+ "start": [
+ 16,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 27
+ ],
+ "start": [
+ 16,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 16,
+ 27
+ ],
+ "name": "on_drag_end",
+ "rawdesc": "fun(self, touch) The event triggered when a drag ends",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, touch) The event triggered when a drag starts",
+ "extends": {
+ "finish": [
+ 14,
+ 29
+ ],
+ "start": [
+ 14,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 29
+ ],
+ "start": [
+ 14,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 14,
+ 29
+ ],
+ "name": "on_drag_start",
+ "rawdesc": "fun(self, touch) The event triggered when a drag starts",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_consumed` — True if the input was consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 129,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 129,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "Action id from on_input",
+ "finish": [
+ 129,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "Action id from on_input",
+ "start": [
+ 129,
+ 20
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Action from on_input",
+ "finish": [
+ 129,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "Action from on_input",
+ "start": [
+ 129,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_consumed` — True if the input was consumed",
+ "finish": [
+ 203,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input was consumed",
+ "name": "is_consumed",
+ "rawdesc": "True if the input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 129,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:on_input(action_id: hash, action: table)\n -> is_consumed: boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 129,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 129,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 118,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 118,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ }
+ ],
+ "finish": [
+ 122,
+ 3
+ ],
+ "start": [
+ 118,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:on_input_interrupt()"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 118,
+ 29
+ ],
+ "name": "on_input_interrupt",
+ "start": [
+ 118,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 98,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 98,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ }
+ ],
+ "finish": [
+ 105,
+ 3
+ ],
+ "start": [
+ 98,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:on_late_init()"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 98,
+ 23
+ ],
+ "name": "on_late_init",
+ "start": [
+ 98,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `style` — The style of Drag component",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 76,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 76,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "The style of Drag component",
+ "finish": [
+ 76,
+ 32
+ ],
+ "name": "style",
+ "rawdesc": "The style of Drag component",
+ "start": [
+ 76,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.drag.style"
+ }
+ ],
+ "desc": "@*param* `style` — The style of Drag component",
+ "finish": [
+ 81,
+ 3
+ ],
+ "start": [
+ 76,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:on_style_change(style: druid.drag.style)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 76,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 76,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, touch) The event triggered when a touch ends",
+ "extends": {
+ "finish": [
+ 13,
+ 28
+ ],
+ "start": [
+ 13,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 28
+ ],
+ "start": [
+ 13,
+ 23
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 13,
+ 28
+ ],
+ "name": "on_touch_end",
+ "rawdesc": "fun(self, touch) The event triggered when a touch ends",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, touch) The event triggered when a touch starts",
+ "extends": {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 12,
+ 30
+ ],
+ "name": "on_touch_start",
+ "rawdesc": "fun(self, touch) The event triggered when a touch starts",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 109,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 109,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ }
+ ],
+ "finish": [
+ 114,
+ 3
+ ],
+ "start": [
+ 109,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:on_window_resized()"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 109,
+ 28
+ ],
+ "name": "on_window_resized",
+ "start": [
+ 109,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current screen x position",
+ "extends": {
+ "finish": [
+ 28,
+ 25
+ ],
+ "start": [
+ 28,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 28,
+ 25
+ ],
+ "start": [
+ 28,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 28,
+ 25
+ ],
+ "name": "screen_x",
+ "rawdesc": "The current screen x position",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current screen y position",
+ "extends": {
+ "finish": [
+ 29,
+ 25
+ ],
+ "start": [
+ 29,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 29,
+ 25
+ ],
+ "start": [
+ 29,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 29,
+ 25
+ ],
+ "name": "screen_y",
+ "rawdesc": "The current screen y position",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set Drag click zone\n\n@*param* `node` — Node or node id\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 209,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 209,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "Node or node id",
+ "finish": [
+ 209,
+ 30
+ ],
+ "name": "node",
+ "rawdesc": "Node or node id",
+ "start": [
+ 209,
+ 26
+ ],
+ "type": "local",
+ "view": "string|node|nil"
+ }
+ ],
+ "desc": "Set Drag click zone\n\n@*param* `node` — Node or node id\n\n@*return* `self` — Current instance",
+ "finish": [
+ 213,
+ 3
+ ],
+ "rawdesc": "Set Drag click zone",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.drag"
+ }
+ ],
+ "start": [
+ 209,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:set_click_zone(node: string|node|nil)\n -> self: druid.drag"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 209,
+ 25
+ ],
+ "name": "set_click_zone",
+ "rawdesc": "Set Drag click zone",
+ "start": [
+ 209,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set Drag component enabled state.\n\n@*param* `is_enabled` — True if Drag component is enabled",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 86,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 86,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "desc": "True if Drag component is enabled",
+ "finish": [
+ 86,
+ 38
+ ],
+ "name": "is_enabled",
+ "rawdesc": "True if Drag component is enabled",
+ "start": [
+ 86,
+ 28
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set Drag component enabled state.\n\n@*param* `is_enabled` — True if Drag component is enabled",
+ "finish": [
+ 94,
+ 3
+ ],
+ "rawdesc": "Set Drag component enabled state.",
+ "start": [
+ 86,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:set_drag_cursors(is_enabled: boolean)"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 86,
+ 27
+ ],
+ "name": "set_drag_cursors",
+ "rawdesc": "Set Drag component enabled state.",
+ "start": [
+ 86,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set Drag component enabled state.\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "A component that allows you to subscribe to drag events over a node",
+ "finish": [
+ 219,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "A component that allows you to subscribe to drag events over a node",
+ "start": [
+ 219,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.drag"
+ },
+ {
+ "finish": [
+ 219,
+ 33
+ ],
+ "name": "is_enabled",
+ "start": [
+ 219,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set Drag component enabled state.\n\n@*return* `self` — Current instance",
+ "finish": [
+ 223,
+ 3
+ ],
+ "rawdesc": "Set Drag component enabled state.",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.drag"
+ }
+ ],
+ "start": [
+ 219,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.drag:set_enabled(is_enabled: boolean)\n -> self: druid.drag"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 219,
+ 22
+ ],
+ "name": "set_enabled",
+ "rawdesc": "Set Drag component enabled state.",
+ "start": [
+ 219,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The style of Drag component",
+ "extends": {
+ "finish": [
+ 17,
+ 32
+ ],
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 32
+ ],
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.drag.style"
+ }
+ ],
+ "view": "druid.drag.style"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 17,
+ 32
+ ],
+ "name": "style",
+ "rawdesc": "The style of Drag component",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.drag.style",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The touch id",
+ "extends": {
+ "finish": [
+ 25,
+ 25
+ ],
+ "start": [
+ 25,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 25,
+ 25
+ ],
+ "start": [
+ 25,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 25,
+ 25
+ ],
+ "name": "touch_id",
+ "rawdesc": "The touch id",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The touch start position",
+ "extends": {
+ "finish": [
+ 30,
+ 33
+ ],
+ "start": [
+ 30,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 30,
+ 33
+ ],
+ "start": [
+ 30,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 30,
+ 33
+ ],
+ "name": "touch_start_pos",
+ "rawdesc": "The touch start position",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current x position",
+ "extends": {
+ "finish": [
+ 26,
+ 18
+ ],
+ "start": [
+ 26,
+ 12
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 26,
+ 18
+ ],
+ "start": [
+ 26,
+ 12
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 26,
+ 18
+ ],
+ "name": "x",
+ "rawdesc": "The current x position",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The current y position",
+ "extends": {
+ "finish": [
+ 27,
+ 18
+ ],
+ "start": [
+ 27,
+ 12
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 27,
+ 18
+ ],
+ "start": [
+ 27,
+ 12
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 27,
+ 18
+ ],
+ "name": "y",
+ "rawdesc": "The current y position",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.drag",
+ "type": "type",
+ "view": "druid.drag"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 5,
+ 26
+ ],
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.drag.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Distance in pixels to start dragging. Default: 10",
+ "extends": {
+ "finish": [
+ 6,
+ 30
+ ],
+ "start": [
+ 6,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 6,
+ 30
+ ],
+ "start": [
+ 6,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 6,
+ 30
+ ],
+ "name": "DRAG_DEADZONE",
+ "rawdesc": "Distance in pixels to start dragging. Default: 10",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If screen aspect ratio affects on drag values. Default: false",
+ "extends": {
+ "finish": [
+ 7,
+ 36
+ ],
+ "start": [
+ 7,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 36
+ ],
+ "start": [
+ 7,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/drag.lua",
+ "finish": [
+ 7,
+ 36
+ ],
+ "name": "NO_USE_SCREEN_KOEF",
+ "rawdesc": "If screen aspect ratio affects on drag values. Default: false",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.drag.style",
+ "type": "type",
+ "view": "druid.drag.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 15,
+ 28
+ ],
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.example.data",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "URL to the source code",
+ "extends": {
+ "finish": [
+ 19,
+ 29
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 25
+ ],
+ "start": [
+ 19,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ },
+ {
+ "finish": [
+ 19,
+ 29
+ ],
+ "start": [
+ 19,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "string|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 19,
+ 29
+ ],
+ "name": "code_url",
+ "rawdesc": "URL to the source code",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 20,
+ 45
+ ],
+ "start": [
+ 20,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 41
+ ],
+ "start": [
+ 20,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 20,
+ 45
+ ],
+ "start": [
+ 20,
+ 42
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "druid.component|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 20,
+ 45
+ ],
+ "name": "component_class",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 23,
+ 68
+ ],
+ "start": [
+ 23,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 63
+ ],
+ "start": [
+ 23,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 23,
+ 55
+ ],
+ "name": {
+ "[1]": "instance",
+ "finish": [
+ 23,
+ 38
+ ],
+ "start": [
+ 23,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "instance"
+ },
+ "start": [
+ 23,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 23,
+ 63
+ ],
+ "returns": [
+ {
+ "finish": [
+ 23,
+ 63
+ ],
+ "start": [
+ 23,
+ 57
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 63
+ ],
+ "start": [
+ 23,
+ 57
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ }
+ ],
+ "start": [
+ 23,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(instance: druid.component):string"
+ }
+ ],
+ "view": "fun(instance: druid.component):string"
+ },
+ {
+ "finish": [
+ 23,
+ 68
+ ],
+ "start": [
+ 23,
+ 65
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(instance: druid.component):string|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 23,
+ 68
+ ],
+ "name": "get_debug_info",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(instance: druid.component):string|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 25,
+ 40
+ ],
+ "start": [
+ 25,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 25,
+ 36
+ ],
+ "start": [
+ 25,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ },
+ {
+ "finish": [
+ 25,
+ 40
+ ],
+ "start": [
+ 25,
+ 37
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "string|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 25,
+ 40
+ ],
+ "name": "information_text_id",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 16,
+ 24
+ ],
+ "start": [
+ 16,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 24
+ ],
+ "start": [
+ 16,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 16,
+ 24
+ ],
+ "name": "name_id",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 22,
+ 93
+ ],
+ "start": [
+ 22,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 22,
+ 62
+ ],
+ "name": {
+ "[1]": "instance",
+ "finish": [
+ 22,
+ 32
+ ],
+ "start": [
+ 22,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "instance"
+ },
+ "start": [
+ 22,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component|druid.widget"
+ },
+ {
+ "finish": [
+ 22,
+ 88
+ ],
+ "name": {
+ "[1]": "output_list",
+ "finish": [
+ 22,
+ 75
+ ],
+ "start": [
+ 22,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "output_list"
+ },
+ "start": [
+ 22,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "output_list"
+ }
+ ],
+ "finish": [
+ 22,
+ 89
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 22,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(instance: druid.component|druid.widget, output_list: output_list)"
+ },
+ {
+ "finish": [
+ 22,
+ 93
+ ],
+ "start": [
+ 22,
+ 90
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(instance: druid.component|druid.widget, output_list: output_list)|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 22,
+ 93
+ ],
+ "name": "on_create",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(instance: druid.component|druid.widget, output_list: output_list)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 24,
+ 101
+ ],
+ "start": [
+ 24,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 96
+ ],
+ "start": [
+ 24,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 59
+ ],
+ "name": {
+ "[1]": "instance",
+ "finish": [
+ 24,
+ 42
+ ],
+ "start": [
+ 24,
+ 34
+ ],
+ "type": "doc.type.arg.name",
+ "view": "instance"
+ },
+ "start": [
+ 24,
+ 34
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 95
+ ],
+ "name": {
+ "[1]": "properties_panel",
+ "finish": [
+ 24,
+ 77
+ ],
+ "start": [
+ 24,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "properties_panel"
+ },
+ "start": [
+ 24,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "properties_panel"
+ }
+ ],
+ "finish": [
+ 24,
+ 96
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 30
+ ],
+ "type": "doc.type.function",
+ "view": "fun(instance: druid.component, properties_panel: properties_panel)"
+ }
+ ],
+ "view": "fun(instance: druid.component, properties_panel: properties_panel)"
+ },
+ {
+ "finish": [
+ 24,
+ 101
+ ],
+ "start": [
+ 24,
+ 98
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(instance: druid.component, properties_panel: properties_panel)|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 24,
+ 101
+ ],
+ "name": "properties_control",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(instance: druid.component, properties_panel: properties_panel)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 17,
+ 21
+ ],
+ "start": [
+ 17,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 21
+ ],
+ "start": [
+ 17,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 17,
+ 21
+ ],
+ "name": "root",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 25
+ ],
+ "start": [
+ 18,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ },
+ {
+ "finish": [
+ 18,
+ 29
+ ],
+ "start": [
+ 18,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "string|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 18,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "New way to create components",
+ "extends": {
+ "finish": [
+ 21,
+ 39
+ ],
+ "start": [
+ 21,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 21,
+ 35
+ ],
+ "start": [
+ 21,
+ 23
+ ],
+ "type": "doc.type.name",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 21,
+ 39
+ ],
+ "start": [
+ 21,
+ 36
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "druid.widget|nil"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 21,
+ 39
+ ],
+ "name": "widget_class",
+ "rawdesc": "New way to create components",
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.widget|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.example.data",
+ "type": "type",
+ "view": "druid.example.data"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 11,
+ 24
+ ],
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.examples",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 12,
+ 32
+ ],
+ "name": "example_name_id",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 13,
+ 44
+ ],
+ "start": [
+ 13,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 44
+ ],
+ "start": [
+ 13,
+ 24
+ ],
+ "type": "doc.type.array",
+ "view": "druid.example.data[]"
+ }
+ ],
+ "view": "druid.example.data[]"
+ },
+ "file": "/example/examples/druid_examples.lua",
+ "finish": [
+ 13,
+ 44
+ ],
+ "name": "examples_list",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.example.data[]",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.examples",
+ "type": "type",
+ "view": "druid.examples"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "extends": [
+ {
+ "finish": [
+ 10,
+ 37
+ ],
+ "start": [
+ 10,
+ 22
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 10,
+ 37
+ ],
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.grid",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `border` — Will be updated with new border values",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 505,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 505,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "Will be updated with new border values",
+ "finish": [
+ 505,
+ 32
+ ],
+ "name": "border",
+ "rawdesc": "Will be updated with new border values",
+ "start": [
+ 505,
+ 26
+ ],
+ "type": "local",
+ "view": "vector4"
+ },
+ {
+ "finish": [
+ 505,
+ 37
+ ],
+ "name": "pos",
+ "start": [
+ 505,
+ 34
+ ],
+ "type": "local",
+ "view": "vector3"
+ },
+ {
+ "finish": [
+ 505,
+ 43
+ ],
+ "name": "size",
+ "start": [
+ 505,
+ 39
+ ],
+ "type": "local",
+ "view": "vector3"
+ },
+ {
+ "finish": [
+ 505,
+ 50
+ ],
+ "name": "pivot",
+ "start": [
+ 505,
+ 45
+ ],
+ "type": "local",
+ "view": "vector3"
+ }
+ ],
+ "desc": "@*param* `border` — Will be updated with new border values",
+ "finish": [
+ 515,
+ 3
+ ],
+ "start": [
+ 505,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_extend_border(border: vector4, pos: vector3, size: vector3, pivot: vector3)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 505,
+ 25
+ ],
+ "name": "_extend_border",
+ "start": [
+ 505,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return elements offset for correct posing nodes. Correct posing at\nparent pivot node (0:0) with adjusting of node sizes and anchoring\n\n@*return* `The` — offset vector",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 466,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 466,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Return elements offset for correct posing nodes. Correct posing at\nparent pivot node (0:0) with adjusting of node sizes and anchoring\n\n@*return* `The` — offset vector",
+ "finish": [
+ 477,
+ 3
+ ],
+ "rawdesc": "Return elements offset for correct posing nodes. Correct posing at\nparent pivot node (0:0) with adjusting of node sizes and anchoring",
+ "returns": [
+ {
+ "desc": "offset vector",
+ "name": "The",
+ "rawdesc": "offset vector",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 466,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_get_zero_offset()\n -> The: vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 466,
+ 27
+ ],
+ "name": "_get_zero_offset",
+ "rawdesc": "Return elements offset for correct posing nodes. Correct posing at\nparent pivot node (0:0) with adjusting of node sizes and anchoring",
+ "start": [
+ 466,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return offset x for last row in grid. Used to align this row accorting to grid's anchor\n\n@*return* `The` — offset x value",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 483,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 483,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "finish": [
+ 483,
+ 39
+ ],
+ "name": "row_index",
+ "start": [
+ 483,
+ 30
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "Return offset x for last row in grid. Used to align this row accorting to grid's anchor\n\n@*return* `The` — offset x value",
+ "finish": [
+ 498,
+ 3
+ ],
+ "rawdesc": "Return offset x for last row in grid. Used to align this row accorting to grid's anchor",
+ "returns": [
+ {
+ "desc": "offset x value",
+ "name": "The",
+ "rawdesc": "offset x value",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 483,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_get_zero_offset_x(row_index: any)\n -> The: number"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 483,
+ 29
+ ],
+ "name": "_get_zero_offset_x",
+ "rawdesc": "Return offset x for last row in grid. Used to align this row accorting to grid's anchor",
+ "start": [
+ 483,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 46,
+ 83
+ ],
+ "start": [
+ 46,
+ 31
+ ],
+ "type": "binary",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 46,
+ 28
+ ],
+ "name": "_grid_horizonal_offset",
+ "start": [
+ 46,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 166,
+ 83
+ ],
+ "start": [
+ 166,
+ 31
+ ],
+ "type": "binary",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 166,
+ 28
+ ],
+ "name": "_grid_horizonal_offset",
+ "start": [
+ 166,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 349,
+ 83
+ ],
+ "start": [
+ 349,
+ 31
+ ],
+ "type": "binary",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 349,
+ 28
+ ],
+ "name": "_grid_horizonal_offset",
+ "start": [
+ 349,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 373,
+ 83
+ ],
+ "start": [
+ 373,
+ 31
+ ],
+ "type": "binary",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 373,
+ 28
+ ],
+ "name": "_grid_horizonal_offset",
+ "start": [
+ 373,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 42,
+ 38
+ ],
+ "start": [
+ 42,
+ 16
+ ],
+ "type": "select",
+ "view": "node"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 42,
+ 13
+ ],
+ "name": "_prefab",
+ "start": [
+ 42,
+ 1
+ ],
+ "type": "setfield",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 60,
+ 47
+ ],
+ "start": [
+ 60,
+ 31
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 60,
+ 28
+ ],
+ "name": "_set_position_function",
+ "start": [
+ 60,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 304,
+ 59
+ ],
+ "start": [
+ 304,
+ 31
+ ],
+ "type": "binary",
+ "view": "function"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 304,
+ 28
+ ],
+ "name": "_set_position_function",
+ "start": [
+ 304,
+ 1
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Update grid inner state\n\n@*param* `is_instant` — If true, node position update instantly, otherwise with set_position_function callback",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 400,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 400,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "If true, node position update instantly, otherwise with set_position_function callback",
+ "finish": [
+ 400,
+ 29
+ ],
+ "name": "is_instant",
+ "rawdesc": "If true, node position update instantly, otherwise with set_position_function callback",
+ "start": [
+ 400,
+ 19
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Update grid inner state\n\n@*param* `is_instant` — If true, node position update instantly, otherwise with set_position_function callback",
+ "finish": [
+ 404,
+ 3
+ ],
+ "rawdesc": "Update grid inner state",
+ "start": [
+ 400,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_update(is_instant: boolean|nil)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 400,
+ 18
+ ],
+ "name": "_update",
+ "rawdesc": "Update grid inner state",
+ "start": [
+ 400,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Update grid content borders, recalculate min and max values",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 424,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 424,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Update grid content borders, recalculate min and max values",
+ "finish": [
+ 437,
+ 3
+ ],
+ "rawdesc": "Update grid content borders, recalculate min and max values",
+ "start": [
+ 424,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_update_borders()"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 424,
+ 26
+ ],
+ "name": "_update_borders",
+ "rawdesc": "Update grid content borders, recalculate min and max values",
+ "start": [
+ 424,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Update first and last indexes of grid nodes",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 409,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 409,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Update first and last indexes of grid nodes",
+ "finish": [
+ 419,
+ 3
+ ],
+ "rawdesc": "Update first and last indexes of grid nodes",
+ "start": [
+ 409,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_update_indexes()"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 409,
+ 26
+ ],
+ "name": "_update_indexes",
+ "rawdesc": "Update first and last indexes of grid nodes",
+ "start": [
+ 409,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Update grid nodes position\n\n@*param* `is_instant` — If true, node position update instantly, otherwise with set_position_function callback",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 443,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 443,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "If true, node position update instantly, otherwise with set_position_function callback",
+ "finish": [
+ 443,
+ 33
+ ],
+ "name": "is_instant",
+ "rawdesc": "If true, node position update instantly, otherwise with set_position_function callback",
+ "start": [
+ 443,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Update grid nodes position\n\n@*param* `is_instant` — If true, node position update instantly, otherwise with set_position_function callback",
+ "finish": [
+ 459,
+ 3
+ ],
+ "rawdesc": "Update grid nodes position",
+ "start": [
+ 443,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:_update_pos(is_instant: boolean|nil)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 443,
+ 22
+ ],
+ "name": "_update_pos",
+ "rawdesc": "Update grid nodes position",
+ "start": [
+ 443,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 50,
+ 4
+ ],
+ "start": [
+ 47,
+ 21
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 47,
+ 18
+ ],
+ "name": "_zero_offset",
+ "start": [
+ 47,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 171,
+ 2
+ ],
+ "start": [
+ 167,
+ 21
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 167,
+ 18
+ ],
+ "name": "_zero_offset",
+ "start": [
+ 167,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 353,
+ 4
+ ],
+ "start": [
+ 350,
+ 21
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 350,
+ 18
+ ],
+ "name": "_zero_offset",
+ "start": [
+ 350,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 377,
+ 4
+ ],
+ "start": [
+ 374,
+ 21
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 374,
+ 18
+ ],
+ "name": "_zero_offset",
+ "start": [
+ 374,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add new item to the grid\n\n@*param* `item` — GUI node\n\n@*param* `index` — The item position. By default add as last item\n\n@*param* `shift_policy` — How shift nodes, if required. Default: const.SHIFT.RIGHT\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 185,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 185,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "GUI node",
+ "finish": [
+ 185,
+ 19
+ ],
+ "name": "item",
+ "rawdesc": "GUI node",
+ "start": [
+ 185,
+ 15
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "The item position. By default add as last item",
+ "finish": [
+ 185,
+ 26
+ ],
+ "name": "index",
+ "rawdesc": "The item position. By default add as last item",
+ "start": [
+ 185,
+ 21
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "How shift nodes, if required. Default: const.SHIFT.RIGHT",
+ "finish": [
+ 185,
+ 40
+ ],
+ "name": "shift_policy",
+ "rawdesc": "How shift nodes, if required. Default: const.SHIFT.RIGHT",
+ "start": [
+ 185,
+ 28
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "If true, update node positions instantly",
+ "finish": [
+ 185,
+ 52
+ ],
+ "name": "is_instant",
+ "rawdesc": "If true, update node positions instantly",
+ "start": [
+ 185,
+ 42
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Add new item to the grid\n\n@*param* `item` — GUI node\n\n@*param* `index` — The item position. By default add as last item\n\n@*param* `shift_policy` — How shift nodes, if required. Default: const.SHIFT.RIGHT\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 203,
+ 3
+ ],
+ "rawdesc": "Add new item to the grid",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 185,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:add(item: node, index: number|nil, shift_policy: number|nil, is_instant: boolean|nil)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 185,
+ 14
+ ],
+ "name": "add",
+ "rawdesc": "Add new item to the grid",
+ "start": [
+ 185,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Anchor",
+ "extends": {
+ "finish": [
+ 20,
+ 24
+ ],
+ "start": [
+ 20,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 24
+ ],
+ "start": [
+ 20,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 20,
+ 24
+ ],
+ "name": "anchor",
+ "rawdesc": "Anchor",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Border",
+ "extends": {
+ "finish": [
+ 23,
+ 24
+ ],
+ "start": [
+ 23,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 24
+ ],
+ "start": [
+ 23,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "vector4"
+ }
+ ],
+ "view": "vector4"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 23,
+ 24
+ ],
+ "name": "border",
+ "rawdesc": "Border",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector4",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Clear grid nodes array. GUI nodes will be not deleted!\n If you want to delete GUI nodes, use static_grid.nodes array before grid:clear\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 313,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 313,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Clear grid nodes array. GUI nodes will be not deleted!\n If you want to delete GUI nodes, use static_grid.nodes array before grid:clear\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 326,
+ 3
+ ],
+ "rawdesc": "Clear grid nodes array. GUI nodes will be not deleted!\n If you want to delete GUI nodes, use static_grid.nodes array before grid:clear",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 313,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:clear()\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 313,
+ 16
+ ],
+ "name": "clear",
+ "rawdesc": "Clear grid nodes array. GUI nodes will be not deleted!\n If you want to delete GUI nodes, use static_grid.nodes array before grid:clear",
+ "start": [
+ 313,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "First index",
+ "extends": {
+ "finish": [
+ 18,
+ 28
+ ],
+ "start": [
+ 18,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 28
+ ],
+ "start": [
+ 18,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 18,
+ 28
+ ],
+ "name": "first_index",
+ "rawdesc": "First index",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return array of all node positions\n\n@*return* `positions` — All grid node positions",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 289,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 289,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Return array of all node positions\n\n@*return* `positions` — All grid node positions",
+ "finish": [
+ 296,
+ 3
+ ],
+ "rawdesc": "Return array of all node positions",
+ "returns": [
+ {
+ "desc": "All grid node positions",
+ "name": "positions",
+ "rawdesc": "All grid node positions",
+ "type": "function.return",
+ "view": "vector3[]"
+ }
+ ],
+ "start": [
+ 289,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_all_pos()\n -> positions: vector3[]"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 289,
+ 22
+ ],
+ "name": "get_all_pos",
+ "rawdesc": "Return array of all node positions",
+ "start": [
+ 289,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return grid content borders\n\n@*return* `borders` — The grid content borders",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 282,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 282,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Return grid content borders\n\n@*return* `borders` — The grid content borders",
+ "finish": [
+ 284,
+ 3
+ ],
+ "rawdesc": "Return grid content borders",
+ "returns": [
+ {
+ "desc": "The grid content borders",
+ "name": "borders",
+ "rawdesc": "The grid content borders",
+ "type": "function.return",
+ "view": "vector4"
+ }
+ ],
+ "start": [
+ 282,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_borders()\n -> borders: vector4"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 282,
+ 22
+ ],
+ "name": "get_borders",
+ "rawdesc": "Return grid content borders",
+ "start": [
+ 282,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return grid index by position\n\n@*param* `pos` — The node position in the grid\n\n@*return* `index` — The node index",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 95,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 95,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The node position in the grid",
+ "finish": [
+ 95,
+ 24
+ ],
+ "name": "pos",
+ "rawdesc": "The node position in the grid",
+ "start": [
+ 95,
+ 21
+ ],
+ "type": "local",
+ "view": "vector3"
+ }
+ ],
+ "desc": "Return grid index by position\n\n@*param* `pos` — The node position in the grid\n\n@*return* `index` — The node index",
+ "finish": [
+ 108,
+ 3
+ ],
+ "rawdesc": "Return grid index by position",
+ "returns": [
+ {
+ "desc": "The node index",
+ "name": "index",
+ "rawdesc": "The node index",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 95,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_index(pos: vector3)\n -> index: number"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 95,
+ 20
+ ],
+ "name": "get_index",
+ "rawdesc": "Return grid index by position",
+ "start": [
+ 95,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return grid index by node\n\n@*param* `node` — The gui node in the grid\n\n@*return* `index` — The node index",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 114,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 114,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The gui node in the grid",
+ "finish": [
+ 114,
+ 33
+ ],
+ "name": "node",
+ "rawdesc": "The gui node in the grid",
+ "start": [
+ 114,
+ 29
+ ],
+ "type": "local",
+ "view": "node"
+ }
+ ],
+ "desc": "Return grid index by node\n\n@*param* `node` — The gui node in the grid\n\n@*return* `index` — The node index",
+ "finish": [
+ 122,
+ 3
+ ],
+ "rawdesc": "Return grid index by node",
+ "returns": [
+ {
+ "desc": "The node index",
+ "name": "index",
+ "rawdesc": "The node index",
+ "type": "function.return",
+ "view": "number|nil"
+ }
+ ],
+ "start": [
+ 114,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_index_by_node(node: node)\n -> index: number|nil"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 114,
+ 28
+ ],
+ "name": "get_index_by_node",
+ "rawdesc": "Return grid index by node",
+ "start": [
+ 114,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return StaticGrid offset, where StaticGrid content starts.\n\n@*return* `offset` — The StaticGrid offset",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 331,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 331,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Return StaticGrid offset, where StaticGrid content starts.\n\n@*return* `offset` — The StaticGrid offset",
+ "finish": [
+ 341,
+ 3
+ ],
+ "rawdesc": "Return StaticGrid offset, where StaticGrid content starts.",
+ "returns": [
+ {
+ "desc": "The StaticGrid offset",
+ "name": "offset",
+ "rawdesc": "The StaticGrid offset",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 331,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_offset()\n -> offset: vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 331,
+ 21
+ ],
+ "name": "get_offset",
+ "rawdesc": "Return StaticGrid offset, where StaticGrid content starts.",
+ "start": [
+ 331,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return pos for grid node index\n\n@*param* `index` — The grid element index\n\n@*return* `position` — Node position",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 78,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 78,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The grid element index",
+ "finish": [
+ 78,
+ 24
+ ],
+ "name": "index",
+ "rawdesc": "The grid element index",
+ "start": [
+ 78,
+ 19
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Return pos for grid node index\n\n@*param* `index` — The grid element index\n\n@*return* `position` — Node position",
+ "finish": [
+ 89,
+ 3
+ ],
+ "rawdesc": "Return pos for grid node index",
+ "returns": [
+ {
+ "desc": "Node position",
+ "name": "position",
+ "rawdesc": "Node position",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 78,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_pos(index: number)\n -> position: vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 78,
+ 18
+ ],
+ "name": "get_pos",
+ "rawdesc": "Return pos for grid node index",
+ "start": [
+ 78,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return grid content size\n\n@*return* `size` — The grid content size",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 247,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 247,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Return grid content size\n\n@*return* `size` — The grid content size",
+ "finish": [
+ 252,
+ 3
+ ],
+ "rawdesc": "Return grid content size",
+ "returns": [
+ {
+ "desc": "The grid content size",
+ "name": "size",
+ "rawdesc": "The grid content size",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 247,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_size()\n -> size: vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 247,
+ 19
+ ],
+ "name": "get_size",
+ "rawdesc": "Return grid content size",
+ "start": [
+ 247,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return grid content size for given count of nodes\n\n@*param* `count` — The count of nodes\n\n@*return* `size` — The grid content size",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 258,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 258,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The count of nodes",
+ "finish": [
+ 258,
+ 29
+ ],
+ "name": "count",
+ "rawdesc": "The count of nodes",
+ "start": [
+ 258,
+ 24
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Return grid content size for given count of nodes\n\n@*param* `count` — The count of nodes\n\n@*return* `size` — The grid content size",
+ "finish": [
+ 277,
+ 3
+ ],
+ "rawdesc": "Return grid content size for given count of nodes",
+ "returns": [
+ {
+ "desc": "The grid content size",
+ "name": "size",
+ "rawdesc": "The grid content size",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 258,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:get_size_for(count: number)\n -> size: vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 258,
+ 23
+ ],
+ "name": "get_size_for",
+ "rawdesc": "Return grid content size for given count of nodes",
+ "start": [
+ 258,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "In row",
+ "extends": {
+ "finish": [
+ 24,
+ 23
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 23
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 24,
+ 23
+ ],
+ "name": "in_row",
+ "rawdesc": "In row",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The constructor for the grid component\n\n@*param* `parent` — The GUI Node container, where grid's items will be placed\n\n@*param* `element` — Element prefab. Need to get it size\n\n@*param* `in_row` — How many nodes in row can be placed. By default 1",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 33,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 33,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The GUI Node container, where grid's items will be placed",
+ "finish": [
+ 33,
+ 22
+ ],
+ "name": "parent",
+ "rawdesc": "The GUI Node container, where grid's items will be placed",
+ "start": [
+ 33,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Element prefab. Need to get it size",
+ "finish": [
+ 33,
+ 31
+ ],
+ "name": "element",
+ "rawdesc": "Element prefab. Need to get it size",
+ "start": [
+ 33,
+ 24
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "How many nodes in row can be placed. By default 1",
+ "finish": [
+ 33,
+ 39
+ ],
+ "name": "in_row",
+ "rawdesc": "How many nodes in row can be placed. By default 1",
+ "start": [
+ 33,
+ 33
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "The constructor for the grid component\n\n@*param* `parent` — The GUI Node container, where grid's items will be placed\n\n@*param* `element` — Element prefab. Need to get it size\n\n@*param* `in_row` — How many nodes in row can be placed. By default 1",
+ "finish": [
+ 61,
+ 3
+ ],
+ "rawdesc": "The constructor for the grid component",
+ "start": [
+ 33,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:init(parent: string|node, element: node, in_row: number|nil)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 33,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "The constructor for the grid component",
+ "start": [
+ 33,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Last index",
+ "extends": {
+ "finish": [
+ 19,
+ 27
+ ],
+ "start": [
+ 19,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 27
+ ],
+ "start": [
+ 19,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 19,
+ 27
+ ],
+ "name": "last_index",
+ "rawdesc": "Last index",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 44,
+ 60
+ ],
+ "start": [
+ 44,
+ 19
+ ],
+ "type": "getindex",
+ "view": "unknown"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 44,
+ 16
+ ],
+ "name": "node_pivot",
+ "start": [
+ 44,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Node size",
+ "extends": {
+ "finish": [
+ 22,
+ 27
+ ],
+ "start": [
+ 22,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 22,
+ 27
+ ],
+ "start": [
+ 22,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 22,
+ 27
+ ],
+ "name": "node_size",
+ "rawdesc": "Node size",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Nodes array",
+ "extends": {
+ "finish": [
+ 17,
+ 22
+ ],
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 22
+ ],
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "doc.type.array",
+ "view": "node[]"
+ }
+ ],
+ "view": "node[]"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 17,
+ 22
+ ],
+ "name": "nodes",
+ "rawdesc": "Nodes array",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node[]",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on add item event, fun(self, item, index)",
+ "extends": {
+ "finish": [
+ 11,
+ 27
+ ],
+ "start": [
+ 11,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 27
+ ],
+ "start": [
+ 11,
+ 22
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 11,
+ 27
+ ],
+ "name": "on_add_item",
+ "rawdesc": "Trigger on add item event, fun(self, item, index)",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on change items event, fun(self, index)",
+ "extends": {
+ "finish": [
+ 13,
+ 31
+ ],
+ "start": [
+ 13,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 31
+ ],
+ "start": [
+ 13,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 13,
+ 31
+ ],
+ "name": "on_change_items",
+ "rawdesc": "Trigger on change items event, fun(self, index)",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on clear event, fun(self)",
+ "extends": {
+ "finish": [
+ 14,
+ 24
+ ],
+ "start": [
+ 14,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 24
+ ],
+ "start": [
+ 14,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 14,
+ 24
+ ],
+ "name": "on_clear",
+ "rawdesc": "Trigger on clear event, fun(self)",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 126,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 126,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "finish": [
+ 128,
+ 3
+ ],
+ "start": [
+ 126,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:on_layout_change()"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 126,
+ 27
+ ],
+ "name": "on_layout_change",
+ "start": [
+ 126,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on remove item event, fun(self, index)",
+ "extends": {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 12,
+ 30
+ ],
+ "name": "on_remove_item",
+ "rawdesc": "Trigger on remove item event, fun(self, index)",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 66,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 66,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "finish": [
+ 66,
+ 32
+ ],
+ "name": "style",
+ "start": [
+ 66,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.grid.style"
+ }
+ ],
+ "finish": [
+ 71,
+ 3
+ ],
+ "start": [
+ 66,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:on_style_change(style: druid.grid.style)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 66,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 66,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Trigger on update positions event, fun(self)",
+ "extends": {
+ "finish": [
+ 15,
+ 35
+ ],
+ "start": [
+ 15,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 35
+ ],
+ "start": [
+ 15,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 15,
+ 35
+ ],
+ "name": "on_update_positions",
+ "rawdesc": "Trigger on update positions event, fun(self)",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Parent node",
+ "extends": {
+ "finish": [
+ 16,
+ 21
+ ],
+ "start": [
+ 16,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 21
+ ],
+ "start": [
+ 16,
+ 17
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 16,
+ 21
+ ],
+ "name": "parent",
+ "rawdesc": "Parent node",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Pivot",
+ "extends": {
+ "finish": [
+ 21,
+ 23
+ ],
+ "start": [
+ 21,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 21,
+ 23
+ ],
+ "start": [
+ 21,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "vector3"
+ }
+ ],
+ "view": "vector3"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 21,
+ 23
+ ],
+ "name": "pivot",
+ "rawdesc": "Pivot",
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector3",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Instantly update the grid content\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 141,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 141,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ }
+ ],
+ "desc": "Instantly update the grid content\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 145,
+ 3
+ ],
+ "rawdesc": "Instantly update the grid content",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 141,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:refresh()\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 141,
+ 18
+ ],
+ "name": "refresh",
+ "rawdesc": "Instantly update the grid content",
+ "start": [
+ 141,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove the item from the grid. Note that gui node will be not deleted\n\n@*param* `index` — The grid node index to remove\n\n@*param* `shift_policy` — How shift nodes, if required. Default: const.SHIFT.RIGHT\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `node` — The deleted gui node from grid",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 230,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 230,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The grid node index to remove",
+ "finish": [
+ 230,
+ 23
+ ],
+ "name": "index",
+ "rawdesc": "The grid node index to remove",
+ "start": [
+ 230,
+ 18
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "How shift nodes, if required. Default: const.SHIFT.RIGHT",
+ "finish": [
+ 230,
+ 37
+ ],
+ "name": "shift_policy",
+ "rawdesc": "How shift nodes, if required. Default: const.SHIFT.RIGHT",
+ "start": [
+ 230,
+ 25
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "If true, update node positions instantly",
+ "finish": [
+ 230,
+ 49
+ ],
+ "name": "is_instant",
+ "rawdesc": "If true, update node positions instantly",
+ "start": [
+ 230,
+ 39
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Remove the item from the grid. Note that gui node will be not deleted\n\n@*param* `index` — The grid node index to remove\n\n@*param* `shift_policy` — How shift nodes, if required. Default: const.SHIFT.RIGHT\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `node` — The deleted gui node from grid",
+ "finish": [
+ 242,
+ 3
+ ],
+ "rawdesc": "Remove the item from the grid. Note that gui node will be not deleted",
+ "returns": [
+ {
+ "desc": "The deleted gui node from grid",
+ "name": "node",
+ "rawdesc": "The deleted gui node from grid",
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 230,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:remove(index: number, shift_policy: number|nil, is_instant: boolean|nil)\n -> node: node"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 230,
+ 17
+ ],
+ "name": "remove",
+ "rawdesc": "Remove the item from the grid. Note that gui node will be not deleted",
+ "start": [
+ 230,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set grid anchor. Default anchor is equal to anchor of grid parent node\n\n@*param* `anchor` — Anchor",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 133,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 133,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "Anchor",
+ "finish": [
+ 133,
+ 28
+ ],
+ "name": "anchor",
+ "rawdesc": "Anchor",
+ "start": [
+ 133,
+ 22
+ ],
+ "type": "local",
+ "view": "vector3"
+ }
+ ],
+ "desc": "Set grid anchor. Default anchor is equal to anchor of grid parent node\n\n@*param* `anchor` — Anchor",
+ "finish": [
+ 136,
+ 3
+ ],
+ "rawdesc": "Set grid anchor. Default anchor is equal to anchor of grid parent node",
+ "start": [
+ 133,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_anchor(anchor: vector3)"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 133,
+ 21
+ ],
+ "name": "set_anchor",
+ "rawdesc": "Set grid anchor. Default anchor is equal to anchor of grid parent node",
+ "start": [
+ 133,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set new in_row elements for grid\n\n@*param* `in_row` — The new in_row value\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 347,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 347,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The new in_row value",
+ "finish": [
+ 347,
+ 28
+ ],
+ "name": "in_row",
+ "rawdesc": "The new in_row value",
+ "start": [
+ 347,
+ 22
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Set new in_row elements for grid\n\n@*param* `in_row` — The new in_row value\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 359,
+ 3
+ ],
+ "rawdesc": "Set new in_row elements for grid",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 347,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_in_row(in_row: number)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 347,
+ 21
+ ],
+ "name": "set_in_row",
+ "rawdesc": "Set new in_row elements for grid",
+ "start": [
+ 347,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set new node size for grid\n\n@*param* `width` — The new node width\n\n@*param* `height` — The new node height\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 366,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 366,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The new node width",
+ "finish": [
+ 366,
+ 30
+ ],
+ "name": "width",
+ "rawdesc": "The new node width",
+ "start": [
+ 366,
+ 25
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The new node height",
+ "finish": [
+ 366,
+ 38
+ ],
+ "name": "height",
+ "rawdesc": "The new node height",
+ "start": [
+ 366,
+ 32
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Set new node size for grid\n\n@*param* `width` — The new node width\n\n@*param* `height` — The new node height\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 383,
+ 3
+ ],
+ "rawdesc": "Set new node size for grid",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 366,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_item_size(width: number|nil, height: number|nil)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 366,
+ 24
+ ],
+ "name": "set_item_size",
+ "rawdesc": "Set new node size for grid",
+ "start": [
+ 366,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set new items to the grid. All previous items will be removed\n\n@*param* `nodes` — The new grid nodes\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 210,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 210,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The new grid nodes",
+ "finish": [
+ 210,
+ 26
+ ],
+ "name": "nodes",
+ "rawdesc": "The new grid nodes",
+ "start": [
+ 210,
+ 21
+ ],
+ "type": "local",
+ "view": "node[]"
+ },
+ {
+ "desc": "If true, update node positions instantly",
+ "finish": [
+ 210,
+ 38
+ ],
+ "name": "is_instant",
+ "rawdesc": "If true, update node positions instantly",
+ "start": [
+ 210,
+ 28
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set new items to the grid. All previous items will be removed\n\n@*param* `nodes` — The new grid nodes\n\n@*param* `is_instant` — If true, update node positions instantly\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 222,
+ 3
+ ],
+ "rawdesc": "Set new items to the grid. All previous items will be removed",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 210,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_items(nodes: node[], is_instant: boolean|nil)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 210,
+ 20
+ ],
+ "name": "set_items",
+ "rawdesc": "Set new items to the grid. All previous items will be removed",
+ "start": [
+ 210,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set grid pivot\n\n@*param* `pivot` — The new pivot\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 151,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 151,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The new pivot",
+ "finish": [
+ 151,
+ 26
+ ],
+ "name": "pivot",
+ "rawdesc": "The new pivot",
+ "start": [
+ 151,
+ 21
+ ],
+ "type": "local",
+ "view": "constant"
+ }
+ ],
+ "desc": "Set grid pivot\n\n@*param* `pivot` — The new pivot\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 176,
+ 3
+ ],
+ "rawdesc": "Set grid pivot",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 151,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_pivot(pivot: constant)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 151,
+ 20
+ ],
+ "name": "set_pivot",
+ "rawdesc": "Set grid pivot",
+ "start": [
+ 151,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Change set position function for grid nodes. It will call on\n update poses on grid elements. Default: gui.set_position\n\n@*param* `callback` — Function on node set position\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 303,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 303,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "Function on node set position",
+ "finish": [
+ 303,
+ 41
+ ],
+ "name": "callback",
+ "rawdesc": "Function on node set position",
+ "start": [
+ 303,
+ 33
+ ],
+ "type": "local",
+ "view": "function"
+ }
+ ],
+ "desc": "Change set position function for grid nodes. It will call on\n update poses on grid elements. Default: gui.set_position\n\n@*param* `callback` — Function on node set position\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 307,
+ 3
+ ],
+ "rawdesc": "Change set position function for grid nodes. It will call on\n update poses on grid elements. Default: gui.set_position",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 303,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:set_position_function(callback: function)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 303,
+ 32
+ ],
+ "name": "set_position_function",
+ "rawdesc": "Change set position function for grid nodes. It will call on\n update poses on grid elements. Default: gui.set_position",
+ "start": [
+ 303,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Sort grid nodes by custom comparator function\n\n@*param* `comparator` — The comparator function. (a, b) -> boolean\n\n@*return* `self` — Current grid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for manage the nodes position in the grid with various options",
+ "finish": [
+ 389,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for manage the nodes position in the grid with various options",
+ "start": [
+ 389,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The comparator function. (a, b) -> boolean",
+ "finish": [
+ 389,
+ 32
+ ],
+ "name": "comparator",
+ "rawdesc": "The comparator function. (a, b) -> boolean",
+ "start": [
+ 389,
+ 22
+ ],
+ "type": "local",
+ "view": "function"
+ }
+ ],
+ "desc": "Sort grid nodes by custom comparator function\n\n@*param* `comparator` — The comparator function. (a, b) -> boolean\n\n@*return* `self` — Current grid instance",
+ "finish": [
+ 394,
+ 3
+ ],
+ "rawdesc": "Sort grid nodes by custom comparator function",
+ "returns": [
+ {
+ "desc": "Current grid instance",
+ "name": "self",
+ "rawdesc": "Current grid instance",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 389,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.grid:sort_nodes(comparator: function)\n -> self: druid.grid"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 389,
+ 21
+ ],
+ "name": "sort_nodes",
+ "rawdesc": "Sort grid nodes by custom comparator function",
+ "start": [
+ 389,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Style",
+ "extends": {
+ "finish": [
+ 25,
+ 32
+ ],
+ "start": [
+ 25,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 25,
+ 32
+ ],
+ "start": [
+ 25,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.grid.style"
+ }
+ ],
+ "view": "druid.grid.style"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 25,
+ 32
+ ],
+ "name": "style",
+ "rawdesc": "Style",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.grid.style",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.grid",
+ "type": "type",
+ "view": "druid.grid"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 5,
+ 26
+ ],
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.grid.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If true, always align last row of the grid as grid pivot sets. Default: false",
+ "extends": {
+ "finish": [
+ 7,
+ 39
+ ],
+ "start": [
+ 7,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 35
+ ],
+ "start": [
+ 7,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 7,
+ 39
+ ],
+ "start": [
+ 7,
+ 36
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "boolean|nil"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 7,
+ 39
+ ],
+ "name": "IS_ALIGN_LAST_ROW",
+ "rawdesc": "If true, always align last row of the grid as grid pivot sets. Default: false",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If true, always center grid content as grid pivot sets. Default: false",
+ "extends": {
+ "finish": [
+ 6,
+ 43
+ ],
+ "start": [
+ 6,
+ 32
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 6,
+ 39
+ ],
+ "start": [
+ 6,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 6,
+ 43
+ ],
+ "start": [
+ 6,
+ 40
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "boolean|nil"
+ },
+ "file": "/druid/base/static_grid.lua",
+ "finish": [
+ 6,
+ 43
+ ],
+ "name": "IS_DYNAMIC_NODE_POSES",
+ "rawdesc": "If true, always center grid content as grid pivot sets. Default: false",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.grid.style",
+ "type": "type",
+ "view": "druid.grid.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The helper module contains various functions that are used in the Druid library.\nYou can use these functions in your projects as well.",
+ "file": "/druid/helper.lua",
+ "finish": [
+ 9,
+ 22
+ ],
+ "rawdesc": "The helper module contains various functions that are used in the Druid library.\nYou can use these functions in your projects as well.",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.helper",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 18,
+ 32
+ ],
+ "start": [
+ 18,
+ 17
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 18,
+ 14
+ ],
+ "name": "PROP_SCALE_X",
+ "start": [
+ 18,
+ 0
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 19,
+ 32
+ ],
+ "start": [
+ 19,
+ 17
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 19,
+ 14
+ ],
+ "name": "PROP_SCALE_Y",
+ "start": [
+ 19,
+ 0
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 16,
+ 30
+ ],
+ "start": [
+ 16,
+ 16
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 16,
+ 13
+ ],
+ "name": "PROP_SIZE_X",
+ "start": [
+ 16,
+ 0
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 17,
+ 30
+ ],
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "select",
+ "view": "unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 17,
+ 13
+ ],
+ "name": "PROP_SIZE_Y",
+ "start": [
+ 17,
+ 0
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add all elements from source array to the target array\n\n@*param* `target` — Array to put elements from source\n\n@*param* `source` — The source array to get elements from\n\n@*return* `The` — target array",
+ "extends": {
+ "args": [
+ {
+ "desc": "Array to put elements from source",
+ "finish": [
+ 281,
+ 27
+ ],
+ "name": "target",
+ "rawdesc": "Array to put elements from source",
+ "start": [
+ 281,
+ 21
+ ],
+ "type": "local",
+ "view": "any[]"
+ },
+ {
+ "desc": "The source array to get elements from",
+ "finish": [
+ 281,
+ 35
+ ],
+ "name": "source",
+ "rawdesc": "The source array to get elements from",
+ "start": [
+ 281,
+ 29
+ ],
+ "type": "local",
+ "view": "any[]|nil"
+ }
+ ],
+ "desc": "Add all elements from source array to the target array\n\n@*param* `target` — Array to put elements from source\n\n@*param* `source` — The source array to get elements from\n\n@*return* `The` — target array",
+ "finish": [
+ 293,
+ 3
+ ],
+ "rawdesc": "Add all elements from source array to the target array",
+ "returns": [
+ {
+ "desc": "target array",
+ "name": "The",
+ "rawdesc": "target array",
+ "type": "function.return",
+ "view": "any[]"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.add_array(target: any[], source: any[]|nil)\n -> The: any[]"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 281,
+ 20
+ ],
+ "name": "add_array",
+ "rawdesc": "Add all elements from source array to the target array",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Center two nodes.\nNodes will be center around 0 x position\nicon_node will be first (at left side)\n\n@*param* `icon_node` — Gui box node\n\n@*param* `text_node` — Gui text node\n\n@*param* `margin` — Offset between nodes",
+ "extends": {
+ "args": [
+ {
+ "desc": "Gui box node",
+ "finish": [
+ 71,
+ 44
+ ],
+ "name": "icon_node",
+ "rawdesc": "Gui box node",
+ "start": [
+ 71,
+ 35
+ ],
+ "type": "local",
+ "view": "node|nil"
+ },
+ {
+ "desc": "Gui text node",
+ "finish": [
+ 71,
+ 55
+ ],
+ "name": "text_node",
+ "rawdesc": "Gui text node",
+ "start": [
+ 71,
+ 46
+ ],
+ "type": "local",
+ "view": "node|nil"
+ },
+ {
+ "desc": "Offset between nodes",
+ "finish": [
+ 71,
+ 63
+ ],
+ "name": "margin",
+ "rawdesc": "Offset between nodes",
+ "start": [
+ 71,
+ 57
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Center two nodes.\nNodes will be center around 0 x position\nicon_node will be first (at left side)\n\n@*param* `icon_node` — Gui box node\n\n@*param* `text_node` — Gui text node\n\n@*param* `margin` — Offset between nodes",
+ "finish": [
+ 73,
+ 3
+ ],
+ "rawdesc": "Center two nodes.\nNodes will be center around 0 x position\nicon_node will be first (at left side)",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown"
+ }
+ ],
+ "start": [
+ 71,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.centrate_icon_with_text(icon_node: node|nil, text_node: node|nil, margin: number|nil)\n -> unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 71,
+ 34
+ ],
+ "name": "centrate_icon_with_text",
+ "rawdesc": "Center two nodes.\nNodes will be center around 0 x position\nicon_node will be first (at left side)",
+ "start": [
+ 71,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Centerate nodes by x position with margin.\n\nThis functions calculate total width of nodes and set position for each node.\nThe centrate will be around 0 x position.\n\n@*param* `margin` — Offset between nodes\n\n@*param* `...` — Nodes to centrate",
+ "extends": {
+ "args": [
+ {
+ "desc": "Offset between nodes",
+ "finish": [
+ 82,
+ 32
+ ],
+ "name": "margin",
+ "rawdesc": "Offset between nodes",
+ "start": [
+ 82,
+ 26
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "Nodes to centrate",
+ "finish": [
+ 82,
+ 37
+ ],
+ "rawdesc": "Nodes to centrate",
+ "start": [
+ 82,
+ 34
+ ],
+ "type": "...",
+ "view": "node"
+ }
+ ],
+ "desc": "Centerate nodes by x position with margin.\n\nThis functions calculate total width of nodes and set position for each node.\nThe centrate will be around 0 x position.\n\n@*param* `margin` — Offset between nodes\n\n@*param* `...` — Nodes to centrate",
+ "finish": [
+ 113,
+ 3
+ ],
+ "rawdesc": "Centerate nodes by x position with margin.\n\nThis functions calculate total width of nodes and set position for each node.\nThe centrate will be around 0 x position.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown"
+ }
+ ],
+ "start": [
+ 82,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.centrate_nodes(margin: number|nil, ...node)\n -> unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 82,
+ 25
+ ],
+ "name": "centrate_nodes",
+ "rawdesc": "Centerate nodes by x position with margin.\n\nThis functions calculate total width of nodes and set position for each node.\nThe centrate will be around 0 x position.",
+ "start": [
+ 82,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Center two nodes.\nNodes will be center around 0 x position\ntext_node will be first (at left side)\n\n@*param* `text_node` — Gui text node\n\n@*param* `icon_node` — Gui box node\n\n@*param* `margin` — Offset between nodes",
+ "extends": {
+ "args": [
+ {
+ "desc": "Gui text node",
+ "finish": [
+ 59,
+ 44
+ ],
+ "name": "text_node",
+ "rawdesc": "Gui text node",
+ "start": [
+ 59,
+ 35
+ ],
+ "type": "local",
+ "view": "node|nil"
+ },
+ {
+ "desc": "Gui box node",
+ "finish": [
+ 59,
+ 55
+ ],
+ "name": "icon_node",
+ "rawdesc": "Gui box node",
+ "start": [
+ 59,
+ 46
+ ],
+ "type": "local",
+ "view": "node|nil"
+ },
+ {
+ "desc": "Offset between nodes",
+ "finish": [
+ 59,
+ 63
+ ],
+ "name": "margin",
+ "rawdesc": "Offset between nodes",
+ "start": [
+ 59,
+ 57
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Center two nodes.\nNodes will be center around 0 x position\ntext_node will be first (at left side)\n\n@*param* `text_node` — Gui text node\n\n@*param* `icon_node` — Gui box node\n\n@*param* `margin` — Offset between nodes",
+ "finish": [
+ 61,
+ 3
+ ],
+ "rawdesc": "Center two nodes.\nNodes will be center around 0 x position\ntext_node will be first (at left side)",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown"
+ }
+ ],
+ "start": [
+ 59,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.centrate_text_with_icon(text_node: node|nil, icon_node: node|nil, margin: number)\n -> unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 59,
+ 34
+ ],
+ "name": "centrate_text_with_icon",
+ "rawdesc": "Center two nodes.\nNodes will be center around 0 x position\ntext_node will be first (at left side)",
+ "start": [
+ 59,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Clamp value between min and max. Works with nil values and swap min and max if needed.\n\n@*param* `value` — Value\n\n@*param* `v1` — Min value. If nil, value will be clamped to positive infinity\n\n@*param* `v2` — Max value If nil, value will be clamped to negative infinity\n\n@*return* `value` — Clamped value",
+ "extends": {
+ "args": [
+ {
+ "desc": "Value",
+ "finish": [
+ 184,
+ 22
+ ],
+ "name": "value",
+ "rawdesc": "Value",
+ "start": [
+ 184,
+ 17
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Min value. If nil, value will be clamped to positive infinity",
+ "finish": [
+ 184,
+ 26
+ ],
+ "name": "v1",
+ "rawdesc": "Min value. If nil, value will be clamped to positive infinity",
+ "start": [
+ 184,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "Max value If nil, value will be clamped to negative infinity",
+ "finish": [
+ 184,
+ 30
+ ],
+ "name": "v2",
+ "rawdesc": "Max value If nil, value will be clamped to negative infinity",
+ "start": [
+ 184,
+ 28
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Clamp value between min and max. Works with nil values and swap min and max if needed.\n\n@*param* `value` — Value\n\n@*param* `v1` — Min value. If nil, value will be clamped to positive infinity\n\n@*param* `v2` — Max value If nil, value will be clamped to negative infinity\n\n@*return* `value` — Clamped value",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Clamp value between min and max. Works with nil values and swap min and max if needed.",
+ "returns": [
+ {
+ "desc": "Clamped value",
+ "name": "value",
+ "rawdesc": "Clamped value",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 184,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.clamp(value: number, v1: number|nil, v2: number|nil)\n -> value: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 184,
+ 16
+ ],
+ "name": "clamp",
+ "rawdesc": "Clamp value between min and max. Works with nil values and swap min and max if needed.",
+ "start": [
+ 184,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if value contains in array\n\n@*param* `array` — Array to check\n\n@*param* `value` — Value",
+ "extends": {
+ "args": [
+ {
+ "desc": "Array to check",
+ "finish": [
+ 249,
+ 25
+ ],
+ "name": "array",
+ "rawdesc": "Array to check",
+ "start": [
+ 249,
+ 20
+ ],
+ "type": "local",
+ "view": "any[]"
+ },
+ {
+ "desc": "Value",
+ "finish": [
+ 249,
+ 32
+ ],
+ "name": "value",
+ "rawdesc": "Value",
+ "start": [
+ 249,
+ 27
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "Check if value contains in array\n\n@*param* `array` — Array to check\n\n@*param* `value` — Value",
+ "finish": [
+ 256,
+ 3
+ ],
+ "rawdesc": "Check if value contains in array",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer|nil"
+ }
+ ],
+ "start": [
+ 249,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.contains(array: any[], value: any)\n -> integer|nil"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 249,
+ 19
+ ],
+ "name": "contains",
+ "rawdesc": "Check if value contains in array",
+ "start": [
+ 249,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Make a copy table with all nested tables\n\n@*param* `orig_table` — Original table\n\n@*return* `Copy` — of original table",
+ "extends": {
+ "args": [
+ {
+ "desc": "Original table",
+ "finish": [
+ 262,
+ 30
+ ],
+ "name": "orig_table",
+ "rawdesc": "Original table",
+ "start": [
+ 262,
+ 20
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Make a copy table with all nested tables\n\n@*param* `orig_table` — Original table\n\n@*return* `Copy` — of original table",
+ "finish": [
+ 274,
+ 3
+ ],
+ "rawdesc": "Make a copy table with all nested tables",
+ "returns": [
+ {
+ "desc": "of original table",
+ "name": "Copy",
+ "rawdesc": "of original table",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 262,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.deepcopy(orig_table: table)\n -> Copy: table"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 262,
+ 19
+ ],
+ "name": "deepcopy",
+ "rawdesc": "Make a copy table with all nested tables",
+ "start": [
+ 262,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Calculate distance between two points\n\n@*param* `x1` — First point x\n\n@*param* `y1` — First point y\n\n@*param* `x2` — Second point x\n\n@*param* `y2` — Second point y",
+ "extends": {
+ "args": [
+ {
+ "desc": "First point x",
+ "finish": [
+ 209,
+ 22
+ ],
+ "name": "x1",
+ "rawdesc": "First point x",
+ "start": [
+ 209,
+ 20
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "First point y",
+ "finish": [
+ 209,
+ 26
+ ],
+ "name": "y1",
+ "rawdesc": "First point y",
+ "start": [
+ 209,
+ 24
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Second point x",
+ "finish": [
+ 209,
+ 30
+ ],
+ "name": "x2",
+ "rawdesc": "Second point x",
+ "start": [
+ 209,
+ 28
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Second point y",
+ "finish": [
+ 209,
+ 34
+ ],
+ "name": "y2",
+ "rawdesc": "Second point y",
+ "start": [
+ 209,
+ 32
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Calculate distance between two points\n\n@*param* `x1` — First point x\n\n@*param* `y1` — First point y\n\n@*param* `x2` — Second point x\n\n@*param* `y2` — Second point y",
+ "finish": [
+ 211,
+ 3
+ ],
+ "rawdesc": "Calculate distance between two points",
+ "returns": [
+ {
+ "name": "Distance",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 209,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.distance(x1: number, y1: number, x2: number, y2: number)\n -> Distance: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 209,
+ 19
+ ],
+ "name": "distance",
+ "rawdesc": "Calculate distance between two points",
+ "start": [
+ 209,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `atlas_path` — Path to the atlas",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 567,
+ 44
+ ],
+ "name": "node",
+ "start": [
+ 567,
+ 40
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "Path to the atlas",
+ "finish": [
+ 567,
+ 56
+ ],
+ "name": "atlas_path",
+ "rawdesc": "Path to the atlas",
+ "start": [
+ 567,
+ 46
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "@*param* `atlas_path` — Path to the atlas",
+ "finish": [
+ 669,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.system.animation_data"
+ }
+ ],
+ "start": [
+ 567,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_animation_data_from_node(node: node, atlas_path: string)\n -> druid.system.animation_data"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 567,
+ 39
+ ],
+ "name": "get_animation_data_from_node",
+ "start": [
+ 567,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Distance from node position to his borders\n\n@*param* `node` — GUI node\n\n@*param* `offset` — Offset from node position. Pass current node position to get non relative border values\n\n@*return* `border` — Vector4 with border values (left, top, right, down)",
+ "extends": {
+ "args": [
+ {
+ "desc": "GUI node",
+ "finish": [
+ 430,
+ 26
+ ],
+ "name": "node",
+ "rawdesc": "GUI node",
+ "start": [
+ 430,
+ 22
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "Offset from node position. Pass current node position to get non relative border values",
+ "finish": [
+ 430,
+ 34
+ ],
+ "name": "offset",
+ "rawdesc": "Offset from node position. Pass current node position to get non relative border values",
+ "start": [
+ 430,
+ 28
+ ],
+ "type": "local",
+ "view": "vector3|nil"
+ }
+ ],
+ "desc": "Distance from node position to his borders\n\n@*param* `node` — GUI node\n\n@*param* `offset` — Offset from node position. Pass current node position to get non relative border values\n\n@*return* `border` — Vector4 with border values (left, top, right, down)",
+ "finish": [
+ 449,
+ 3
+ ],
+ "rawdesc": "Distance from node position to his borders",
+ "returns": [
+ {
+ "desc": "Vector4 with border values (left, top, right, down)",
+ "name": "border",
+ "rawdesc": "Vector4 with border values (left, top, right, down)",
+ "type": "function.return",
+ "view": "vector4"
+ }
+ ],
+ "start": [
+ 430,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_border(node: node, offset: vector3|nil)\n -> border: vector4"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 430,
+ 21
+ ],
+ "name": "get_border",
+ "rawdesc": "Distance from node position to his borders",
+ "start": [
+ 430,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return closest non inverted clipping parent node for given node\n\n@*param* `node` — GUI node\n\n@*return* `stencil_node` — The closest stencil node or nil",
+ "extends": {
+ "args": [
+ {
+ "desc": "GUI node",
+ "finish": [
+ 340,
+ 40
+ ],
+ "name": "node",
+ "rawdesc": "GUI node",
+ "start": [
+ 340,
+ 36
+ ],
+ "type": "local",
+ "view": "node"
+ }
+ ],
+ "desc": "Return closest non inverted clipping parent node for given node\n\n@*param* `node` — GUI node\n\n@*return* `stencil_node` — The closest stencil node or nil",
+ "finish": [
+ 358,
+ 3
+ ],
+ "rawdesc": "Return closest non inverted clipping parent node for given node",
+ "returns": [
+ {
+ "desc": "The closest stencil node or nil",
+ "name": "stencil_node",
+ "rawdesc": "The closest stencil node or nil",
+ "type": "function.return",
+ "view": "node|nil"
+ }
+ ],
+ "start": [
+ 340,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_closest_stencil_node(node: node)\n -> stencil_node: node|nil"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 340,
+ 35
+ ],
+ "name": "get_closest_stencil_node",
+ "rawdesc": "Return closest non inverted clipping parent node for given node",
+ "start": [
+ 340,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full position of node in the GUI tree\n\n@*param* `node` — GUI node\n\n@*param* `root` — GUI root node to stop search",
+ "extends": {
+ "args": [
+ {
+ "desc": "GUI node",
+ "finish": [
+ 541,
+ 33
+ ],
+ "name": "node",
+ "rawdesc": "GUI node",
+ "start": [
+ 541,
+ 29
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "GUI root node to stop search",
+ "finish": [
+ 541,
+ 39
+ ],
+ "name": "root",
+ "rawdesc": "GUI root node to stop search",
+ "start": [
+ 541,
+ 35
+ ],
+ "type": "local",
+ "view": "node|nil"
+ }
+ ],
+ "desc": "Get full position of node in the GUI tree\n\n@*param* `node` — GUI node\n\n@*param* `root` — GUI root node to stop search",
+ "finish": [
+ 552,
+ 3
+ ],
+ "rawdesc": "Get full position of node in the GUI tree",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown"
+ }
+ ],
+ "start": [
+ 541,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_full_position(node: node, root: node|nil)\n -> unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 541,
+ 28
+ ],
+ "name": "get_full_position",
+ "rawdesc": "Get full position of node in the GUI tree",
+ "start": [
+ 541,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current GUI scale for each side",
+ "extends": {
+ "args": [],
+ "desc": "Get current GUI scale for each side",
+ "finish": [
+ 162,
+ 3
+ ],
+ "rawdesc": "Get current GUI scale for each side",
+ "returns": [
+ {
+ "name": "scale_x",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 159,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_gui_scale()\n -> scale_x: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 159,
+ 24
+ ],
+ "name": "get_gui_scale",
+ "rawdesc": "Get current GUI scale for each side",
+ "start": [
+ 159,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `template` — Full Path to the template\n\n@*param* `nodes` — Nodes what created with gui.clone_tree",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 120,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 120,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Full Path to the template",
+ "finish": [
+ 120,
+ 37
+ ],
+ "name": "template",
+ "rawdesc": "Full Path to the template",
+ "start": [
+ 120,
+ 29
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "Nodes what created with gui.clone_tree",
+ "finish": [
+ 120,
+ 44
+ ],
+ "name": "nodes",
+ "rawdesc": "Nodes what created with gui.clone_tree",
+ "start": [
+ 120,
+ 39
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "@*param* `template` — Full Path to the template\n\n@*param* `nodes` — Nodes what created with gui.clone_tree",
+ "finish": [
+ 137,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 120,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_node(node_id: string|node, template: string|nil, nodes: table|nil)\n -> node"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 120,
+ 19
+ ],
+ "name": "get_node",
+ "start": [
+ 120,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get pivot offset for given pivot or node\nOffset shown in [-0.5 .. 0.5] range, where -0.5 is left or bottom, 0.5 is right or top.\n\n@*param* `pivot_or_node` — GUI pivot or node\n\n@*return* `offset` — The pivot offset",
+ "extends": {
+ "args": [
+ {
+ "desc": "GUI pivot or node",
+ "finish": [
+ 365,
+ 41
+ ],
+ "name": "pivot_or_node",
+ "rawdesc": "GUI pivot or node",
+ "start": [
+ 365,
+ 28
+ ],
+ "type": "local",
+ "view": "number|node"
+ }
+ ],
+ "desc": "Get pivot offset for given pivot or node\nOffset shown in [-0.5 .. 0.5] range, where -0.5 is left or bottom, 0.5 is right or top.\n\n@*param* `pivot_or_node` — GUI pivot or node\n\n@*return* `offset` — The pivot offset",
+ "finish": [
+ 370,
+ 3
+ ],
+ "rawdesc": "Get pivot offset for given pivot or node\nOffset shown in [-0.5 .. 0.5] range, where -0.5 is left or bottom, 0.5 is right or top.",
+ "returns": [
+ {
+ "desc": "The pivot offset",
+ "name": "offset",
+ "rawdesc": "The pivot offset",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 365,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_pivot_offset(pivot_or_node: number|node)\n -> offset: vector3"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 365,
+ 27
+ ],
+ "name": "get_pivot_offset",
+ "rawdesc": "Get pivot offset for given pivot or node\nOffset shown in [-0.5 .. 0.5] range, where -0.5 is left or bottom, 0.5 is right or top.",
+ "start": [
+ 365,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get size of node with scale multiplier\n\n@*param* `node` — GUI node",
+ "extends": {
+ "args": [
+ {
+ "desc": "GUI node",
+ "finish": [
+ 316,
+ 31
+ ],
+ "name": "node",
+ "rawdesc": "GUI node",
+ "start": [
+ 316,
+ 27
+ ],
+ "type": "local",
+ "view": "node"
+ }
+ ],
+ "desc": "Get size of node with scale multiplier\n\n@*param* `node` — GUI node",
+ "finish": [
+ 318,
+ 3
+ ],
+ "rawdesc": "Get size of node with scale multiplier",
+ "returns": [
+ {
+ "name": "scaled_size",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 316,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_scaled_size(node: node)\n -> scaled_size: vector3"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 316,
+ 26
+ ],
+ "name": "get_scaled_size",
+ "rawdesc": "Get size of node with scale multiplier",
+ "start": [
+ 316,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get cumulative parent's node scale\n\n@*param* `node` — Gui node\n\n@*param* `include_passed_node_scale` — True if add current node scale to result\n\n@*return* `The` — scene node scale",
+ "extends": {
+ "args": [
+ {
+ "desc": "Gui node",
+ "finish": [
+ 325,
+ 31
+ ],
+ "name": "node",
+ "rawdesc": "Gui node",
+ "start": [
+ 325,
+ 27
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "True if add current node scale to result",
+ "finish": [
+ 325,
+ 58
+ ],
+ "name": "include_passed_node_scale",
+ "rawdesc": "True if add current node scale to result",
+ "start": [
+ 325,
+ 33
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Get cumulative parent's node scale\n\n@*param* `node` — Gui node\n\n@*param* `include_passed_node_scale` — True if add current node scale to result\n\n@*return* `The` — scene node scale",
+ "finish": [
+ 334,
+ 3
+ ],
+ "rawdesc": "Get cumulative parent's node scale",
+ "returns": [
+ {
+ "desc": "scene node scale",
+ "name": "The",
+ "rawdesc": "scene node scale",
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 325,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_scene_scale(node: node, include_passed_node_scale: boolean|nil)\n -> The: vector3"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 325,
+ 26
+ ],
+ "name": "get_scene_scale",
+ "rawdesc": "Get cumulative parent's node scale",
+ "start": [
+ 325,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current screen stretch multiplier for each side",
+ "extends": {
+ "args": [],
+ "desc": "Get current screen stretch multiplier for each side",
+ "finish": [
+ 154,
+ 3
+ ],
+ "rawdesc": "Get current screen stretch multiplier for each side",
+ "returns": [
+ {
+ "name": "stretch_x",
+ "type": "function.return",
+ "view": "number"
+ },
+ {
+ "name": "stretch_y",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 143,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_screen_aspect_koef()\n -> stretch_x: number\n 2. stretch_y: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 143,
+ 33
+ ],
+ "name": "get_screen_aspect_koef",
+ "rawdesc": "Get current screen stretch multiplier for each side",
+ "start": [
+ 143,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get text metric from GUI node.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 462,
+ 47
+ ],
+ "name": "text_node",
+ "start": [
+ 462,
+ 38
+ ],
+ "type": "local",
+ "view": "node"
+ }
+ ],
+ "desc": "Get text metric from GUI node.",
+ "finish": [
+ 475,
+ 3
+ ],
+ "rawdesc": "Get text metric from GUI node.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "GUITextMetrics"
+ }
+ ],
+ "start": [
+ 462,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.get_text_metrics_from_node(text_node: node)\n -> GUITextMetrics"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 462,
+ 37
+ ],
+ "name": "get_text_metrics_from_node",
+ "rawdesc": "Get text metric from GUI node.",
+ "start": [
+ 462,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add value to array with shift policy\nShift policy can be: left, right, no_shift\n\n@*param* `array` — Array\n\n@*param* `item` — Item to insert\n\n@*param* `index` — Index to insert. If nil, item will be inserted at the end of array\n\n@*param* `shift_policy` — The druid_const.SHIFT.* constant\n\n@*return* `Inserted` — item",
+ "extends": {
+ "args": [
+ {
+ "desc": "Array",
+ "finish": [
+ 485,
+ 34
+ ],
+ "name": "array",
+ "rawdesc": "Array",
+ "start": [
+ 485,
+ 29
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Item to insert",
+ "finish": [
+ 485,
+ 40
+ ],
+ "name": "item",
+ "rawdesc": "Item to insert",
+ "start": [
+ 485,
+ 36
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "desc": "Index to insert. If nil, item will be inserted at the end of array",
+ "finish": [
+ 485,
+ 47
+ ],
+ "name": "index",
+ "rawdesc": "Index to insert. If nil, item will be inserted at the end of array",
+ "start": [
+ 485,
+ 42
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The druid_const.SHIFT.* constant",
+ "finish": [
+ 485,
+ 61
+ ],
+ "name": "shift_policy",
+ "rawdesc": "The druid_const.SHIFT.* constant",
+ "start": [
+ 485,
+ 49
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Add value to array with shift policy\nShift policy can be: left, right, no_shift\n\n@*param* `array` — Array\n\n@*param* `item` — Item to insert\n\n@*param* `index` — Index to insert. If nil, item will be inserted at the end of array\n\n@*param* `shift_policy` — The druid_const.SHIFT.* constant\n\n@*return* `Inserted` — item",
+ "finish": [
+ 505,
+ 3
+ ],
+ "rawdesc": "Add value to array with shift policy\nShift policy can be: left, right, no_shift",
+ "returns": [
+ {
+ "desc": "item",
+ "name": "Inserted",
+ "rawdesc": "item",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 485,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.insert_with_shift(array: table, item: any, index: number|nil, shift_policy: number|nil)\n -> Inserted: any"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 485,
+ 28
+ ],
+ "name": "insert_with_shift",
+ "rawdesc": "Add value to array with shift policy\nShift policy can be: left, right, no_shift",
+ "start": [
+ 485,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if device is native mobile (Android or iOS)\n\n@*return* `Is` — mobile",
+ "extends": {
+ "args": [],
+ "desc": "Check if device is native mobile (Android or iOS)\n\n@*return* `Is` — mobile",
+ "finish": [
+ 378,
+ 3
+ ],
+ "rawdesc": "Check if device is native mobile (Android or iOS)",
+ "returns": [
+ {
+ "desc": "mobile",
+ "name": "Is",
+ "rawdesc": "mobile",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 375,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.is_mobile()\n -> Is: boolean"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 375,
+ 20
+ ],
+ "name": "is_mobile",
+ "rawdesc": "Check if device is native mobile (Android or iOS)",
+ "start": [
+ 375,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if device is mobile and can support multitouch\n\n@*return* `is_multitouch` — Is multitouch supported",
+ "extends": {
+ "args": [],
+ "desc": "Check if device is mobile and can support multitouch\n\n@*return* `is_multitouch` — Is multitouch supported",
+ "finish": [
+ 402,
+ 3
+ ],
+ "rawdesc": "Check if device is mobile and can support multitouch",
+ "returns": [
+ {
+ "desc": "Is multitouch supported",
+ "name": "is_multitouch",
+ "rawdesc": "Is multitouch supported",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 400,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.is_multitouch_supported()\n -> is_multitouch: boolean"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 400,
+ 34
+ ],
+ "name": "is_multitouch_supported",
+ "rawdesc": "Check if device is mobile and can support multitouch",
+ "start": [
+ 400,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if device is HTML5",
+ "extends": {
+ "args": [],
+ "desc": "Check if device is HTML5",
+ "finish": [
+ 385,
+ 3
+ ],
+ "rawdesc": "Check if device is HTML5",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 383,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.is_web()\n -> boolean"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 383,
+ 17
+ ],
+ "name": "is_web",
+ "rawdesc": "Check if device is HTML5",
+ "start": [
+ 383,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check if device is HTML5 mobile",
+ "extends": {
+ "args": [],
+ "desc": "Check if device is HTML5 mobile",
+ "finish": [
+ 395,
+ 3
+ ],
+ "rawdesc": "Check if device is HTML5 mobile",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 390,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.is_web_mobile()\n -> boolean"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 390,
+ 24
+ ],
+ "name": "is_web_mobile",
+ "rawdesc": "Check if device is HTML5 mobile",
+ "start": [
+ 390,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Lerp between two values\n\n@*param* `a` — First value\n\n@*param* `b` — Second value\n\n@*param* `t` — Lerp amount\n\n@*return* `value` — Lerped value",
+ "extends": {
+ "args": [
+ {
+ "desc": "First value",
+ "finish": [
+ 241,
+ 17
+ ],
+ "name": "a",
+ "rawdesc": "First value",
+ "start": [
+ 241,
+ 16
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Second value",
+ "finish": [
+ 241,
+ 20
+ ],
+ "name": "b",
+ "rawdesc": "Second value",
+ "start": [
+ 241,
+ 19
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Lerp amount",
+ "finish": [
+ 241,
+ 23
+ ],
+ "name": "t",
+ "rawdesc": "Lerp amount",
+ "start": [
+ 241,
+ 22
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Lerp between two values\n\n@*param* `a` — First value\n\n@*param* `b` — Second value\n\n@*param* `t` — Lerp amount\n\n@*return* `value` — Lerped value",
+ "finish": [
+ 243,
+ 3
+ ],
+ "rawdesc": "Lerp between two values",
+ "returns": [
+ {
+ "desc": "Lerped value",
+ "name": "value",
+ "rawdesc": "Lerped value",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 241,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.lerp(a: number, b: number, t: number)\n -> value: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 241,
+ 15
+ ],
+ "name": "lerp",
+ "rawdesc": "Lerp between two values",
+ "start": [
+ 241,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Make a check with gui.pick_node, but with additional node_click_area check.\n\n@*param* `node_click_area` — Additional node to check for click area. If nil, only node will be checked",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 302,
+ 25
+ ],
+ "name": "node",
+ "start": [
+ 302,
+ 21
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "finish": [
+ 302,
+ 28
+ ],
+ "name": "x",
+ "start": [
+ 302,
+ 27
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 302,
+ 31
+ ],
+ "name": "y",
+ "start": [
+ 302,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Additional node to check for click area. If nil, only node will be checked",
+ "finish": [
+ 302,
+ 48
+ ],
+ "name": "node_click_area",
+ "rawdesc": "Additional node to check for click area. If nil, only node will be checked",
+ "start": [
+ 302,
+ 33
+ ],
+ "type": "local",
+ "view": "node|nil"
+ }
+ ],
+ "desc": "Make a check with gui.pick_node, but with additional node_click_area check.\n\n@*param* `node_click_area` — Additional node to check for click area. If nil, only node will be checked",
+ "finish": [
+ 310,
+ 3
+ ],
+ "rawdesc": "Make a check with gui.pick_node, but with additional node_click_area check.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "unknown"
+ }
+ ],
+ "start": [
+ 302,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.pick_node(node: node, x: number, y: number, node_click_area: node|nil)\n -> unknown"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 302,
+ 20
+ ],
+ "name": "pick_node",
+ "rawdesc": "Make a check with gui.pick_node, but with additional node_click_area check.",
+ "start": [
+ 302,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove value from array with shift policy\n Shift policy can be: left, right, no_shift\n\n@*param* `array` — Array\n\n@*param* `index` — Index to remove. If nil, item will be removed from the end of array\n\n@*param* `shift_policy` — The druid_const.SHIFT.* constant\n\n@*return* `Removed` — item",
+ "extends": {
+ "args": [
+ {
+ "desc": "Array",
+ "finish": [
+ 514,
+ 34
+ ],
+ "name": "array",
+ "rawdesc": "Array",
+ "start": [
+ 514,
+ 29
+ ],
+ "type": "local",
+ "view": "any[]"
+ },
+ {
+ "desc": "Index to remove. If nil, item will be removed from the end of array",
+ "finish": [
+ 514,
+ 41
+ ],
+ "name": "index",
+ "rawdesc": "Index to remove. If nil, item will be removed from the end of array",
+ "start": [
+ 514,
+ 36
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The druid_const.SHIFT.* constant",
+ "finish": [
+ 514,
+ 55
+ ],
+ "name": "shift_policy",
+ "rawdesc": "The druid_const.SHIFT.* constant",
+ "start": [
+ 514,
+ 43
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Remove value from array with shift policy\n Shift policy can be: left, right, no_shift\n\n@*param* `array` — Array\n\n@*param* `index` — Index to remove. If nil, item will be removed from the end of array\n\n@*param* `shift_policy` — The druid_const.SHIFT.* constant\n\n@*return* `Removed` — item",
+ "finish": [
+ 535,
+ 3
+ ],
+ "rawdesc": "Remove value from array with shift policy\n Shift policy can be: left, right, no_shift",
+ "returns": [
+ {
+ "desc": "item",
+ "name": "Removed",
+ "rawdesc": "item",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 514,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.remove_with_shift(array: any[], index: number|nil, shift_policy: number|nil)\n -> Removed: any"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 514,
+ 28
+ ],
+ "name": "remove_with_shift",
+ "rawdesc": "Remove value from array with shift policy\n Shift policy can be: left, right, no_shift",
+ "start": [
+ 514,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Round number to specified decimal places\n\n@*param* `num` — Number\n\n@*param* `num_decimal_places` — Decimal places\n\n@*return* `value` — Rounded number",
+ "extends": {
+ "args": [
+ {
+ "desc": "Number",
+ "finish": [
+ 230,
+ 20
+ ],
+ "name": "num",
+ "rawdesc": "Number",
+ "start": [
+ 230,
+ 17
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Decimal places",
+ "finish": [
+ 230,
+ 40
+ ],
+ "name": "num_decimal_places",
+ "rawdesc": "Decimal places",
+ "start": [
+ 230,
+ 22
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Round number to specified decimal places\n\n@*param* `num` — Number\n\n@*param* `num_decimal_places` — Decimal places\n\n@*return* `value` — Rounded number",
+ "finish": [
+ 233,
+ 3
+ ],
+ "rawdesc": "Round number to specified decimal places",
+ "returns": [
+ {
+ "desc": "Rounded number",
+ "name": "value",
+ "rawdesc": "Rounded number",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 230,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.round(num: number, num_decimal_places: number|nil)\n -> value: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 230,
+ 16
+ ],
+ "name": "round",
+ "rawdesc": "Round number to specified decimal places",
+ "start": [
+ 230,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return sign of value\n\n@*param* `val` — Value\n\n@*return* `sign` — Sign of value, -1, 0 or 1",
+ "extends": {
+ "args": [
+ {
+ "desc": "Value",
+ "finish": [
+ 217,
+ 19
+ ],
+ "name": "val",
+ "rawdesc": "Value",
+ "start": [
+ 217,
+ 16
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Return sign of value\n\n@*param* `val` — Value\n\n@*return* `sign` — Sign of value, -1, 0 or 1",
+ "finish": [
+ 223,
+ 3
+ ],
+ "rawdesc": "Return sign of value",
+ "returns": [
+ {
+ "desc": "Sign of value, -1, 0 or 1",
+ "name": "sign",
+ "rawdesc": "Sign of value, -1, 0 or 1",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 217,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.sign(val: number)\n -> sign: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 217,
+ 15
+ ],
+ "name": "sign",
+ "rawdesc": "Return sign of value",
+ "start": [
+ 217,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Move value from current to target value with step amount\n\n@*param* `current` — Current value\n\n@*param* `target` — Target value\n\n@*param* `step` — Step amount\n\n@*return* `New` — value",
+ "extends": {
+ "args": [
+ {
+ "desc": "Current value",
+ "finish": [
+ 170,
+ 23
+ ],
+ "name": "current",
+ "rawdesc": "Current value",
+ "start": [
+ 170,
+ 16
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Target value",
+ "finish": [
+ 170,
+ 31
+ ],
+ "name": "target",
+ "rawdesc": "Target value",
+ "start": [
+ 170,
+ 25
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "Step amount",
+ "finish": [
+ 170,
+ 37
+ ],
+ "name": "step",
+ "rawdesc": "Step amount",
+ "start": [
+ 170,
+ 33
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Move value from current to target value with step amount\n\n@*param* `current` — Current value\n\n@*param* `target` — Target value\n\n@*param* `step` — Step amount\n\n@*return* `New` — value",
+ "finish": [
+ 176,
+ 3
+ ],
+ "rawdesc": "Move value from current to target value with step amount",
+ "returns": [
+ {
+ "desc": "value",
+ "name": "New",
+ "rawdesc": "value",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 170,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.step(current: number, target: number, step: number)\n -> New: number"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 170,
+ 15
+ ],
+ "name": "step",
+ "rawdesc": "Move value from current to target value with step amount",
+ "start": [
+ 170,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Simple table to one-line string converter",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 408,
+ 28
+ ],
+ "name": "t",
+ "start": [
+ 408,
+ 27
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Simple table to one-line string converter",
+ "finish": [
+ 423,
+ 3
+ ],
+ "rawdesc": "Simple table to one-line string converter",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 408,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.helper.table_to_string(t: table)\n -> string"
+ },
+ "file": "/druid/helper.lua",
+ "finish": [
+ 408,
+ 26
+ ],
+ "name": "table_to_string",
+ "rawdesc": "Simple table to one-line string converter",
+ "start": [
+ 408,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.helper",
+ "type": "type",
+ "view": "druid.helper"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "extends": [
+ {
+ "finish": [
+ 8,
+ 39
+ ],
+ "start": [
+ 8,
+ 24
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 8,
+ 39
+ ],
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.hotkey",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The list of hotkeys",
+ "extends": {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 12,
+ 32
+ ],
+ "name": "_hotkeys",
+ "rawdesc": "The list of hotkeys",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "The flag value",
+ "finish": [
+ 173,
+ 48
+ ],
+ "rawdesc": "The flag value",
+ "start": [
+ 173,
+ 29
+ ],
+ "type": "getlocal",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 173,
+ 26
+ ],
+ "name": "_is_process_repeated",
+ "start": [
+ 173,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The list of modificators",
+ "extends": {
+ "finish": [
+ 13,
+ 37
+ ],
+ "start": [
+ 13,
+ 32
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 37
+ ],
+ "start": [
+ 13,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 13,
+ 37
+ ],
+ "name": "_modificators",
+ "rawdesc": "The list of modificators",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add hotkey for component callback\n\n@*param* `keys` — that have to be pressed before key pressed to activate\n\n@*param* `callback_argument` — The argument to pass into the callback function\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 55,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 55,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ },
+ {
+ "desc": "that have to be pressed before key pressed to activate",
+ "finish": [
+ 55,
+ 26
+ ],
+ "name": "keys",
+ "rawdesc": "that have to be pressed before key pressed to activate",
+ "start": [
+ 55,
+ 22
+ ],
+ "type": "local",
+ "view": "string|hash|hash[]|string[]"
+ },
+ {
+ "desc": "The argument to pass into the callback function",
+ "finish": [
+ 55,
+ 45
+ ],
+ "name": "callback_argument",
+ "rawdesc": "The argument to pass into the callback function",
+ "start": [
+ 55,
+ 28
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "Add hotkey for component callback\n\n@*param* `keys` — that have to be pressed before key pressed to activate\n\n@*param* `callback_argument` — The argument to pass into the callback function\n\n@*return* `self` — Current instance",
+ "finish": [
+ 91,
+ 3
+ ],
+ "rawdesc": "Add hotkey for component callback",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.hotkey"
+ }
+ ],
+ "start": [
+ 55,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:add_hotkey(keys: string|hash|hash[]|string[], callback_argument: any)\n -> self: druid.hotkey"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 55,
+ 21
+ ],
+ "name": "add_hotkey",
+ "rawdesc": "Add hotkey for component callback",
+ "start": [
+ 55,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.instance"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 22,
+ 11
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Hotkey constructor\n\n@*param* `keys` — The keys to be pressed for trigger callback. Should contains one key and any modificator keys\n\n@*param* `callback` — The callback function\n\n@*param* `callback_argument` — The argument to pass into the callback function",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 21,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 21,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ },
+ {
+ "desc": "The keys to be pressed for trigger callback. Should contains one key and any modificator keys",
+ "finish": [
+ 21,
+ 20
+ ],
+ "name": "keys",
+ "rawdesc": "The keys to be pressed for trigger callback. Should contains one key and any modificator keys",
+ "start": [
+ 21,
+ 16
+ ],
+ "type": "local",
+ "view": "string|string[]"
+ },
+ {
+ "desc": "The callback function",
+ "finish": [
+ 21,
+ 30
+ ],
+ "name": "callback",
+ "rawdesc": "The callback function",
+ "start": [
+ 21,
+ 22
+ ],
+ "type": "local",
+ "view": "function"
+ },
+ {
+ "desc": "The argument to pass into the callback function",
+ "finish": [
+ 21,
+ 49
+ ],
+ "name": "callback_argument",
+ "rawdesc": "The argument to pass into the callback function",
+ "start": [
+ 21,
+ 32
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "The Hotkey constructor\n\n@*param* `keys` — The keys to be pressed for trigger callback. Should contains one key and any modificator keys\n\n@*param* `callback` — The callback function\n\n@*param* `callback_argument` — The argument to pass into the callback function",
+ "finish": [
+ 33,
+ 3
+ ],
+ "rawdesc": "The Hotkey constructor",
+ "start": [
+ 21,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:init(keys: string|string[], callback: function, callback_argument: any)"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 21,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "The Hotkey constructor",
+ "start": [
+ 21,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 94,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 94,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ }
+ ],
+ "finish": [
+ 102,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 94,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:is_processing()\n -> boolean"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 94,
+ 24
+ ],
+ "name": "is_processing",
+ "start": [
+ 94,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 105,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 105,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ }
+ ],
+ "finish": [
+ 109,
+ 3
+ ],
+ "start": [
+ 105,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:on_focus_gained()"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 105,
+ 26
+ ],
+ "name": "on_focus_gained",
+ "start": [
+ 105,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, context, callback_argument) The event triggered when a hotkey is pressed",
+ "extends": {
+ "finish": [
+ 9,
+ 33
+ ],
+ "start": [
+ 9,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 33
+ ],
+ "start": [
+ 9,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 9,
+ 33
+ ],
+ "name": "on_hotkey_pressed",
+ "rawdesc": "fun(self, context, callback_argument) The event triggered when a hotkey is pressed",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self, context, callback_argument) The event triggered when a hotkey is released",
+ "extends": {
+ "finish": [
+ 10,
+ 34
+ ],
+ "start": [
+ 10,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 34
+ ],
+ "start": [
+ 10,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 10,
+ 34
+ ],
+ "name": "on_hotkey_released",
+ "rawdesc": "fun(self, context, callback_argument) The event triggered when a hotkey is released",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action\n\n@*return* `is_consume` — True if the action is consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 115,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 115,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 115,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 115,
+ 20
+ ],
+ "type": "local",
+ "view": "hash|nil"
+ },
+ {
+ "desc": "The action",
+ "finish": [
+ 115,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "The action",
+ "start": [
+ 115,
+ 31
+ ],
+ "type": "local",
+ "view": "action"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action\n\n@*return* `is_consume` — True if the action is consumed",
+ "finish": [
+ 166,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the action is consumed",
+ "name": "is_consume",
+ "rawdesc": "True if the action is consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 115,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:on_input(action_id: hash|nil, action: action)\n -> is_consume: boolean"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 115,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 115,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 37,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 37,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ },
+ {
+ "finish": [
+ 37,
+ 32
+ ],
+ "name": "style",
+ "start": [
+ 37,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.hotkey.style"
+ }
+ ],
+ "finish": [
+ 48,
+ 3
+ ],
+ "start": [
+ 37,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:on_style_change(style: druid.hotkey.style)"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 37,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 37,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If true, the callback will be triggered on action.repeated\n\n@*param* `is_enabled_repeated` — The flag value\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "finish": [
+ 172,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed",
+ "start": [
+ 172,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hotkey"
+ },
+ {
+ "desc": "The flag value",
+ "finish": [
+ 172,
+ 41
+ ],
+ "name": "is_enabled_repeated",
+ "rawdesc": "The flag value",
+ "start": [
+ 172,
+ 22
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "If true, the callback will be triggered on action.repeated\n\n@*param* `is_enabled_repeated` — The flag value\n\n@*return* `self` — Current instance",
+ "finish": [
+ 175,
+ 3
+ ],
+ "rawdesc": "If true, the callback will be triggered on action.repeated",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.hotkey"
+ }
+ ],
+ "start": [
+ 172,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hotkey:set_repeat(is_enabled_repeated: boolean)\n -> self: druid.hotkey"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 172,
+ 21
+ ],
+ "name": "set_repeat",
+ "rawdesc": "If true, the callback will be triggered on action.repeated",
+ "start": [
+ 172,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The style of the hotkey component",
+ "extends": {
+ "finish": [
+ 11,
+ 34
+ ],
+ "start": [
+ 11,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 34
+ ],
+ "start": [
+ 11,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.hotkey.style"
+ }
+ ],
+ "view": "druid.hotkey.style"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 11,
+ 34
+ ],
+ "name": "style",
+ "rawdesc": "The style of the hotkey component",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.hotkey.style",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.hotkey",
+ "type": "type",
+ "view": "druid.hotkey"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 4,
+ 28
+ ],
+ "start": [
+ 4,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.hotkey.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The list of action_id as hotkey modificators",
+ "extends": {
+ "finish": [
+ 5,
+ 38
+ ],
+ "start": [
+ 5,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 5,
+ 31
+ ],
+ "start": [
+ 5,
+ 23
+ ],
+ "type": "doc.type.array",
+ "view": "string[]"
+ },
+ {
+ "finish": [
+ 5,
+ 38
+ ],
+ "start": [
+ 5,
+ 32
+ ],
+ "type": "doc.type.array",
+ "view": "hash[]"
+ }
+ ],
+ "view": "hash[]|string[]"
+ },
+ "file": "/druid/extended/hotkey.lua",
+ "finish": [
+ 5,
+ 38
+ ],
+ "name": "MODIFICATORS",
+ "rawdesc": "The list of action_id as hotkey modificators",
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "hash[]|string[]",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.hotkey.style",
+ "type": "type",
+ "view": "druid.hotkey.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component for handling hover events on a node",
+ "extends": [
+ {
+ "finish": [
+ 10,
+ 38
+ ],
+ "start": [
+ 10,
+ 23
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 10,
+ 38
+ ],
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.hover",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the hover component is enabled",
+ "extends": {
+ "finish": [
+ 18,
+ 41
+ ],
+ "start": [
+ 18,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 37
+ ],
+ "start": [
+ 18,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 18,
+ 41
+ ],
+ "start": [
+ 18,
+ 38
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "boolean|nil"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 18,
+ 41
+ ],
+ "name": "_is_enabled",
+ "rawdesc": "True if the hover component is enabled",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean|nil",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the node is hovered",
+ "extends": {
+ "finish": [
+ 16,
+ 41
+ ],
+ "start": [
+ 16,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 37
+ ],
+ "start": [
+ 16,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 16,
+ 41
+ ],
+ "start": [
+ 16,
+ 38
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "boolean|nil"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 16,
+ 41
+ ],
+ "name": "_is_hovered",
+ "rawdesc": "True if the node is hovered",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean|nil",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the platform is mobile",
+ "extends": {
+ "finish": [
+ 19,
+ 36
+ ],
+ "start": [
+ 19,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 36
+ ],
+ "start": [
+ 19,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 19,
+ 36
+ ],
+ "name": "_is_mobile",
+ "rawdesc": "True if the platform is mobile",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the node is mouse hovered",
+ "extends": {
+ "finish": [
+ 17,
+ 47
+ ],
+ "start": [
+ 17,
+ 36
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 43
+ ],
+ "start": [
+ 17,
+ 36
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 17,
+ 47
+ ],
+ "start": [
+ 17,
+ 44
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "boolean|nil"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 17,
+ 47
+ ],
+ "name": "_is_mouse_hovered",
+ "rawdesc": "True if the node is mouse hovered",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean|nil",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 190,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 190,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "finish": [
+ 190,
+ 31
+ ],
+ "name": "priority",
+ "start": [
+ 190,
+ 23
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "finish": [
+ 190,
+ 39
+ ],
+ "name": "cursor",
+ "start": [
+ 190,
+ 33
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "finish": [
+ 212,
+ 3
+ ],
+ "start": [
+ 190,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:_set_cursor(priority: any, cursor: any)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 190,
+ 22
+ ],
+ "name": "_set_cursor",
+ "start": [
+ 190,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Click zone of the hover component",
+ "extends": {
+ "finish": [
+ 15,
+ 25
+ ],
+ "start": [
+ 15,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 25
+ ],
+ "start": [
+ 15,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 15,
+ 25
+ ],
+ "name": "click_zone",
+ "rawdesc": "Click zone of the hover component",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The constructor for the hover component\n\n@*param* `node` — Gui node\n\n@*param* `on_hover_callback` — Hover callback\n\n@*param* `on_mouse_hover` — On mouse hover callback",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 27,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 27,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "Gui node",
+ "finish": [
+ 27,
+ 20
+ ],
+ "name": "node",
+ "rawdesc": "Gui node",
+ "start": [
+ 27,
+ 16
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "Hover callback",
+ "finish": [
+ 27,
+ 39
+ ],
+ "name": "on_hover_callback",
+ "rawdesc": "Hover callback",
+ "start": [
+ 27,
+ 22
+ ],
+ "type": "local",
+ "view": "function"
+ },
+ {
+ "desc": "On mouse hover callback",
+ "finish": [
+ 27,
+ 55
+ ],
+ "name": "on_mouse_hover",
+ "rawdesc": "On mouse hover callback",
+ "start": [
+ 27,
+ 41
+ ],
+ "type": "local",
+ "view": "function"
+ }
+ ],
+ "desc": "The constructor for the hover component\n\n@*param* `node` — Gui node\n\n@*param* `on_hover_callback` — Hover callback\n\n@*param* `on_mouse_hover` — On mouse hover callback",
+ "finish": [
+ 37,
+ 3
+ ],
+ "rawdesc": "The constructor for the hover component",
+ "start": [
+ 27,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:init(node: node, on_hover_callback: function, on_mouse_hover: function)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 27,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "The constructor for the hover component",
+ "start": [
+ 27,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current hover enabled state\n\n@*return* `The` — hover enabled state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 182,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 182,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ }
+ ],
+ "desc": "Return current hover enabled state\n\n@*return* `The` — hover enabled state",
+ "finish": [
+ 184,
+ 3
+ ],
+ "rawdesc": "Return current hover enabled state",
+ "returns": [
+ {
+ "desc": "hover enabled state",
+ "name": "The",
+ "rawdesc": "hover enabled state",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 182,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:is_enabled()\n -> The: boolean"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 182,
+ 21
+ ],
+ "name": "is_enabled",
+ "rawdesc": "Return current hover enabled state",
+ "start": [
+ 182,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current hover state. True if touch action was on the node at current time\n\n@*return* `is_hovered` — The current hovered state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 122,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 122,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ }
+ ],
+ "desc": "Return current hover state. True if touch action was on the node at current time\n\n@*return* `is_hovered` — The current hovered state",
+ "finish": [
+ 124,
+ 3
+ ],
+ "rawdesc": "Return current hover state. True if touch action was on the node at current time",
+ "returns": [
+ {
+ "desc": "The current hovered state",
+ "name": "is_hovered",
+ "rawdesc": "The current hovered state",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 122,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:is_hovered()\n -> is_hovered: boolean"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 122,
+ 21
+ ],
+ "name": "is_hovered",
+ "rawdesc": "Return current hover state. True if touch action was on the node at current time",
+ "start": [
+ 122,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current hover state. True if nil action_id (usually desktop mouse) was on the node at current time\n\n@*return* `The` — current hovered state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 145,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 145,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ }
+ ],
+ "desc": "Return current hover state. True if nil action_id (usually desktop mouse) was on the node at current time\n\n@*return* `The` — current hovered state",
+ "finish": [
+ 147,
+ 3
+ ],
+ "rawdesc": "Return current hover state. True if nil action_id (usually desktop mouse) was on the node at current time",
+ "returns": [
+ {
+ "desc": "current hovered state",
+ "name": "The",
+ "rawdesc": "current hovered state",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 145,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:is_mouse_hovered()\n -> The: boolean"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 145,
+ 27
+ ],
+ "name": "is_mouse_hovered",
+ "rawdesc": "Return current hover state. True if nil action_id (usually desktop mouse) was on the node at current time",
+ "start": [
+ 145,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Gui node",
+ "extends": {
+ "finish": [
+ 11,
+ 19
+ ],
+ "start": [
+ 11,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 19
+ ],
+ "start": [
+ 11,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 11,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "Gui node",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.hover, is_hover: boolean) Hover event",
+ "extends": {
+ "finish": [
+ 12,
+ 24
+ ],
+ "start": [
+ 12,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 24
+ ],
+ "start": [
+ 12,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 12,
+ 24
+ ],
+ "name": "on_hover",
+ "rawdesc": "fun(self: druid.hover, is_hover: boolean) Hover event",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_consumed` — True if the input was consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 64,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 64,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "Action id from on_input",
+ "finish": [
+ 64,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "Action id from on_input",
+ "start": [
+ 64,
+ 20
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Action from on_input",
+ "finish": [
+ 64,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "Action from on_input",
+ "start": [
+ 64,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "@*param* `action_id` — Action id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_consumed` — True if the input was consumed",
+ "finish": [
+ 95,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the input was consumed",
+ "name": "is_consumed",
+ "rawdesc": "True if the input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 64,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:on_input(action_id: hash, action: table)\n -> is_consumed: boolean"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 64,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 64,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 99,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 99,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ }
+ ],
+ "finish": [
+ 101,
+ 3
+ ],
+ "start": [
+ 99,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:on_input_interrupt()"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 99,
+ 29
+ ],
+ "name": "on_input_interrupt",
+ "start": [
+ 99,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 41,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 41,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ }
+ ],
+ "finish": [
+ 48,
+ 3
+ ],
+ "start": [
+ 41,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:on_late_init()"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 41,
+ 23
+ ],
+ "name": "on_late_init",
+ "start": [
+ 41,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.hover, is_hover: boolean) Mouse hover event",
+ "extends": {
+ "finish": [
+ 13,
+ 30
+ ],
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 30
+ ],
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 13,
+ 30
+ ],
+ "name": "on_mouse_hover",
+ "rawdesc": "fun(self: druid.hover, is_hover: boolean) Mouse hover event",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 53,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 53,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "finish": [
+ 53,
+ 32
+ ],
+ "name": "style",
+ "start": [
+ 53,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.hover.style"
+ }
+ ],
+ "finish": [
+ 57,
+ 3
+ ],
+ "start": [
+ 53,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:on_style_change(style: druid.hover.style)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 53,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 53,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Strict hover click area. Useful for no click events outside stencil node\n\n@*param* `zone` — Gui node",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 152,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 152,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "Gui node",
+ "finish": [
+ 152,
+ 30
+ ],
+ "name": "zone",
+ "rawdesc": "Gui node",
+ "start": [
+ 152,
+ 26
+ ],
+ "type": "local",
+ "view": "string|node|nil"
+ }
+ ],
+ "desc": "Strict hover click area. Useful for no click events outside stencil node\n\n@*param* `zone` — Gui node",
+ "finish": [
+ 159,
+ 3
+ ],
+ "rawdesc": "Strict hover click area. Useful for no click events outside stencil node",
+ "start": [
+ 152,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:set_click_zone(zone: string|node|nil)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 152,
+ 25
+ ],
+ "name": "set_click_zone",
+ "rawdesc": "Strict hover click area. Useful for no click events outside stencil node",
+ "start": [
+ 152,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set enable state of hover component.\nIf hover is not enabled, it will not generate\nany hover events\n\n@*param* `state` — The hover enabled state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 166,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 166,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "The hover enabled state",
+ "finish": [
+ 166,
+ 28
+ ],
+ "name": "state",
+ "rawdesc": "The hover enabled state",
+ "start": [
+ 166,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set enable state of hover component.\nIf hover is not enabled, it will not generate\nany hover events\n\n@*param* `state` — The hover enabled state",
+ "finish": [
+ 177,
+ 3
+ ],
+ "rawdesc": "Set enable state of hover component.\nIf hover is not enabled, it will not generate\nany hover events",
+ "start": [
+ 166,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:set_enabled(state: boolean|nil)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 166,
+ 22
+ ],
+ "name": "set_enabled",
+ "rawdesc": "Set enable state of hover component.\nIf hover is not enabled, it will not generate\nany hover events",
+ "start": [
+ 166,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set hover state\n\n@*param* `state` — The hover state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 106,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 106,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "The hover state",
+ "finish": [
+ 106,
+ 26
+ ],
+ "name": "state",
+ "rawdesc": "The hover state",
+ "start": [
+ 106,
+ 21
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set hover state\n\n@*param* `state` — The hover state",
+ "finish": [
+ 117,
+ 3
+ ],
+ "rawdesc": "Set hover state",
+ "start": [
+ 106,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:set_hover(state: boolean|nil)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 106,
+ 20
+ ],
+ "name": "set_hover",
+ "rawdesc": "Set hover state",
+ "start": [
+ 106,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set mouse hover state\n\n@*param* `state` — The mouse hover state",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component for handling hover events on a node",
+ "finish": [
+ 129,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component for handling hover events on a node",
+ "start": [
+ 129,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.hover"
+ },
+ {
+ "desc": "The mouse hover state",
+ "finish": [
+ 129,
+ 32
+ ],
+ "name": "state",
+ "rawdesc": "The mouse hover state",
+ "start": [
+ 129,
+ 27
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set mouse hover state\n\n@*param* `state` — The mouse hover state",
+ "finish": [
+ 140,
+ 3
+ ],
+ "rawdesc": "Set mouse hover state",
+ "start": [
+ 129,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.hover:set_mouse_hover(state: boolean|nil)"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 129,
+ 26
+ ],
+ "name": "set_mouse_hover",
+ "rawdesc": "Set mouse hover state",
+ "start": [
+ 129,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Style of the hover component",
+ "extends": {
+ "finish": [
+ 14,
+ 33
+ ],
+ "start": [
+ 14,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 33
+ ],
+ "start": [
+ 14,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.hover.style"
+ }
+ ],
+ "view": "druid.hover.style"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 14,
+ 33
+ ],
+ "name": "style",
+ "rawdesc": "Style of the hover component",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.hover.style",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.hover",
+ "type": "type",
+ "view": "druid.hover"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 5,
+ 27
+ ],
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.hover.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Mouse hover style on node hover",
+ "extends": {
+ "finish": [
+ 6,
+ 36
+ ],
+ "start": [
+ 6,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 6,
+ 32
+ ],
+ "start": [
+ 6,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ },
+ {
+ "finish": [
+ 6,
+ 36
+ ],
+ "start": [
+ 6,
+ 33
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "string|nil"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 6,
+ 36
+ ],
+ "name": "ON_HOVER_CURSOR",
+ "rawdesc": "Mouse hover style on node hover",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Mouse hover style on node mouse hover",
+ "extends": {
+ "finish": [
+ 7,
+ 42
+ ],
+ "start": [
+ 7,
+ 32
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 38
+ ],
+ "start": [
+ 7,
+ 32
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ },
+ {
+ "finish": [
+ 7,
+ 42
+ ],
+ "start": [
+ 7,
+ 39
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "string|nil"
+ },
+ "file": "/druid/base/hover.lua",
+ "finish": [
+ 7,
+ 42
+ ],
+ "name": "ON_MOUSE_HOVER_CURSOR",
+ "rawdesc": "Mouse hover style on node mouse hover",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.hover.style",
+ "type": "type",
+ "view": "druid.hover.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for managing input fields in basic way",
+ "extends": [
+ {
+ "finish": [
+ 16,
+ 38
+ ],
+ "start": [
+ 16,
+ 23
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 16,
+ 38
+ ],
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.input",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 35,
+ 1
+ ],
+ "start": [
+ 28,
+ 20
+ ],
+ "type": "table",
+ "view": "table"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 28,
+ 17
+ ],
+ "name": "ALLOWED_ACTIONS",
+ "start": [
+ 28,
+ 0
+ ],
+ "type": "setfield",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 88,
+ 30
+ ],
+ "start": [
+ 88,
+ 27
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 88,
+ 24
+ ],
+ "name": "allowed_characters",
+ "start": [
+ 88,
+ 1
+ ],
+ "type": "setfield",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "Regulax exp. for validate user input",
+ "finish": [
+ 385,
+ 37
+ ],
+ "rawdesc": "Regulax exp. for validate user input",
+ "start": [
+ 385,
+ 27
+ ],
+ "type": "getlocal",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "allowed_characters",
+ "start": [
+ 385,
+ 1
+ ],
+ "type": "setfield",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "extends": {
+ "desc": "Druid component to make clickable node with various interaction callbacks",
+ "finish": [
+ 92,
+ 61
+ ],
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 92,
+ 15
+ ],
+ "type": "select",
+ "view": "druid.button"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 92,
+ 12
+ ],
+ "name": "button",
+ "rawdesc": "Druid component to make clickable node with various interaction callbacks",
+ "start": [
+ 92,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.button",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 76,
+ 42
+ ],
+ "start": [
+ 76,
+ 22
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 76,
+ 19
+ ],
+ "name": "current_value",
+ "start": [
+ 76,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 282,
+ 36
+ ],
+ "start": [
+ 282,
+ 23
+ ],
+ "type": "getlocal",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 282,
+ 20
+ ],
+ "name": "current_value",
+ "start": [
+ 282,
+ 2
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 83,
+ 41
+ ],
+ "start": [
+ 83,
+ 21
+ ],
+ "type": "select",
+ "view": "integer"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 83,
+ 18
+ ],
+ "name": "cursor_index",
+ "start": [
+ 83,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 407,
+ 40
+ ],
+ "start": [
+ 407,
+ 21
+ ],
+ "type": "binary",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 407,
+ 18
+ ],
+ "name": "cursor_index",
+ "start": [
+ 407,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 411,
+ 60
+ ],
+ "start": [
+ 411,
+ 21
+ ],
+ "type": "select",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 411,
+ 18
+ ],
+ "name": "cursor_index",
+ "start": [
+ 411,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 65,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 65,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.instance"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 65,
+ 11
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 65,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 85,
+ 35
+ ],
+ "start": [
+ 85,
+ 18
+ ],
+ "type": "getfield",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 85,
+ 15
+ ],
+ "name": "end_index",
+ "start": [
+ 85,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 409,
+ 47
+ ],
+ "start": [
+ 409,
+ 18
+ ],
+ "type": "binary",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 409,
+ 15
+ ],
+ "name": "end_index",
+ "start": [
+ 409,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 413,
+ 54
+ ],
+ "start": [
+ 413,
+ 18
+ ],
+ "type": "select",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 413,
+ 15
+ ],
+ "name": "end_index",
+ "start": [
+ 413,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current input field text\n\n@*return* `text` — The current input field text",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 360,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 360,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "desc": "Return current input field text\n\n@*return* `text` — The current input field text",
+ "finish": [
+ 366,
+ 3
+ ],
+ "rawdesc": "Return current input field text",
+ "returns": [
+ {
+ "desc": "The current input field text",
+ "name": "text",
+ "rawdesc": "The current input field text",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 360,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:get_text()\n -> text: string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 360,
+ 19
+ ],
+ "name": "get_text",
+ "rawdesc": "Return current input field text",
+ "start": [
+ 360,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 242,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 242,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "finish": [
+ 248,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string|unknown"
+ }
+ ],
+ "start": [
+ 242,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:get_text_selected()\n -> string|unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 242,
+ 28
+ ],
+ "name": "get_text_selected",
+ "start": [
+ 242,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Replace selected text with new text\n\n@*param* `text` — The text to replace selected text\n\n@*return* `new_text` — New input text",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 254,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 254,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "The text to replace selected text",
+ "finish": [
+ 254,
+ 42
+ ],
+ "name": "text",
+ "rawdesc": "The text to replace selected text",
+ "start": [
+ 254,
+ 38
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "Replace selected text with new text\n\n@*param* `text` — The text to replace selected text\n\n@*return* `new_text` — New input text",
+ "finish": [
+ 265,
+ 3
+ ],
+ "rawdesc": "Replace selected text with new text",
+ "returns": [
+ {
+ "desc": "New input text",
+ "name": "new_text",
+ "rawdesc": "New input text",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 254,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:get_text_selected_replaced(text: string)\n -> new_text: string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 254,
+ 37
+ ],
+ "name": "get_text_selected_replaced",
+ "rawdesc": "Replace selected text with new text",
+ "start": [
+ 254,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `click_node` — Node to enabled input component\n\n@*param* `text_node` — Text node what will be changed on user input. You can pass text component instead of text node name Text\n\n@*param* `keyboard_type` — Gui keyboard type for input field",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 64,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 64,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "Node to enabled input component",
+ "finish": [
+ 64,
+ 26
+ ],
+ "name": "click_node",
+ "rawdesc": "Node to enabled input component",
+ "start": [
+ 64,
+ 16
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "Text node what will be changed on user input. You can pass text component instead of text node name Text",
+ "finish": [
+ 64,
+ 37
+ ],
+ "name": "text_node",
+ "rawdesc": "Text node what will be changed on user input. You can pass text component instead of text node name Text",
+ "start": [
+ 64,
+ 28
+ ],
+ "type": "local",
+ "view": "druid.text|node"
+ },
+ {
+ "desc": "Gui keyboard type for input field",
+ "finish": [
+ 64,
+ 52
+ ],
+ "name": "keyboard_type",
+ "rawdesc": "Gui keyboard type for input field",
+ "start": [
+ 64,
+ 39
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "@*param* `click_node` — Node to enabled input component\n\n@*param* `text_node` — Text node what will be changed on user input. You can pass text component instead of text node name Text\n\n@*param* `keyboard_type` — Gui keyboard type for input field",
+ "finish": [
+ 112,
+ 3
+ ],
+ "start": [
+ 64,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:init(click_node: node, text_node: druid.text|node, keyboard_type: number|nil)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 64,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 64,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 78,
+ 21
+ ],
+ "start": [
+ 78,
+ 17
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 78,
+ 14
+ ],
+ "name": "is_empty",
+ "start": [
+ 78,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 295,
+ 52
+ ],
+ "start": [
+ 295,
+ 18
+ ],
+ "type": "binary",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 295,
+ 15
+ ],
+ "name": "is_empty",
+ "start": [
+ 295,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 73,
+ 25
+ ],
+ "start": [
+ 73,
+ 20
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 73,
+ 17
+ ],
+ "name": "is_selected",
+ "start": [
+ 73,
+ 1
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 324,
+ 25
+ ],
+ "start": [
+ 324,
+ 21
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 324,
+ 18
+ ],
+ "name": "is_selected",
+ "start": [
+ 324,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 348,
+ 26
+ ],
+ "start": [
+ 348,
+ 21
+ ],
+ "type": "boolean",
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 348,
+ 18
+ ],
+ "name": "is_selected",
+ "start": [
+ 348,
+ 2
+ ],
+ "type": "setfield",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 90,
+ 64
+ ],
+ "start": [
+ 90,
+ 22
+ ],
+ "type": "binary",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 90,
+ 19
+ ],
+ "name": "keyboard_type",
+ "start": [
+ 90,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 302,
+ 64
+ ],
+ "start": [
+ 302,
+ 27
+ ],
+ "type": "select",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 302,
+ 24
+ ],
+ "name": "marked_text_width",
+ "start": [
+ 302,
+ 2
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 77,
+ 23
+ ],
+ "start": [
+ 77,
+ 21
+ ],
+ "type": "string",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 77,
+ 18
+ ],
+ "name": "marked_value",
+ "start": [
+ 77,
+ 1
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 164,
+ 26
+ ],
+ "start": [
+ 164,
+ 24
+ ],
+ "type": "string",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 164,
+ 21
+ ],
+ "name": "marked_value",
+ "start": [
+ 164,
+ 4
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 169,
+ 40
+ ],
+ "start": [
+ 169,
+ 23
+ ],
+ "type": "binary",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 169,
+ 20
+ ],
+ "name": "marked_value",
+ "start": [
+ 169,
+ 3
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 171,
+ 71
+ ],
+ "start": [
+ 171,
+ 24
+ ],
+ "type": "select",
+ "view": "string|unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 171,
+ 21
+ ],
+ "name": "marked_value",
+ "start": [
+ 171,
+ 4
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 319,
+ 23
+ ],
+ "start": [
+ 319,
+ 21
+ ],
+ "type": "string",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 319,
+ 18
+ ],
+ "name": "marked_value",
+ "start": [
+ 319,
+ 1
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 343,
+ 23
+ ],
+ "start": [
+ 343,
+ 21
+ ],
+ "type": "string",
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 343,
+ 18
+ ],
+ "name": "marked_value",
+ "start": [
+ 343,
+ 1
+ ],
+ "type": "setfield",
+ "view": "string|unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 81,
+ 27
+ ],
+ "start": [
+ 81,
+ 26
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 81,
+ 23
+ ],
+ "name": "market_text_width",
+ "start": [
+ 81,
+ 1
+ ],
+ "type": "setfield",
+ "view": "integer",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 87,
+ 22
+ ],
+ "start": [
+ 87,
+ 19
+ ],
+ "type": "nil",
+ "view": "nil"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 87,
+ 16
+ ],
+ "name": "max_length",
+ "start": [
+ 87,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "Maximum length for input text field",
+ "finish": [
+ 374,
+ 29
+ ],
+ "rawdesc": "Maximum length for input text field",
+ "start": [
+ 374,
+ 19
+ ],
+ "type": "getlocal",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 374,
+ 16
+ ],
+ "name": "max_length",
+ "start": [
+ 374,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Change cursor position by delta\n\n@*param* `delta` — side for cursor position, -1 for left, 1 for right\n\n@*param* `is_add_to_selection` — (Shift key)\n\n@*param* `is_move_to_end` — (Ctrl key)\n\n@*return* `self` — Current input instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 426,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 426,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "side for cursor position, -1 for left, 1 for right",
+ "finish": [
+ 426,
+ 31
+ ],
+ "name": "delta",
+ "rawdesc": "side for cursor position, -1 for left, 1 for right",
+ "start": [
+ 426,
+ 26
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "(Shift key)",
+ "finish": [
+ 426,
+ 52
+ ],
+ "name": "is_add_to_selection",
+ "rawdesc": "(Shift key)",
+ "start": [
+ 426,
+ 33
+ ],
+ "type": "local",
+ "view": "boolean"
+ },
+ {
+ "desc": "(Ctrl key)",
+ "finish": [
+ 426,
+ 68
+ ],
+ "name": "is_move_to_end",
+ "rawdesc": "(Ctrl key)",
+ "start": [
+ 426,
+ 54
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Change cursor position by delta\n\n@*param* `delta` — side for cursor position, -1 for left, 1 for right\n\n@*param* `is_add_to_selection` — (Shift key)\n\n@*param* `is_move_to_end` — (Ctrl key)\n\n@*return* `self` — Current input instance",
+ "finish": [
+ 481,
+ 3
+ ],
+ "rawdesc": "Change cursor position by delta",
+ "returns": [
+ {
+ "desc": "Current input instance",
+ "name": "self",
+ "rawdesc": "Current input instance",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 426,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:move_selection(delta: number, is_add_to_selection: boolean, is_move_to_end: boolean)\n -> self: druid.input"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 426,
+ 25
+ ],
+ "name": "move_selection",
+ "rawdesc": "Change cursor position by delta",
+ "start": [
+ 426,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 232,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 232,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "finish": [
+ 234,
+ 3
+ ],
+ "start": [
+ 232,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:on_focus_lost()"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 232,
+ 24
+ ],
+ "name": "on_focus_lost",
+ "start": [
+ 232,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action\n\n@*return* `is_consume` — True if the action is consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 134,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 134,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "The action id",
+ "finish": [
+ 134,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "The action id",
+ "start": [
+ 134,
+ 20
+ ],
+ "type": "local",
+ "view": "hash|nil"
+ },
+ {
+ "desc": "The action",
+ "finish": [
+ 134,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "The action",
+ "start": [
+ 134,
+ 31
+ ],
+ "type": "local",
+ "view": "action"
+ }
+ ],
+ "desc": "@*param* `action_id` — The action id\n\n@*param* `action` — The action\n\n@*return* `is_consume` — True if the action is consumed",
+ "finish": [
+ 229,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "True if the action is consumed",
+ "name": "is_consume",
+ "rawdesc": "True if the action is consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 134,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:on_input(action_id: hash|nil, action: action)\n -> is_consume: boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 134,
+ 19
+ ],
+ "name": "on_input",
+ "start": [
+ 134,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input) The event triggered when the input field is empty",
+ "extends": {
+ "finish": [
+ 20,
+ 30
+ ],
+ "start": [
+ 20,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 30
+ ],
+ "start": [
+ 20,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 20,
+ 30
+ ],
+ "name": "on_input_empty",
+ "rawdesc": "fun(self: druid.input) The event triggered when the input field is empty",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input) The event triggered when the input field is full",
+ "extends": {
+ "finish": [
+ 21,
+ 29
+ ],
+ "start": [
+ 21,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 21,
+ 29
+ ],
+ "start": [
+ 21,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 21,
+ 29
+ ],
+ "name": "on_input_full",
+ "rawdesc": "fun(self: druid.input) The event triggered when the input field is full",
+ "start": [
+ 21,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 237,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 237,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "finish": [
+ 239,
+ 3
+ ],
+ "start": [
+ 237,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:on_input_interrupt()"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 237,
+ 29
+ ],
+ "name": "on_input_interrupt",
+ "start": [
+ 237,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input, input: druid.input) The event triggered when the input field is selected",
+ "extends": {
+ "finish": [
+ 17,
+ 31
+ ],
+ "start": [
+ 17,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 31
+ ],
+ "start": [
+ 17,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 17,
+ 31
+ ],
+ "name": "on_input_select",
+ "rawdesc": "fun(self: druid.input, input: druid.input) The event triggered when the input field is selected",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input) The event triggered when the input field is changed",
+ "extends": {
+ "finish": [
+ 19,
+ 29
+ ],
+ "start": [
+ 19,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 29
+ ],
+ "start": [
+ 19,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 19,
+ 29
+ ],
+ "name": "on_input_text",
+ "rawdesc": "fun(self: druid.input) The event triggered when the input field is changed",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input, text: string, input: druid.input) The event triggered when the input field is unselected",
+ "extends": {
+ "finish": [
+ 18,
+ 33
+ ],
+ "start": [
+ 18,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 33
+ ],
+ "start": [
+ 18,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 18,
+ 33
+ ],
+ "name": "on_input_unselect",
+ "rawdesc": "fun(self: druid.input, text: string, input: druid.input) The event triggered when the input field is unselected",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input) The event triggered when the input field is wrong",
+ "extends": {
+ "finish": [
+ 22,
+ 30
+ ],
+ "start": [
+ 22,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 22,
+ 30
+ ],
+ "start": [
+ 22,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "on_input_wrong",
+ "rawdesc": "fun(self: druid.input) The event triggered when the input field is wrong",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "fun(self: druid.input, cursor_index: number, start_index: number, end_index: number) The event triggered when the cursor index is changed",
+ "extends": {
+ "finish": [
+ 23,
+ 39
+ ],
+ "start": [
+ 23,
+ 34
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 39
+ ],
+ "start": [
+ 23,
+ 34
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 23,
+ 39
+ ],
+ "name": "on_select_cursor_change",
+ "rawdesc": "fun(self: druid.input, cursor_index: number, start_index: number, end_index: number) The event triggered when the cursor index is changed",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 117,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 117,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "finish": [
+ 117,
+ 32
+ ],
+ "name": "style",
+ "start": [
+ 117,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.input.style"
+ }
+ ],
+ "finish": [
+ 127,
+ 3
+ ],
+ "start": [
+ 117,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:on_style_change(style: druid.input.style)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 117,
+ 26
+ ],
+ "name": "on_style_change",
+ "start": [
+ 117,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 75,
+ 43
+ ],
+ "start": [
+ 75,
+ 23
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 75,
+ 20
+ ],
+ "name": "previous_value",
+ "start": [
+ 75,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 323,
+ 34
+ ],
+ "start": [
+ 323,
+ 24
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 323,
+ 21
+ ],
+ "name": "previous_value",
+ "start": [
+ 323,
+ 2
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset current input selection and return previous value\n\n@*return* `self` — Current input instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 392,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 392,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "desc": "Reset current input selection and return previous value\n\n@*return* `self` — Current input instance",
+ "finish": [
+ 396,
+ 3
+ ],
+ "rawdesc": "Reset current input selection and return previous value",
+ "returns": [
+ {
+ "desc": "Current input instance",
+ "name": "self",
+ "rawdesc": "Current input instance",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 392,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:reset_changes()\n -> self: druid.input"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 392,
+ 24
+ ],
+ "name": "reset_changes",
+ "rawdesc": "Reset current input selection and return previous value",
+ "start": [
+ 392,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Select input field. It will show the keyboard and trigger on_select events",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 317,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 317,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "desc": "Select input field. It will show the keyboard and trigger on_select events",
+ "finish": [
+ 337,
+ 3
+ ],
+ "rawdesc": "Select input field. It will show the keyboard and trigger on_select events",
+ "start": [
+ 317,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:select()"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 317,
+ 17
+ ],
+ "name": "select",
+ "rawdesc": "Select input field. It will show the keyboard and trigger on_select events",
+ "start": [
+ 317,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set cursor position in input field\n\n@*param* `cursor_index` — Cursor index for cursor position, if nil - will be set to the end of the text\n\n@*param* `start_index` — Start index for cursor position, if nil - will be set to the end of the text\n\n@*param* `end_index` — End index for cursor position, if nil - will be set to the start_index\n\n@*return* `self` — Current input instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 404,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 404,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "Cursor index for cursor position, if nil - will be set to the end of the text",
+ "finish": [
+ 404,
+ 37
+ ],
+ "name": "cursor_index",
+ "rawdesc": "Cursor index for cursor position, if nil - will be set to the end of the text",
+ "start": [
+ 404,
+ 25
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "Start index for cursor position, if nil - will be set to the end of the text",
+ "finish": [
+ 404,
+ 50
+ ],
+ "name": "start_index",
+ "rawdesc": "Start index for cursor position, if nil - will be set to the end of the text",
+ "start": [
+ 404,
+ 39
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "End index for cursor position, if nil - will be set to the start_index",
+ "finish": [
+ 404,
+ 61
+ ],
+ "name": "end_index",
+ "rawdesc": "End index for cursor position, if nil - will be set to the start_index",
+ "start": [
+ 404,
+ 52
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Set cursor position in input field\n\n@*param* `cursor_index` — Cursor index for cursor position, if nil - will be set to the end of the text\n\n@*param* `start_index` — Start index for cursor position, if nil - will be set to the end of the text\n\n@*param* `end_index` — End index for cursor position, if nil - will be set to the start_index\n\n@*return* `self` — Current input instance",
+ "finish": [
+ 418,
+ 3
+ ],
+ "rawdesc": "Set cursor position in input field",
+ "returns": [
+ {
+ "desc": "Current input instance",
+ "name": "self",
+ "rawdesc": "Current input instance",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 404,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:select_cursor(cursor_index: number|nil, start_index: number|nil, end_index: number|nil)\n -> self: druid.input"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 404,
+ 24
+ ],
+ "name": "select_cursor",
+ "rawdesc": "Set cursor position in input field",
+ "start": [
+ 404,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set allowed charaters for input field.\n See: https://defold.com/ref/stable/string/\n ex: [%a%d] for alpha and numeric\n\n@*param* `characters` — Regulax exp. for validate user input\n\n@*return* `self` — Current input instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 384,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 384,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "Regulax exp. for validate user input",
+ "finish": [
+ 384,
+ 44
+ ],
+ "name": "characters",
+ "rawdesc": "Regulax exp. for validate user input",
+ "start": [
+ 384,
+ 34
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "Set allowed charaters for input field.\n See: https://defold.com/ref/stable/string/\n ex: [%a%d] for alpha and numeric\n\n@*param* `characters` — Regulax exp. for validate user input\n\n@*return* `self` — Current input instance",
+ "finish": [
+ 387,
+ 3
+ ],
+ "rawdesc": "Set allowed charaters for input field.\n See: https://defold.com/ref/stable/string/\n ex: [%a%d] for alpha and numeric",
+ "returns": [
+ {
+ "desc": "Current input instance",
+ "name": "self",
+ "rawdesc": "Current input instance",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 384,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:set_allowed_characters(characters: string)\n -> self: druid.input"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 384,
+ 33
+ ],
+ "name": "set_allowed_characters",
+ "rawdesc": "Set allowed charaters for input field.\n See: https://defold.com/ref/stable/string/\n ex: [%a%d] for alpha and numeric",
+ "start": [
+ 384,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set maximum length for input field.\n Pass nil to make input field unliminted (by default)\n\n@*param* `max_length` — Maximum length for input text field\n\n@*return* `self` — Current input instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 373,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 373,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "Maximum length for input text field",
+ "finish": [
+ 373,
+ 36
+ ],
+ "name": "max_length",
+ "rawdesc": "Maximum length for input text field",
+ "start": [
+ 373,
+ 26
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Set maximum length for input field.\n Pass nil to make input field unliminted (by default)\n\n@*param* `max_length` — Maximum length for input text field\n\n@*return* `self` — Current input instance",
+ "finish": [
+ 376,
+ 3
+ ],
+ "rawdesc": "Set maximum length for input field.\n Pass nil to make input field unliminted (by default)",
+ "returns": [
+ {
+ "desc": "Current input instance",
+ "name": "self",
+ "rawdesc": "Current input instance",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 373,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:set_max_length(max_length: number)\n -> self: druid.input"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 373,
+ 25
+ ],
+ "name": "set_max_length",
+ "rawdesc": "Set maximum length for input field.\n Pass nil to make input field unliminted (by default)",
+ "start": [
+ 373,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set text for input field\n\n@*param* `input_text` — The string to apply for input field",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 270,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 270,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ },
+ {
+ "desc": "The string to apply for input field",
+ "finish": [
+ 270,
+ 30
+ ],
+ "name": "input_text",
+ "rawdesc": "The string to apply for input field",
+ "start": [
+ 270,
+ 20
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "Set text for input field\n\n@*param* `input_text` — The string to apply for input field",
+ "finish": [
+ 313,
+ 3
+ ],
+ "rawdesc": "Set text for input field",
+ "start": [
+ 270,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:set_text(input_text: string)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 270,
+ 19
+ ],
+ "name": "set_text",
+ "rawdesc": "Set text for input field",
+ "start": [
+ 270,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 84,
+ 37
+ ],
+ "start": [
+ 84,
+ 20
+ ],
+ "type": "getfield",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 84,
+ 17
+ ],
+ "name": "start_index",
+ "start": [
+ 84,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 408,
+ 52
+ ],
+ "start": [
+ 408,
+ 20
+ ],
+ "type": "binary",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 408,
+ 17
+ ],
+ "name": "start_index",
+ "start": [
+ 408,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 412,
+ 58
+ ],
+ "start": [
+ 412,
+ 20
+ ],
+ "type": "select",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 412,
+ 17
+ ],
+ "name": "start_index",
+ "start": [
+ 412,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The style of the input component",
+ "extends": {
+ "finish": [
+ 24,
+ 33
+ ],
+ "start": [
+ 24,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 33
+ ],
+ "start": [
+ 24,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.input.style"
+ }
+ ],
+ "view": "druid.input.style"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 24,
+ 33
+ ],
+ "name": "style",
+ "rawdesc": "The style of the input component",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.input.style",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The text component",
+ "extends": {
+ "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "finish": [
+ 25,
+ 25
+ ],
+ "rawdesc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "start": [
+ 25,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "finish": [
+ 25,
+ 25
+ ],
+ "rawdesc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "start": [
+ 25,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "druid.text"
+ }
+ ],
+ "view": "druid.text"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 25,
+ 25
+ ],
+ "name": "text",
+ "rawdesc": "The text component",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.text",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 80,
+ 20
+ ],
+ "start": [
+ 80,
+ 19
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 80,
+ 16
+ ],
+ "name": "text_width",
+ "start": [
+ 80,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": " measure it",
+ "extends": {
+ "finish": [
+ 301,
+ 50
+ ],
+ "start": [
+ 301,
+ 20
+ ],
+ "type": "select",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 301,
+ 17
+ ],
+ "name": "text_width",
+ "rawdesc": " measure it",
+ "start": [
+ 301,
+ 2
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 82,
+ 21
+ ],
+ "start": [
+ 82,
+ 20
+ ],
+ "type": "integer",
+ "view": "integer"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 82,
+ 17
+ ],
+ "name": "total_width",
+ "start": [
+ 82,
+ 1
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 303,
+ 61
+ ],
+ "start": [
+ 303,
+ 21
+ ],
+ "type": "binary",
+ "view": "number"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 303,
+ 18
+ ],
+ "name": "total_width",
+ "start": [
+ 303,
+ 2
+ ],
+ "type": "setfield",
+ "view": "number",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove selection from input. It will hide the keyboard and trigger on_unselect events",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 341,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 341,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.input"
+ }
+ ],
+ "desc": "Remove selection from input. It will hide the keyboard and trigger on_unselect events",
+ "finish": [
+ 355,
+ 3
+ ],
+ "rawdesc": "Remove selection from input. It will hide the keyboard and trigger on_unselect events",
+ "start": [
+ 341,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.input:unselect()"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 341,
+ 19
+ ],
+ "name": "unselect",
+ "rawdesc": "Remove selection from input. It will hide the keyboard and trigger on_unselect events",
+ "start": [
+ 341,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 74,
+ 34
+ ],
+ "start": [
+ 74,
+ 14
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 74,
+ 11
+ ],
+ "name": "value",
+ "start": [
+ 74,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "desc": "The string to apply for input field",
+ "finish": [
+ 275,
+ 25
+ ],
+ "rawdesc": "The string to apply for input field",
+ "start": [
+ 275,
+ 15
+ ],
+ "type": "getlocal",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 275,
+ 12
+ ],
+ "name": "value",
+ "start": [
+ 275,
+ 2
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 344,
+ 32
+ ],
+ "start": [
+ 344,
+ 14
+ ],
+ "type": "getfield",
+ "view": "unknown"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 344,
+ 11
+ ],
+ "name": "value",
+ "start": [
+ 344,
+ 1
+ ],
+ "type": "setfield",
+ "view": "unknown",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.input",
+ "type": "type",
+ "view": "druid.input"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 7,
+ 27
+ ],
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.input.style",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Is long tap will erase current input data",
+ "extends": {
+ "finish": [
+ 9,
+ 34
+ ],
+ "start": [
+ 9,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 34
+ ],
+ "start": [
+ 9,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 9,
+ 34
+ ],
+ "name": "IS_LONGTAP_ERASE",
+ "rawdesc": "Is long tap will erase current input data",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "If true, call unselect on select selected input",
+ "extends": {
+ "finish": [
+ 10,
+ 41
+ ],
+ "start": [
+ 10,
+ 34
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 41
+ ],
+ "start": [
+ 10,
+ 34
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 10,
+ 41
+ ],
+ "name": "IS_UNSELECT_ON_RESELECT",
+ "rawdesc": "If true, call unselect on select selected input",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Default character mask for password input",
+ "extends": {
+ "finish": [
+ 8,
+ 34
+ ],
+ "start": [
+ 8,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 8,
+ 34
+ ],
+ "start": [
+ 8,
+ 28
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 8,
+ 34
+ ],
+ "name": "MASK_DEFAULT_CHAR",
+ "rawdesc": "Default character mask for password input",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Callback on wrong user input",
+ "extends": {
+ "finish": [
+ 13,
+ 66
+ ],
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 13,
+ 46
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 13,
+ 33
+ ],
+ "start": [
+ 13,
+ 29
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 13,
+ 29
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.input"
+ },
+ {
+ "finish": [
+ 13,
+ 65
+ ],
+ "name": {
+ "[1]": "button_node",
+ "finish": [
+ 13,
+ 59
+ ],
+ "start": [
+ 13,
+ 48
+ ],
+ "type": "doc.type.arg.name",
+ "view": "button_node"
+ },
+ "start": [
+ 13,
+ 48
+ ],
+ "type": "doc.type.arg",
+ "view": "node"
+ }
+ ],
+ "finish": [
+ 13,
+ 66
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.input, button_node: node)"
+ }
+ ],
+ "view": "fun(self: druid.input, button_node: node)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 13,
+ 66
+ ],
+ "name": "on_input_wrong",
+ "rawdesc": "Callback on wrong user input",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.input, button_node: node)",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Callback on input field selecting",
+ "extends": {
+ "finish": [
+ 11,
+ 61
+ ],
+ "start": [
+ 11,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 11,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 11,
+ 28
+ ],
+ "start": [
+ 11,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 11,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.input"
+ },
+ {
+ "finish": [
+ 11,
+ 60
+ ],
+ "name": {
+ "[1]": "button_node",
+ "finish": [
+ 11,
+ 54
+ ],
+ "start": [
+ 11,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "button_node"
+ },
+ "start": [
+ 11,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "node"
+ }
+ ],
+ "finish": [
+ 11,
+ 61
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 11,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.input, button_node: node)"
+ }
+ ],
+ "view": "fun(self: druid.input, button_node: node)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 11,
+ 61
+ ],
+ "name": "on_select",
+ "rawdesc": "Callback on input field selecting",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.input, button_node: node)",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Callback on input field unselecting",
+ "extends": {
+ "finish": [
+ 12,
+ 63
+ ],
+ "start": [
+ 12,
+ 22
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "desc": "The component used for managing input fields in basic way",
+ "finish": [
+ 12,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 12,
+ 30
+ ],
+ "start": [
+ 12,
+ 26
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "rawdesc": "The component used for managing input fields in basic way",
+ "start": [
+ 12,
+ 26
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.input"
+ },
+ {
+ "finish": [
+ 12,
+ 62
+ ],
+ "name": {
+ "[1]": "button_node",
+ "finish": [
+ 12,
+ 56
+ ],
+ "start": [
+ 12,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "button_node"
+ },
+ "start": [
+ 12,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "node"
+ }
+ ],
+ "finish": [
+ 12,
+ 63
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 12,
+ 22
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.input, button_node: node)"
+ }
+ ],
+ "view": "fun(self: druid.input, button_node: node)"
+ },
+ "file": "/druid/extended/input.lua",
+ "finish": [
+ 12,
+ 63
+ ],
+ "name": "on_unselect",
+ "rawdesc": "Callback on input field unselecting",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.input, button_node: node)",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.input.style",
+ "type": "type",
+ "view": "druid.input.style"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 9,
+ 24
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.instance",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Check whitelists and blacklists for input components",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 152,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 152,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 152,
+ 45
+ ],
+ "name": "component",
+ "start": [
+ 152,
+ 36
+ ],
+ "type": "local",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Check whitelists and blacklists for input components",
+ "finish": [
+ 165,
+ 3
+ ],
+ "rawdesc": "Check whitelists and blacklists for input components",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 152,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:_can_use_input_component(component: druid.component)\n -> boolean"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 152,
+ 35
+ ],
+ "name": "_can_use_input_component",
+ "rawdesc": "Check whitelists and blacklists for input components",
+ "start": [
+ 152,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove all components on late remove step DruidInstance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 477,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 477,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Remove all components on late remove step DruidInstance",
+ "finish": [
+ 486,
+ 3
+ ],
+ "rawdesc": "Remove all components on late remove step DruidInstance",
+ "start": [
+ 477,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:_clear_late_remove()"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 477,
+ 29
+ ],
+ "name": "_clear_late_remove",
+ "rawdesc": "Remove all components on late remove step DruidInstance",
+ "start": [
+ 477,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid context, usually a self of gui script",
+ "extends": {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 12,
+ 32
+ ],
+ "start": [
+ 12,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 12,
+ 32
+ ],
+ "name": "_context",
+ "rawdesc": "Druid context, usually a self of gui script",
+ "start": [
+ 12,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 16,
+ 56
+ ],
+ "start": [
+ 16,
+ 35
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 16,
+ 52
+ ],
+ "start": [
+ 16,
+ 35
+ ],
+ "type": "doc.type.array",
+ "view": "druid.component[]"
+ },
+ {
+ "finish": [
+ 16,
+ 56
+ ],
+ "start": [
+ 16,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "druid.component[]|nil"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 16,
+ 56
+ ],
+ "name": "_input_blacklist",
+ "start": [
+ 16,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component[]|nil",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 20,
+ 53
+ ],
+ "start": [
+ 20,
+ 36
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 20,
+ 53
+ ],
+ "start": [
+ 20,
+ 36
+ ],
+ "type": "doc.type.array",
+ "view": "druid.component[]"
+ }
+ ],
+ "view": "druid.component[]"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 20,
+ 53
+ ],
+ "name": "_input_components",
+ "start": [
+ 20,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component[]",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 17,
+ 56
+ ],
+ "start": [
+ 17,
+ 35
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 17,
+ 52
+ ],
+ "start": [
+ 17,
+ 35
+ ],
+ "type": "doc.type.array",
+ "view": "druid.component[]"
+ },
+ {
+ "finish": [
+ 17,
+ 56
+ ],
+ "start": [
+ 17,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "druid.component[]|nil"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 17,
+ 56
+ ],
+ "name": "_input_whitelist",
+ "start": [
+ 17,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component[]|nil",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 14,
+ 49
+ ],
+ "start": [
+ 14,
+ 42
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 14,
+ 49
+ ],
+ "start": [
+ 14,
+ 42
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 14,
+ 49
+ ],
+ "name": "_is_late_remove_enabled",
+ "start": [
+ 14,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 19,
+ 44
+ ],
+ "start": [
+ 19,
+ 38
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 19,
+ 44
+ ],
+ "start": [
+ 19,
+ 38
+ ],
+ "type": "doc.type.name",
+ "view": "number"
+ }
+ ],
+ "view": "number"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 19,
+ 44
+ ],
+ "name": "_late_init_timer_id",
+ "start": [
+ 19,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "number",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 15,
+ 48
+ ],
+ "start": [
+ 15,
+ 31
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 15,
+ 48
+ ],
+ "start": [
+ 15,
+ 31
+ ],
+ "type": "doc.type.array",
+ "view": "druid.component[]"
+ }
+ ],
+ "view": "druid.component[]"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 15,
+ 48
+ ],
+ "name": "_late_remove",
+ "start": [
+ 15,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component[]",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid style table",
+ "extends": {
+ "finish": [
+ 13,
+ 30
+ ],
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 13,
+ 30
+ ],
+ "start": [
+ 13,
+ 25
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 13,
+ 30
+ ],
+ "name": "_style",
+ "rawdesc": "Druid style table",
+ "start": [
+ 13,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "All created components",
+ "extends": {
+ "finish": [
+ 10,
+ 42
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 42
+ ],
+ "start": [
+ 10,
+ 25
+ ],
+ "type": "doc.type.array",
+ "view": "druid.component[]"
+ }
+ ],
+ "view": "druid.component[]"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 10,
+ 42
+ ],
+ "name": "components_all",
+ "rawdesc": "All created components",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component[]",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "All components sorted by interest",
+ "extends": {
+ "finish": [
+ 11,
+ 62
+ ],
+ "start": [
+ 11,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 11,
+ 62
+ ],
+ "start": [
+ 11,
+ 30
+ ],
+ "type": "doc.type.sign",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 11,
+ 62
+ ],
+ "name": "components_interest",
+ "rawdesc": "All components sorted by interest",
+ "start": [
+ 11,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid class constructor which used to create a Druid's components\n\n@*param* `context` — Druid context. Usually it is self of gui script\n\n@*param* `style` — Druid style table",
+ "extends": {
+ "args": [
+ {
+ "desc": "Druid context. Usually it is self of gui script",
+ "finish": [
+ 184,
+ 40
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of gui script",
+ "start": [
+ 184,
+ 33
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style table",
+ "finish": [
+ 184,
+ 47
+ ],
+ "name": "style",
+ "rawdesc": "Druid style table",
+ "start": [
+ 184,
+ 42
+ ],
+ "type": "local",
+ "view": "table?"
+ }
+ ],
+ "desc": "Druid class constructor which used to create a Druid's components\n\n@*param* `context` — Druid context. Usually it is self of gui script\n\n@*param* `style` — Druid style table",
+ "finish": [
+ 205,
+ 3
+ ],
+ "rawdesc": "Druid class constructor which used to create a Druid's components",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 184,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.instance.create_druid_instance(context: table, style?: table)\n -> druid.instance"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 184,
+ 32
+ ],
+ "name": "create_druid_instance",
+ "rawdesc": "Druid class constructor which used to create a Druid's components",
+ "start": [
+ 184,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Call this in gui_script final function.",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 229,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 229,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Call this in gui_script final function.",
+ "finish": [
+ 242,
+ 3
+ ],
+ "rawdesc": "Call this in gui_script final function.",
+ "start": [
+ 229,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:final()"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 229,
+ 16
+ ],
+ "name": "final",
+ "rawdesc": "Call this in gui_script final function.",
+ "start": [
+ 229,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get a context of Druid instance (usually a self of gui script)\n\n@*return* `context` — The Druid context",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 300,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 300,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Get a context of Druid instance (usually a self of gui script)\n\n@*return* `context` — The Druid context",
+ "finish": [
+ 302,
+ 3
+ ],
+ "rawdesc": "Get a context of Druid instance (usually a self of gui script)",
+ "returns": [
+ {
+ "desc": "The Druid context",
+ "name": "context",
+ "rawdesc": "The Druid context",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 300,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:get_context()\n -> context: any"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 300,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Get a context of Druid instance (usually a self of gui script)",
+ "start": [
+ 300,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "package"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get a style of Druid instance\n\n@*return* `style` — The Druid style table",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 308,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 308,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Get a style of Druid instance\n\n@*return* `style` — The Druid style table",
+ "finish": [
+ 310,
+ 3
+ ],
+ "rawdesc": "Get a style of Druid instance",
+ "returns": [
+ {
+ "desc": "The Druid style table",
+ "name": "style",
+ "rawdesc": "The Druid style table",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 308,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:get_style()\n -> style: table"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 308,
+ 20
+ ],
+ "name": "get_style",
+ "rawdesc": "Get a style of Druid instance",
+ "start": [
+ 308,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "package"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 18,
+ 38
+ ],
+ "start": [
+ 18,
+ 31
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 18,
+ 38
+ ],
+ "start": [
+ 18,
+ 31
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 18,
+ 38
+ ],
+ "name": "input_inited",
+ "start": [
+ 18,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid late update function called after initialization and before the regular update step.\nThis function is used to check the GUI state and perform actions after all components and nodes have been created.\nAn example use case is performing an auto stencil check in the GUI hierarchy for input components.",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 317,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 317,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Druid late update function called after initialization and before the regular update step.\nThis function is used to check the GUI state and perform actions after all components and nodes have been created.\nAn example use case is performing an auto stencil check in the GUI hierarchy for input components.",
+ "finish": [
+ 328,
+ 3
+ ],
+ "rawdesc": "Druid late update function called after initialization and before the regular update step.\nThis function is used to check the GUI state and perform actions after all components and nodes have been created.\nAn example use case is performing an auto stencil check in the GUI hierarchy for input components.",
+ "start": [
+ 317,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:late_init()"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 317,
+ 20
+ ],
+ "name": "late_init",
+ "rawdesc": "Druid late update function called after initialization and before the regular update step.\nThis function is used to check the GUI state and perform actions after all components and nodes have been created.\nAn example use case is performing an auto stencil check in the GUI hierarchy for input components.",
+ "start": [
+ 317,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create new Druid component instance\n\n@*param* `component` — The component class to create\n\n@*return* `instance` — The new ready to use component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The component class to create",
+ "finish": [
+ 213,
+ 24
+ ],
+ "name": "component",
+ "rawdesc": "The component class to create",
+ "start": [
+ 213,
+ 15
+ ],
+ "type": "local",
+ "view": ""
+ },
+ {
+ "finish": [
+ 213,
+ 29
+ ],
+ "start": [
+ 213,
+ 26
+ ],
+ "type": "...",
+ "view": "any"
+ }
+ ],
+ "desc": "Create new Druid component instance\n\n@*param* `component` — The component class to create\n\n@*return* `instance` — The new ready to use component",
+ "finish": [
+ 225,
+ 3
+ ],
+ "rawdesc": "Create new Druid component instance",
+ "returns": [
+ {
+ "desc": "The new ready to use component",
+ "name": "instance",
+ "rawdesc": "The new ready to use component",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new(component: , ...any)\n -> instance: "
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 213,
+ 14
+ ],
+ "name": "new",
+ "rawdesc": "Create new Druid component instance",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create BackHandler component\n\n@*param* `callback` — The callback(self, custom_args) to call on back event\n\n@*param* `params` — Callback argument\n\n@*return* `back_handler` — The new back handler component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 542,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 542,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The callback(self, custom_args) to call on back event",
+ "finish": [
+ 542,
+ 36
+ ],
+ "name": "callback",
+ "rawdesc": "The callback(self, custom_args) to call on back event",
+ "start": [
+ 542,
+ 28
+ ],
+ "type": "local",
+ "view": "function|nil"
+ },
+ {
+ "desc": "Callback argument",
+ "finish": [
+ 542,
+ 44
+ ],
+ "name": "params",
+ "rawdesc": "Callback argument",
+ "start": [
+ 542,
+ 38
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "Create BackHandler component\n\n@*param* `callback` — The callback(self, custom_args) to call on back event\n\n@*param* `params` — Callback argument\n\n@*return* `back_handler` — The new back handler component",
+ "finish": [
+ 544,
+ 3
+ ],
+ "rawdesc": "Create BackHandler component",
+ "returns": [
+ {
+ "desc": "The new back handler component",
+ "name": "back_handler",
+ "rawdesc": "The new back handler component",
+ "type": "function.return",
+ "view": "druid.back_handler"
+ }
+ ],
+ "start": [
+ 542,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_back_handler(callback: function|nil, params: any)\n -> back_handler: druid.back_handler"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 542,
+ 27
+ ],
+ "name": "new_back_handler",
+ "rawdesc": "Create BackHandler component",
+ "start": [
+ 542,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Blocker component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*return* `blocker` — The new blocker component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 532,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 532,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 532,
+ 27
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 532,
+ 23
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Create Blocker component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*return* `blocker` — The new blocker component",
+ "finish": [
+ 534,
+ 3
+ ],
+ "rawdesc": "Create Blocker component",
+ "returns": [
+ {
+ "desc": "The new blocker component",
+ "name": "blocker",
+ "rawdesc": "The new blocker component",
+ "type": "function.return",
+ "view": "druid.blocker"
+ }
+ ],
+ "start": [
+ 532,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_blocker(node: string|node)\n -> blocker: druid.blocker"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 532,
+ 22
+ ],
+ "name": "new_blocker",
+ "rawdesc": "Create Blocker component",
+ "start": [
+ 532,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Button component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `callback` — Button callback\n\n@*param* `params` — Button callback params\n\n@*param* `anim_node` — Button anim node (node, if not provided)\n\n@*return* `button` — The new button component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 523,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 523,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 523,
+ 26
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 523,
+ 22
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Button callback",
+ "finish": [
+ 523,
+ 36
+ ],
+ "name": "callback",
+ "rawdesc": "Button callback",
+ "start": [
+ 523,
+ 28
+ ],
+ "type": "local",
+ "view": "function|event|nil"
+ },
+ {
+ "desc": "Button callback params",
+ "finish": [
+ 523,
+ 44
+ ],
+ "name": "params",
+ "rawdesc": "Button callback params",
+ "start": [
+ 523,
+ 38
+ ],
+ "type": "local",
+ "view": "any"
+ },
+ {
+ "desc": "Button anim node (node, if not provided)",
+ "finish": [
+ 523,
+ 55
+ ],
+ "name": "anim_node",
+ "rawdesc": "Button anim node (node, if not provided)",
+ "start": [
+ 523,
+ 46
+ ],
+ "type": "local",
+ "view": "string|node|nil"
+ }
+ ],
+ "desc": "Create Button component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `callback` — Button callback\n\n@*param* `params` — Button callback params\n\n@*param* `anim_node` — Button anim node (node, if not provided)\n\n@*return* `button` — The new button component",
+ "finish": [
+ 525,
+ 3
+ ],
+ "rawdesc": "Create Button component",
+ "returns": [
+ {
+ "desc": "The new button component",
+ "name": "button",
+ "rawdesc": "The new button component",
+ "type": "function.return",
+ "view": "druid.button"
+ }
+ ],
+ "start": [
+ 523,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_button(node: string|node, callback: function|event|nil, params: any, anim_node: string|node|nil)\n -> button: druid.button"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 523,
+ 21
+ ],
+ "name": "new_button",
+ "rawdesc": "Create Button component",
+ "start": [
+ 523,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Container component\n\n@*param* `node` — The_node id or gui.get_node(node_id).\n\n@*param* `mode` — Layout mode\n\n@*param* `callback` — Callback on size changed\n\n@*return* `container` — The new container component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 693,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 693,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The_node id or gui.get_node(node_id).",
+ "finish": [
+ 693,
+ 29
+ ],
+ "name": "node",
+ "rawdesc": "The_node id or gui.get_node(node_id).",
+ "start": [
+ 693,
+ 25
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Layout mode",
+ "finish": [
+ 693,
+ 35
+ ],
+ "name": "mode",
+ "rawdesc": "Layout mode",
+ "start": [
+ 693,
+ 31
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "Callback on size changed",
+ "finish": [
+ 693,
+ 45
+ ],
+ "name": "callback",
+ "rawdesc": "Callback on size changed",
+ "start": [
+ 693,
+ 37
+ ],
+ "type": "local",
+ "view": "fun(self: druid.container, size: vector3)|nil"
+ }
+ ],
+ "desc": "Create Container component\n\n@*param* `node` — The_node id or gui.get_node(node_id).\n\n@*param* `mode` — Layout mode\n\n@*param* `callback` — Callback on size changed\n\n@*return* `container` — The new container component",
+ "finish": [
+ 695,
+ 3
+ ],
+ "rawdesc": "Create Container component",
+ "returns": [
+ {
+ "desc": "The new container component",
+ "name": "container",
+ "rawdesc": "The new container component",
+ "type": "function.return",
+ "view": "druid.container"
+ }
+ ],
+ "start": [
+ 693,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_container(node: string|node, mode: string|nil, callback: fun(self: druid.container, size: vector3)|nil)\n -> container: druid.container"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 693,
+ 24
+ ],
+ "name": "new_container",
+ "rawdesc": "Create Container component",
+ "start": [
+ 693,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create DataList component\n\n@*param* `druid_scroll` — The Scroll instance for Data List component\n\n@*param* `druid_grid` — The Grid instance for Data List component\n\n@*param* `create_function` — The create function callback(self, data, index, data_list). Function should return (node, [component])\n\n@*return* `data_list` — The new data list component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 649,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 649,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The Scroll instance for Data List component",
+ "finish": [
+ 649,
+ 37
+ ],
+ "name": "druid_scroll",
+ "rawdesc": "The Scroll instance for Data List component",
+ "start": [
+ 649,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.scroll"
+ },
+ {
+ "desc": "The Grid instance for Data List component",
+ "finish": [
+ 649,
+ 49
+ ],
+ "name": "druid_grid",
+ "rawdesc": "The Grid instance for Data List component",
+ "start": [
+ 649,
+ 39
+ ],
+ "type": "local",
+ "view": "druid.grid"
+ },
+ {
+ "desc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "finish": [
+ 649,
+ 66
+ ],
+ "name": "create_function",
+ "rawdesc": "The create function callback(self, data, index, data_list). Function should return (node, [component])",
+ "start": [
+ 649,
+ 51
+ ],
+ "type": "local",
+ "view": "function"
+ }
+ ],
+ "desc": "Create DataList component\n\n@*param* `druid_scroll` — The Scroll instance for Data List component\n\n@*param* `druid_grid` — The Grid instance for Data List component\n\n@*param* `create_function` — The create function callback(self, data, index, data_list). Function should return (node, [component])\n\n@*return* `data_list` — The new data list component",
+ "finish": [
+ 651,
+ 3
+ ],
+ "rawdesc": "Create DataList component",
+ "returns": [
+ {
+ "desc": "The new data list component",
+ "name": "data_list",
+ "rawdesc": "The new data list component",
+ "type": "function.return",
+ "view": "druid.data_list"
+ }
+ ],
+ "start": [
+ 649,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_data_list(druid_scroll: druid.scroll, druid_grid: druid.grid, create_function: function)\n -> data_list: druid.data_list"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 649,
+ 24
+ ],
+ "name": "new_data_list",
+ "rawdesc": "Create DataList component",
+ "start": [
+ 649,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Drag component\n\n@*param* `node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `on_drag_callback` — Callback for on_drag_event(self, dx, dy)\n\n@*return* `drag` — The new drag component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 595,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 595,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "finish": [
+ 595,
+ 24
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "start": [
+ 595,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Callback for on_drag_event(self, dx, dy)",
+ "finish": [
+ 595,
+ 42
+ ],
+ "name": "on_drag_callback",
+ "rawdesc": "Callback for on_drag_event(self, dx, dy)",
+ "start": [
+ 595,
+ 26
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Create Drag component\n\n@*param* `node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `on_drag_callback` — Callback for on_drag_event(self, dx, dy)\n\n@*return* `drag` — The new drag component",
+ "finish": [
+ 597,
+ 3
+ ],
+ "rawdesc": "Create Drag component",
+ "returns": [
+ {
+ "desc": "The new drag component",
+ "name": "drag",
+ "rawdesc": "The new drag component",
+ "type": "function.return",
+ "view": "druid.drag"
+ }
+ ],
+ "start": [
+ 595,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_drag(node: string|node, on_drag_callback: function|nil)\n -> drag: druid.drag"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 595,
+ 19
+ ],
+ "name": "new_drag",
+ "rawdesc": "Create Drag component",
+ "start": [
+ 595,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Grid component\n\n@*param* `parent_node` — The node_id or gui.get_node(node_id). Parent of all Grid items.\n\n@*param* `item` — Item prefab. Required to get grid's item size. Can be adjusted separately.\n\n@*param* `in_row` — How many nodes in row can be placed\n\n@*return* `grid` — The new grid component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 575,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 575,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id). Parent of all Grid items.",
+ "finish": [
+ 575,
+ 31
+ ],
+ "name": "parent_node",
+ "rawdesc": "The node_id or gui.get_node(node_id). Parent of all Grid items.",
+ "start": [
+ 575,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Item prefab. Required to get grid's item size. Can be adjusted separately.",
+ "finish": [
+ 575,
+ 37
+ ],
+ "name": "item",
+ "rawdesc": "Item prefab. Required to get grid's item size. Can be adjusted separately.",
+ "start": [
+ 575,
+ 33
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "How many nodes in row can be placed",
+ "finish": [
+ 575,
+ 45
+ ],
+ "name": "in_row",
+ "rawdesc": "How many nodes in row can be placed",
+ "start": [
+ 575,
+ 39
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Create Grid component\n\n@*param* `parent_node` — The node_id or gui.get_node(node_id). Parent of all Grid items.\n\n@*param* `item` — Item prefab. Required to get grid's item size. Can be adjusted separately.\n\n@*param* `in_row` — How many nodes in row can be placed\n\n@*return* `grid` — The new grid component",
+ "finish": [
+ 577,
+ 3
+ ],
+ "rawdesc": "Create Grid component",
+ "returns": [
+ {
+ "desc": "The new grid component",
+ "name": "grid",
+ "rawdesc": "The new grid component",
+ "type": "function.return",
+ "view": "druid.grid"
+ }
+ ],
+ "start": [
+ 575,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_grid(parent_node: string|node, item: string|node, in_row: number|nil)\n -> grid: druid.grid"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 575,
+ 19
+ ],
+ "name": "new_grid",
+ "rawdesc": "Create Grid component",
+ "start": [
+ 575,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Hotkey component\n\n@*param* `keys_array` — Keys for trigger action. Should contains one action key and any amount of modificator keys\n\n@*param* `callback` — The callback function\n\n@*param* `callback_argument` — The argument to pass into the callback function\n\n@*return* `hotkey` — The new hotkey component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 704,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 704,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Keys for trigger action. Should contains one action key and any amount of modificator keys",
+ "finish": [
+ 704,
+ 32
+ ],
+ "name": "keys_array",
+ "rawdesc": "Keys for trigger action. Should contains one action key and any amount of modificator keys",
+ "start": [
+ 704,
+ 22
+ ],
+ "type": "local",
+ "view": "string|string[]"
+ },
+ {
+ "desc": "The callback function",
+ "finish": [
+ 704,
+ 42
+ ],
+ "name": "callback",
+ "rawdesc": "The callback function",
+ "start": [
+ 704,
+ 34
+ ],
+ "type": "local",
+ "view": "function|event|nil"
+ },
+ {
+ "desc": "The argument to pass into the callback function",
+ "finish": [
+ 704,
+ 61
+ ],
+ "name": "callback_argument",
+ "rawdesc": "The argument to pass into the callback function",
+ "start": [
+ 704,
+ 44
+ ],
+ "type": "local",
+ "view": "any"
+ }
+ ],
+ "desc": "Create Hotkey component\n\n@*param* `keys_array` — Keys for trigger action. Should contains one action key and any amount of modificator keys\n\n@*param* `callback` — The callback function\n\n@*param* `callback_argument` — The argument to pass into the callback function\n\n@*return* `hotkey` — The new hotkey component",
+ "finish": [
+ 706,
+ 3
+ ],
+ "rawdesc": "Create Hotkey component",
+ "returns": [
+ {
+ "desc": "The new hotkey component",
+ "name": "hotkey",
+ "rawdesc": "The new hotkey component",
+ "type": "function.return",
+ "view": "druid.hotkey"
+ }
+ ],
+ "start": [
+ 704,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_hotkey(keys_array: string|string[], callback: function|event|nil, callback_argument: any)\n -> hotkey: druid.hotkey"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 704,
+ 21
+ ],
+ "name": "new_hotkey",
+ "rawdesc": "Create Hotkey component",
+ "start": [
+ 704,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Hover component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `on_hover_callback` — Hover callback\n\n@*param* `on_mouse_hover_callback` — Mouse hover callback\n\n@*return* `hover` — The new hover component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 553,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 553,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 553,
+ 25
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 553,
+ 21
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Hover callback",
+ "finish": [
+ 553,
+ 44
+ ],
+ "name": "on_hover_callback",
+ "rawdesc": "Hover callback",
+ "start": [
+ 553,
+ 27
+ ],
+ "type": "local",
+ "view": "function|nil"
+ },
+ {
+ "desc": "Mouse hover callback",
+ "finish": [
+ 553,
+ 69
+ ],
+ "name": "on_mouse_hover_callback",
+ "rawdesc": "Mouse hover callback",
+ "start": [
+ 553,
+ 46
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Create Hover component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `on_hover_callback` — Hover callback\n\n@*param* `on_mouse_hover_callback` — Mouse hover callback\n\n@*return* `hover` — The new hover component",
+ "finish": [
+ 555,
+ 3
+ ],
+ "rawdesc": "Create Hover component",
+ "returns": [
+ {
+ "desc": "The new hover component",
+ "name": "hover",
+ "rawdesc": "The new hover component",
+ "type": "function.return",
+ "view": "druid.hover"
+ }
+ ],
+ "start": [
+ 553,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_hover(node: string|node, on_hover_callback: function|nil, on_mouse_hover_callback: function|nil)\n -> hover: druid.hover"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 553,
+ 20
+ ],
+ "name": "new_hover",
+ "rawdesc": "Create Hover component",
+ "start": [
+ 553,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Input component\n\n@*param* `click_node` — Button node to enabled input component\n\n@*param* `text_node` — Text node what will be changed on user input\n\n@*param* `keyboard_type` — Gui keyboard type for input field\n\n@*return* `input` — The new input component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 638,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 638,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Button node to enabled input component",
+ "finish": [
+ 638,
+ 31
+ ],
+ "name": "click_node",
+ "rawdesc": "Button node to enabled input component",
+ "start": [
+ 638,
+ 21
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Text node what will be changed on user input",
+ "finish": [
+ 638,
+ 42
+ ],
+ "name": "text_node",
+ "rawdesc": "Text node what will be changed on user input",
+ "start": [
+ 638,
+ 33
+ ],
+ "type": "local",
+ "view": "string|druid.text|node"
+ },
+ {
+ "desc": "Gui keyboard type for input field",
+ "finish": [
+ 638,
+ 57
+ ],
+ "name": "keyboard_type",
+ "rawdesc": "Gui keyboard type for input field",
+ "start": [
+ 638,
+ 44
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Create Input component\n\n@*param* `click_node` — Button node to enabled input component\n\n@*param* `text_node` — Text node what will be changed on user input\n\n@*param* `keyboard_type` — Gui keyboard type for input field\n\n@*return* `input` — The new input component",
+ "finish": [
+ 640,
+ 3
+ ],
+ "rawdesc": "Create Input component",
+ "returns": [
+ {
+ "desc": "The new input component",
+ "name": "input",
+ "rawdesc": "The new input component",
+ "type": "function.return",
+ "view": "druid.input"
+ }
+ ],
+ "start": [
+ 638,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_input(click_node: string|node, text_node: string|druid.text|node, keyboard_type: number|nil)\n -> input: druid.input"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 638,
+ 20
+ ],
+ "name": "new_input",
+ "rawdesc": "Create Input component",
+ "start": [
+ 638,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create LangText component\n\n@*param* `node` — The_node id or gui.get_node(node_id)\n\n@*param* `locale_id` — Default locale id or text from node as default\n\n@*param* `adjust_type` — Adjust type for text node. Default: const.TEXT_ADJUST.DOWNSCALE\n\n@*return* `lang_text` — The new lang text component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 616,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 616,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The_node id or gui.get_node(node_id)",
+ "finish": [
+ 616,
+ 29
+ ],
+ "name": "node",
+ "rawdesc": "The_node id or gui.get_node(node_id)",
+ "start": [
+ 616,
+ 25
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Default locale id or text from node as default",
+ "finish": [
+ 616,
+ 40
+ ],
+ "name": "locale_id",
+ "rawdesc": "Default locale id or text from node as default",
+ "start": [
+ 616,
+ 31
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "Adjust type for text node. Default: const.TEXT_ADJUST.DOWNSCALE",
+ "finish": [
+ 616,
+ 53
+ ],
+ "name": "adjust_type",
+ "rawdesc": "Adjust type for text node. Default: const.TEXT_ADJUST.DOWNSCALE",
+ "start": [
+ 616,
+ 42
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Create LangText component\n\n@*param* `node` — The_node id or gui.get_node(node_id)\n\n@*param* `locale_id` — Default locale id or text from node as default\n\n@*param* `adjust_type` — Adjust type for text node. Default: const.TEXT_ADJUST.DOWNSCALE\n\n@*return* `lang_text` — The new lang text component",
+ "finish": [
+ 618,
+ 3
+ ],
+ "rawdesc": "Create LangText component",
+ "returns": [
+ {
+ "desc": "The new lang text component",
+ "name": "lang_text",
+ "rawdesc": "The new lang text component",
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 616,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_lang_text(node: string|node, locale_id: string|nil, adjust_type: string|nil)\n -> lang_text: druid.lang_text"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 616,
+ 24
+ ],
+ "name": "new_lang_text",
+ "rawdesc": "Create LangText component",
+ "start": [
+ 616,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Layout component\n\n@*param* `node` — The_node id or gui.get_node(node_id).\n\n@*param* `mode` — vertical|horizontal|horizontal_wrap. Default: horizontal\n\n@*return* `layout` — The new layout component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 682,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 682,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The_node id or gui.get_node(node_id).",
+ "finish": [
+ 682,
+ 26
+ ],
+ "name": "node",
+ "rawdesc": "The_node id or gui.get_node(node_id).",
+ "start": [
+ 682,
+ 22
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "vertical|horizontal|horizontal_wrap. Default: horizontal",
+ "finish": [
+ 682,
+ 32
+ ],
+ "name": "mode",
+ "rawdesc": "vertical|horizontal|horizontal_wrap. Default: horizontal",
+ "start": [
+ 682,
+ 28
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Create Layout component\n\n@*param* `node` — The_node id or gui.get_node(node_id).\n\n@*param* `mode` — vertical|horizontal|horizontal_wrap. Default: horizontal\n\n@*return* `layout` — The new layout component",
+ "finish": [
+ 684,
+ 3
+ ],
+ "rawdesc": "Create Layout component",
+ "returns": [
+ {
+ "desc": "The new layout component",
+ "name": "layout",
+ "rawdesc": "The new layout component",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 682,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_layout(node: string|node, mode: string|nil)\n -> layout: druid.layout"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 682,
+ 21
+ ],
+ "name": "new_layout",
+ "rawdesc": "Create Layout component",
+ "start": [
+ 682,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Progress component\n\n@*param* `node` — Progress bar fill node or node name\n\n@*param* `key` — Progress bar direction: const.SIDE.X or const.SIDE.Y\n\n@*param* `init_value` — Initial value of progress bar. Default: 1\n\n@*return* `progress` — The new progress component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 672,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 672,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Progress bar fill node or node name",
+ "finish": [
+ 672,
+ 28
+ ],
+ "name": "node",
+ "rawdesc": "Progress bar fill node or node name",
+ "start": [
+ 672,
+ 24
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Progress bar direction: const.SIDE.X or const.SIDE.Y",
+ "finish": [
+ 672,
+ 33
+ ],
+ "name": "key",
+ "rawdesc": "Progress bar direction: const.SIDE.X or const.SIDE.Y",
+ "start": [
+ 672,
+ 30
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "Initial value of progress bar. Default: 1",
+ "finish": [
+ 672,
+ 45
+ ],
+ "name": "init_value",
+ "rawdesc": "Initial value of progress bar. Default: 1",
+ "start": [
+ 672,
+ 35
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Create Progress component\n\n@*param* `node` — Progress bar fill node or node name\n\n@*param* `key` — Progress bar direction: const.SIDE.X or const.SIDE.Y\n\n@*param* `init_value` — Initial value of progress bar. Default: 1\n\n@*return* `progress` — The new progress component",
+ "finish": [
+ 674,
+ 3
+ ],
+ "rawdesc": "Create Progress component",
+ "returns": [
+ {
+ "desc": "The new progress component",
+ "name": "progress",
+ "rawdesc": "The new progress component",
+ "type": "function.return",
+ "view": "druid.progress"
+ }
+ ],
+ "start": [
+ 672,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_progress(node: string|node, key: string, init_value: number|nil)\n -> progress: druid.progress"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 672,
+ 23
+ ],
+ "name": "new_progress",
+ "rawdesc": "Create Progress component",
+ "start": [
+ 672,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create RichInput component.\n As a template please check rich_input.gui layout.\n\n@*param* `template` — The template string name\n\n@*param* `nodes` — Nodes table from gui.clone_tree\n\n@*return* `rich_input` — The new rich input component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 725,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 725,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The template string name",
+ "finish": [
+ 725,
+ 34
+ ],
+ "name": "template",
+ "rawdesc": "The template string name",
+ "start": [
+ 725,
+ 26
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "Nodes table from gui.clone_tree",
+ "finish": [
+ 725,
+ 41
+ ],
+ "name": "nodes",
+ "rawdesc": "Nodes table from gui.clone_tree",
+ "start": [
+ 725,
+ 36
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Create RichInput component.\n As a template please check rich_input.gui layout.\n\n@*param* `template` — The template string name\n\n@*param* `nodes` — Nodes table from gui.clone_tree\n\n@*return* `rich_input` — The new rich input component",
+ "finish": [
+ 727,
+ 3
+ ],
+ "rawdesc": "Create RichInput component.\n As a template please check rich_input.gui layout.",
+ "returns": [
+ {
+ "desc": "The new rich input component",
+ "name": "rich_input",
+ "rawdesc": "The new rich input component",
+ "type": "function.return",
+ "view": "druid.rich_input"
+ }
+ ],
+ "start": [
+ 725,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_rich_input(template: string, nodes: table|nil)\n -> rich_input: druid.rich_input"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 725,
+ 25
+ ],
+ "name": "new_rich_input",
+ "rawdesc": "Create RichInput component.\n As a template please check rich_input.gui layout.",
+ "start": [
+ 725,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create RichText component.\n\n@*param* `text_node` — The text node to make Rich Text\n\n@*param* `value` — The initial text value. Default will be gui.get_text(text_node)\n\n@*return* `rich_text` — The new rich text component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 714,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 714,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The text node to make Rich Text",
+ "finish": [
+ 714,
+ 34
+ ],
+ "name": "text_node",
+ "rawdesc": "The text node to make Rich Text",
+ "start": [
+ 714,
+ 25
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "The initial text value. Default will be gui.get_text(text_node)",
+ "finish": [
+ 714,
+ 41
+ ],
+ "name": "value",
+ "rawdesc": "The initial text value. Default will be gui.get_text(text_node)",
+ "start": [
+ 714,
+ 36
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Create RichText component.\n\n@*param* `text_node` — The text node to make Rich Text\n\n@*param* `value` — The initial text value. Default will be gui.get_text(text_node)\n\n@*return* `rich_text` — The new rich text component",
+ "finish": [
+ 716,
+ 3
+ ],
+ "rawdesc": "Create RichText component.",
+ "returns": [
+ {
+ "desc": "The new rich text component",
+ "name": "rich_text",
+ "rawdesc": "The new rich text component",
+ "type": "function.return",
+ "view": "druid.rich_text"
+ }
+ ],
+ "start": [
+ 714,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_rich_text(text_node: string|node, value: string|nil)\n -> rich_text: druid.rich_text"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 714,
+ 24
+ ],
+ "name": "new_rich_text",
+ "rawdesc": "Create RichText component.",
+ "start": [
+ 714,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Scroll component\n\n@*param* `view_node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `content_node` — The node_id or gui.get_node(node_id). Will used as scrollable node inside view_node.\n\n@*return* `scroll` — The new scroll component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 585,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 585,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "finish": [
+ 585,
+ 31
+ ],
+ "name": "view_node",
+ "rawdesc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "start": [
+ 585,
+ 22
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id). Will used as scrollable node inside view_node.",
+ "finish": [
+ 585,
+ 45
+ ],
+ "name": "content_node",
+ "rawdesc": "The node_id or gui.get_node(node_id). Will used as scrollable node inside view_node.",
+ "start": [
+ 585,
+ 33
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Create Scroll component\n\n@*param* `view_node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `content_node` — The node_id or gui.get_node(node_id). Will used as scrollable node inside view_node.\n\n@*return* `scroll` — The new scroll component",
+ "finish": [
+ 587,
+ 3
+ ],
+ "rawdesc": "Create Scroll component",
+ "returns": [
+ {
+ "desc": "The new scroll component",
+ "name": "scroll",
+ "rawdesc": "The new scroll component",
+ "type": "function.return",
+ "view": "druid.scroll"
+ }
+ ],
+ "start": [
+ 585,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_scroll(view_node: string|node, content_node: string|node)\n -> scroll: druid.scroll"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 585,
+ 21
+ ],
+ "name": "new_scroll",
+ "rawdesc": "Create Scroll component",
+ "start": [
+ 585,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Slider component\n\n@*param* `pin_node` — The_node id or gui.get_node(node_id).\n\n@*param* `end_pos` — The end position of slider\n\n@*param* `callback` — On slider change callback\n\n@*return* `slider` — The new slider component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 627,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 627,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The_node id or gui.get_node(node_id).",
+ "finish": [
+ 627,
+ 30
+ ],
+ "name": "pin_node",
+ "rawdesc": "The_node id or gui.get_node(node_id).",
+ "start": [
+ 627,
+ 22
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "The end position of slider",
+ "finish": [
+ 627,
+ 39
+ ],
+ "name": "end_pos",
+ "rawdesc": "The end position of slider",
+ "start": [
+ 627,
+ 32
+ ],
+ "type": "local",
+ "view": "vector3"
+ },
+ {
+ "desc": "On slider change callback",
+ "finish": [
+ 627,
+ 49
+ ],
+ "name": "callback",
+ "rawdesc": "On slider change callback",
+ "start": [
+ 627,
+ 41
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Create Slider component\n\n@*param* `pin_node` — The_node id or gui.get_node(node_id).\n\n@*param* `end_pos` — The end position of slider\n\n@*param* `callback` — On slider change callback\n\n@*return* `slider` — The new slider component",
+ "finish": [
+ 629,
+ 3
+ ],
+ "rawdesc": "Create Slider component",
+ "returns": [
+ {
+ "desc": "The new slider component",
+ "name": "slider",
+ "rawdesc": "The new slider component",
+ "type": "function.return",
+ "view": "druid.slider"
+ }
+ ],
+ "start": [
+ 627,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_slider(pin_node: string|node, end_pos: vector3, callback: function|nil)\n -> slider: druid.slider"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 627,
+ 21
+ ],
+ "name": "new_slider",
+ "rawdesc": "Create Slider component",
+ "start": [
+ 627,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Swipe component\n\n@*param* `node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `on_swipe_callback` — Swipe callback for on_swipe_end event\n\n@*return* `swipe` — The new swipe component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 605,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 605,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "finish": [
+ 605,
+ 25
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id). Will used as user input node.",
+ "start": [
+ 605,
+ 21
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Swipe callback for on_swipe_end event",
+ "finish": [
+ 605,
+ 44
+ ],
+ "name": "on_swipe_callback",
+ "rawdesc": "Swipe callback for on_swipe_end event",
+ "start": [
+ 605,
+ 27
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Create Swipe component\n\n@*param* `node` — The node_id or gui.get_node(node_id). Will used as user input node.\n\n@*param* `on_swipe_callback` — Swipe callback for on_swipe_end event\n\n@*return* `swipe` — The new swipe component",
+ "finish": [
+ 607,
+ 3
+ ],
+ "rawdesc": "Create Swipe component",
+ "returns": [
+ {
+ "desc": "The new swipe component",
+ "name": "swipe",
+ "rawdesc": "The new swipe component",
+ "type": "function.return",
+ "view": "druid.swipe"
+ }
+ ],
+ "start": [
+ 605,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_swipe(node: string|node, on_swipe_callback: function|nil)\n -> swipe: druid.swipe"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 605,
+ 20
+ ],
+ "name": "new_swipe",
+ "rawdesc": "Create Swipe component",
+ "start": [
+ 605,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Text component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `value` — Initial text. Default value is node text from GUI scene.\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference\n\n@*return* `text` — The new text component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 564,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 564,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 564,
+ 24
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 564,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Initial text. Default value is node text from GUI scene.",
+ "finish": [
+ 564,
+ 31
+ ],
+ "name": "value",
+ "rawdesc": "Initial text. Default value is node text from GUI scene.",
+ "start": [
+ 564,
+ 26
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "finish": [
+ 564,
+ 44
+ ],
+ "name": "adjust_type",
+ "rawdesc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "start": [
+ 564,
+ 33
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Create Text component\n\n@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `value` — Initial text. Default value is node text from GUI scene.\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference\n\n@*return* `text` — The new text component",
+ "finish": [
+ 566,
+ 3
+ ],
+ "rawdesc": "Create Text component",
+ "returns": [
+ {
+ "desc": "The new text component",
+ "name": "text",
+ "rawdesc": "The new text component",
+ "type": "function.return",
+ "view": "druid.text"
+ }
+ ],
+ "start": [
+ 564,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_text(node: string|node, value: string|nil, adjust_type: string|nil)\n -> text: druid.text"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 564,
+ 19
+ ],
+ "name": "new_text",
+ "rawdesc": "Create Text component",
+ "start": [
+ 564,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create Timer component\n\n@*param* `node` — Gui text node\n\n@*param* `seconds_from` — Start timer value in seconds\n\n@*param* `seconds_to` — End timer value in seconds\n\n@*param* `callback` — Function on timer end\n\n@*return* `timer` — The new timer component",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 661,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 661,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Gui text node",
+ "finish": [
+ 661,
+ 25
+ ],
+ "name": "node",
+ "rawdesc": "Gui text node",
+ "start": [
+ 661,
+ 21
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Start timer value in seconds",
+ "finish": [
+ 661,
+ 39
+ ],
+ "name": "seconds_from",
+ "rawdesc": "Start timer value in seconds",
+ "start": [
+ 661,
+ 27
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "End timer value in seconds",
+ "finish": [
+ 661,
+ 51
+ ],
+ "name": "seconds_to",
+ "rawdesc": "End timer value in seconds",
+ "start": [
+ 661,
+ 41
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "Function on timer end",
+ "finish": [
+ 661,
+ 61
+ ],
+ "name": "callback",
+ "rawdesc": "Function on timer end",
+ "start": [
+ 661,
+ 53
+ ],
+ "type": "local",
+ "view": "function|nil"
+ }
+ ],
+ "desc": "Create Timer component\n\n@*param* `node` — Gui text node\n\n@*param* `seconds_from` — Start timer value in seconds\n\n@*param* `seconds_to` — End timer value in seconds\n\n@*param* `callback` — Function on timer end\n\n@*return* `timer` — The new timer component",
+ "finish": [
+ 663,
+ 3
+ ],
+ "rawdesc": "Create Timer component",
+ "returns": [
+ {
+ "desc": "The new timer component",
+ "name": "timer",
+ "rawdesc": "The new timer component",
+ "type": "function.return",
+ "view": "druid.timer"
+ }
+ ],
+ "start": [
+ 661,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_timer(node: string|node, seconds_from: number|nil, seconds_to: number|nil, callback: function|nil)\n -> timer: druid.timer"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 661,
+ 20
+ ],
+ "name": "new_timer",
+ "rawdesc": "Create Timer component",
+ "start": [
+ 661,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create new Druid widget instance\n\n@*param* `widget` — The widget class to create\n\n@*param* `template` — The template name used by widget\n\n@*param* `nodes` — The nodes table from gui.clone_tree or prefab node to use for clone\n\n@*return* `widget` — The new ready to use widget",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 496,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 496,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The widget class to create",
+ "finish": [
+ 496,
+ 28
+ ],
+ "name": "widget",
+ "rawdesc": "The widget class to create",
+ "start": [
+ 496,
+ 22
+ ],
+ "type": "local",
+ "view": ""
+ },
+ {
+ "desc": "The template name used by widget",
+ "finish": [
+ 496,
+ 38
+ ],
+ "name": "template",
+ "rawdesc": "The template name used by widget",
+ "start": [
+ 496,
+ 30
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The nodes table from gui.clone_tree or prefab node to use for clone",
+ "finish": [
+ 496,
+ 45
+ ],
+ "name": "nodes",
+ "rawdesc": "The nodes table from gui.clone_tree or prefab node to use for clone",
+ "start": [
+ 496,
+ 40
+ ],
+ "type": "local",
+ "view": "node|table|nil"
+ },
+ {
+ "finish": [
+ 496,
+ 50
+ ],
+ "start": [
+ 496,
+ 47
+ ],
+ "type": "...",
+ "view": "any"
+ }
+ ],
+ "desc": "Create new Druid widget instance\n\n@*param* `widget` — The widget class to create\n\n@*param* `template` — The template name used by widget\n\n@*param* `nodes` — The nodes table from gui.clone_tree or prefab node to use for clone\n\n@*return* `widget` — The new ready to use widget",
+ "finish": [
+ 513,
+ 3
+ ],
+ "rawdesc": "Create new Druid widget instance",
+ "returns": [
+ {
+ "desc": "The new ready to use widget",
+ "name": "widget",
+ "rawdesc": "The new ready to use widget",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 496,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:new_widget(widget: , template: string|nil, nodes: node|table|nil, ...any)\n -> widget: "
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 496,
+ 21
+ ],
+ "name": "new_widget",
+ "rawdesc": "Create new Druid widget instance",
+ "start": [
+ 496,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Call this in gui_script on_input function.\n\n@*param* `action_id` — Action_id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_input_consumed` — The boolean value is input was consumed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 350,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 350,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Action_id from on_input",
+ "finish": [
+ 350,
+ 29
+ ],
+ "name": "action_id",
+ "rawdesc": "Action_id from on_input",
+ "start": [
+ 350,
+ 20
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Action from on_input",
+ "finish": [
+ 350,
+ 37
+ ],
+ "name": "action",
+ "rawdesc": "Action from on_input",
+ "start": [
+ 350,
+ 31
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Call this in gui_script on_input function.\n\n@*param* `action_id` — Action_id from on_input\n\n@*param* `action` — Action from on_input\n\n@*return* `is_input_consumed` — The boolean value is input was consumed",
+ "finish": [
+ 377,
+ 3
+ ],
+ "rawdesc": "Call this in gui_script on_input function.",
+ "returns": [
+ {
+ "desc": "The boolean value is input was consumed",
+ "name": "is_input_consumed",
+ "rawdesc": "The boolean value is input was consumed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 350,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:on_input(action_id: hash, action: table)\n -> is_input_consumed: boolean"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 350,
+ 19
+ ],
+ "name": "on_input",
+ "rawdesc": "Call this in gui_script on_input function.",
+ "start": [
+ 350,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Calls the on_language_change function in all related components\n This one called by global druid.on_language_change, but can be\n call manualy to update all translations",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 427,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 427,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ }
+ ],
+ "desc": "Calls the on_language_change function in all related components\n This one called by global druid.on_language_change, but can be\n call manualy to update all translations",
+ "finish": [
+ 432,
+ 3
+ ],
+ "rawdesc": "Calls the on_language_change function in all related components\n This one called by global druid.on_language_change, but can be\n call manualy to update all translations",
+ "start": [
+ 427,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:on_language_change()"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 427,
+ 29
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Calls the on_language_change function in all related components\n This one called by global druid.on_language_change, but can be\n call manualy to update all translations",
+ "start": [
+ 427,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Call this in gui_script on_message function.\n\n@*param* `message_id` — Message_id from on_message\n\n@*param* `message` — Message from on_message\n\n@*param* `sender` — Sender from on_message",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 384,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 384,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Message_id from on_message",
+ "finish": [
+ 384,
+ 32
+ ],
+ "name": "message_id",
+ "rawdesc": "Message_id from on_message",
+ "start": [
+ 384,
+ 22
+ ],
+ "type": "local",
+ "view": "hash"
+ },
+ {
+ "desc": "Message from on_message",
+ "finish": [
+ 384,
+ 41
+ ],
+ "name": "message",
+ "rawdesc": "Message from on_message",
+ "start": [
+ 384,
+ 34
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Sender from on_message",
+ "finish": [
+ 384,
+ 49
+ ],
+ "name": "sender",
+ "rawdesc": "Sender from on_message",
+ "start": [
+ 384,
+ 43
+ ],
+ "type": "local",
+ "view": "url"
+ }
+ ],
+ "desc": "Call this in gui_script on_message function.\n\n@*param* `message_id` — Message_id from on_message\n\n@*param* `message` — Message from on_message\n\n@*param* `sender` — Sender from on_message",
+ "finish": [
+ 398,
+ 3
+ ],
+ "rawdesc": "Call this in gui_script on_message function.",
+ "start": [
+ 384,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:on_message(message_id: hash, message: table, sender: url)"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 384,
+ 21
+ ],
+ "name": "on_message",
+ "rawdesc": "Call this in gui_script on_message function.",
+ "start": [
+ 384,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when the window event occurs\n\n@*param* `window_event` — The window event",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 403,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 403,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The window event",
+ "finish": [
+ 403,
+ 39
+ ],
+ "name": "window_event",
+ "rawdesc": "The window event",
+ "start": [
+ 403,
+ 27
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Called when the window event occurs\n\n@*param* `window_event` — The window event",
+ "finish": [
+ 420,
+ 3
+ ],
+ "rawdesc": "Called when the window event occurs",
+ "start": [
+ 403,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:on_window_event(window_event: number)"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 403,
+ 26
+ ],
+ "name": "on_window_event",
+ "rawdesc": "Called when the window event occurs",
+ "start": [
+ 403,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove created component from Druid instance.\n\n Component `on_remove` function will be invoked, if exist.\n\n@*param* `component` — Component instance\n\n@*return* `is_removed` — True if component was removed",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 251,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 251,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Component instance",
+ "finish": [
+ 251,
+ 27
+ ],
+ "name": "component",
+ "rawdesc": "Component instance",
+ "start": [
+ 251,
+ 18
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove created component from Druid instance.\n\n Component `on_remove` function will be invoked, if exist.\n\n@*param* `component` — Component instance\n\n@*return* `is_removed` — True if component was removed",
+ "finish": [
+ 294,
+ 3
+ ],
+ "rawdesc": "Remove created component from Druid instance.\n\n Component `on_remove` function will be invoked, if exist.",
+ "returns": [
+ {
+ "desc": "True if component was removed",
+ "name": "is_removed",
+ "rawdesc": "True if component was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 251,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:remove(component: )\n -> is_removed: boolean"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 251,
+ 17
+ ],
+ "name": "remove",
+ "rawdesc": "Remove created component from Druid instance.\n\n Component `on_remove` function will be invoked, if exist.",
+ "start": [
+ 251,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set blacklist components for input processing.\nIf blacklist is not empty and component contains in this list,\ncomponent will be not processed on input step DruidInstance\n\n@*param* `blacklist_components` — The array of component to blacklist\n\n@*return* `self` — The Druid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 460,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 460,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The array of component to blacklist",
+ "finish": [
+ 460,
+ 45
+ ],
+ "name": "blacklist_components",
+ "rawdesc": "The array of component to blacklist",
+ "start": [
+ 460,
+ 25
+ ],
+ "type": "local",
+ "view": "table|druid.component[]"
+ }
+ ],
+ "desc": "Set blacklist components for input processing.\nIf blacklist is not empty and component contains in this list,\ncomponent will be not processed on input step DruidInstance\n\n@*param* `blacklist_components` — The array of component to blacklist\n\n@*return* `self` — The Druid instance",
+ "finish": [
+ 472,
+ 3
+ ],
+ "rawdesc": "Set blacklist components for input processing.\nIf blacklist is not empty and component contains in this list,\ncomponent will be not processed on input step DruidInstance",
+ "returns": [
+ {
+ "desc": "The Druid instance",
+ "name": "self",
+ "rawdesc": "The Druid instance",
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 460,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:set_blacklist(blacklist_components: table|druid.component[])\n -> self: druid.instance"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 460,
+ 24
+ ],
+ "name": "set_blacklist",
+ "rawdesc": "Set blacklist components for input processing.\nIf blacklist is not empty and component contains in this list,\ncomponent will be not processed on input step DruidInstance",
+ "start": [
+ 460,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set whitelist components for input processing.\nIf whitelist is not empty and component not contains in this list,\ncomponent will be not processed on input step\n\n@*param* `whitelist_components` — The array of component to whitelist\n\n@*return* `self` — The Druid instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 440,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 440,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "The array of component to whitelist",
+ "finish": [
+ 440,
+ 45
+ ],
+ "name": "whitelist_components",
+ "rawdesc": "The array of component to whitelist",
+ "start": [
+ 440,
+ 25
+ ],
+ "type": "local",
+ "view": "table|druid.component[]"
+ }
+ ],
+ "desc": "Set whitelist components for input processing.\nIf whitelist is not empty and component not contains in this list,\ncomponent will be not processed on input step\n\n@*param* `whitelist_components` — The array of component to whitelist\n\n@*return* `self` — The Druid instance",
+ "finish": [
+ 452,
+ 3
+ ],
+ "rawdesc": "Set whitelist components for input processing.\nIf whitelist is not empty and component not contains in this list,\ncomponent will be not processed on input step",
+ "returns": [
+ {
+ "desc": "The Druid instance",
+ "name": "self",
+ "rawdesc": "The Druid instance",
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 440,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:set_whitelist(whitelist_components: table|druid.component[])\n -> self: druid.instance"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 440,
+ 24
+ ],
+ "name": "set_whitelist",
+ "rawdesc": "Set whitelist components for input processing.\nIf whitelist is not empty and component not contains in this list,\ncomponent will be not processed on input step",
+ "start": [
+ 440,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Call this in gui_script update function.\n\n@*param* `dt` — Delta time",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 333,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 333,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Delta time",
+ "finish": [
+ 333,
+ 20
+ ],
+ "name": "dt",
+ "rawdesc": "Delta time",
+ "start": [
+ 333,
+ 18
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "Call this in gui_script update function.\n\n@*param* `dt` — Delta time",
+ "finish": [
+ 343,
+ 3
+ ],
+ "rawdesc": "Call this in gui_script update function.",
+ "start": [
+ 333,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.instance:update(dt: number)"
+ },
+ "file": "/druid/system/druid_instance.lua",
+ "finish": [
+ 333,
+ 17
+ ],
+ "name": "update",
+ "rawdesc": "Call this in gui_script update function.",
+ "start": [
+ 333,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.instance",
+ "type": "type",
+ "view": "druid.instance"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "extends": [
+ {
+ "finish": [
+ 5,
+ 42
+ ],
+ "start": [
+ 5,
+ 27
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 5,
+ 42
+ ],
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 5,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.lang_text",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The Druid Factory used to create components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 18,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 18,
+ 14
+ ],
+ "type": "select",
+ "view": "druid.instance"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 18,
+ 11
+ ],
+ "name": "druid",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 18,
+ 1
+ ],
+ "type": "setfield",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Format string with new text params on localized text\n\n@*param* `...` — Optional params for string.format\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ },
+ {
+ "desc": "Optional params for string.format",
+ "finish": [
+ 75,
+ 21
+ ],
+ "rawdesc": "Optional params for string.format",
+ "start": [
+ 75,
+ 18
+ ],
+ "type": "...",
+ "view": "string"
+ }
+ ],
+ "desc": "Format string with new text params on localized text\n\n@*param* `...` — Optional params for string.format\n\n@*return* `self` — Current instance",
+ "finish": [
+ 80,
+ 3
+ ],
+ "rawdesc": "Format string with new text params on localized text",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:format(...string)\n -> self: druid.lang_text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 75,
+ 17
+ ],
+ "name": "format",
+ "rawdesc": "Format string with new text params on localized text",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `locale_id` — Default locale id or text from node as default\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 17,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 17,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ },
+ {
+ "desc": "The node_id or gui.get_node(node_id)",
+ "finish": [
+ 17,
+ 20
+ ],
+ "name": "node",
+ "rawdesc": "The node_id or gui.get_node(node_id)",
+ "start": [
+ 17,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "desc": "Default locale id or text from node as default",
+ "finish": [
+ 17,
+ 31
+ ],
+ "name": "locale_id",
+ "rawdesc": "Default locale id or text from node as default",
+ "start": [
+ 17,
+ 22
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "finish": [
+ 17,
+ 44
+ ],
+ "name": "adjust_type",
+ "rawdesc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "start": [
+ 17,
+ 33
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "@*param* `node` — The node_id or gui.get_node(node_id)\n\n@*param* `locale_id` — Default locale id or text from node as default\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference",
+ "finish": [
+ 29,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 17,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:init(node: string|node, locale_id: string|nil, adjust_type: string|nil)\n -> druid.lang_text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 17,
+ 15
+ ],
+ "name": "init",
+ "start": [
+ 17,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The last locale",
+ "extends": {
+ "finish": [
+ 10,
+ 36
+ ],
+ "start": [
+ 10,
+ 30
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 10,
+ 36
+ ],
+ "start": [
+ 10,
+ 30
+ ],
+ "type": "doc.type.name",
+ "view": "string"
+ }
+ ],
+ "view": "string"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 10,
+ 36
+ ],
+ "name": "last_locale",
+ "rawdesc": "The last locale",
+ "start": [
+ 10,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "string",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The last locale arguments",
+ "extends": {
+ "finish": [
+ 9,
+ 40
+ ],
+ "start": [
+ 9,
+ 35
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 9,
+ 40
+ ],
+ "start": [
+ 9,
+ 35
+ ],
+ "type": "doc.type.name",
+ "view": "table"
+ }
+ ],
+ "view": "table"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 9,
+ 40
+ ],
+ "name": "last_locale_args",
+ "rawdesc": "The last locale arguments",
+ "start": [
+ 9,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "table",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The node of the text component",
+ "extends": {
+ "finish": [
+ 7,
+ 19
+ ],
+ "start": [
+ 7,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 7,
+ 19
+ ],
+ "start": [
+ 7,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 7,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "The node of the text component",
+ "start": [
+ 7,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The event triggered when the text is changed",
+ "extends": {
+ "finish": [
+ 8,
+ 25
+ ],
+ "start": [
+ 8,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 8,
+ 25
+ ],
+ "start": [
+ 8,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "event"
+ }
+ ],
+ "view": "event"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 8,
+ 25
+ ],
+ "name": "on_change",
+ "rawdesc": "The event triggered when the text is changed",
+ "start": [
+ 8,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 32,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 32,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ }
+ ],
+ "finish": [
+ 36,
+ 3
+ ],
+ "start": [
+ 32,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:on_language_change()"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 32,
+ 29
+ ],
+ "name": "on_language_change",
+ "start": [
+ 32,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 111,
+ 20
+ ],
+ "name": "set_nodes",
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "start": [
+ 111,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 54,
+ 32
+ ],
+ "name": "druid_style",
+ "start": [
+ 54,
+ 21
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Set component style. Pass nil to clear style\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 65,
+ 3
+ ],
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_style(druid_style: table|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 54,
+ 20
+ ],
+ "name": "set_style",
+ "rawdesc": "Set component style. Pass nil to clear style",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 75,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 75,
+ 8
+ ],
+ "type": "self",
+ "view": ""
+ },
+ {
+ "finish": [
+ 75,
+ 32
+ ],
+ "name": "template",
+ "start": [
+ 75,
+ 24
+ ],
+ "type": "local",
+ "view": "string|nil"
+ }
+ ],
+ "desc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 98,
+ 3
+ ],
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 75,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_template(template: string|nil)\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 75,
+ 23
+ ],
+ "name": "set_template",
+ "rawdesc": "Set component template name. Pass nil to clear template.\nThis template id used to access nodes inside the template on GUI scene.\nParent template will be added automatically if exist.",
+ "start": [
+ 75,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup raw text to lang_text component\n\n@*param* `text` — Text for text node\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 54,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 54,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ },
+ {
+ "desc": "Text for text node",
+ "finish": [
+ 54,
+ 24
+ ],
+ "name": "text",
+ "rawdesc": "Text for text node",
+ "start": [
+ 54,
+ 20
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "Setup raw text to lang_text component\n\n@*param* `text` — Text for text node\n\n@*return* `self` — Current instance",
+ "finish": [
+ 56,
+ 3
+ ],
+ "rawdesc": "Setup raw text to lang_text component",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 54,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:set_text(text: string)\n -> self: druid.lang_text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 54,
+ 19
+ ],
+ "name": "set_text",
+ "rawdesc": "Setup raw text to lang_text component",
+ "start": [
+ 54,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup raw text to lang_text component\n\n@*param* `text` — Text for text node\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 42,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 42,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ },
+ {
+ "desc": "Text for text node",
+ "finish": [
+ 42,
+ 22
+ ],
+ "name": "text",
+ "rawdesc": "Text for text node",
+ "start": [
+ 42,
+ 18
+ ],
+ "type": "local",
+ "view": "string"
+ }
+ ],
+ "desc": "Setup raw text to lang_text component\n\n@*param* `text` — Text for text node\n\n@*return* `self` — Current instance",
+ "finish": [
+ 48,
+ 3
+ ],
+ "rawdesc": "Setup raw text to lang_text component",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 42,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:set_to(text: string)\n -> self: druid.lang_text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 42,
+ 17
+ ],
+ "name": "set_to",
+ "rawdesc": "Setup raw text to lang_text component",
+ "start": [
+ 42,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 255,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 255,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The parent druid instance",
+ "finish": [
+ 255,
+ 41
+ ],
+ "name": "druid_instance",
+ "rawdesc": "The parent druid instance",
+ "start": [
+ 255,
+ 27
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "desc": "Druid context. Usually it is self of script",
+ "finish": [
+ 255,
+ 50
+ ],
+ "name": "context",
+ "rawdesc": "Druid context. Usually it is self of script",
+ "start": [
+ 255,
+ 43
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "Druid style module",
+ "finish": [
+ 255,
+ 57
+ ],
+ "name": "style",
+ "rawdesc": "Druid style module",
+ "start": [
+ 255,
+ 52
+ ],
+ "type": "local",
+ "view": "table"
+ },
+ {
+ "desc": "The component instance class",
+ "finish": [
+ 255,
+ 73
+ ],
+ "name": "instance_class",
+ "rawdesc": "The component instance class",
+ "start": [
+ 255,
+ 59
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Setup component context and his style table\n\n@*param* `druid_instance` — The parent druid instance\n\n@*param* `context` — Druid context. Usually it is self of script\n\n@*param* `style` — Druid style module\n\n@*param* `instance_class` — The component instance class\n\n@*return* `BaseComponent` — itself",
+ "finish": [
+ 276,
+ 3
+ ],
+ "rawdesc": "Setup component context and his style table",
+ "returns": [
+ {
+ "desc": "itself",
+ "name": "BaseComponent",
+ "rawdesc": "itself",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 255,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:setup_component(druid_instance: druid.instance, context: table, style: table, instance_class: table)\n -> BaseComponent: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 255,
+ 26
+ ],
+ "name": "setup_component",
+ "rawdesc": "Setup component context and his style table",
+ "start": [
+ 255,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The text component",
+ "extends": {
+ "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "finish": [
+ 6,
+ 25
+ ],
+ "rawdesc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "start": [
+ 6,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "finish": [
+ 6,
+ 25
+ ],
+ "rawdesc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area",
+ "start": [
+ 6,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "druid.text"
+ }
+ ],
+ "view": "druid.text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 6,
+ 25
+ ],
+ "name": "text",
+ "rawdesc": "The text component",
+ "start": [
+ 6,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.text",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Translate the text by locale_id\n\n@*param* `locale_id` — Locale id\n\n@*param* `...` — Optional params for string.format\n\n@*return* `self` — Current instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "finish": [
+ 63,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed",
+ "start": [
+ 63,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.lang_text"
+ },
+ {
+ "desc": "Locale id",
+ "finish": [
+ 63,
+ 30
+ ],
+ "name": "locale_id",
+ "rawdesc": "Locale id",
+ "start": [
+ 63,
+ 21
+ ],
+ "type": "local",
+ "view": "string"
+ },
+ {
+ "desc": "Optional params for string.format",
+ "finish": [
+ 63,
+ 35
+ ],
+ "rawdesc": "Optional params for string.format",
+ "start": [
+ 63,
+ 32
+ ],
+ "type": "...",
+ "view": "string"
+ }
+ ],
+ "desc": "Translate the text by locale_id\n\n@*param* `locale_id` — Locale id\n\n@*param* `...` — Optional params for string.format\n\n@*return* `self` — Current instance",
+ "finish": [
+ 69,
+ 3
+ ],
+ "rawdesc": "Translate the text by locale_id",
+ "returns": [
+ {
+ "desc": "Current instance",
+ "name": "self",
+ "rawdesc": "Current instance",
+ "type": "function.return",
+ "view": "druid.lang_text"
+ }
+ ],
+ "start": [
+ 63,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.lang_text:translate(locale_id: string, ...string)\n -> self: druid.lang_text"
+ },
+ "file": "/druid/extended/lang_text.lua",
+ "finish": [
+ 63,
+ 20
+ ],
+ "name": "translate",
+ "rawdesc": "Translate the text by locale_id",
+ "start": [
+ 63,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called every frame",
+ "extends": {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 24,
+ 41
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 24,
+ 25
+ ],
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 24,
+ 21
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 24,
+ 52
+ ],
+ "name": {
+ "[1]": "dt",
+ "finish": [
+ 24,
+ 45
+ ],
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg.name",
+ "view": "dt"
+ },
+ "start": [
+ 24,
+ 43
+ ],
+ "type": "doc.type.arg",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 24,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 24,
+ 17
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, dt: number)"
+ },
+ {
+ "finish": [
+ 24,
+ 57
+ ],
+ "start": [
+ 24,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, dt: number)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 24,
+ 57
+ ],
+ "name": "update",
+ "rawdesc": "Called every frame",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, dt: number)|nil",
+ "visible": "public"
+ }
+ ],
+ "name": "druid.lang_text",
+ "type": "type",
+ "view": "druid.lang_text"
+ },
+ {
+ "defines": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "extends": [
+ {
+ "finish": [
+ 22,
+ 39
+ ],
+ "start": [
+ 22,
+ 24
+ ],
+ "type": "doc.extends.name",
+ "view": "druid.component"
+ }
+ ],
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 22,
+ 39
+ ],
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.class",
+ "view": "druid.layout",
+ "visible": "public"
+ }
+ ],
+ "fields": [
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 311,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 311,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 311,
+ 28
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 311,
+ 23
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Add child to component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 315,
+ 3
+ ],
+ "rawdesc": "Add child to component children list",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": ""
+ }
+ ],
+ "start": [
+ 311,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__add_child(child: )\n -> self: "
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 311,
+ 22
+ ],
+ "name": "__add_child",
+ "rawdesc": "Add child to component children list",
+ "start": [
+ 311,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 323,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 323,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "desc": "The druid component instance",
+ "finish": [
+ 323,
+ 31
+ ],
+ "name": "child",
+ "rawdesc": "The druid component instance",
+ "start": [
+ 323,
+ 26
+ ],
+ "type": "local",
+ "view": ""
+ }
+ ],
+ "desc": "Remove child from component children list\n\n@*param* `child` — The druid component instance\n\n@*return* `true` — if child was removed",
+ "finish": [
+ 332,
+ 3
+ ],
+ "rawdesc": "Remove child from component children list",
+ "returns": [
+ {
+ "desc": "if child was removed",
+ "name": "true",
+ "rawdesc": "if child was removed",
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 323,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:__remove_child(child: )\n -> true: boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 323,
+ 25
+ ],
+ "name": "__remove_child",
+ "rawdesc": "Remove child from component children list",
+ "start": [
+ 323,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 36,
+ 54
+ ],
+ "start": [
+ 36,
+ 29
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.component"
+ }
+ ],
+ "view": "druid.component.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 36,
+ 54
+ ],
+ "name": "_component",
+ "start": [
+ 36,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.component",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return true, if input priority was changed",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 281,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 281,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return true, if input priority was changed",
+ "finish": [
+ 283,
+ 3
+ ],
+ "rawdesc": "Return true, if input priority was changed",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 281,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_is_input_priority_changed()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 281,
+ 37
+ ],
+ "name": "_is_input_priority_changed",
+ "rawdesc": "Return true, if input priority was changed",
+ "start": [
+ 281,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 37,
+ 44
+ ],
+ "start": [
+ 37,
+ 24
+ ],
+ "type": "doc.type.name",
+ "view": "druid.component.meta"
+ }
+ ],
+ "view": "druid.component.meta"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 37,
+ 44
+ ],
+ "name": "_meta",
+ "start": [
+ 37,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.component.meta",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset is_input_priority_changed field",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 288,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 288,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset is_input_priority_changed field",
+ "finish": [
+ 290,
+ 3
+ ],
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:_reset_input_priority_changed()"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 288,
+ 40
+ ],
+ "name": "_reset_input_priority_changed",
+ "rawdesc": "Reset is_input_priority_changed field",
+ "start": [
+ 288,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Add node to layout\n\n@*param* `node_or_node_id` — node_or_node_id\n\n@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 165,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 165,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "desc": "node_or_node_id",
+ "finish": [
+ 165,
+ 30
+ ],
+ "name": "node_or_node_id",
+ "rawdesc": "node_or_node_id",
+ "start": [
+ 165,
+ 15
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Add node to layout\n\n@*param* `node_or_node_id` — node_or_node_id\n\n@*return* `self` — Current layout instance",
+ "finish": [
+ 182,
+ 3
+ ],
+ "rawdesc": "Add node to layout",
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 165,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:add(node_or_node_id: string|node)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 165,
+ 14
+ ],
+ "name": "add",
+ "rawdesc": "Add node to layout",
+ "start": [
+ 165,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Calculate rows data for layout. Contains total width, height and rows info (width, height, count of elements in row)",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 395,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 395,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "desc": "Calculate rows data for layout. Contains total width, height and rows info (width, height, count of elements in row)",
+ "finish": [
+ 472,
+ 3
+ ],
+ "rawdesc": "Calculate rows data for layout. Contains total width, height and rows info (width, height, count of elements in row)",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.layout.rows_data"
+ }
+ ],
+ "start": [
+ 395,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:calculate_rows_data()\n -> druid.layout.rows_data"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 395,
+ 30
+ ],
+ "name": "calculate_rows_data",
+ "rawdesc": "Calculate rows data for layout. Contains total width, height and rows info (width, height, count of elements in row)",
+ "start": [
+ 395,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 360,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 360,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "desc": "@*return* `self` — Current layout instance",
+ "finish": [
+ 368,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 360,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:clear_layout()\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 360,
+ 23
+ ],
+ "name": "clear_layout",
+ "start": [
+ 360,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "desc": "The name of the component",
+ "finish": [
+ 355,
+ 22
+ ],
+ "name": "name",
+ "rawdesc": "The name of the component",
+ "start": [
+ 355,
+ 18
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "desc": "The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 355,
+ 38
+ ],
+ "name": "input_priority",
+ "rawdesc": "The input priority. The bigger number processed first. Default value: 10",
+ "start": [
+ 355,
+ 24
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Сreate a new component class, which will inherit from the base Druid component.\n\n@*param* `name` — The name of the component\n\n@*param* `input_priority` — The input priority. The bigger number processed first. Default value: 10",
+ "finish": [
+ 375,
+ 3
+ ],
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 355,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create(name: string|nil, input_priority: number|nil)\n -> druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 355,
+ 17
+ ],
+ "name": "create",
+ "rawdesc": "Сreate a new component class, which will inherit from the base Druid component.",
+ "start": [
+ 355,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [],
+ "finish": [
+ 46,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "integer"
+ }
+ ],
+ "start": [
+ 43,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_uid()\n -> integer"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 43,
+ 21
+ ],
+ "name": "create_uid",
+ "start": [
+ 43,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "private"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Create the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 385,
+ 29
+ ],
+ "name": "self",
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 385,
+ 25
+ ],
+ "type": "local",
+ "view": "druid.instance"
+ },
+ {
+ "finish": [
+ 385,
+ 43
+ ],
+ "name": "widget_class",
+ "start": [
+ 385,
+ 31
+ ],
+ "type": "local",
+ "view": "druid.widget"
+ },
+ {
+ "finish": [
+ 385,
+ 52
+ ],
+ "name": "context",
+ "start": [
+ 385,
+ 45
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Create the Druid component instance",
+ "finish": [
+ 416,
+ 3
+ ],
+ "rawdesc": "Create the Druid component instance",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.widget"
+ }
+ ],
+ "start": [
+ 385,
+ 0
+ ],
+ "type": "function",
+ "view": "function druid.component.create_widget(self: druid.instance, widget_class: druid.widget, context: table)\n -> druid.widget"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 385,
+ 24
+ ],
+ "name": "create_widget",
+ "rawdesc": "Create the Druid component instance",
+ "start": [
+ 385,
+ 9
+ ],
+ "type": "setfield",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Druid instance to create inner components",
+ "extends": {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "desc": "The Druid Factory used to create components",
+ "finish": [
+ 22,
+ 30
+ ],
+ "rawdesc": "The Druid Factory used to create components",
+ "start": [
+ 22,
+ 16
+ ],
+ "type": "doc.type.name",
+ "view": "druid.instance"
+ }
+ ],
+ "view": "druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 22,
+ 30
+ ],
+ "name": "druid",
+ "rawdesc": "Druid instance to create inner components",
+ "start": [
+ 22,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.instance",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The entities to manage the layout of",
+ "extends": {
+ "finish": [
+ 26,
+ 25
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 26,
+ 25
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.array",
+ "view": "node[]"
+ }
+ ],
+ "view": "node[]"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 26,
+ 25
+ ],
+ "name": "entities",
+ "rawdesc": "The entities to manage the layout of",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node[]",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 337,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 337,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return all children components, recursive\n\n@*return* `Array` — of childrens if the Druid component instance",
+ "finish": [
+ 348,
+ 3
+ ],
+ "rawdesc": "Return all children components, recursive",
+ "returns": [
+ {
+ "desc": "of childrens if the Druid component instance",
+ "name": "Array",
+ "rawdesc": "of childrens if the Druid component instance",
+ "type": "function.return",
+ "view": "table"
+ }
+ ],
+ "start": [
+ 337,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_childrens()\n -> Array: table"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 337,
+ 24
+ ],
+ "name": "get_childrens",
+ "rawdesc": "Return all children components, recursive",
+ "start": [
+ 337,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 210,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 210,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "finish": [
+ 214,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ },
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 210,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:get_content_size()\n -> number\n 2. number"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 210,
+ 27
+ ],
+ "name": "get_content_size",
+ "start": [
+ 210,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 119,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 119,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Return current component context\n\n@*return* `context` — Usually it's self of script but can be any other Druid component",
+ "finish": [
+ 121,
+ 3
+ ],
+ "rawdesc": "Return current component context",
+ "returns": [
+ {
+ "desc": "Usually it's self of script but can be any other Druid component",
+ "name": "context",
+ "rawdesc": "Usually it's self of script but can be any other Druid component",
+ "type": "function.return",
+ "view": "any"
+ }
+ ],
+ "start": [
+ 119,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_context()\n -> context: any"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 119,
+ 22
+ ],
+ "name": "get_context",
+ "rawdesc": "Return current component context",
+ "start": [
+ 119,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get Druid instance for inner component creation.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 136,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 136,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 136,
+ 29
+ ],
+ "name": "template",
+ "start": [
+ 136,
+ 21
+ ],
+ "type": "local",
+ "view": "string|nil"
+ },
+ {
+ "finish": [
+ 136,
+ 36
+ ],
+ "name": "nodes",
+ "start": [
+ 136,
+ 31
+ ],
+ "type": "local",
+ "view": "table|nil"
+ }
+ ],
+ "desc": "Get Druid instance for inner component creation.",
+ "finish": [
+ 149,
+ 3
+ ],
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.instance"
+ }
+ ],
+ "start": [
+ 136,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_druid(template: string|nil, nodes: table|nil)\n -> druid.instance"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 136,
+ 20
+ ],
+ "name": "get_druid",
+ "rawdesc": "Get Druid instance for inner component creation.",
+ "start": [
+ 136,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `entities` — The entities to manage the layout of",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 72,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 72,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "desc": "@*return* `entities` — The entities to manage the layout of",
+ "finish": [
+ 74,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "The entities to manage the layout of",
+ "name": "entities",
+ "rawdesc": "The entities to manage the layout of",
+ "type": "function.return",
+ "view": "node[]"
+ }
+ ],
+ "start": [
+ 72,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:get_entities()\n -> entities: node[]"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 72,
+ 23
+ ],
+ "name": "get_entities",
+ "start": [
+ 72,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 236,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 236,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "finish": [
+ 238,
+ 3
+ ],
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "boolean"
+ }
+ ],
+ "start": [
+ 236,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_enabled()\n -> boolean"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 236,
+ 28
+ ],
+ "name": "get_input_enabled",
+ "rawdesc": "Get component input state. By default it's enabled. Can be disabled by `set_input_enabled` function.",
+ "start": [
+ 236,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 169,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 169,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "finish": [
+ 171,
+ 3
+ ],
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 169,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_input_priority()\n -> number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 169,
+ 29
+ ],
+ "name": "get_input_priority",
+ "rawdesc": "Get component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 169,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 154,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 154,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component name\n\n@*return* `name` — The component name + uid",
+ "finish": [
+ 156,
+ 3
+ ],
+ "rawdesc": "Get component name",
+ "returns": [
+ {
+ "desc": "The component name + uid",
+ "name": "name",
+ "rawdesc": "The component name + uid",
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 154,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_name()\n -> name: string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 154,
+ 19
+ ],
+ "name": "get_name",
+ "rawdesc": "Get component name",
+ "start": [
+ 154,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 127,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 127,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 127,
+ 27
+ ],
+ "name": "node_id",
+ "start": [
+ 127,
+ 20
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Get component node by node_id. Respect to current template and nodes.",
+ "finish": [
+ 129,
+ 3
+ ],
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 127,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_node(node_id: string|node)\n -> node"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 127,
+ 19
+ ],
+ "name": "get_node",
+ "rawdesc": "Get component node by node_id. Respect to current template and nodes.",
+ "start": [
+ 127,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `width` — The width of the node\n\n@*return* `height` — The height of the node",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 374,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 374,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "finish": [
+ 374,
+ 29
+ ],
+ "name": "node",
+ "start": [
+ 374,
+ 25
+ ],
+ "type": "local",
+ "view": "node"
+ }
+ ],
+ "desc": "@*return* `width` — The width of the node\n\n@*return* `height` — The height of the node",
+ "finish": [
+ 389,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "The width of the node",
+ "name": "width",
+ "rawdesc": "The width of the node",
+ "type": "function.return",
+ "view": "number"
+ },
+ {
+ "desc": "The height of the node",
+ "name": "height",
+ "rawdesc": "The height of the node",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 374,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:get_node_size(node: node)\n -> width: number\n 2. height: number"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 374,
+ 24
+ ],
+ "name": "get_node_size",
+ "start": [
+ 374,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get current component nodes",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 295,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 295,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get current component nodes",
+ "finish": [
+ 303,
+ 3
+ ],
+ "rawdesc": "Get current component nodes",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "table|nil"
+ }
+ ],
+ "start": [
+ 295,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_nodes()\n -> table|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 295,
+ 20
+ ],
+ "name": "get_nodes",
+ "rawdesc": "Get current component nodes",
+ "start": [
+ 295,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 243,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 243,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component\n\n@*return* `parent_component` — The parent component if exist or nil",
+ "finish": [
+ 245,
+ 3
+ ],
+ "rawdesc": "Get parent component",
+ "returns": [
+ {
+ "desc": "The parent component if exist or nil",
+ "name": "parent_component",
+ "rawdesc": "The parent component if exist or nil",
+ "type": "function.return",
+ "view": "druid.component|nil"
+ }
+ ],
+ "start": [
+ 243,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_component()\n -> parent_component: druid.component|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 243,
+ 31
+ ],
+ "name": "get_parent_component",
+ "rawdesc": "Get parent component",
+ "start": [
+ 243,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 161,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 161,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get parent component name\n\n@*return* `parent_name` — The parent component name if exist or nil",
+ "finish": [
+ 164,
+ 3
+ ],
+ "rawdesc": "Get parent component name",
+ "returns": [
+ {
+ "desc": "The parent component name if exist or nil",
+ "name": "parent_name",
+ "rawdesc": "The parent component name if exist or nil",
+ "type": "function.return",
+ "view": "string|nil"
+ }
+ ],
+ "start": [
+ 161,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_parent_name()\n -> parent_name: string|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 161,
+ 26
+ ],
+ "name": "get_parent_name",
+ "rawdesc": "Get parent component name",
+ "start": [
+ 161,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 204,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 204,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "finish": [
+ 206,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "vector3"
+ }
+ ],
+ "start": [
+ 204,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:get_size()\n -> vector3"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 204,
+ 19
+ ],
+ "name": "get_size",
+ "start": [
+ 204,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get full template name.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 103,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 103,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get full template name.",
+ "finish": [
+ 105,
+ 3
+ ],
+ "rawdesc": "Get full template name.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "string"
+ }
+ ],
+ "start": [
+ 103,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_template()\n -> string"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 103,
+ 23
+ ],
+ "name": "get_template",
+ "rawdesc": "Get full template name.",
+ "start": [
+ 103,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 213,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 213,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Get component UID, unique identifier created in component creation order.\n\n@*return* `uid` — The component uid",
+ "finish": [
+ 215,
+ 3
+ ],
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "returns": [
+ {
+ "desc": "The component uid",
+ "name": "uid",
+ "rawdesc": "The component uid",
+ "type": "function.return",
+ "view": "number"
+ }
+ ],
+ "start": [
+ 213,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:get_uid()\n -> uid: number"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 213,
+ 18
+ ],
+ "name": "get_uid",
+ "rawdesc": "Get component UID, unique identifier created in component creation order.",
+ "start": [
+ 213,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "```lua\nlayout_type:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 39,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 39,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "finish": [
+ 39,
+ 31
+ ],
+ "name": "node_or_node_id",
+ "start": [
+ 39,
+ 16
+ ],
+ "type": "local",
+ "view": "string|node"
+ },
+ {
+ "finish": [
+ 39,
+ 44
+ ],
+ "name": "layout_type",
+ "start": [
+ 39,
+ 33
+ ],
+ "type": "local",
+ "view": "\"horizontal\"|\"horizontal_wrap\"|\"vertical\""
+ }
+ ],
+ "desc": "```lua\nlayout_type:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```",
+ "finish": [
+ 59,
+ 3
+ ],
+ "rawdesc": "```lua\nlayout_type:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```",
+ "start": [
+ 39,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:init(node_or_node_id: string|node, layout_type: \"horizontal\"|\"horizontal_wrap\"|\"vertical\")"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 39,
+ 15
+ ],
+ "name": "init",
+ "rawdesc": "```lua\nlayout_type:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```",
+ "start": [
+ 39,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "finish": [
+ 25,
+ 26
+ ],
+ "start": [
+ 25,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 25,
+ 26
+ ],
+ "start": [
+ 25,
+ 19
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 25,
+ 26
+ ],
+ "name": "is_dirty",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the layout should justify the nodes",
+ "extends": {
+ "finish": [
+ 32,
+ 28
+ ],
+ "start": [
+ 32,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 32,
+ 28
+ ],
+ "start": [
+ 32,
+ 21
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 32,
+ 28
+ ],
+ "name": "is_justify",
+ "rawdesc": "True if the layout should justify the nodes",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the layout should resize the height of the node",
+ "extends": {
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 27
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 31,
+ 34
+ ],
+ "name": "is_resize_height",
+ "rawdesc": "True if the layout should resize the height of the node",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "True if the layout should resize the width of the node",
+ "extends": {
+ "finish": [
+ 30,
+ 33
+ ],
+ "start": [
+ 30,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 30,
+ 33
+ ],
+ "start": [
+ 30,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "boolean"
+ }
+ ],
+ "view": "boolean"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 30,
+ 33
+ ],
+ "name": "is_resize_width",
+ "rawdesc": "True if the layout should resize the width of the node",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "boolean",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The margin of the layout",
+ "extends": {
+ "finish": [
+ 27,
+ 39
+ ],
+ "start": [
+ 27,
+ 17
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "fields": [
+ {
+ "finish": [
+ 27,
+ 27
+ ],
+ "name": {
+ "[1]": "x",
+ "finish": [
+ 27,
+ 19
+ ],
+ "start": [
+ 27,
+ 18
+ ],
+ "type": "doc.field.name",
+ "view": "x"
+ },
+ "start": [
+ 27,
+ 18
+ ],
+ "type": "doc.type.field",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 27,
+ 38
+ ],
+ "name": {
+ "[1]": "y",
+ "finish": [
+ 27,
+ 30
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.field.name",
+ "view": "y"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.field",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 27,
+ 39
+ ],
+ "start": [
+ 27,
+ 17
+ ],
+ "type": "doc.type.table",
+ "view": "{ x: number, y: number }"
+ }
+ ],
+ "view": "{ x: number, y: number }"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 27,
+ 39
+ ],
+ "name": "margin",
+ "rawdesc": "The margin of the layout",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "{ x: number, y: number }",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The node to manage the layout of",
+ "extends": {
+ "finish": [
+ 23,
+ 19
+ ],
+ "start": [
+ 23,
+ 15
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 23,
+ 19
+ ],
+ "start": [
+ 23,
+ 15
+ ],
+ "type": "doc.type.name",
+ "view": "node"
+ }
+ ],
+ "view": "node"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 23,
+ 19
+ ],
+ "name": "node",
+ "rawdesc": "The node to manage the layout of",
+ "start": [
+ 23,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "node",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app gained focus",
+ "extends": {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 31,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 31,
+ 34
+ ],
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 31,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 31,
+ 51
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 31,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 31,
+ 55
+ ],
+ "start": [
+ 31,
+ 52
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 31,
+ 55
+ ],
+ "name": "on_focus_gained",
+ "rawdesc": "Called when app gained focus",
+ "start": [
+ 31,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when app lost focus",
+ "extends": {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 30,
+ 48
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 30,
+ 32
+ ],
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 30,
+ 28
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 30,
+ 49
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 30,
+ 24
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 30,
+ 53
+ ],
+ "start": [
+ 30,
+ 50
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 30,
+ 53
+ ],
+ "name": "on_focus_lost",
+ "rawdesc": "Called when app lost focus",
+ "start": [
+ 30,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is triggered",
+ "extends": {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 26,
+ 43
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 26,
+ 27
+ ],
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 26,
+ 23
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 26,
+ 59
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 26,
+ 54
+ ],
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 26,
+ 45
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 26,
+ 73
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 26,
+ 67
+ ],
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 26,
+ 61
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 26,
+ 74
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 26,
+ 19
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 26,
+ 78
+ ],
+ "start": [
+ 26,
+ 75
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 26,
+ 78
+ ],
+ "name": "on_input",
+ "rawdesc": "Called when input event is triggered",
+ "start": [
+ 26,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when input event is consumed before",
+ "extends": {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 27,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 27,
+ 37
+ ],
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 27,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 27,
+ 69
+ ],
+ "name": {
+ "[1]": "action_id",
+ "finish": [
+ 27,
+ 64
+ ],
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action_id"
+ },
+ "start": [
+ 27,
+ 55
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 27,
+ 83
+ ],
+ "name": {
+ "[1]": "action",
+ "finish": [
+ 27,
+ 77
+ ],
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg.name",
+ "view": "action"
+ },
+ "start": [
+ 27,
+ 71
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 27,
+ 84
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 27,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, action_id: hash, action: table)"
+ },
+ {
+ "finish": [
+ 27,
+ 88
+ ],
+ "start": [
+ 27,
+ 85
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 27,
+ 88
+ ],
+ "name": "on_input_interrupt",
+ "rawdesc": "Called when input event is consumed before",
+ "start": [
+ 27,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, action_id: hash, action: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when language is changed",
+ "extends": {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 35,
+ 53
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 35,
+ 37
+ ],
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 35,
+ 33
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 35,
+ 54
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 35,
+ 29
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 35,
+ 58
+ ],
+ "start": [
+ 35,
+ 55
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 35,
+ 58
+ ],
+ "name": "on_language_change",
+ "rawdesc": "Called when language is changed",
+ "start": [
+ 35,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called before update once time after GUI init",
+ "extends": {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 29,
+ 47
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 29,
+ 31
+ ],
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 29,
+ 27
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 29,
+ 48
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 29,
+ 23
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 29,
+ 52
+ ],
+ "start": [
+ 29,
+ 49
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 29,
+ 52
+ ],
+ "name": "on_late_init",
+ "rawdesc": "Called before update once time after GUI init",
+ "start": [
+ 29,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when GUI layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 33,
+ 51
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 33,
+ 35
+ ],
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 33,
+ 31
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 33,
+ 52
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 33,
+ 27
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 33,
+ 56
+ ],
+ "start": [
+ 33,
+ 53
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 33,
+ 56
+ ],
+ "name": "on_layout_change",
+ "rawdesc": "Called when GUI layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when message is received",
+ "extends": {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 28,
+ 45
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 28,
+ 29
+ ],
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 28,
+ 25
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 28,
+ 62
+ ],
+ "name": {
+ "[1]": "message_id",
+ "finish": [
+ 28,
+ 57
+ ],
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message_id"
+ },
+ "start": [
+ 28,
+ 47
+ ],
+ "type": "doc.type.arg",
+ "view": "hash"
+ },
+ {
+ "finish": [
+ 28,
+ 77
+ ],
+ "name": {
+ "[1]": "message",
+ "finish": [
+ 28,
+ 71
+ ],
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg.name",
+ "view": "message"
+ },
+ "start": [
+ 28,
+ 64
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ },
+ {
+ "finish": [
+ 28,
+ 89
+ ],
+ "name": {
+ "[1]": "sender",
+ "finish": [
+ 28,
+ 85
+ ],
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg.name",
+ "view": "sender"
+ },
+ "start": [
+ 28,
+ 79
+ ],
+ "type": "doc.type.arg",
+ "view": "url"
+ }
+ ],
+ "finish": [
+ 28,
+ 90
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 28,
+ 21
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)"
+ },
+ {
+ "finish": [
+ 28,
+ 94
+ ],
+ "start": [
+ 28,
+ 91
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 28,
+ 94
+ ],
+ "name": "on_message",
+ "rawdesc": "Called when message is received",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, message_id: hash, message: table, sender: url)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when component is removed",
+ "extends": {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 25,
+ 44
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 25,
+ 28
+ ],
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 25,
+ 24
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 25,
+ 45
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 25,
+ 20
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 25,
+ 49
+ ],
+ "start": [
+ 25,
+ 46
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 25,
+ 49
+ ],
+ "name": "on_remove",
+ "rawdesc": "Called when component is removed",
+ "start": [
+ 25,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The event triggered when the size of the layout is changed",
+ "extends": {
+ "finish": [
+ 33,
+ 47
+ ],
+ "start": [
+ 33,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 33,
+ 47
+ ],
+ "start": [
+ 33,
+ 26
+ ],
+ "type": "doc.type.name",
+ "view": "event.on_size_changed"
+ }
+ ],
+ "view": "event.on_size_changed"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 33,
+ 47
+ ],
+ "name": "on_size_changed",
+ "rawdesc": "The event triggered when the size of the layout is changed",
+ "start": [
+ 33,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "event.on_size_changed",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when style is changed",
+ "extends": {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 32,
+ 50
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 32,
+ 34
+ ],
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 32,
+ 30
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 32,
+ 64
+ ],
+ "name": {
+ "[1]": "style",
+ "finish": [
+ 32,
+ 57
+ ],
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg.name",
+ "view": "style"
+ },
+ "start": [
+ 32,
+ 52
+ ],
+ "type": "doc.type.arg",
+ "view": "table"
+ }
+ ],
+ "finish": [
+ 32,
+ 65
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 32,
+ 26
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component, style: table)"
+ },
+ {
+ "finish": [
+ 32,
+ 69
+ ],
+ "start": [
+ 32,
+ 66
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component, style: table)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 32,
+ 69
+ ],
+ "name": "on_style_change",
+ "rawdesc": "Called when style is changed",
+ "start": [
+ 32,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component, style: table)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Called when window is resized",
+ "extends": {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "args": [
+ {
+ "finish": [
+ 34,
+ 52
+ ],
+ "name": {
+ "[1]": "self",
+ "finish": [
+ 34,
+ 36
+ ],
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg.name",
+ "view": "self"
+ },
+ "start": [
+ 34,
+ 32
+ ],
+ "type": "doc.type.arg",
+ "view": "druid.component"
+ }
+ ],
+ "finish": [
+ 34,
+ 53
+ ],
+ "returns": {
+ "view": "unknown"
+ },
+ "start": [
+ 34,
+ 28
+ ],
+ "type": "doc.type.function",
+ "view": "fun(self: druid.component)"
+ },
+ {
+ "finish": [
+ 34,
+ 57
+ ],
+ "start": [
+ 34,
+ 54
+ ],
+ "type": "doc.type.name",
+ "view": "nil"
+ }
+ ],
+ "view": "fun(self: druid.component)|nil"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 34,
+ 57
+ ],
+ "name": "on_window_resized",
+ "rawdesc": "Called when window is resized",
+ "start": [
+ 34,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "fun(self: druid.component)|nil",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "The padding of the layout",
+ "extends": {
+ "finish": [
+ 28,
+ 25
+ ],
+ "start": [
+ 28,
+ 18
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 28,
+ 25
+ ],
+ "start": [
+ 28,
+ 18
+ ],
+ "type": "doc.type.name",
+ "view": "vector4"
+ }
+ ],
+ "view": "vector4"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 28,
+ 25
+ ],
+ "name": "padding",
+ "rawdesc": "The padding of the layout",
+ "start": [
+ 28,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "vector4",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 218,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 218,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "desc": "@*return* `self` — Current layout instance",
+ "finish": [
+ 356,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 218,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:refresh_layout()\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 218,
+ 25
+ ],
+ "name": "refresh_layout",
+ "start": [
+ 218,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Remove node from layout\n\n@*param* `node_or_node_id` — node_or_node_id\n\n@*return* `self` — for chaining",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 188,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 188,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "desc": "node_or_node_id",
+ "finish": [
+ 188,
+ 33
+ ],
+ "name": "node_or_node_id",
+ "rawdesc": "node_or_node_id",
+ "start": [
+ 188,
+ 18
+ ],
+ "type": "local",
+ "view": "string|node"
+ }
+ ],
+ "desc": "Remove node from layout\n\n@*param* `node_or_node_id` — node_or_node_id\n\n@*return* `self` — for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Remove node from layout",
+ "returns": [
+ {
+ "desc": "for chaining",
+ "name": "self",
+ "rawdesc": "for chaining",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 188,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:remove(node_or_node_id: string|node)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 188,
+ 17
+ ],
+ "name": "remove",
+ "rawdesc": "Remove node from layout",
+ "start": [
+ 188,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 205,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 205,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ }
+ ],
+ "desc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 208,
+ 3
+ ],
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 205,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:reset_input_priority()\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 205,
+ 31
+ ],
+ "name": "reset_input_priority",
+ "rawdesc": "Reset component input priority to it's default value, that was set in `create` function or `set_input_priority`",
+ "start": [
+ 205,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Last calculated rows data",
+ "extends": {
+ "finish": [
+ 24,
+ 42
+ ],
+ "start": [
+ 24,
+ 20
+ ],
+ "type": "doc.type",
+ "types": [
+ {
+ "finish": [
+ 24,
+ 42
+ ],
+ "start": [
+ 24,
+ 20
+ ],
+ "type": "doc.type.name",
+ "view": "druid.layout.rows_data"
+ }
+ ],
+ "view": "druid.layout.rows_data"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 24,
+ 42
+ ],
+ "name": "rows_data",
+ "rawdesc": "Last calculated rows data",
+ "start": [
+ 24,
+ 10
+ ],
+ "type": "doc.field",
+ "view": "druid.layout.rows_data",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 123,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 123,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ }
+ ],
+ "desc": "@*return* `self` — Current layout instance",
+ "finish": [
+ 127,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 123,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_dirty()\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 123,
+ 20
+ ],
+ "name": "set_dirty",
+ "start": [
+ 123,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 153,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 153,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "finish": [
+ 153,
+ 39
+ ],
+ "name": "is_hug_width",
+ "start": [
+ 153,
+ 27
+ ],
+ "type": "local",
+ "view": "boolean"
+ },
+ {
+ "finish": [
+ 153,
+ 54
+ ],
+ "name": "is_hug_height",
+ "start": [
+ 153,
+ 41
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "@*return* `self` — Current layout instance",
+ "finish": [
+ 159,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 153,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_hug_content(is_hug_width: boolean, is_hug_height: boolean)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 153,
+ 26
+ ],
+ "name": "set_hug_content",
+ "start": [
+ 153,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 223,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 223,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 223,
+ 34
+ ],
+ "name": "state",
+ "start": [
+ 223,
+ 29
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 231,
+ 3
+ ],
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 223,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_enabled(state: boolean)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 223,
+ 28
+ ],
+ "name": "set_input_enabled",
+ "rawdesc": "Set component input state. By default it's enabled.\nIf input is disabled, the component will not receive input events.\nRecursive for all children components.",
+ "start": [
+ 223,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 178,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 178,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 178,
+ 35
+ ],
+ "name": "value",
+ "start": [
+ 178,
+ 30
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "desc": "If true, the reset input priority will return to previous value",
+ "finish": [
+ 178,
+ 49
+ ],
+ "name": "is_temporary",
+ "rawdesc": "If true, the reset input priority will return to previous value",
+ "start": [
+ 178,
+ 37
+ ],
+ "type": "local",
+ "view": "boolean|nil"
+ }
+ ],
+ "desc": "Set component input priority, the bigger number processed first. Default value: 10\n\n@*param* `is_temporary` — If true, the reset input priority will return to previous value\n\n@*return* `self` — The component itself for chaining",
+ "finish": [
+ 200,
+ 3
+ ],
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "returns": [
+ {
+ "desc": "The component itself for chaining",
+ "name": "self",
+ "rawdesc": "The component itself for chaining",
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 178,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_input_priority(value: number, is_temporary: boolean|nil)\n -> self: druid.component"
+ },
+ "file": "/druid/component.lua",
+ "finish": [
+ 178,
+ 29
+ ],
+ "name": "set_input_priority",
+ "rawdesc": "Set component input priority, the bigger number processed first. Default value: 10",
+ "start": [
+ 178,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 132,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 132,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "finish": [
+ 132,
+ 33
+ ],
+ "name": "is_justify",
+ "start": [
+ 132,
+ 23
+ ],
+ "type": "local",
+ "view": "boolean"
+ }
+ ],
+ "desc": "@*return* `self` — Current layout instance",
+ "finish": [
+ 137,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 132,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_justify(is_justify: boolean)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 132,
+ 22
+ ],
+ "name": "set_justify",
+ "start": [
+ 132,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set the margin of the layout\n\n@*param* `margin_x` — The margin x\n\n@*param* `margin_y` — The margin y\n\n@*return* `self` — Current layout instance",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 97,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 97,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "desc": "The margin x",
+ "finish": [
+ 97,
+ 30
+ ],
+ "name": "margin_x",
+ "rawdesc": "The margin x",
+ "start": [
+ 97,
+ 22
+ ],
+ "type": "local",
+ "view": "number|nil"
+ },
+ {
+ "desc": "The margin y",
+ "finish": [
+ 97,
+ 40
+ ],
+ "name": "margin_y",
+ "rawdesc": "The margin y",
+ "start": [
+ 97,
+ 32
+ ],
+ "type": "local",
+ "view": "number|nil"
+ }
+ ],
+ "desc": "Set the margin of the layout\n\n@*param* `margin_x` — The margin x\n\n@*param* `margin_y` — The margin y\n\n@*return* `self` — Current layout instance",
+ "finish": [
+ 103,
+ 3
+ ],
+ "rawdesc": "Set the margin of the layout",
+ "returns": [
+ {
+ "desc": "Current layout instance",
+ "name": "self",
+ "rawdesc": "Current layout instance",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 97,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_margin(margin_x: number|nil, margin_y: number|nil)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 97,
+ 21
+ ],
+ "name": "set_margin",
+ "rawdesc": "Set the margin of the layout",
+ "start": [
+ 97,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "@*param* `node` — The node to set the index of\n\n@*param* `index` — The index to set the node to\n\n@*return* `self` — for chaining",
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 80,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 80,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "desc": "The node to set the index of",
+ "finish": [
+ 80,
+ 30
+ ],
+ "name": "node",
+ "rawdesc": "The node to set the index of",
+ "start": [
+ 80,
+ 26
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "desc": "The index to set the node to",
+ "finish": [
+ 80,
+ 37
+ ],
+ "name": "index",
+ "rawdesc": "The index to set the node to",
+ "start": [
+ 80,
+ 32
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "desc": "@*param* `node` — The node to set the index of\n\n@*param* `index` — The index to set the node to\n\n@*return* `self` — for chaining",
+ "finish": [
+ 90,
+ 3
+ ],
+ "returns": [
+ {
+ "desc": "for chaining",
+ "name": "self",
+ "rawdesc": "for chaining",
+ "type": "function.return",
+ "view": "druid.layout"
+ }
+ ],
+ "start": [
+ 80,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_node_index(node: node, index: number)\n -> self: druid.layout"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 80,
+ 25
+ ],
+ "name": "set_node_index",
+ "start": [
+ 80,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "extends": {
+ "args": [
+ {
+ "desc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "finish": [
+ 481,
+ 8
+ ],
+ "name": "self",
+ "rawdesc": "The component used for managing the layout of nodes, placing them inside the node size with respect to the size and pivot of each node",
+ "start": [
+ 481,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.layout"
+ },
+ {
+ "finish": [
+ 481,
+ 33
+ ],
+ "name": "node",
+ "start": [
+ 481,
+ 29
+ ],
+ "type": "local",
+ "view": "node"
+ },
+ {
+ "finish": [
+ 481,
+ 36
+ ],
+ "name": "x",
+ "start": [
+ 481,
+ 35
+ ],
+ "type": "local",
+ "view": "number"
+ },
+ {
+ "finish": [
+ 481,
+ 39
+ ],
+ "name": "y",
+ "start": [
+ 481,
+ 38
+ ],
+ "type": "local",
+ "view": "number"
+ }
+ ],
+ "finish": [
+ 487,
+ 3
+ ],
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "node"
+ }
+ ],
+ "start": [
+ 481,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.layout:set_node_position(node: node, x: number, y: number)\n -> node"
+ },
+ "file": "/druid/extended/layout.lua",
+ "finish": [
+ 481,
+ 28
+ ],
+ "name": "set_node_position",
+ "start": [
+ 481,
+ 9
+ ],
+ "type": "setmethod",
+ "view": "function",
+ "visible": "public"
+ },
+ {
+ "async": false,
+ "deprecated": false,
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "extends": {
+ "args": [
+ {
+ "finish": [
+ 111,
+ 8
+ ],
+ "name": "self",
+ "start": [
+ 111,
+ 8
+ ],
+ "type": "self",
+ "view": "druid.component"
+ },
+ {
+ "finish": [
+ 111,
+ 26
+ ],
+ "name": "nodes",
+ "start": [
+ 111,
+ 21
+ ],
+ "type": "local",
+ "view": "table"
+ }
+ ],
+ "desc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "finish": [
+ 114,
+ 3
+ ],
+ "rawdesc": "Set current component nodes, returned from `gui.clone_tree` function.",
+ "returns": [
+ {
+ "type": "function.return",
+ "view": "druid.component"
+ }
+ ],
+ "start": [
+ 111,
+ 0
+ ],
+ "type": "function",
+ "view": "(method) druid.component:set_nodes(nodes: table