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)\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": "@*param* `padding_x` — The padding x\n\n@*param* `padding_y` — The padding y\n\n@*param* `padding_z` — The padding z\n\n@*param* `padding_w` — The padding w\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": [ + 111, + 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": [ + 111, + 8 + ], + "type": "self", + "view": "druid.layout" + }, + { + "desc": "The padding x", + "finish": [ + 111, + 32 + ], + "name": "padding_x", + "rawdesc": "The padding x", + "start": [ + 111, + 23 + ], + "type": "local", + "view": "number|nil" + }, + { + "desc": "The padding y", + "finish": [ + 111, + 43 + ], + "name": "padding_y", + "rawdesc": "The padding y", + "start": [ + 111, + 34 + ], + "type": "local", + "view": "number|nil" + }, + { + "desc": "The padding z", + "finish": [ + 111, + 54 + ], + "name": "padding_z", + "rawdesc": "The padding z", + "start": [ + 111, + 45 + ], + "type": "local", + "view": "number|nil" + }, + { + "desc": "The padding w", + "finish": [ + 111, + 65 + ], + "name": "padding_w", + "rawdesc": "The padding w", + "start": [ + 111, + 56 + ], + "type": "local", + "view": "number|nil" + } + ], + "desc": "@*param* `padding_x` — The padding x\n\n@*param* `padding_y` — The padding y\n\n@*param* `padding_z` — The padding z\n\n@*param* `padding_w` — The padding w\n\n@*return* `self` — Current layout instance", + "finish": [ + 119, + 3 + ], + "returns": [ + { + "desc": "Current layout instance", + "name": "self", + "rawdesc": "Current layout instance", + "type": "function.return", + "view": "druid.layout" + } + ], + "start": [ + 111, + 0 + ], + "type": "function", + "view": "(method) druid.layout:set_padding(padding_x: number|nil, padding_y: number|nil, padding_z: number|nil, padding_w: number|nil)\n -> self: druid.layout" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 111, + 22 + ], + "name": "set_padding", + "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": "@*param* `type` — The layout type: \"horizontal\", \"vertical\", \"horizontal_wrap\"\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": [ + 142, + 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": [ + 142, + 8 + ], + "type": "self", + "view": "druid.layout" + }, + { + "desc": "The layout type: \"horizontal\", \"vertical\", \"horizontal_wrap\"", + "finish": [ + 142, + 24 + ], + "name": "type", + "rawdesc": "The layout type: \"horizontal\", \"vertical\", \"horizontal_wrap\"", + "start": [ + 142, + 20 + ], + "type": "local", + "view": "string" + } + ], + "desc": "@*param* `type` — The layout type: \"horizontal\", \"vertical\", \"horizontal_wrap\"\n\n@*return* `self` — Current layout instance", + "finish": [ + 147, + 3 + ], + "returns": [ + { + "desc": "Current layout instance", + "name": "self", + "rawdesc": "Current layout instance", + "type": "function.return", + "view": "druid.layout" + } + ], + "start": [ + 142, + 0 + ], + "type": "function", + "view": "(method) druid.layout:set_type(type: string)\n -> self: druid.layout" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 142, + 19 + ], + "name": "set_type", + "start": [ + 142, + 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": [ + 44, + 36 + ], + "start": [ + 44, + 13 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 44, + 10 + ], + "name": "size", + "start": [ + 44, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 348, + 18 + ], + "start": [ + 348, + 14 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 348, + 11 + ], + "name": "size", + "start": [ + 348, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The type of the layout", + "extends": { + "finish": [ + 29, + 21 + ], + "start": [ + 29, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 29, + 21 + ], + "start": [ + 29, + 15 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 29, + 21 + ], + "name": "type", + "rawdesc": "The type of the layout", + "start": [ + 29, + 10 + ], + "type": "doc.field", + "view": "string", + "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": [ + 62, + 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": [ + 62, + 8 + ], + "type": "self", + "view": "druid.layout" + } + ], + "finish": [ + 68, + 3 + ], + "start": [ + 62, + 0 + ], + "type": "function", + "view": "(method) druid.layout:update()" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 62, + 17 + ], + "name": "update", + "start": [ + 62, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.layout", + "type": "type", + "view": "druid.layout" + }, + { + "defines": [ + { + "desc": "```lua\ndruid.layout.mode:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```", + "finish": [ + 4, + 69 + ], + "rawdesc": "```lua\ndruid.layout.mode:\n | \"horizontal\"\n | \"vertical\"\n | \"horizontal_wrap\"\n```", + "start": [ + 4, + 10 + ], + "type": "doc.alias", + "view": "\"horizontal\"|\"horizontal_wrap\"|\"vertical\"" + } + ], + "fields": [], + "name": "druid.layout.mode", + "type": "type", + "view": "druid.layout.mode" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/extended/layout.lua", + "finish": [ + 9, + 31 + ], + "start": [ + 9, + 10 + ], + "type": "doc.class", + "view": "druid.layout.row_data", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 22 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 22 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 12, + 22 + ], + "name": "count", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 11, + 23 + ], + "start": [ + 11, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 23 + ], + "start": [ + 11, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 11, + 23 + ], + "name": "height", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 22 + ], + "start": [ + 10, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 22 + ], + "start": [ + 10, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 10, + 22 + ], + "name": "width", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.layout.row_data", + "type": "type", + "view": "druid.layout.row_data" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/extended/layout.lua", + "finish": [ + 14, + 32 + ], + "start": [ + 14, + 10 + ], + "type": "doc.class", + "view": "druid.layout.rows_data", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 42 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 42 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 18, + 42 + ], + "name": "nodes_height", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 41 + ], + "start": [ + 17, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 41 + ], + "start": [ + 17, + 22 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 17, + 41 + ], + "name": "nodes_width", + "start": [ + 17, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": ">", + "extends": { + "finish": [ + 19, + 38 + ], + "start": [ + 19, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 38 + ], + "start": [ + 19, + 15 + ], + "type": "doc.type.array", + "view": "druid.layout.row_data[]" + } + ], + "view": "druid.layout.row_data[]" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 19, + 38 + ], + "name": "rows", + "rawdesc": ">", + "start": [ + 19, + 10 + ], + "type": "doc.field", + "view": "druid.layout.row_data[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 29 + ], + "start": [ + 16, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 16, + 29 + ], + "start": [ + 16, + 23 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 16, + 29 + ], + "name": "total_height", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 15, + 28 + ], + "start": [ + 15, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 15, + 28 + ], + "start": [ + 15, + 22 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 15, + 28 + ], + "name": "total_width", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.layout.rows_data", + "type": "type", + "view": "druid.layout.rows_data" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 3, + 22 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.logger", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 5, + 50 + ], + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 5, + 35 + ], + "name": { + "[1]": "message", + "finish": [ + 5, + 27 + ], + "start": [ + 5, + 20 + ], + "type": "doc.type.arg.name", + "view": "message" + }, + "start": [ + 5, + 20 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 5, + 49 + ], + "name": { + "[1]": "context", + "finish": [ + 5, + 44 + ], + "start": [ + 5, + 37 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 5, + 37 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 5, + 50 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 5, + 16 + ], + "type": "doc.type.function", + "view": "fun(message: string, context: any)" + } + ], + "view": "fun(message: string, context: any)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 5, + 50 + ], + "name": "debug", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "fun(message: string, context: any)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 8, + 50 + ], + "start": [ + 8, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 8, + 35 + ], + "name": { + "[1]": "message", + "finish": [ + 8, + 27 + ], + "start": [ + 8, + 20 + ], + "type": "doc.type.arg.name", + "view": "message" + }, + "start": [ + 8, + 20 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 8, + 49 + ], + "name": { + "[1]": "context", + "finish": [ + 8, + 44 + ], + "start": [ + 8, + 37 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 8, + 37 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 8, + 50 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 8, + 16 + ], + "type": "doc.type.function", + "view": "fun(message: string, context: any)" + } + ], + "view": "fun(message: string, context: any)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 8, + 50 + ], + "name": "error", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "fun(message: string, context: any)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 6, + 49 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 6, + 34 + ], + "name": { + "[1]": "message", + "finish": [ + 6, + 26 + ], + "start": [ + 6, + 19 + ], + "type": "doc.type.arg.name", + "view": "message" + }, + "start": [ + 6, + 19 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 6, + 48 + ], + "name": { + "[1]": "context", + "finish": [ + 6, + 43 + ], + "start": [ + 6, + 36 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 6, + 36 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 6, + 49 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 6, + 15 + ], + "type": "doc.type.function", + "view": "fun(message: string, context: any)" + } + ], + "view": "fun(message: string, context: any)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 6, + 49 + ], + "name": "info", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "fun(message: string, context: any)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 50 + ], + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 4, + 35 + ], + "name": { + "[1]": "message", + "finish": [ + 4, + 27 + ], + "start": [ + 4, + 20 + ], + "type": "doc.type.arg.name", + "view": "message" + }, + "start": [ + 4, + 20 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 4, + 49 + ], + "name": { + "[1]": "context", + "finish": [ + 4, + 44 + ], + "start": [ + 4, + 37 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 4, + 37 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 4, + 50 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 4, + 16 + ], + "type": "doc.type.function", + "view": "fun(message: string, context: any)" + } + ], + "view": "fun(message: string, context: any)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 4, + 50 + ], + "name": "trace", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "fun(message: string, context: any)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 49 + ], + "start": [ + 7, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 7, + 34 + ], + "name": { + "[1]": "message", + "finish": [ + 7, + 26 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type.arg.name", + "view": "message" + }, + "start": [ + 7, + 19 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 7, + 48 + ], + "name": { + "[1]": "context", + "finish": [ + 7, + 43 + ], + "start": [ + 7, + 36 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 7, + 36 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 7, + 49 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 7, + 15 + ], + "type": "doc.type.function", + "view": "fun(message: string, context: any)" + } + ], + "view": "fun(message: string, context: any)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 7, + 49 + ], + "name": "warn", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "fun(message: string, context: any)", + "visible": "public" + } + ], + "name": "druid.logger", + "type": "type", + "view": "druid.logger" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 41 + ], + "start": [ + 3, + 29 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 3, + 41 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.node_repeat", + "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": " Start our repeat shader work\n\n@*param* `repeat_x` — X factor\n\n@*param* `repeat_y` — Y factor", + "extends": { + "args": [ + { + "finish": [ + 76, + 8 + ], + "name": "self", + "start": [ + 76, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "desc": "X factor", + "finish": [ + 76, + 27 + ], + "name": "repeat_x", + "rawdesc": "X factor", + "start": [ + 76, + 19 + ], + "type": "local", + "view": "number" + }, + { + "desc": "Y factor", + "finish": [ + 76, + 37 + ], + "name": "repeat_y", + "rawdesc": "Y factor", + "start": [ + 76, + 29 + ], + "type": "local", + "view": "number" + } + ], + "desc": " Start our repeat shader work\n\n@*param* `repeat_x` — X factor\n\n@*param* `repeat_y` — Y factor", + "finish": [ + 100, + 3 + ], + "rawdesc": " Start our repeat shader work", + "start": [ + 76, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:animate(repeat_x: number, repeat_y: number)" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 76, + 18 + ], + "name": "animate", + "rawdesc": " Start our repeat shader work", + "start": [ + 76, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 25 + ], + "start": [ + 4, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 4, + 25 + ], + "start": [ + 4, + 20 + ], + "type": "doc.type.name", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 4, + 25 + ], + "name": "animation", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "table", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 10 + ], + "type": "doc.field", + "view": "druid.instance", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 103, + 8 + ], + "name": "self", + "start": [ + 103, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + } + ], + "finish": [ + 109, + 3 + ], + "start": [ + 103, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:final()" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 103, + 16 + ], + "name": "final", + "start": [ + 103, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 56, + 34 + ], + "name": "callback", + "start": [ + 56, + 26 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 58, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:get_atlas_path(callback: any)" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 56, + 25 + ], + "name": "get_atlas_path", + "start": [ + 56, + 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, + "extends": { + "args": [ + { + "finish": [ + 40, + 8 + ], + "name": "self", + "start": [ + 40, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + } + ], + "finish": [ + 53, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "integer" + }, + { + "type": "function.return", + "view": "integer" + } + ], + "start": [ + 40, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:get_repeat()\n -> integer\n 2. integer" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 40, + 21 + ], + "name": "get_repeat", + "start": [ + 40, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 10, + 20 + ], + "name": "node", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:init(node: any)" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 62, + 8 + ], + "name": "self", + "start": [ + 62, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 62, + 43 + ], + "name": "atlas_path", + "start": [ + 62, + 33 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 71, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 62, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:init_tiling_animation(atlas_path: any)\n -> boolean" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 62, + 32 + ], + "name": "init_tiling_animation", + "start": [ + 62, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 57 + ], + "start": [ + 19, + 19 + ], + "type": "select", + "view": "boolean" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 19, + 16 + ], + "name": "is_inited", + "start": [ + 19, + 2 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 15, + 16 + ], + "start": [ + 15, + 15 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 15, + 12 + ], + "name": "margin", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 5, + 19 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 19 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 5, + 19 + ], + "name": "node", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 28, + 8 + ], + "name": "self", + "start": [ + 28, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 28, + 40 + ], + "name": "node", + "start": [ + 28, + 36 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 28, + 50 + ], + "name": "property", + "start": [ + 28, + 42 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 37, + 3 + ], + "start": [ + 28, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:on_node_property_changed(node: any, property: any)" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 28, + 35 + ], + "name": "on_node_property_changed", + "start": [ + 28, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 6, + 24 + ], + "start": [ + 6, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 24 + ], + "start": [ + 6, + 17 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 6, + 24 + ], + "name": "params", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "vector4", + "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, + "extends": { + "args": [ + { + "finish": [ + 162, + 8 + ], + "name": "self", + "start": [ + 162, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 162, + 30 + ], + "name": "margin_x", + "start": [ + 162, + 22 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 162, + 40 + ], + "name": "margin_y", + "start": [ + 162, + 32 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 167, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.node_repeat" + } + ], + "start": [ + 162, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_margin(margin_x: any, margin_y: any)\n -> druid.node_repeat" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 162, + 21 + ], + "name": "set_margin", + "start": [ + 162, + 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": [ + { + "finish": [ + 154, + 8 + ], + "name": "self", + "start": [ + 154, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 154, + 35 + ], + "name": "offset_perc_x", + "start": [ + 154, + 22 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 154, + 50 + ], + "name": "offset_perc_y", + "start": [ + 154, + 37 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 159, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.node_repeat" + } + ], + "start": [ + 154, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_offset(offset_perc_x: any, offset_perc_y: any)\n -> druid.node_repeat" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 154, + 21 + ], + "name": "set_offset", + "start": [ + 154, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 128, + 8 + ], + "name": "self", + "start": [ + 128, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 128, + 39 + ], + "name": "perspective_x", + "start": [ + 128, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 128, + 54 + ], + "name": "perspective_y", + "start": [ + 128, + 41 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 138, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.node_repeat" + } + ], + "start": [ + 128, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_perpective(perspective_x: any, perspective_y: any)\n -> druid.node_repeat" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 128, + 25 + ], + "name": "set_perpective", + "start": [ + 128, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 141, + 8 + ], + "name": "self", + "start": [ + 141, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 141, + 41 + ], + "name": "offset_x", + "start": [ + 141, + 33 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 141, + 51 + ], + "name": "offset_y", + "start": [ + 141, + 43 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 151, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.node_repeat" + } + ], + "start": [ + 141, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_perpective_offset(offset_x: any, offset_y: any)\n -> druid.node_repeat" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 141, + 32 + ], + "name": "set_perpective_offset", + "start": [ + 141, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Update repeat factor values\n\n@*param* `repeat_x` — X factor\n\n@*param* `repeat_y` — Y factor", + "extends": { + "args": [ + { + "finish": [ + 115, + 8 + ], + "name": "self", + "start": [ + 115, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "desc": "X factor", + "finish": [ + 115, + 30 + ], + "name": "repeat_x", + "rawdesc": "X factor", + "start": [ + 115, + 22 + ], + "type": "local", + "view": "number" + }, + { + "desc": "Y factor", + "finish": [ + 115, + 40 + ], + "name": "repeat_y", + "rawdesc": "Y factor", + "start": [ + 115, + 32 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Update repeat factor values\n\n@*param* `repeat_x` — X factor\n\n@*param* `repeat_y` — Y factor", + "finish": [ + 125, + 3 + ], + "rawdesc": "Update repeat factor values", + "start": [ + 115, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_repeat(repeat_x: number, repeat_y: number)" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 115, + 21 + ], + "name": "set_repeat", + "rawdesc": "Update repeat factor values", + "start": [ + 115, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 171, + 8 + ], + "name": "self", + "start": [ + 171, + 8 + ], + "type": "self", + "view": "druid.node_repeat" + }, + { + "finish": [ + 171, + 26 + ], + "name": "scale", + "start": [ + 171, + 21 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 185, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.node_repeat" + } + ], + "start": [ + 171, + 0 + ], + "type": "function", + "view": "(method) druid.node_repeat:set_scale(scale: number)\n -> druid.node_repeat" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 171, + 20 + ], + "name": "set_scale", + "start": [ + 171, + 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, + "extends": { + "finish": [ + 7, + 21 + ], + "start": [ + 7, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 21 + ], + "start": [ + 7, + 15 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/widget/node_repeat/node_repeat.lua", + "finish": [ + 7, + 21 + ], + "name": "time", + "start": [ + 7, + 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.node_repeat", + "type": "type", + "view": "druid.node_repeat" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "extends": [ + { + "finish": [ + 9, + 41 + ], + "start": [ + 9, + 26 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/extended/progress.lua", + "finish": [ + 9, + 41 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 9, + 10 + ], + "type": "doc.class", + "view": "druid.progress", + "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": "@*param* `from` — The start value\n\n@*param* `to` — The end value\n\n@*param* `exactly` — The exact value", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 171, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 171, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "The start value", + "finish": [ + 171, + 28 + ], + "name": "from", + "rawdesc": "The start value", + "start": [ + 171, + 24 + ], + "type": "local", + "view": "number" + }, + { + "desc": "The end value", + "finish": [ + 171, + 32 + ], + "name": "to", + "rawdesc": "The end value", + "start": [ + 171, + 30 + ], + "type": "local", + "view": "number" + }, + { + "desc": "The exact value", + "finish": [ + 171, + 41 + ], + "name": "exactly", + "rawdesc": "The exact value", + "start": [ + 171, + 34 + ], + "type": "local", + "view": "number|nil" + } + ], + "desc": "@*param* `from` — The start value\n\n@*param* `to` — The end value\n\n@*param* `exactly` — The exact value", + "finish": [ + 190, + 3 + ], + "start": [ + 171, + 0 + ], + "type": "function", + "view": "(method) druid.progress:_check_steps(from: number, to: number, exactly: number|nil)" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 171, + 23 + ], + "name": "_check_steps", + "start": [ + 171, + 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": [ + 27, + 35 + ], + "start": [ + 27, + 20 + ], + "type": "binary", + "view": "number" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 27, + 17 + ], + "name": "_init_value", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "number", + "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, + "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* `set_to` — The value to set the progress bar to", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 195, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 195, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "The value to set the progress bar to", + "finish": [ + 195, + 29 + ], + "name": "set_to", + "rawdesc": "The value to set the progress bar to", + "start": [ + 195, + 23 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 195, + 40 + ], + "name": "is_silent", + "start": [ + 195, + 31 + ], + "type": "local", + "view": "any" + } + ], + "desc": "@*param* `set_to` — The value to set the progress bar to", + "finish": [ + 231, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 195, + 0 + ], + "type": "function", + "view": "(method) druid.progress:_set_bar_to(set_to: number, is_silent: any)\n -> druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 195, + 22 + ], + "name": "_set_bar_to", + "start": [ + 195, + 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": "Empty the progress bar\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 98, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 98, + 8 + ], + "type": "self", + "view": "druid.progress" + } + ], + "desc": "Empty the progress bar\n\n@*return* `self` — Current progress instance", + "finish": [ + 102, + 3 + ], + "rawdesc": "Empty the progress bar", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 98, + 0 + ], + "type": "function", + "view": "(method) druid.progress:empty()\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 98, + 16 + ], + "name": "empty", + "rawdesc": "Empty the progress bar", + "start": [ + 98, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Fill the progress bar\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 89, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 89, + 8 + ], + "type": "self", + "view": "druid.progress" + } + ], + "desc": "Fill the progress bar\n\n@*return* `self` — Current progress instance", + "finish": [ + 93, + 3 + ], + "rawdesc": "Fill the progress bar", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 89, + 0 + ], + "type": "function", + "view": "(method) druid.progress:fill()\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 89, + 15 + ], + "name": "fill", + "rawdesc": "Fill the progress bar", + "start": [ + 89, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return the current value of the progress bar\n\n@*return* `value` — The current value of the progress bar", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 118, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 118, + 8 + ], + "type": "self", + "view": "druid.progress" + } + ], + "desc": "Return the current value of the progress bar\n\n@*return* `value` — The current value of the progress bar", + "finish": [ + 120, + 3 + ], + "rawdesc": "Return the current value of the progress bar", + "returns": [ + { + "desc": "The current value of the progress bar", + "name": "value", + "rawdesc": "The current value of the progress bar", + "type": "function.return", + "view": "number" + } + ], + "start": [ + 118, + 0 + ], + "type": "function", + "view": "(method) druid.progress:get()\n -> value: number" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 118, + 14 + ], + "name": "get", + "rawdesc": "Return the current value of the progress bar", + "start": [ + 118, + 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` — Node name or GUI Node itself.\n\n@*param* `key` — Progress bar direction: \"x\" or \"y\"\n\n@*param* `init_value` — Initial value of progress bar. Default: 1", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 21, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 21, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "Node name or GUI Node itself.", + "finish": [ + 21, + 20 + ], + "name": "node", + "rawdesc": "Node name or GUI Node itself.", + "start": [ + 21, + 16 + ], + "type": "local", + "view": "string|node" + }, + { + "desc": "Progress bar direction: \"x\" or \"y\"", + "finish": [ + 21, + 25 + ], + "name": "key", + "rawdesc": "Progress bar direction: \"x\" or \"y\"", + "start": [ + 21, + 22 + ], + "type": "local", + "view": "string" + }, + { + "desc": "Initial value of progress bar. Default: 1", + "finish": [ + 21, + 37 + ], + "name": "init_value", + "rawdesc": "Initial value of progress bar. Default: 1", + "start": [ + 21, + 27 + ], + "type": "local", + "view": "number|nil" + } + ], + "desc": "@*param* `node` — Node name or GUI Node itself.\n\n@*param* `key` — Progress bar direction: \"x\" or \"y\"\n\n@*param* `init_value` — Initial value of progress bar. Default: 1", + "finish": [ + 44, + 3 + ], + "start": [ + 21, + 0 + ], + "type": "function", + "view": "(method) druid.progress:init(node: string|node, key: string, init_value: number|nil)" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 21, + 15 + ], + "name": "init", + "start": [ + 21, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 20 + ], + "start": [ + 13, + 14 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 20 + ], + "start": [ + 13, + 14 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 13, + 20 + ], + "name": "key", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 35 + ], + "start": [ + 33, + 19 + ], + "type": "getfield", + "view": "number" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 33, + 16 + ], + "name": "last_value", + "start": [ + 33, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "The value to set the progress bar to", + "finish": [ + 198, + 25 + ], + "rawdesc": "The value to set the progress bar to", + "start": [ + 198, + 19 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 198, + 16 + ], + "name": "last_value", + "start": [ + 198, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 31, + 40 + ], + "start": [ + 31, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 31, + 14 + ], + "name": "max_size", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 19 + ], + "start": [ + 10, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 19 + ], + "start": [ + 10, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 10, + 19 + ], + "name": "node", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 11, + 25 + ], + "start": [ + 11, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 25 + ], + "start": [ + 11, + 20 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 11, + 25 + ], + "name": "on_change", + "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, + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 56, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.progress" + } + ], + "finish": [ + 58, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.progress:on_layout_change()" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 56, + 27 + ], + "name": "on_layout_change", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "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 to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 61, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 61, + 8 + ], + "type": "self", + "view": "druid.progress" + } + ], + "finish": [ + 63, + 3 + ], + "start": [ + 61, + 0 + ], + "type": "function", + "view": "(method) druid.progress:on_remove()" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 61, + 20 + ], + "name": "on_remove", + "start": [ + 61, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 48, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 48, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "finish": [ + 48, + 32 + ], + "name": "style", + "start": [ + 48, + 27 + ], + "type": "local", + "view": "druid.progress.style" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 48, + 0 + ], + "type": "function", + "view": "(method) druid.progress:on_style_change(style: druid.progress.style)" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 48, + 26 + ], + "name": "on_style_change", + "start": [ + 48, + 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, + "extends": { + "finish": [ + 14, + 19 + ], + "start": [ + 14, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 19 + ], + "start": [ + 14, + 15 + ], + "type": "doc.type.name", + "view": "hash" + } + ], + "view": "hash" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 14, + 19 + ], + "name": "prop", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "hash", + "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, + "extends": { + "finish": [ + 29, + 38 + ], + "start": [ + 29, + 14 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 29, + 11 + ], + "name": "scale", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "unknown", + "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 progress bar max node size\n\n@*param* `max_size` — The new node maximum (full) size\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 159, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 159, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "The new node maximum (full) size", + "finish": [ + 159, + 32 + ], + "name": "max_size", + "rawdesc": "The new node maximum (full) size", + "start": [ + 159, + 24 + ], + "type": "local", + "view": "vector3" + } + ], + "desc": "Set progress bar max node size\n\n@*param* `max_size` — The new node maximum (full) size\n\n@*return* `self` — Current progress instance", + "finish": [ + 164, + 3 + ], + "rawdesc": "Set progress bar max node size", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 159, + 0 + ], + "type": "function", + "view": "(method) druid.progress:set_max_size(max_size: vector3)\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 159, + 23 + ], + "name": "set_max_size", + "rawdesc": "Set progress bar max node size", + "start": [ + 159, + 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 points on progress bar to fire the callback\n\n@*param* `steps` — Array of progress bar values\n\n@*param* `callback` — Callback on intersect step value\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 127, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 127, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "Array of progress bar values", + "finish": [ + 127, + 26 + ], + "name": "steps", + "rawdesc": "Array of progress bar values", + "start": [ + 127, + 21 + ], + "type": "local", + "view": "number[]" + }, + { + "desc": "Callback on intersect step value", + "finish": [ + 127, + 36 + ], + "name": "callback", + "rawdesc": "Callback on intersect step value", + "start": [ + 127, + 28 + ], + "type": "local", + "view": "function" + } + ], + "desc": "Set points on progress bar to fire the callback\n\n@*param* `steps` — Array of progress bar values\n\n@*param* `callback` — Callback on intersect step value\n\n@*return* `self` — Current progress instance", + "finish": [ + 132, + 3 + ], + "rawdesc": "Set points on progress bar to fire the callback", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 127, + 0 + ], + "type": "function", + "view": "(method) druid.progress:set_steps(steps: number[], callback: function)\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 127, + 20 + ], + "name": "set_steps", + "rawdesc": "Set points on progress bar to fire the callback", + "start": [ + 127, + 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": "Instant fill progress bar to value\n\n@*param* `to` — Progress bar value, from 0 to 1\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 108, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 108, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "Progress bar value, from 0 to 1", + "finish": [ + 108, + 20 + ], + "name": "to", + "rawdesc": "Progress bar value, from 0 to 1", + "start": [ + 108, + 18 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Instant fill progress bar to value\n\n@*param* `to` — Progress bar value, from 0 to 1\n\n@*return* `self` — Current progress instance", + "finish": [ + 113, + 3 + ], + "rawdesc": "Instant fill progress bar to value", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 108, + 0 + ], + "type": "function", + "view": "(method) druid.progress:set_to(to: number)\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 108, + 17 + ], + "name": "set_to", + "rawdesc": "Instant fill progress bar to value", + "start": [ + 108, + 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": [ + 30, + 36 + ], + "start": [ + 30, + 13 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 30, + 10 + ], + "name": "size", + "start": [ + 30, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 39 + ], + "start": [ + 32, + 14 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 32, + 11 + ], + "name": "slice", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 2 + ], + "start": [ + 35, + 19 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 35, + 16 + ], + "name": "slice_size", + "start": [ + 35, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Callback on intersect step value", + "finish": [ + 129, + 30 + ], + "rawdesc": "Callback on intersect step value", + "start": [ + 129, + 22 + ], + "type": "getlocal", + "view": "function" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 129, + 19 + ], + "name": "step_callback", + "start": [ + 129, + 1 + ], + "type": "setfield", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Array of progress bar values", + "finish": [ + 128, + 19 + ], + "rawdesc": "Array of progress bar values", + "start": [ + 128, + 14 + ], + "type": "getlocal", + "view": "number[]" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 128, + 11 + ], + "name": "steps", + "start": [ + 128, + 1 + ], + "type": "setfield", + "view": "number[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 36 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 36 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type.name", + "view": "druid.progress.style" + } + ], + "view": "druid.progress.style" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 12, + 36 + ], + "name": "style", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "druid.progress.style", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 81, + 20 + ], + "start": [ + 81, + 17 + ], + "type": "nil", + "view": "nil" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 81, + 14 + ], + "name": "target", + "start": [ + 81, + 3 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 144, + 21 + ], + "start": [ + 144, + 16 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 144, + 13 + ], + "name": "target", + "start": [ + 144, + 2 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Callback on animation ends", + "finish": [ + 145, + 33 + ], + "rawdesc": "Callback on animation ends", + "start": [ + 145, + 25 + ], + "type": "getlocal", + "view": "function|nil" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 145, + 22 + ], + "name": "target_callback", + "start": [ + 145, + 2 + ], + "type": "setfield", + "view": "function|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Start animation of a progress bar\n\n@*param* `to` — value between 0..1\n\n@*param* `callback` — Callback on animation ends\n\n@*return* `self` — Current progress instance", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 139, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 139, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "value between 0..1", + "finish": [ + 139, + 16 + ], + "name": "to", + "rawdesc": "value between 0..1", + "start": [ + 139, + 14 + ], + "type": "local", + "view": "number" + }, + { + "desc": "Callback on animation ends", + "finish": [ + 139, + 26 + ], + "name": "callback", + "rawdesc": "Callback on animation ends", + "start": [ + 139, + 18 + ], + "type": "local", + "view": "function|nil" + } + ], + "desc": "Start animation of a progress bar\n\n@*param* `to` — value between 0..1\n\n@*param* `callback` — Callback on animation ends\n\n@*return* `self` — Current progress instance", + "finish": [ + 153, + 3 + ], + "rawdesc": "Start animation of a progress bar", + "returns": [ + { + "desc": "Current progress instance", + "name": "self", + "rawdesc": "Current progress instance", + "type": "function.return", + "view": "druid.progress" + } + ], + "start": [ + 139, + 0 + ], + "type": "function", + "view": "(method) druid.progress:to(to: number, callback: function|nil)\n -> self: druid.progress" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 139, + 13 + ], + "name": "to", + "rawdesc": "Start animation of a progress bar", + "start": [ + 139, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "@*param* `dt` — Delta time", + "extends": { + "args": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 67, + 8 + ], + "name": "self", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 67, + 8 + ], + "type": "self", + "view": "druid.progress" + }, + { + "desc": "Delta time", + "finish": [ + 67, + 20 + ], + "name": "dt", + "rawdesc": "Delta time", + "start": [ + 67, + 18 + ], + "type": "local", + "view": "number" + } + ], + "desc": "@*param* `dt` — Delta time", + "finish": [ + 84, + 3 + ], + "start": [ + 67, + 0 + ], + "type": "function", + "view": "(method) druid.progress:update(dt: number)" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 67, + 17 + ], + "name": "update", + "start": [ + 67, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.progress", + "type": "type", + "view": "druid.progress" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/extended/progress.lua", + "finish": [ + 4, + 30 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "druid.progress.style", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Minimum step to fill progress bar. Default: 0.005", + "extends": { + "finish": [ + 6, + 30 + ], + "start": [ + 6, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 26 + ], + "start": [ + 6, + 20 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 6, + 30 + ], + "start": [ + 6, + 27 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 6, + 30 + ], + "name": "MIN_DELTA", + "rawdesc": "Minimum step to fill progress bar. Default: 0.005", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Progress bas fill rate. More -> faster. Default: 5", + "extends": { + "finish": [ + 5, + 26 + ], + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 22 + ], + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 5, + 26 + ], + "start": [ + 5, + 23 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/extended/progress.lua", + "finish": [ + 5, + 26 + ], + "name": "SPEED", + "rawdesc": "Progress bas fill rate. More -> faster. Default: 5", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + } + ], + "name": "druid.progress.style", + "type": "type", + "view": "druid.progress.style" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": [ + { + "finish": [ + 7, + 43 + ], + "start": [ + 7, + 28 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 7, + 43 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 7, + 10 + ], + "type": "doc.class", + "view": "druid.rich_input", + "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": [ + 163, + 2 + ], + "start": [ + 160, + 25 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 160, + 22 + ], + "name": "_last_touch_info", + "start": [ + 160, + 1 + ], + "type": "setfield", + "view": "table", + "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": "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 cursor node", + "extends": { + "finish": [ + 10, + 21 + ], + "start": [ + 10, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 21 + ], + "start": [ + 10, + 17 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 10, + 21 + ], + "name": "cursor", + "rawdesc": "The cursor node", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The position of the cursor", + "extends": { + "finish": [ + 12, + 33 + ], + "start": [ + 12, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 33 + ], + "start": [ + 12, + 26 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 12, + 33 + ], + "name": "cursor_position", + "rawdesc": "The position of the cursor", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The cursor text node", + "extends": { + "finish": [ + 11, + 26 + ], + "start": [ + 11, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 26 + ], + "start": [ + 11, + 22 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 11, + 26 + ], + "name": "cursor_text", + "rawdesc": "The cursor text node", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "A component that allows you to subscribe to drag events over a node", + "extends": { + "desc": "A component that allows you to subscribe to drag events over a node", + "finish": [ + 174, + 60 + ], + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 174, + 13 + ], + "type": "select", + "view": "druid.drag" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 174, + 10 + ], + "name": "drag", + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 174, + 1 + ], + "type": "setfield", + "view": "druid.drag", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 157, + 45 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 157, + 14 + ], + "type": "select", + "view": "druid.instance" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 157, + 11 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 157, + 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": "Set input field text", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 264, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 264, + 8 + ], + "type": "self", + "view": "druid.rich_input" + } + ], + "desc": "Set input field text", + "finish": [ + 266, + 3 + ], + "rawdesc": "Set input field text", + "returns": [ + { + "type": "function.return", + "view": "string" + } + ], + "start": [ + 264, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:get_text()\n -> string" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 264, + 19 + ], + "name": "get_text", + "rawdesc": "Set input field text", + "start": [ + 264, + 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* `template` — The template string name\n\n@*param* `nodes` — Nodes table from gui.clone_tree", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 156, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 156, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "desc": "The template string name", + "finish": [ + 156, + 24 + ], + "name": "template", + "rawdesc": "The template string name", + "start": [ + 156, + 16 + ], + "type": "local", + "view": "string" + }, + { + "desc": "Nodes table from gui.clone_tree", + "finish": [ + 156, + 31 + ], + "name": "nodes", + "rawdesc": "Nodes table from gui.clone_tree", + "start": [ + 156, + 26 + ], + "type": "local", + "view": "table" + } + ], + "desc": "@*param* `template` — The template string name\n\n@*param* `nodes` — Nodes table from gui.clone_tree", + "finish": [ + 190, + 3 + ], + "start": [ + 156, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:init(template: string, nodes: table)" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 156, + 15 + ], + "name": "init", + "start": [ + 156, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The input component", + "extends": { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 9, + 27 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 9, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 9, + 27 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 9, + 16 + ], + "type": "doc.type.name", + "view": "druid.input" + } + ], + "view": "druid.input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 9, + 27 + ], + "name": "input", + "rawdesc": "The input component", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 168, + 70 + ], + "start": [ + 168, + 32 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 168, + 29 + ], + "name": "is_button_input_enabled", + "start": [ + 168, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 165, + 22 + ], + "start": [ + 165, + 17 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 165, + 14 + ], + "name": "is_lctrl", + "start": [ + 165, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 204, + 23 + ], + "start": [ + 204, + 19 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 204, + 16 + ], + "name": "is_lctrl", + "start": [ + 204, + 3 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 206, + 24 + ], + "start": [ + 206, + 19 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 206, + 16 + ], + "name": "is_lctrl", + "start": [ + 206, + 3 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 164, + 23 + ], + "start": [ + 164, + 18 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 164, + 15 + ], + "name": "is_lshift", + "start": [ + 164, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 196, + 24 + ], + "start": [ + 196, + 20 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 196, + 17 + ], + "name": "is_lshift", + "start": [ + 196, + 3 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 198, + 25 + ], + "start": [ + 198, + 20 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 198, + 17 + ], + "name": "is_lshift", + "start": [ + 198, + 3 + ], + "type": "setfield", + "view": "boolean", + "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, + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 193, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 193, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "finish": [ + 193, + 29 + ], + "name": "action_id", + "start": [ + 193, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 193, + 37 + ], + "name": "action", + "start": [ + 193, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 221, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 193, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:on_input(action_id: any, action: any)\n -> boolean" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 193, + 19 + ], + "name": "on_input", + "start": [ + 193, + 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, + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 180, + 59 + ], + "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": [ + 180, + 20 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 180, + 17 + ], + "name": "placeholder", + "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": [ + 180, + 1 + ], + "type": "setfield", + "view": "druid.text", + "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 root node of the rich input", + "extends": { + "finish": [ + 8, + 19 + ], + "start": [ + 8, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 19 + ], + "start": [ + 8, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 8, + 19 + ], + "name": "root", + "rawdesc": "The root node of the rich input", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Select input field\n\n@*return* `self` — Current instance", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 235, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 235, + 8 + ], + "type": "self", + "view": "druid.rich_input" + } + ], + "desc": "Select input field\n\n@*return* `self` — Current instance", + "finish": [ + 238, + 3 + ], + "rawdesc": "Select input field", + "returns": [ + { + "desc": "Current instance", + "name": "self", + "rawdesc": "Current instance", + "type": "function.return", + "view": "druid.rich_input" + } + ], + "start": [ + 235, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:select()\n -> self: druid.rich_input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 235, + 17 + ], + "name": "select", + "rawdesc": "Select input field", + "start": [ + 235, + 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 instance", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 274, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 274, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "desc": "Regulax exp. for validate user input", + "finish": [ + 274, + 44 + ], + "name": "characters", + "rawdesc": "Regulax exp. for validate user input", + "start": [ + 274, + 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 instance", + "finish": [ + 278, + 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 instance", + "name": "self", + "rawdesc": "Current instance", + "type": "function.return", + "view": "druid.rich_input" + } + ], + "start": [ + 274, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:set_allowed_characters(characters: string)\n -> self: druid.rich_input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 274, + 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": [ + 274, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set input field font\n\n@*param* `font` — The font hash\n\n@*return* `self` — Current instance", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 255, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 255, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "desc": "The font hash", + "finish": [ + 255, + 24 + ], + "name": "font", + "rawdesc": "The font hash", + "start": [ + 255, + 20 + ], + "type": "local", + "view": "hash" + } + ], + "desc": "Set input field font\n\n@*param* `font` — The font hash\n\n@*return* `self` — Current instance", + "finish": [ + 260, + 3 + ], + "rawdesc": "Set input field font", + "returns": [ + { + "desc": "Current instance", + "name": "self", + "rawdesc": "Current instance", + "type": "function.return", + "view": "druid.rich_input" + } + ], + "start": [ + 255, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:set_font(font: hash)\n -> self: druid.rich_input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 255, + 19 + ], + "name": "set_font", + "rawdesc": "Set input field font", + "start": [ + 255, + 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 placeholder text\n\n@*param* `placeholder_text` — The placeholder text\n\n@*return* `self` — Current instance", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 227, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 227, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "desc": "The placeholder text", + "finish": [ + 227, + 43 + ], + "name": "placeholder_text", + "rawdesc": "The placeholder text", + "start": [ + 227, + 27 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Set placeholder text\n\n@*param* `placeholder_text` — The placeholder text\n\n@*return* `self` — Current instance", + "finish": [ + 230, + 3 + ], + "rawdesc": "Set placeholder text", + "returns": [ + { + "desc": "Current instance", + "name": "self", + "rawdesc": "Current instance", + "type": "function.return", + "view": "druid.rich_input" + } + ], + "start": [ + 227, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:set_placeholder(placeholder_text: string)\n -> self: druid.rich_input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 227, + 26 + ], + "name": "set_placeholder", + "rawdesc": "Set placeholder text", + "start": [ + 227, + 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 input field text\n\n@*param* `text` — The input text\n\n@*return* `self` — Current instance", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 244, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 244, + 8 + ], + "type": "self", + "view": "druid.rich_input" + }, + { + "desc": "The input text", + "finish": [ + 244, + 24 + ], + "name": "text", + "rawdesc": "The input text", + "start": [ + 244, + 20 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Set input field text\n\n@*param* `text` — The input text\n\n@*return* `self` — Current instance", + "finish": [ + 249, + 3 + ], + "rawdesc": "Set input field text", + "returns": [ + { + "desc": "Current instance", + "name": "self", + "rawdesc": "Current instance", + "type": "function.return", + "view": "druid.rich_input" + } + ], + "start": [ + 244, + 0 + ], + "type": "function", + "view": "(method) druid.rich_input:set_text(text: string)\n -> self: druid.rich_input" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 244, + 19 + ], + "name": "set_text", + "rawdesc": "Set input field text", + "start": [ + 244, + 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": [ + 181, + 60 + ], + "start": [ + 181, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/custom/rich_input/rich_input.lua", + "finish": [ + 181, + 19 + ], + "name": "text_position", + "start": [ + 181, + 1 + ], + "type": "setfield", + "view": "unknown", + "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.rich_input", + "type": "type", + "view": "druid.rich_input" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": [ + { + "finish": [ + 68, + 42 + ], + "start": [ + 68, + 27 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 68, + 42 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 68, + 10 + ], + "type": "doc.class", + "view": "druid.rich_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* `settings` — The settings of the rich text, they are created based on the root node on the GUI scene", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 203, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 203, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "desc": "@*return* `settings` — The settings of the rich text, they are created based on the root node on the GUI scene", + "finish": [ + 236, + 3 + ], + "returns": [ + { + "desc": "The settings of the rich text, they are created based on the root node on the GUI scene", + "name": "settings", + "rawdesc": "The settings of the rich text, they are created based on the root node on the GUI scene", + "type": "function.return", + "view": "table" + } + ], + "start": [ + 203, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:_create_settings()\n -> settings: table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 203, + 27 + ], + "name": "_create_settings", + "start": [ + 203, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 208, + 28 + ], + "start": [ + 208, + 23 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 208, + 20 + ], + "name": "_default_scale", + "start": [ + 208, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 207, + 31 + ], + "start": [ + 207, + 22 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 207, + 19 + ], + "name": "_default_size", + "start": [ + 207, + 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, + "desc": "The last value of the rich text", + "extends": { + "finish": [ + 71, + 36 + ], + "start": [ + 71, + 30 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 71, + 36 + ], + "start": [ + 71, + 30 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 71, + 36 + ], + "name": "_last_value", + "rawdesc": "The last value of the rich text", + "start": [ + 71, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 144, + 34 + ], + "start": [ + 144, + 22 + ], + "type": "getlocal", + "view": "druid.rich_text.lines_metrics" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 144, + 19 + ], + "name": "_line_metrics", + "start": [ + 144, + 1 + ], + "type": "setfield", + "view": "druid.rich_text.lines_metrics", + "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": "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": "The settings of the rich text", + "extends": { + "finish": [ + 72, + 33 + ], + "start": [ + 72, + 28 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 72, + 33 + ], + "start": [ + 72, + 28 + ], + "type": "doc.type.name", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 72, + 33 + ], + "name": "_settings", + "rawdesc": "The settings of the rich text", + "start": [ + 72, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 143, + 20 + ], + "start": [ + 143, + 15 + ], + "type": "getlocal", + "view": "druid.rich_text.word[]" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 143, + 12 + ], + "name": "_words", + "start": [ + 143, + 1 + ], + "type": "setfield", + "view": "druid.rich_text.word[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 169, + 19 + ], + "start": [ + 169, + 16 + ], + "type": "nil", + "view": "nil" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 169, + 13 + ], + "name": "_words", + "start": [ + 169, + 2 + ], + "type": "setfield", + "view": "druid.rich_text.word[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Clear all created words.", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 166, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 166, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "desc": "Clear all created words.", + "finish": [ + 172, + 3 + ], + "rawdesc": "Clear all created words.", + "start": [ + 166, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:clear()" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 166, + 16 + ], + "name": "clear", + "rawdesc": "Clear all created words.", + "start": [ + 166, + 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": "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 the current line metrics\n\n@*return* `lines_metrics` — The line metrics of the rich text", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 196, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 196, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "desc": "Get the current line metrics\n\n@*return* `lines_metrics` — The line metrics of the rich text", + "finish": [ + 198, + 3 + ], + "rawdesc": "Get the current line metrics", + "returns": [ + { + "desc": "The line metrics of the rich text", + "name": "lines_metrics", + "rawdesc": "The line metrics of the rich text", + "type": "function.return", + "view": "druid.rich_text.lines_metrics" + } + ], + "start": [ + 196, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:get_line_metric()\n -> lines_metrics: druid.rich_text.lines_metrics" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 196, + 26 + ], + "name": "get_line_metric", + "rawdesc": "Get the current line metrics", + "start": [ + 196, + 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 the current text of the rich text\n\n@*return* `text` — The current text of the rich text", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 152, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 152, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "desc": "Get the current text of the rich text\n\n@*return* `text` — The current text of the rich text", + "finish": [ + 154, + 3 + ], + "rawdesc": "Get the current text of the rich text", + "returns": [ + { + "desc": "The current text of the rich text", + "name": "text", + "rawdesc": "The current text of the rich text", + "type": "function.return", + "view": "string" + } + ], + "start": [ + 152, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:get_text()\n -> text: string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 152, + 19 + ], + "name": "get_text", + "rawdesc": "Get the current text of the rich text", + "start": [ + 152, + 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": "Get all current created words, each word is a table that contains the information about the word", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 189, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 189, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "desc": "Get all current created words, each word is a table that contains the information about the word", + "finish": [ + 191, + 3 + ], + "rawdesc": "Get all current created words, each word is a table that contains the information about the word", + "returns": [ + { + "type": "function.return", + "view": "druid.rich_text.word[]" + } + ], + "start": [ + 189, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:get_words()\n -> druid.rich_text.word[]" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 189, + 20 + ], + "name": "get_words", + "rawdesc": "Get all current created words, each word is a table that contains the information about the word", + "start": [ + 189, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "@*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)", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 78, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 78, + 8 + ], + "type": "self", + "view": "druid.rich_text" + }, + { + "desc": "The text node to make Rich Text", + "finish": [ + 78, + 25 + ], + "name": "text_node", + "rawdesc": "The text node to make Rich Text", + "start": [ + 78, + 16 + ], + "type": "local", + "view": "string|node" + }, + { + "desc": "The initial text value. Default will be gui.get_text(text_node)", + "finish": [ + 78, + 32 + ], + "name": "value", + "rawdesc": "The initial text value. Default will be gui.get_text(text_node)", + "start": [ + 78, + 27 + ], + "type": "local", + "view": "string|nil" + } + ], + "desc": "@*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)", + "finish": [ + 90, + 3 + ], + "start": [ + 78, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:init(text_node: string|node, value: string|nil)" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 78, + 15 + ], + "name": "init", + "start": [ + 78, + 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, + "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 that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 94, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 94, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "finish": [ + 98, + 3 + ], + "start": [ + 94, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:on_layout_change()" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 94, + 27 + ], + "name": "on_layout_change", + "start": [ + 94, + 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, + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 158, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 158, + 8 + ], + "type": "self", + "view": "druid.rich_text" + } + ], + "finish": [ + 162, + 3 + ], + "start": [ + 158, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:on_remove()" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 158, + 20 + ], + "name": "on_remove", + "start": [ + 158, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 103, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 103, + 8 + ], + "type": "self", + "view": "druid.rich_text" + }, + { + "finish": [ + 103, + 32 + ], + "name": "style", + "start": [ + 103, + 27 + ], + "type": "local", + "view": "druid.rich_text.style" + } + ], + "finish": [ + 109, + 3 + ], + "start": [ + 103, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:on_style_change(style: druid.rich_text.style)" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 103, + 26 + ], + "name": "on_style_change", + "start": [ + 103, + 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": "The root node of the rich text", + "extends": { + "finish": [ + 69, + 19 + ], + "start": [ + 69, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 69, + 19 + ], + "start": [ + 69, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 69, + 19 + ], + "name": "root", + "rawdesc": "The root node of the rich text", + "start": [ + 69, + 10 + ], + "type": "doc.field", + "view": "node", + "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 text for Rich Text\n\t\trich_text:set_text(\"<color=red>Foobar</color>\")\n\t\trich_text:set_text(\"<color=1.0,0,0,1.0>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000ff>Foobar</color>\")\n\t\trich_text:set_text(\"<shadow=red>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=1.0,0,0,1.0>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000ff>Foobar</shadow>\")\n\t\trich_text:set_text(\"<outline=red>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=1.0,0,0,1.0>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000ff>Foobar</outline>\")\n\t\trich_text:set_text(\"<font=MyCoolFont>Foobar</font>\")\n\t\trich_text:set_text(\"<size=2>Twice as large</size>\")\n\t\trich_text:set_text(\"<br/>Insert a line break\")\n\t\trich_text:set_text(\"<nobr>Prevent the text from breaking\")\n\t\trich_text:set_text(\"<img=texture:image>Display image\")\n\t\trich_text:set_text(\"<img=texture:image,size>Display image with size\")\n\t\trich_text:set_text(\"<img=texture:image,width,height>Display image with width and height\")\n\n@*param* `text` — The text to set", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 135, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 135, + 8 + ], + "type": "self", + "view": "druid.rich_text" + }, + { + "desc": "The text to set", + "finish": [ + 135, + 24 + ], + "name": "text", + "rawdesc": "The text to set", + "start": [ + 135, + 20 + ], + "type": "local", + "view": "string|nil" + } + ], + "desc": "Set text for Rich Text\n\t\trich_text:set_text(\"<color=red>Foobar</color>\")\n\t\trich_text:set_text(\"<color=1.0,0,0,1.0>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000ff>Foobar</color>\")\n\t\trich_text:set_text(\"<shadow=red>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=1.0,0,0,1.0>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000ff>Foobar</shadow>\")\n\t\trich_text:set_text(\"<outline=red>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=1.0,0,0,1.0>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000ff>Foobar</outline>\")\n\t\trich_text:set_text(\"<font=MyCoolFont>Foobar</font>\")\n\t\trich_text:set_text(\"<size=2>Twice as large</size>\")\n\t\trich_text:set_text(\"<br/>Insert a line break\")\n\t\trich_text:set_text(\"<nobr>Prevent the text from breaking\")\n\t\trich_text:set_text(\"<img=texture:image>Display image\")\n\t\trich_text:set_text(\"<img=texture:image,size>Display image with size\")\n\t\trich_text:set_text(\"<img=texture:image,width,height>Display image with width and height\")\n\n@*param* `text` — The text to set", + "finish": [ + 147, + 3 + ], + "rawdesc": "Set text for Rich Text\n\t\trich_text:set_text(\"<color=red>Foobar</color>\")\n\t\trich_text:set_text(\"<color=1.0,0,0,1.0>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000ff>Foobar</color>\")\n\t\trich_text:set_text(\"<shadow=red>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=1.0,0,0,1.0>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000ff>Foobar</shadow>\")\n\t\trich_text:set_text(\"<outline=red>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=1.0,0,0,1.0>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000ff>Foobar</outline>\")\n\t\trich_text:set_text(\"<font=MyCoolFont>Foobar</font>\")\n\t\trich_text:set_text(\"<size=2>Twice as large</size>\")\n\t\trich_text:set_text(\"<br/>Insert a line break\")\n\t\trich_text:set_text(\"<nobr>Prevent the text from breaking\")\n\t\trich_text:set_text(\"<img=texture:image>Display image\")\n\t\trich_text:set_text(\"<img=texture:image,size>Display image with size\")\n\t\trich_text:set_text(\"<img=texture:image,width,height>Display image with width and height\")", + "returns": [ + { + "name": "words", + "type": "function.return", + "view": "druid.rich_text.word[]" + }, + { + "name": "line_metrics", + "type": "function.return", + "view": "druid.rich_text.lines_metrics" + } + ], + "start": [ + 135, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:set_text(text: string|nil)\n -> words: druid.rich_text.word[]\n 2. line_metrics: druid.rich_text.lines_metrics" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 135, + 19 + ], + "name": "set_text", + "rawdesc": "Set text for Rich Text\n\t\trich_text:set_text(\"<color=red>Foobar</color>\")\n\t\trich_text:set_text(\"<color=1.0,0,0,1.0>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000>Foobar</color>\")\n\t\trich_text:set_text(\"<color=#ff0000ff>Foobar</color>\")\n\t\trich_text:set_text(\"<shadow=red>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=1.0,0,0,1.0>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000>Foobar</shadow>\")\n\t\trich_text:set_text(\"<shadow=#ff0000ff>Foobar</shadow>\")\n\t\trich_text:set_text(\"<outline=red>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=1.0,0,0,1.0>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000>Foobar</outline>\")\n\t\trich_text:set_text(\"<outline=#ff0000ff>Foobar</outline>\")\n\t\trich_text:set_text(\"<font=MyCoolFont>Foobar</font>\")\n\t\trich_text:set_text(\"<size=2>Twice as large</size>\")\n\t\trich_text:set_text(\"<br/>Insert a line break\")\n\t\trich_text:set_text(\"<nobr>Prevent the text from breaking\")\n\t\trich_text:set_text(\"<img=texture:image>Display image\")\n\t\trich_text:set_text(\"<img=texture:image,size>Display image with size\")\n\t\trich_text:set_text(\"<img=texture:image,width,height>Display image with width and height\")", + "start": [ + 135, + 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": [ + 108, + 2 + ], + "start": [ + 104, + 14 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 104, + 11 + ], + "name": "style", + "start": [ + 104, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Get all words, which has a passed tag.\n\n@*param* `tag` — The tag to get the words for\n\n@*return* `words` — The words with the passed tag", + "extends": { + "args": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 178, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 178, + 8 + ], + "type": "self", + "view": "druid.rich_text" + }, + { + "desc": "The tag to get the words for", + "finish": [ + 178, + 21 + ], + "name": "tag", + "rawdesc": "The tag to get the words for", + "start": [ + 178, + 18 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Get all words, which has a passed tag.\n\n@*param* `tag` — The tag to get the words for\n\n@*return* `words` — The words with the passed tag", + "finish": [ + 184, + 3 + ], + "rawdesc": "Get all words, which has a passed tag.", + "returns": [ + { + "desc": "The words with the passed tag", + "name": "words", + "rawdesc": "The words with the passed tag", + "type": "function.return", + "view": "druid.rich_text.word[]" + } + ], + "start": [ + 178, + 0 + ], + "type": "function", + "view": "(method) druid.rich_text:tagged(tag: string)\n -> words: druid.rich_text.word[]" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 178, + 17 + ], + "name": "tagged", + "rawdesc": "Get all words, which has a passed tag.", + "start": [ + 178, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The text prefab node", + "extends": { + "finish": [ + 70, + 26 + ], + "start": [ + 70, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 70, + 26 + ], + "start": [ + 70, + 22 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 70, + 26 + ], + "name": "text_prefab", + "rawdesc": "The text prefab node", + "start": [ + 70, + 10 + ], + "type": "doc.field", + "view": "node", + "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.rich_text", + "type": "type", + "view": "druid.rich_text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 55, + 39 + ], + "start": [ + 55, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.lines_metrics", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 58, + 54 + ], + "start": [ + 58, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 58, + 54 + ], + "start": [ + 58, + 16 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 58, + 54 + ], + "name": "lines", + "start": [ + 58, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 57, + 28 + ], + "start": [ + 57, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 57, + 28 + ], + "start": [ + 57, + 22 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 57, + 28 + ], + "name": "text_height", + "start": [ + 57, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 56, + 27 + ], + "start": [ + 56, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 56, + 27 + ], + "start": [ + 56, + 21 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 56, + 27 + ], + "name": "text_width", + "start": [ + 56, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.rich_text.lines_metrics", + "type": "type", + "view": "druid.rich_text.lines_metrics" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 60, + 33 + ], + "start": [ + 60, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.metrics", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 62, + 23 + ], + "start": [ + 62, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 62, + 23 + ], + "start": [ + 62, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 62, + 23 + ], + "name": "height", + "start": [ + 62, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 65, + 31 + ], + "start": [ + 65, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 65, + 27 + ], + "start": [ + 65, + 20 + ], + "type": "doc.type.name", + "view": "vector3" + }, + { + "finish": [ + 65, + 31 + ], + "start": [ + 65, + 28 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "vector3|nil" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 65, + 31 + ], + "name": "node_size", + "start": [ + 65, + 10 + ], + "type": "doc.field", + "view": "vector3|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 63, + 29 + ], + "start": [ + 63, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 63, + 25 + ], + "start": [ + 63, + 19 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 63, + 29 + ], + "start": [ + 63, + 26 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 63, + 29 + ], + "name": "offset_x", + "start": [ + 63, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 64, + 29 + ], + "start": [ + 64, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 64, + 25 + ], + "start": [ + 64, + 19 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 64, + 29 + ], + "start": [ + 64, + 26 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 64, + 29 + ], + "name": "offset_y", + "start": [ + 64, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 61, + 22 + ], + "start": [ + 61, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 61, + 22 + ], + "start": [ + 61, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 61, + 22 + ], + "name": "width", + "start": [ + 61, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.rich_text.metrics", + "type": "type", + "view": "druid.rich_text.metrics" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 3, + 34 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.settings", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 29 + ], + "start": [ + 16, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 16, + 29 + ], + "start": [ + 16, + 23 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 16, + 29 + ], + "name": "adjust_scale", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 8, + 23 + ], + "start": [ + 8, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 23 + ], + "start": [ + 8, + 16 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 8, + 23 + ], + "name": "color", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 31 + ], + "start": [ + 13, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 31 + ], + "start": [ + 13, + 24 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 13, + 31 + ], + "name": "combine_words", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 14, + 34 + ], + "start": [ + 14, + 28 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 34 + ], + "start": [ + 14, + 28 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 14, + 34 + ], + "name": "default_animation", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 32 + ], + "start": [ + 17, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 32 + ], + "start": [ + 17, + 26 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 17, + 32 + ], + "name": "default_texture", + "start": [ + 17, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 20, + 19 + ], + "start": [ + 20, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 20, + 19 + ], + "start": [ + 20, + 15 + ], + "type": "doc.type.name", + "view": "hash" + } + ], + "view": "hash" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 20, + 19 + ], + "name": "font", + "start": [ + 20, + 10 + ], + "type": "doc.field", + "view": "hash", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 6, + 37 + ], + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 37 + ], + "start": [ + 6, + 16 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 6, + 37 + ], + "name": "fonts", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 23 + ], + "start": [ + 22, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 22, + 23 + ], + "start": [ + 22, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 22, + 23 + ], + "name": "height", + "start": [ + 22, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 39 + ], + "start": [ + 12, + 32 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 39 + ], + "start": [ + 12, + 32 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 12, + 39 + ], + "name": "image_pixel_grid_snap", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 30 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 30 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 18, + 30 + ], + "name": "is_multiline", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 25 + ], + "start": [ + 10, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 25 + ], + "start": [ + 10, + 18 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 10, + 25 + ], + "name": "outline", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 21 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 4, + 21 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 4, + 21 + ], + "name": "parent", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 11, + 26 + ], + "start": [ + 11, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 26 + ], + "start": [ + 11, + 19 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 11, + 26 + ], + "name": "position", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 7, + 23 + ], + "name": "scale", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 9, + 24 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 24 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 9, + 24 + ], + "name": "shadow", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 5, + 21 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 21 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 5, + 21 + ], + "name": "size", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 29 + ], + "start": [ + 19, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 29 + ], + "start": [ + 19, + 23 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 19, + 29 + ], + "name": "text_leading", + "start": [ + 19, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 15, + 26 + ], + "start": [ + 15, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 15, + 26 + ], + "start": [ + 15, + 22 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 15, + 26 + ], + "name": "text_prefab", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 22 + ], + "start": [ + 21, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 21, + 22 + ], + "start": [ + 21, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 21, + 22 + ], + "name": "width", + "start": [ + 21, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.rich_text.settings", + "type": "type", + "view": "druid.rich_text.settings" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 50, + 31 + ], + "start": [ + 50, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.style", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 53, + 35 + ], + "start": [ + 53, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 53, + 35 + ], + "start": [ + 53, + 29 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 53, + 35 + ], + "name": "ADJUST_SCALE_DELTA", + "start": [ + 53, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 52, + 29 + ], + "start": [ + 52, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 52, + 29 + ], + "start": [ + 52, + 23 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 52, + 29 + ], + "name": "ADJUST_STEPS", + "start": [ + 52, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 51, + 39 + ], + "start": [ + 51, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 51, + 39 + ], + "start": [ + 51, + 17 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 51, + 39 + ], + "name": "COLORS", + "start": [ + 51, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + } + ], + "name": "druid.rich_text.style", + "type": "type", + "view": "druid.rich_text.style" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 24, + 30 + ], + "start": [ + 24, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.word", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 41, + 20 + ], + "start": [ + 41, + 13 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 41, + 20 + ], + "start": [ + 41, + 13 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 41, + 20 + ], + "name": "br", + "start": [ + 41, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 28, + 23 + ], + "start": [ + 28, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 28, + 23 + ], + "start": [ + 28, + 16 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 28, + 23 + ], + "name": "color", + "start": [ + 28, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 21 + ], + "start": [ + 39, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 39, + 21 + ], + "start": [ + 39, + 15 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 39, + 21 + ], + "name": "font", + "start": [ + 39, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 40, + 42 + ], + "start": [ + 40, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 40, + 42 + ], + "start": [ + 40, + 16 + ], + "type": "doc.type.name", + "view": "druid.rich_text.word.image" + } + ], + "view": "druid.rich_text.word.image" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 40, + 42 + ], + "name": "image", + "start": [ + 40, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text.word.image", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 34, + 41 + ], + "start": [ + 34, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 34, + 41 + ], + "start": [ + 34, + 18 + ], + "type": "doc.type.name", + "view": "druid.rich_text.metrics" + } + ], + "view": "druid.rich_text.metrics" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 34, + 41 + ], + "name": "metrics", + "start": [ + 34, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text.metrics", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 42, + 22 + ], + "start": [ + 42, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 42, + 22 + ], + "start": [ + 42, + 15 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 42, + 22 + ], + "name": "nobr", + "start": [ + 42, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 25, + 19 + ], + "start": [ + 25, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 25, + 19 + ], + "start": [ + 25, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 25, + 19 + ], + "name": "node", + "start": [ + 25, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 31, + 24 + ], + "start": [ + 31, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 31, + 24 + ], + "start": [ + 31, + 17 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 31, + 24 + ], + "name": "offset", + "start": [ + 31, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 38, + 25 + ], + "start": [ + 38, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 38, + 25 + ], + "start": [ + 38, + 18 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 38, + 25 + ], + "name": "outline", + "start": [ + 38, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 35, + 24 + ], + "start": [ + 35, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 35, + 24 + ], + "start": [ + 35, + 16 + ], + "type": "doc.type.name", + "view": "userdata" + } + ], + "view": "userdata" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 35, + 24 + ], + "name": "pivot", + "start": [ + 35, + 10 + ], + "type": "doc.field", + "view": "userdata", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 30, + 26 + ], + "start": [ + 30, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 30, + 26 + ], + "start": [ + 30, + 19 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 30, + 26 + ], + "name": "position", + "start": [ + 30, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 31 + ], + "start": [ + 26, + 25 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 26, + 31 + ], + "start": [ + 26, + 25 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 26, + 31 + ], + "name": "relative_scale", + "start": [ + 26, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 23 + ], + "start": [ + 32, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 32, + 23 + ], + "start": [ + 32, + 16 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 32, + 23 + ], + "name": "scale", + "start": [ + 32, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 37, + 24 + ], + "start": [ + 37, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 37, + 24 + ], + "start": [ + 37, + 17 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 37, + 24 + ], + "name": "shadow", + "start": [ + 37, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 22 + ], + "start": [ + 33, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 33, + 22 + ], + "start": [ + 33, + 15 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 33, + 22 + ], + "name": "size", + "start": [ + 33, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 27, + 28 + ], + "start": [ + 27, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 27, + 28 + ], + "start": [ + 27, + 22 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 27, + 28 + ], + "name": "source_text", + "start": [ + 27, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 36, + 21 + ], + "start": [ + 36, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 36, + 21 + ], + "start": [ + 36, + 15 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 36, + 21 + ], + "name": "text", + "start": [ + 36, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 29, + 28 + ], + "start": [ + 29, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 29, + 28 + ], + "start": [ + 29, + 21 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 29, + 28 + ], + "name": "text_color", + "start": [ + 29, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + } + ], + "name": "druid.rich_text.word", + "type": "type", + "view": "druid.rich_text.word" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 44, + 36 + ], + "start": [ + 44, + 10 + ], + "type": "doc.class", + "view": "druid.rich_text.word.image", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 46, + 21 + ], + "start": [ + 46, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 46, + 21 + ], + "start": [ + 46, + 15 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 46, + 21 + ], + "name": "anim", + "start": [ + 46, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 48, + 23 + ], + "start": [ + 48, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 48, + 23 + ], + "start": [ + 48, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 48, + 23 + ], + "name": "height", + "start": [ + 48, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 45, + 24 + ], + "start": [ + 45, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 45, + 24 + ], + "start": [ + 45, + 18 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 45, + 24 + ], + "name": "texture", + "start": [ + 45, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 47, + 22 + ], + "start": [ + 47, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 47, + 22 + ], + "start": [ + 47, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/custom/rich_text/rich_text.lua", + "finish": [ + 47, + 22 + ], + "name": "width", + "start": [ + 47, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.rich_text.word.image", + "type": "type", + "view": "druid.rich_text.word.image" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 20, + 39 + ], + "start": [ + 20, + 24 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/base/scroll.lua", + "finish": [ + 20, + 39 + ], + "start": [ + 20, + 10 + ], + "type": "doc.class", + "view": "druid.scroll", + "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": " Cancel animation on other animation or input touch", + "extends": { + "args": [ + { + "finish": [ + 508, + 8 + ], + "name": "self", + "start": [ + 508, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": " Cancel animation on other animation or input touch", + "finish": [ + 519, + 3 + ], + "rawdesc": " Cancel animation on other animation or input touch", + "start": [ + 508, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_cancel_animate()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 508, + 26 + ], + "name": "_cancel_animate", + "rawdesc": " Cancel animation on other animation or input touch", + "start": [ + 508, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Find closer point of interest\n if no inert, scroll to next point by scroll direction\n if inert, find next point by scroll director", + "extends": { + "args": [ + { + "finish": [ + 541, + 8 + ], + "name": "self", + "start": [ + 541, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": "Find closer point of interest\n if no inert, scroll to next point by scroll direction\n if inert, find next point by scroll director", + "finish": [ + 594, + 3 + ], + "rawdesc": "Find closer point of interest\n if no inert, scroll to next point by scroll direction\n if inert, find next point by scroll director", + "start": [ + 541, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_check_points()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 541, + 24 + ], + "name": "_check_points", + "rawdesc": "Find closer point of interest\n if no inert, scroll to next point by scroll direction\n if inert, find next point by scroll director", + "start": [ + 541, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 479, + 8 + ], + "name": "self", + "start": [ + 479, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 504, + 3 + ], + "start": [ + 479, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_check_soft_zone()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 479, + 27 + ], + "name": "_check_soft_zone", + "start": [ + 479, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 597, + 8 + ], + "name": "self", + "start": [ + 597, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 612, + 3 + ], + "start": [ + 597, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_check_threshold()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 597, + 27 + ], + "name": "_check_threshold", + "start": [ + 597, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "desc": "Update vector with next conditions:\nField x have to <= field z\nField y have to <= field w", + "extends": { + "args": [ + { + "finish": [ + 758, + 8 + ], + "name": "self", + "start": [ + 758, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 758, + 36 + ], + "name": "vector", + "start": [ + 758, + 30 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 758, + 44 + ], + "name": "offset", + "start": [ + 758, + 38 + ], + "type": "local", + "view": "any" + } + ], + "desc": "Update vector with next conditions:\nField x have to <= field z\nField y have to <= field w", + "finish": [ + 770, + 3 + ], + "rawdesc": "Update vector with next conditions:\nField x have to <= field z\nField y have to <= field w", + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 758, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_get_border_vector(vector: any, offset: any)\n -> unknown" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 758, + 29 + ], + "name": "_get_border_vector", + "rawdesc": "Update vector with next conditions:\nField x have to <= field z\nField y have to <= field w", + "start": [ + 758, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return size from scroll border vector4", + "extends": { + "args": [ + { + "finish": [ + 776, + 8 + ], + "name": "self", + "start": [ + 776, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 776, + 34 + ], + "name": "vector", + "start": [ + 776, + 28 + ], + "type": "local", + "view": "vector4" + } + ], + "desc": "Return size from scroll border vector4", + "finish": [ + 778, + 3 + ], + "rawdesc": "Return size from scroll border vector4", + "returns": [ + { + "type": "function.return", + "view": "vector3" + } + ], + "start": [ + 776, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_get_size_vector(vector: vector4)\n -> vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 776, + 27 + ], + "name": "_get_size_vector", + "rawdesc": "Return size from scroll border vector4", + "start": [ + 776, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Grid items change event", + "extends": { + "finish": [ + 42, + 39 + ], + "start": [ + 42, + 34 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 42, + 39 + ], + "start": [ + 42, + 34 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 42, + 39 + ], + "name": "_grid_on_change", + "rawdesc": "Grid items change event", + "start": [ + 42, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Grid change callback", + "extends": { + "finish": [ + 43, + 51 + ], + "start": [ + 43, + 43 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 43, + 51 + ], + "start": [ + 43, + 43 + ], + "type": "doc.type.name", + "view": "function" + } + ], + "view": "function" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 43, + 51 + ], + "name": "_grid_on_change_callback", + "rawdesc": "Grid change callback", + "start": [ + 43, + 10 + ], + "type": "doc.field", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 750, + 8 + ], + "name": "self", + "start": [ + 750, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 750, + 28 + ], + "name": "min", + "start": [ + 750, + 25 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 750, + 33 + ], + "name": "max", + "start": [ + 750, + 30 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 750, + 42 + ], + "name": "current", + "start": [ + 750, + 35 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 752, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "number" + } + ], + "start": [ + 750, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_inverse_lerp(min: any, max: any, current: any)\n -> number" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 750, + 24 + ], + "name": "_inverse_lerp", + "start": [ + 750, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if horizontal scroll enabled", + "extends": { + "finish": [ + 40, + 47 + ], + "start": [ + 40, + 40 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 40, + 47 + ], + "start": [ + 40, + 40 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 40, + 47 + ], + "name": "_is_horizontal_scroll", + "rawdesc": "True if horizontal scroll enabled", + "start": [ + 40, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "True if inertial scrolling is enabled", + "extends": { + "finish": [ + 38, + 35 + ], + "start": [ + 38, + 28 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 38, + 35 + ], + "start": [ + 38, + 28 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 38, + 35 + ], + "name": "_is_inert", + "rawdesc": "True if inertial scrolling is enabled", + "start": [ + 38, + 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": [ + 70, + 29 + ], + "start": [ + 70, + 24 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 70, + 21 + ], + "name": "_is_mouse_hover", + "start": [ + 70, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 746, + 29 + ], + "start": [ + 746, + 24 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 746, + 21 + ], + "name": "_is_mouse_hover", + "start": [ + 746, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if vertical scroll enabled", + "extends": { + "finish": [ + 41, + 45 + ], + "start": [ + 41, + 38 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 41, + 45 + ], + "start": [ + 41, + 38 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 41, + 45 + ], + "name": "_is_vertical_scroll", + "rawdesc": "True if vertical scroll enabled", + "start": [ + 41, + 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": "Content start offset", + "extends": { + "finish": [ + 44, + 33 + ], + "start": [ + 44, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 44, + 33 + ], + "start": [ + 44, + 26 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 44, + 33 + ], + "name": "_offset", + "rawdesc": "Content start offset", + "start": [ + 44, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 745, + 8 + ], + "name": "self", + "start": [ + 745, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 745, + 32 + ], + "name": "state", + "start": [ + 745, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 747, + 3 + ], + "start": [ + 745, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_on_mouse_hover(state: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 745, + 26 + ], + "name": "_on_mouse_hover", + "start": [ + 745, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 438, + 8 + ], + "name": "self", + "start": [ + 438, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 438, + 29 + ], + "name": "dx", + "start": [ + 438, + 27 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 438, + 33 + ], + "name": "dy", + "start": [ + 438, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 476, + 3 + ], + "start": [ + 438, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_on_scroll_drag(dx: any, dy: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 438, + 26 + ], + "name": "_on_scroll_drag", + "start": [ + 438, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 663, + 8 + ], + "name": "self", + "start": [ + 663, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 665, + 3 + ], + "start": [ + 663, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_on_touch_end()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 663, + 24 + ], + "name": "_on_touch_end", + "start": [ + 663, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 655, + 8 + ], + "name": "self", + "start": [ + 655, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 660, + 3 + ], + "start": [ + 655, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_on_touch_start()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 655, + 26 + ], + "name": "_on_touch_start", + "start": [ + 655, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 708, + 8 + ], + "name": "self", + "start": [ + 708, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 708, + 42 + ], + "name": "action_id", + "start": [ + 708, + 33 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 708, + 50 + ], + "name": "action", + "start": [ + 708, + 44 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 742, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 708, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_process_scroll_wheel(action_id: any, action: any)\n -> boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 708, + 32 + ], + "name": "_process_scroll_wheel", + "start": [ + 708, + 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": { + "args": [ + { + "finish": [ + 522, + 8 + ], + "name": "self", + "start": [ + 522, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 522, + 42 + ], + "name": "position_x", + "start": [ + 522, + 32 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 522, + 54 + ], + "name": "position_y", + "start": [ + 522, + 44 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 534, + 3 + ], + "start": [ + 522, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_set_scroll_position(position_x: any, position_y: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 522, + 31 + ], + "name": "_set_scroll_position", + "start": [ + 522, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 615, + 8 + ], + "name": "self", + "start": [ + 615, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 615, + 33 + ], + "name": "dt", + "start": [ + 615, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 637, + 3 + ], + "start": [ + 615, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_update_free_scroll(dt: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 615, + 30 + ], + "name": "_update_free_scroll", + "start": [ + 615, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 640, + 8 + ], + "name": "self", + "start": [ + 640, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 640, + 33 + ], + "name": "dt", + "start": [ + 640, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 652, + 3 + ], + "start": [ + 640, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_update_hand_scroll(dt: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 640, + 30 + ], + "name": "_update_hand_scroll", + "start": [ + 640, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 668, + 8 + ], + "name": "self", + "start": [ + 668, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 705, + 3 + ], + "start": [ + 668, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:_update_size()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 668, + 23 + ], + "name": "_update_size", + "start": [ + 668, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Available content position (min_x, max_y, max_x, min_y)", + "extends": { + "finish": [ + 32, + 31 + ], + "start": [ + 32, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 32, + 31 + ], + "start": [ + 32, + 24 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 32, + 31 + ], + "name": "available_pos", + "rawdesc": "Available content position (min_x, max_y, max_x, min_y)", + "start": [ + 32, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 697, + 106 + ], + "start": [ + 697, + 28 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 697, + 25 + ], + "name": "available_pos_extra", + "start": [ + 697, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Size of available positions (width, height, 0)", + "extends": { + "finish": [ + 33, + 32 + ], + "start": [ + 33, + 25 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 33, + 32 + ], + "start": [ + 33, + 25 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 33, + 32 + ], + "name": "available_size", + "rawdesc": "Size of available positions (width, height, 0)", + "start": [ + 33, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 698, + 76 + ], + "start": [ + 698, + 29 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 698, + 26 + ], + "name": "available_size_extra", + "start": [ + 698, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Bind the grid component (Static or Dynamic) to recalculate\n scroll size on grid changes\n\n@*param* `grid` — Druid grid component\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 405, + 8 + ], + "name": "self", + "start": [ + 405, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Druid grid component", + "finish": [ + 405, + 25 + ], + "name": "grid", + "rawdesc": "Druid grid component", + "start": [ + 405, + 21 + ], + "type": "local", + "view": "druid.grid|nil" + } + ], + "desc": "Bind the grid component (Static or Dynamic) to recalculate\n scroll size on grid changes\n\n@*param* `grid` — Druid grid component\n\n@*return* `self` — Current scroll instance", + "finish": [ + 427, + 3 + ], + "rawdesc": "Bind the grid component (Static or Dynamic) to recalculate\n scroll size on grid changes", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 405, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:bind_grid(grid: druid.grid|nil)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 405, + 20 + ], + "name": "bind_grid", + "rawdesc": "Bind the grid component (Static or Dynamic) to recalculate\n scroll size on grid changes", + "start": [ + 405, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Optional click zone to restrict scroll area", + "extends": { + "finish": [ + 22, + 29 + ], + "start": [ + 22, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 22, + 25 + ], + "start": [ + 22, + 21 + ], + "type": "doc.type.name", + "view": "node" + }, + { + "finish": [ + 22, + 29 + ], + "start": [ + 22, + 26 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "node|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 22, + 29 + ], + "name": "click_zone", + "rawdesc": "Optional click zone to restrict scroll area", + "start": [ + 22, + 10 + ], + "type": "doc.field", + "view": "node|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The scroll content node (moving part)", + "extends": { + "finish": [ + 28, + 27 + ], + "start": [ + 28, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 28, + 27 + ], + "start": [ + 28, + 23 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 28, + 27 + ], + "name": "content_node", + "rawdesc": "The scroll content node (moving part)", + "start": [ + 28, + 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": "The drag component instance", + "extends": { + "desc": "A component that allows you to subscribe to drag events over a node", + "finish": [ + 34, + 25 + ], + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 34, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "A component that allows you to subscribe to drag events over a node", + "finish": [ + 34, + 25 + ], + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 34, + 15 + ], + "type": "doc.type.name", + "view": "druid.drag" + } + ], + "view": "druid.drag" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 34, + 25 + ], + "name": "drag", + "rawdesc": "The drag component instance", + "start": [ + 34, + 10 + ], + "type": "doc.field", + "view": "druid.drag", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 52, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 52, + 14 + ], + "type": "select", + "view": "druid.instance" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 52, + 11 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 52, + 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": "Return current scroll progress status.\n Values will be in [0..1] interval\n\n@*return* `New` — vector with scroll progress values", + "extends": { + "args": [ + { + "finish": [ + 238, + 8 + ], + "name": "self", + "start": [ + 238, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": "Return current scroll progress status.\n Values will be in [0..1] interval\n\n@*return* `New` — vector with scroll progress values", + "finish": [ + 243, + 3 + ], + "rawdesc": "Return current scroll progress status.\n Values will be in [0..1] interval", + "returns": [ + { + "desc": "vector with scroll progress values", + "name": "New", + "rawdesc": "vector with scroll progress values", + "type": "function.return", + "view": "vector3" + } + ], + "start": [ + 238, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:get_percent()\n -> New: vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 238, + 22 + ], + "name": "get_percent", + "rawdesc": "Return current scroll progress status.\n Values will be in [0..1] interval", + "start": [ + 238, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return vector of scroll size with width and height.\n\n@*return* `Available` — scroll size", + "extends": { + "args": [ + { + "finish": [ + 319, + 8 + ], + "name": "self", + "start": [ + 319, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": "Return vector of scroll size with width and height.\n\n@*return* `Available` — scroll size", + "finish": [ + 321, + 3 + ], + "rawdesc": "Return vector of scroll size with width and height.", + "returns": [ + { + "desc": "scroll size", + "name": "Available", + "rawdesc": "scroll size", + "type": "function.return", + "view": "vector3" + } + ], + "start": [ + 319, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:get_scroll_size()\n -> Available: vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 319, + 26 + ], + "name": "get_scroll_size", + "rawdesc": "Return vector of scroll size with width and height.", + "start": [ + 319, + 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": [ + 68, + 45 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 68, + 14 + ], + "type": "select", + "view": "druid.hover" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 68, + 11 + ], + "name": "hover", + "rawdesc": "The component for handling hover events on a node", + "start": [ + 68, + 1 + ], + "type": "setfield", + "view": "druid.hover", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Current inertial movement vector", + "extends": { + "finish": [ + 39, + 34 + ], + "start": [ + 39, + 27 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 39, + 34 + ], + "start": [ + 39, + 27 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 39, + 34 + ], + "name": "inertion", + "rawdesc": "Current inertial movement vector", + "start": [ + 39, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The Scroll constructor\n\n@*param* `view_node` — GUI view scroll node\n\n@*param* `content_node` — GUI content scroll node", + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "GUI view scroll node", + "finish": [ + 51, + 25 + ], + "name": "view_node", + "rawdesc": "GUI view scroll node", + "start": [ + 51, + 16 + ], + "type": "local", + "view": "string|node" + }, + { + "desc": "GUI content scroll node", + "finish": [ + 51, + 39 + ], + "name": "content_node", + "rawdesc": "GUI content scroll node", + "start": [ + 51, + 27 + ], + "type": "local", + "view": "string|node" + } + ], + "desc": "The Scroll constructor\n\n@*param* `view_node` — GUI view scroll node\n\n@*param* `content_node` — GUI content scroll node", + "finish": [ + 86, + 3 + ], + "rawdesc": "The Scroll constructor", + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:init(view_node: string|node, content_node: string|node)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 51, + 15 + ], + "name": "init", + "rawdesc": "The Scroll constructor", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if scroll is animating", + "extends": { + "finish": [ + 36, + 28 + ], + "start": [ + 36, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 36, + 28 + ], + "start": [ + 36, + 21 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 36, + 28 + ], + "name": "is_animate", + "rawdesc": "True if scroll is animating", + "start": [ + 36, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return if scroll have inertion\n\n@*return* `is_inert` — If scroll have inertion", + "extends": { + "args": [ + { + "finish": [ + 300, + 8 + ], + "name": "self", + "start": [ + 300, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": "Return if scroll have inertion\n\n@*return* `is_inert` — If scroll have inertion", + "finish": [ + 302, + 3 + ], + "rawdesc": "Return if scroll have inertion", + "returns": [ + { + "desc": "If scroll have inertion", + "name": "is_inert", + "rawdesc": "If scroll have inertion", + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 300, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:is_inert()\n -> is_inert: boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 300, + 19 + ], + "name": "is_inert", + "rawdesc": "Return if scroll have inertion", + "start": [ + 300, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Check node if it visible now on scroll.\n Extra border is not affected. Return true for elements in extra scroll zone\n\n@*param* `node` — The node to check\n\n@*return* `True` — if node in visible scroll area", + "extends": { + "args": [ + { + "finish": [ + 365, + 8 + ], + "name": "self", + "start": [ + 365, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "The node to check", + "finish": [ + 365, + 31 + ], + "name": "node", + "rawdesc": "The node to check", + "start": [ + 365, + 27 + ], + "type": "local", + "view": "node" + } + ], + "desc": "Check node if it visible now on scroll.\n Extra border is not affected. Return true for elements in extra scroll zone\n\n@*param* `node` — The node to check\n\n@*return* `True` — if node in visible scroll area", + "finish": [ + 398, + 3 + ], + "rawdesc": "Check node if it visible now on scroll.\n Extra border is not affected. Return true for elements in extra scroll zone", + "returns": [ + { + "desc": "if node in visible scroll area", + "name": "True", + "rawdesc": "if node in visible scroll area", + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 365, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:is_node_in_view(node: node)\n -> True: boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 365, + 26 + ], + "name": "is_node_in_view", + "rawdesc": "Check node if it visible now on scroll.\n Extra border is not affected. Return true for elements in extra scroll zone", + "start": [ + 365, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The root node", + "extends": { + "finish": [ + 21, + 19 + ], + "start": [ + 21, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 21, + 19 + ], + "start": [ + 21, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 21, + 19 + ], + "name": "node", + "rawdesc": "The root node", + "start": [ + 21, + 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, + "extends": { + "args": [ + { + "finish": [ + 148, + 8 + ], + "name": "self", + "start": [ + 148, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 148, + 29 + ], + "name": "action_id", + "start": [ + 148, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 148, + 37 + ], + "name": "action", + "start": [ + 148, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 150, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 148, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:on_input(action_id: any, action: any)\n -> boolean" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 148, + 19 + ], + "name": "on_input", + "start": [ + 148, + 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, + "extends": { + "args": [ + { + "finish": [ + 115, + 8 + ], + "name": "self", + "start": [ + 115, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 122, + 3 + ], + "start": [ + 115, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:on_late_init()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 115, + 23 + ], + "name": "on_late_init", + "start": [ + 115, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 126, + 8 + ], + "name": "self", + "start": [ + 126, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 128, + 3 + ], + "start": [ + 126, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:on_layout_change()" + }, + "file": "/druid/base/scroll.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": "Triggered on scroll_to_index with (self, index, point)", + "extends": { + "finish": [ + 25, + 31 + ], + "start": [ + 25, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 25, + 31 + ], + "start": [ + 25, + 26 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 25, + 31 + ], + "name": "on_point_scroll", + "rawdesc": "Triggered on scroll_to_index with (self, index, point)", + "start": [ + 25, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 154, + 8 + ], + "name": "self", + "start": [ + 154, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "finish": [ + 156, + 3 + ], + "start": [ + 154, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:on_remove()" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 154, + 20 + ], + "name": "on_remove", + "start": [ + 154, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Triggered on scroll move with (self, position)", + "extends": { + "finish": [ + 23, + 25 + ], + "start": [ + 23, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 23, + 25 + ], + "start": [ + 23, + 20 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 23, + 25 + ], + "name": "on_scroll", + "rawdesc": "Triggered on scroll move with (self, position)", + "start": [ + 23, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Triggered on scroll_to with (self, target, is_instant)", + "extends": { + "finish": [ + 24, + 28 + ], + "start": [ + 24, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 24, + 28 + ], + "start": [ + 24, + 23 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 24, + 28 + ], + "name": "on_scroll_to", + "rawdesc": "Triggered on scroll_to with (self, target, is_instant)", + "start": [ + 24, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 91, + 8 + ], + "name": "self", + "start": [ + 91, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Scroll style parameters", + "finish": [ + 91, + 32 + ], + "name": "style", + "rawdesc": "Scroll style parameters", + "start": [ + 91, + 27 + ], + "type": "local", + "view": "druid.scroll.style" + } + ], + "finish": [ + 111, + 3 + ], + "start": [ + 91, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:on_style_change(style: druid.scroll.style)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 91, + 26 + ], + "name": "on_style_change", + "start": [ + 91, + 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": { + "desc": "Array of vector3 points", + "finish": [ + 329, + 21 + ], + "rawdesc": "Array of vector3 points", + "start": [ + 329, + 15 + ], + "type": "getlocal", + "view": "table" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 329, + 12 + ], + "name": "points", + "start": [ + 329, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Current scroll position", + "extends": { + "finish": [ + 30, + 26 + ], + "start": [ + 30, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 30, + 26 + ], + "start": [ + 30, + 19 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 30, + 26 + ], + "name": "position", + "rawdesc": "Current scroll position", + "start": [ + 30, + 10 + ], + "type": "doc.field", + "view": "vector3", + "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": "Start scroll to target point.\n\n@*param* `point` — Target point\n\n@*param* `is_instant` — Instant scroll flag", + "extends": { + "args": [ + { + "finish": [ + 162, + 8 + ], + "name": "self", + "start": [ + 162, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Target point", + "finish": [ + 162, + 26 + ], + "name": "point", + "rawdesc": "Target point", + "start": [ + 162, + 21 + ], + "type": "local", + "view": "vector3" + }, + { + "desc": "Instant scroll flag", + "finish": [ + 162, + 38 + ], + "name": "is_instant", + "rawdesc": "Instant scroll flag", + "start": [ + 162, + 28 + ], + "type": "local", + "view": "boolean|nil" + } + ], + "desc": "Start scroll to target point.\n\n@*param* `point` — Target point\n\n@*param* `is_instant` — Instant scroll flag", + "finish": [ + 187, + 3 + ], + "rawdesc": "Start scroll to target point.", + "start": [ + 162, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:scroll_to(point: vector3, is_instant: boolean|nil)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 162, + 20 + ], + "name": "scroll_to", + "rawdesc": "Start scroll to target point.", + "start": [ + 162, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Scroll to item in scroll by point index.\n\n@*param* `index` — Point index\n\n@*param* `skip_cb` — If true, skip the point callback", + "extends": { + "args": [ + { + "finish": [ + 193, + 8 + ], + "name": "self", + "start": [ + 193, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Point index", + "finish": [ + 193, + 32 + ], + "name": "index", + "rawdesc": "Point index", + "start": [ + 193, + 27 + ], + "type": "local", + "view": "number" + }, + { + "desc": "If true, skip the point callback", + "finish": [ + 193, + 41 + ], + "name": "skip_cb", + "rawdesc": "If true, skip the point callback", + "start": [ + 193, + 34 + ], + "type": "local", + "view": "boolean|nil" + } + ], + "desc": "Scroll to item in scroll by point index.\n\n@*param* `index` — Point index\n\n@*param* `skip_cb` — If true, skip the point callback", + "finish": [ + 209, + 3 + ], + "rawdesc": "Scroll to item in scroll by point index.", + "start": [ + 193, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:scroll_to_index(index: number, skip_cb: boolean|nil)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 193, + 26 + ], + "name": "scroll_to_index", + "rawdesc": "Scroll to item in scroll by point index.", + "start": [ + 193, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Start scroll to target scroll percent\n\n@*param* `percent` — target percent\n\n@*param* `is_instant` — instant scroll flag", + "extends": { + "args": [ + { + "finish": [ + 215, + 8 + ], + "name": "self", + "start": [ + 215, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "target percent", + "finish": [ + 215, + 36 + ], + "name": "percent", + "rawdesc": "target percent", + "start": [ + 215, + 29 + ], + "type": "local", + "view": "vector3" + }, + { + "desc": "instant scroll flag", + "finish": [ + 215, + 48 + ], + "name": "is_instant", + "rawdesc": "instant scroll flag", + "start": [ + 215, + 38 + ], + "type": "local", + "view": "boolean|nil" + } + ], + "desc": "Start scroll to target scroll percent\n\n@*param* `percent` — target percent\n\n@*param* `is_instant` — instant scroll flag", + "finish": [ + 232, + 3 + ], + "rawdesc": "Start scroll to target scroll percent", + "start": [ + 215, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:scroll_to_percent(percent: vector3, is_instant: boolean|nil)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 215, + 28 + ], + "name": "scroll_to_percent", + "rawdesc": "Start scroll to target scroll percent", + "start": [ + 215, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Current selected point of interest index", + "extends": { + "finish": [ + 35, + 29 + ], + "start": [ + 35, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 35, + 25 + ], + "start": [ + 35, + 19 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 35, + 29 + ], + "start": [ + 35, + 26 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 35, + 29 + ], + "name": "selected", + "rawdesc": "Current selected point of interest index", + "start": [ + 35, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Strict drag scroll area. Useful for\n restrict events outside stencil node\n\n@*param* `node` — Gui node", + "extends": { + "args": [ + { + "finish": [ + 433, + 8 + ], + "name": "self", + "start": [ + 433, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Gui node", + "finish": [ + 433, + 30 + ], + "name": "node", + "rawdesc": "Gui node", + "start": [ + 433, + 26 + ], + "type": "local", + "view": "string|node" + } + ], + "desc": "Strict drag scroll area. Useful for\n restrict events outside stencil node\n\n@*param* `node` — Gui node", + "finish": [ + 435, + 3 + ], + "rawdesc": "Strict drag scroll area. Useful for\n restrict events outside stencil node", + "start": [ + 433, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_click_zone(node: string|node)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 433, + 25 + ], + "name": "set_click_zone", + "rawdesc": "Strict drag scroll area. Useful for\n restrict events outside stencil node", + "start": [ + 433, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set extra size for scroll stretching\n Set 0 to disable stretching effect\n\n@*param* `stretch_size` — Size in pixels of additional scroll area\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 309, + 8 + ], + "name": "self", + "start": [ + 309, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Size in pixels of additional scroll area", + "finish": [ + 309, + 46 + ], + "name": "stretch_size", + "rawdesc": "Size in pixels of additional scroll area", + "start": [ + 309, + 34 + ], + "type": "local", + "view": "number|nil" + } + ], + "desc": "Set extra size for scroll stretching\n Set 0 to disable stretching effect\n\n@*param* `stretch_size` — Size in pixels of additional scroll area\n\n@*return* `self` — Current scroll instance", + "finish": [ + 314, + 3 + ], + "rawdesc": "Set extra size for scroll stretching\n Set 0 to disable stretching effect", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 309, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_extra_stretch_size(stretch_size: number|nil)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 309, + 33 + ], + "name": "set_extra_stretch_size", + "rawdesc": "Set extra size for scroll stretching\n Set 0 to disable stretching effect", + "start": [ + 309, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Lock or unlock horizontal scroll\n\n@*param* `state` — True, if horizontal scroll is enabled\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 344, + 8 + ], + "name": "self", + "start": [ + 344, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "True, if horizontal scroll is enabled", + "finish": [ + 344, + 38 + ], + "name": "state", + "rawdesc": "True, if horizontal scroll is enabled", + "start": [ + 344, + 33 + ], + "type": "local", + "view": "boolean" + } + ], + "desc": "Lock or unlock horizontal scroll\n\n@*param* `state` — True, if horizontal scroll is enabled\n\n@*return* `self` — Current scroll instance", + "finish": [ + 348, + 3 + ], + "rawdesc": "Lock or unlock horizontal scroll", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 344, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_horizontal_scroll(state: boolean)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 344, + 32 + ], + "name": "set_horizontal_scroll", + "rawdesc": "Lock or unlock horizontal scroll", + "start": [ + 344, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Enable or disable scroll inert\n If disabled, scroll through points (if exist)\n If no points, just simple drag without inertion\n\n@*param* `state` — Inert scroll state\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 291, + 8 + ], + "name": "self", + "start": [ + 291, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Inert scroll state", + "finish": [ + 291, + 26 + ], + "name": "state", + "rawdesc": "Inert scroll state", + "start": [ + 291, + 21 + ], + "type": "local", + "view": "boolean" + } + ], + "desc": "Enable or disable scroll inert\n If disabled, scroll through points (if exist)\n If no points, just simple drag without inertion\n\n@*param* `state` — Inert scroll state\n\n@*return* `self` — Current scroll instance", + "finish": [ + 295, + 3 + ], + "rawdesc": "Enable or disable scroll inert\n If disabled, scroll through points (if exist)\n If no points, just simple drag without inertion", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 291, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_inert(state: boolean)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 291, + 20 + ], + "name": "set_inert", + "rawdesc": "Enable or disable scroll inert\n If disabled, scroll through points (if exist)\n If no points, just simple drag without inertion", + "start": [ + 291, + 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 points of interest.\n Scroll will always centered on closer points\n\n@*param* `points` — Array of vector3 points\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 328, + 8 + ], + "name": "self", + "start": [ + 328, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "Array of vector3 points", + "finish": [ + 328, + 28 + ], + "name": "points", + "rawdesc": "Array of vector3 points", + "start": [ + 328, + 22 + ], + "type": "local", + "view": "table" + } + ], + "desc": "Set points of interest.\n Scroll will always centered on closer points\n\n@*param* `points` — Array of vector3 points\n\n@*return* `self` — Current scroll instance", + "finish": [ + 338, + 3 + ], + "rawdesc": "Set points of interest.\n Scroll will always centered on closer points", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 328, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_points(points: table)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 328, + 21 + ], + "name": "set_points", + "rawdesc": "Set points of interest.\n Scroll will always centered on closer points", + "start": [ + 328, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set scroll content size.\n It will change content gui node size\n\n@*param* `size` — The new size for content node\n\n@*param* `offset` — Offset value to set, where content is starts\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 251, + 8 + ], + "name": "self", + "start": [ + 251, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "The new size for content node", + "finish": [ + 251, + 24 + ], + "name": "size", + "rawdesc": "The new size for content node", + "start": [ + 251, + 20 + ], + "type": "local", + "view": "vector3" + }, + { + "desc": "Offset value to set, where content is starts", + "finish": [ + 251, + 32 + ], + "name": "offset", + "rawdesc": "Offset value to set, where content is starts", + "start": [ + 251, + 26 + ], + "type": "local", + "view": "vector3|nil" + } + ], + "desc": "Set scroll content size.\n It will change content gui node size\n\n@*param* `size` — The new size for content node\n\n@*param* `offset` — Offset value to set, where content is starts\n\n@*return* `self` — Current scroll instance", + "finish": [ + 259, + 3 + ], + "rawdesc": "Set scroll content size.\n It will change content gui node size", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 251, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_size(size: vector3, offset: vector3|nil)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 251, + 19 + ], + "name": "set_size", + "rawdesc": "Set scroll content size.\n It will change content gui node size", + "start": [ + 251, + 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": "Lock or unlock vertical scroll\n\n@*param* `state` — True, if vertical scroll is enabled\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 354, + 8 + ], + "name": "self", + "start": [ + 354, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "True, if vertical scroll is enabled", + "finish": [ + 354, + 36 + ], + "name": "state", + "rawdesc": "True, if vertical scroll is enabled", + "start": [ + 354, + 31 + ], + "type": "local", + "view": "boolean" + } + ], + "desc": "Lock or unlock vertical scroll\n\n@*param* `state` — True, if vertical scroll is enabled\n\n@*return* `self` — Current scroll instance", + "finish": [ + 358, + 3 + ], + "rawdesc": "Lock or unlock vertical scroll", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 354, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_vertical_scroll(state: boolean)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 354, + 30 + ], + "name": "set_vertical_scroll", + "rawdesc": "Lock or unlock vertical scroll", + "start": [ + 354, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set new scroll view size in case the node size was changed.\n\n@*param* `size` — The new size for view node\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 265, + 8 + ], + "name": "self", + "start": [ + 265, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "desc": "The new size for view node", + "finish": [ + 265, + 29 + ], + "name": "size", + "rawdesc": "The new size for view node", + "start": [ + 265, + 25 + ], + "type": "local", + "view": "vector3" + } + ], + "desc": "Set new scroll view size in case the node size was changed.\n\n@*param* `size` — The new size for view node\n\n@*return* `self` — Current scroll instance", + "finish": [ + 272, + 3 + ], + "rawdesc": "Set new scroll view size in case the node size was changed.", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 265, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:set_view_size(size: vector3)\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 265, + 24 + ], + "name": "set_view_size", + "rawdesc": "Set new scroll view size in case the node size was changed.", + "start": [ + 265, + 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": "Component style parameters", + "extends": { + "desc": "Scroll style parameters", + "finish": [ + 37, + 34 + ], + "rawdesc": "Scroll style parameters", + "start": [ + 37, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "Scroll style parameters", + "finish": [ + 37, + 34 + ], + "rawdesc": "Scroll style parameters", + "start": [ + 37, + 16 + ], + "type": "doc.type.name", + "view": "druid.scroll.style" + } + ], + "view": "druid.scroll.style" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 37, + 34 + ], + "name": "style", + "rawdesc": "Component style parameters", + "start": [ + 37, + 10 + ], + "type": "doc.field", + "view": "druid.scroll.style", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Target scroll position for animations", + "extends": { + "finish": [ + 31, + 33 + ], + "start": [ + 31, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 31, + 33 + ], + "start": [ + 31, + 26 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 31, + 33 + ], + "name": "target_position", + "rawdesc": "Target scroll position for animations", + "start": [ + 31, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 132, + 8 + ], + "name": "self", + "start": [ + 132, + 8 + ], + "type": "self", + "view": "druid.scroll" + }, + { + "finish": [ + 132, + 20 + ], + "name": "dt", + "start": [ + 132, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 144, + 3 + ], + "start": [ + 132, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:update(dt: any)" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 132, + 17 + ], + "name": "update", + "start": [ + 132, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Refresh scroll view size, used when view node size is changed\n\n@*return* `self` — Current scroll instance", + "extends": { + "args": [ + { + "finish": [ + 277, + 8 + ], + "name": "self", + "start": [ + 277, + 8 + ], + "type": "self", + "view": "druid.scroll" + } + ], + "desc": "Refresh scroll view size, used when view node size is changed\n\n@*return* `self` — Current scroll instance", + "finish": [ + 283, + 3 + ], + "rawdesc": "Refresh scroll view size, used when view node size is changed", + "returns": [ + { + "desc": "Current scroll instance", + "name": "self", + "rawdesc": "Current scroll instance", + "type": "function.return", + "view": "druid.scroll" + } + ], + "start": [ + 277, + 0 + ], + "type": "function", + "view": "(method) druid.scroll:update_view_size()\n -> self: druid.scroll" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 277, + 27 + ], + "name": "update_view_size", + "rawdesc": "Refresh scroll view size, used when view node size is changed", + "start": [ + 277, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The scroll view borders", + "extends": { + "finish": [ + 27, + 29 + ], + "start": [ + 27, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 27, + 29 + ], + "start": [ + 27, + 22 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 27, + 29 + ], + "name": "view_border", + "rawdesc": "The scroll view borders", + "start": [ + 27, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The scroll view node (static part)", + "extends": { + "finish": [ + 26, + 24 + ], + "start": [ + 26, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 26, + 24 + ], + "start": [ + 26, + 20 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 26, + 24 + ], + "name": "view_node", + "rawdesc": "The scroll view node (static part)", + "start": [ + 26, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Size of the view node", + "extends": { + "finish": [ + 29, + 27 + ], + "start": [ + 29, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 29, + 27 + ], + "start": [ + 29, + 20 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 29, + 27 + ], + "name": "view_size", + "rawdesc": "Size of the view node", + "start": [ + 29, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "public" + } + ], + "name": "druid.scroll", + "type": "type", + "view": "druid.scroll" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "Scroll style parameters", + "file": "/druid/base/scroll.lua", + "finish": [ + 6, + 28 + ], + "rawdesc": "Scroll style parameters", + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "druid.scroll.style", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Scroll gui.animation speed for scroll_to function. Default: 2", + "extends": { + "finish": [ + 13, + 31 + ], + "start": [ + 13, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 27 + ], + "start": [ + 13, + 21 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 13, + 31 + ], + "start": [ + 13, + 28 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 13, + 31 + ], + "name": "ANIM_SPEED", + "rawdesc": "Scroll gui.animation speed for scroll_to function. Default: 2", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Scroll back returning lerp speed. Default: 35", + "extends": { + "finish": [ + 12, + 31 + ], + "start": [ + 12, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 27 + ], + "start": [ + 12, + 21 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 12, + 31 + ], + "start": [ + 12, + 28 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 12, + 31 + ], + "name": "BACK_SPEED", + "rawdesc": "Scroll back returning lerp speed. Default: 35", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "extra size in pixels outside of scroll (stretch effect). Default: 0", + "extends": { + "finish": [ + 14, + 39 + ], + "start": [ + 14, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 35 + ], + "start": [ + 14, + 29 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 14, + 39 + ], + "start": [ + 14, + 36 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 14, + 39 + ], + "name": "EXTRA_STRETCH_SIZE", + "rawdesc": "extra size in pixels outside of scroll (stretch effect). Default: 0", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Multiplier for free inertion. Default: 0", + "extends": { + "finish": [ + 7, + 26 + ], + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 22 + ], + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 7, + 26 + ], + "start": [ + 7, + 23 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 7, + 26 + ], + "name": "FRICT", + "rawdesc": "Multiplier for free inertion. Default: 0", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Multiplier for inertion, while touching. Default: 0", + "extends": { + "finish": [ + 8, + 31 + ], + "start": [ + 8, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 27 + ], + "start": [ + 8, + 21 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 8, + 31 + ], + "start": [ + 8, + 28 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 8, + 31 + ], + "name": "FRICT_HOLD", + "rawdesc": "Multiplier for inertion, while touching. Default: 0", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Multiplier for inertion speed. Default: 30", + "extends": { + "finish": [ + 10, + 32 + ], + "start": [ + 10, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 28 + ], + "start": [ + 10, + 22 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 10, + 32 + ], + "start": [ + 10, + 29 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 10, + 32 + ], + "name": "INERT_SPEED", + "rawdesc": "Multiplier for inertion speed. Default: 30", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Scroll speed to stop inertion. Default: 3", + "extends": { + "finish": [ + 9, + 36 + ], + "start": [ + 9, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 32 + ], + "start": [ + 9, + 26 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 9, + 36 + ], + "start": [ + 9, + 33 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 9, + 36 + ], + "name": "INERT_THRESHOLD", + "rawdesc": "Scroll speed to stop inertion. Default: 3", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Speed to check points of interests in no_inertion mode. Default: 20", + "extends": { + "finish": [ + 11, + 36 + ], + "start": [ + 11, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 32 + ], + "start": [ + 11, + 26 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 11, + 36 + ], + "start": [ + 11, + 33 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 11, + 36 + ], + "name": "POINTS_DEADZONE", + "rawdesc": "Speed to check points of interests in no_inertion mode. Default: 20", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "If true, content node with size less than view node size can be scrolled. Default: false", + "extends": { + "finish": [ + 15, + 42 + ], + "start": [ + 15, + 31 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 15, + 38 + ], + "start": [ + 15, + 31 + ], + "type": "doc.type.name", + "view": "boolean" + }, + { + "finish": [ + 15, + 42 + ], + "start": [ + 15, + 39 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "boolean|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 15, + 42 + ], + "name": "SMALL_CONTENT_SCROLL", + "rawdesc": "If true, content node with size less than view node size can be scrolled. Default: false", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "boolean|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "If true, wheel will add inertion to scroll. Direct set position otherwise.. Default: false", + "extends": { + "finish": [ + 18, + 46 + ], + "start": [ + 18, + 35 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 42 + ], + "start": [ + 18, + 35 + ], + "type": "doc.type.name", + "view": "boolean" + }, + { + "finish": [ + 18, + 46 + ], + "start": [ + 18, + 43 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "boolean|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 18, + 46 + ], + "name": "WHEEL_SCROLL_BY_INERTION", + "rawdesc": "If true, wheel will add inertion to scroll. Direct set position otherwise.. Default: false", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "boolean|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "If true, invert direction for touchpad and mouse wheel scroll. Default: false", + "extends": { + "finish": [ + 17, + 43 + ], + "start": [ + 17, + 32 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 39 + ], + "start": [ + 17, + 32 + ], + "type": "doc.type.name", + "view": "boolean" + }, + { + "finish": [ + 17, + 43 + ], + "start": [ + 17, + 40 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "boolean|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 17, + 43 + ], + "name": "WHEEL_SCROLL_INVERTED", + "rawdesc": "If true, invert direction for touchpad and mouse wheel scroll. Default: false", + "start": [ + 17, + 10 + ], + "type": "doc.field", + "view": "boolean|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The scroll speed via mouse wheel scroll or touchpad. Set to 0 to disable wheel scrolling. Default: 0", + "extends": { + "finish": [ + 16, + 39 + ], + "start": [ + 16, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 16, + 35 + ], + "start": [ + 16, + 29 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 16, + 39 + ], + "start": [ + 16, + 36 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/scroll.lua", + "finish": [ + 16, + 39 + ], + "name": "WHEEL_SCROLL_SPEED", + "rawdesc": "The scroll speed via mouse wheel scroll or touchpad. Set to 0 to disable wheel scrolling. Default: 0", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + } + ], + "name": "druid.scroll.style", + "type": "type", + "view": "druid.scroll.style" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component to make a draggable node over a line with a progress report", + "extends": [ + { + "finish": [ + 6, + 39 + ], + "start": [ + 6, + 24 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/extended/slider.lua", + "finish": [ + 6, + 39 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "druid.slider", + "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": [ + 185, + 24 + ], + "start": [ + 185, + 21 + ], + "type": "nil", + "view": "nil" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 185, + 18 + ], + "name": "_input_node", + "start": [ + 185, + 2 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 189, + 45 + ], + "start": [ + 189, + 20 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 189, + 17 + ], + "name": "_input_node", + "start": [ + 189, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 24 + ], + "start": [ + 32, + 20 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 32, + 17 + ], + "name": "_is_enabled", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "True if slider is enabled", + "finish": [ + 198, + 30 + ], + "rawdesc": "True if slider is enabled", + "start": [ + 198, + 20 + ], + "type": "getlocal", + "view": "boolean" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 198, + 17 + ], + "name": "_is_enabled", + "start": [ + 198, + 1 + ], + "type": "setfield", + "view": "boolean", + "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 to make a draggable node over a line with a progress report", + "finish": [ + 212, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 212, + 8 + ], + "type": "self", + "view": "druid.slider" + } + ], + "finish": [ + 214, + 3 + ], + "start": [ + 212, + 0 + ], + "type": "function", + "view": "(method) druid.slider:_on_change_value()" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 212, + 27 + ], + "name": "_on_change_value", + "start": [ + 212, + 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, + "extends": { + "finish": [ + 60, + 54 + ], + "start": [ + 60, + 21 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 60, + 18 + ], + "name": "_scene_scale", + "start": [ + 60, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 79, + 56 + ], + "start": [ + 79, + 23 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 79, + 20 + ], + "name": "_scene_scale", + "start": [ + 79, + 3 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 86, + 56 + ], + "start": [ + 86, + 23 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 86, + 20 + ], + "name": "_scene_scale", + "start": [ + 86, + 3 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 218, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 218, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "finish": [ + 218, + 30 + ], + "name": "value", + "start": [ + 218, + 25 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 221, + 3 + ], + "start": [ + 218, + 0 + ], + "type": "function", + "view": "(method) druid.slider:_set_position(value: any)" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 218, + 24 + ], + "name": "_set_position", + "start": [ + 218, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 58, + 22 + ], + "start": [ + 58, + 16 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 58, + 13 + ], + "name": "_x_koef", + "start": [ + 58, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 59, + 22 + ], + "start": [ + 59, + 16 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 59, + 13 + ], + "name": "_y_koef", + "start": [ + 59, + 1 + ], + "type": "setfield", + "view": "number", + "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 distance between the start and end positions of the slider", + "extends": { + "finish": [ + 14, + 30 + ], + "start": [ + 14, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 30 + ], + "start": [ + 14, + 23 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 14, + 30 + ], + "name": "dist", + "rawdesc": "The distance between the start and end positions of the slider", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "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 end position of the slider", + "extends": { + "finish": [ + 13, + 33 + ], + "start": [ + 13, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 33 + ], + "start": [ + 13, + 26 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 13, + 33 + ], + "name": "end_pos", + "rawdesc": "The end position of the slider", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "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 Slider constructor\n\n@*param* `node` — GUI node to drag as a slider\n\n@*param* `end_pos` — The end position of slider, should be on the same axis as the node\n\n@*param* `callback` — On slider change callback", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 25, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "desc": "GUI node to drag as a slider", + "finish": [ + 25, + 20 + ], + "name": "node", + "rawdesc": "GUI node to drag as a slider", + "start": [ + 25, + 16 + ], + "type": "local", + "view": "node" + }, + { + "desc": "The end position of slider, should be on the same axis as the node", + "finish": [ + 25, + 29 + ], + "name": "end_pos", + "rawdesc": "The end position of slider, should be on the same axis as the node", + "start": [ + 25, + 22 + ], + "type": "local", + "view": "vector3" + }, + { + "desc": "On slider change callback", + "finish": [ + 25, + 39 + ], + "name": "callback", + "rawdesc": "On slider change callback", + "start": [ + 25, + 31 + ], + "type": "local", + "view": "function|nil" + } + ], + "desc": "The Slider constructor\n\n@*param* `node` — GUI node to drag as a slider\n\n@*param* `end_pos` — The end position of slider, should be on the same axis as the node\n\n@*param* `callback` — On slider change callback", + "finish": [ + 42, + 3 + ], + "rawdesc": "The Slider constructor", + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) druid.slider:init(node: node, end_pos: vector3, callback: function|nil)" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 25, + 15 + ], + "name": "init", + "rawdesc": "The Slider constructor", + "start": [ + 25, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if the slider is being dragged", + "extends": { + "finish": [ + 15, + 33 + ], + "start": [ + 15, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 15, + 33 + ], + "start": [ + 15, + 26 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 15, + 33 + ], + "name": "is_drag", + "rawdesc": "True if the slider is being dragged", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Check if Slider component is enabled\n\n@*return* `is_enabled` — True if slider is enabled", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 206, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 206, + 8 + ], + "type": "self", + "view": "druid.slider" + } + ], + "desc": "Check if Slider component is enabled\n\n@*return* `is_enabled` — True if slider is enabled", + "finish": [ + 208, + 3 + ], + "rawdesc": "Check if Slider component is enabled", + "returns": [ + { + "desc": "True if slider is enabled", + "name": "is_enabled", + "rawdesc": "True if slider is enabled", + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 206, + 0 + ], + "type": "function", + "view": "(method) druid.slider:is_enabled()\n -> is_enabled: boolean" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 206, + 21 + ], + "name": "is_enabled", + "rawdesc": "Check if Slider component is enabled", + "start": [ + 206, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The node to manage the slider", + "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/slider.lua", + "finish": [ + 7, + 19 + ], + "name": "node", + "rawdesc": "The node to manage the slider", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The event triggered when the slider value changes", + "extends": { + "finish": [ + 8, + 31 + ], + "start": [ + 8, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 31 + ], + "start": [ + 8, + 26 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 8, + 31 + ], + "name": "on_change_value", + "rawdesc": "The event triggered when the slider value changes", + "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": "@*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 to make a draggable node over a line with a progress report", + "finish": [ + 67, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 67, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "desc": "The action id", + "finish": [ + 67, + 29 + ], + "name": "action_id", + "rawdesc": "The action id", + "start": [ + 67, + 20 + ], + "type": "local", + "view": "number" + }, + { + "desc": "The action table", + "finish": [ + 67, + 37 + ], + "name": "action", + "rawdesc": "The action table", + "start": [ + 67, + 31 + ], + "type": "local", + "view": "action" + } + ], + "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": [ + 148, + 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": [ + 67, + 0 + ], + "type": "function", + "view": "(method) druid.slider:on_input(action_id: number, action: action)\n -> is_consumed: boolean" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 67, + 19 + ], + "name": "on_input", + "start": [ + 67, + 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, + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 45, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 45, + 8 + ], + "type": "self", + "view": "druid.slider" + } + ], + "finish": [ + 47, + 3 + ], + "start": [ + 45, + 0 + ], + "type": "function", + "view": "(method) druid.slider:on_layout_change()" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 45, + 27 + ], + "name": "on_layout_change", + "start": [ + 45, + 9 + ], + "type": "setmethod", + "view": "function", + "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 to make a draggable node over a line with a progress report", + "finish": [ + 50, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 50, + 8 + ], + "type": "self", + "view": "druid.slider" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 50, + 0 + ], + "type": "function", + "view": "(method) druid.slider:on_remove()" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 50, + 20 + ], + "name": "on_remove", + "start": [ + 50, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 56, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.slider" + } + ], + "finish": [ + 61, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.slider:on_window_resized()" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 56, + 28 + ], + "name": "on_window_resized", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The current position of the slider", + "extends": { + "finish": [ + 11, + 29 + ], + "start": [ + 11, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 29 + ], + "start": [ + 11, + 22 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 11, + 29 + ], + "name": "pos", + "rawdesc": "The current position of the slider", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "vector3", + "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": "Set value for slider\n\n@*param* `value` — Value from 0 to 1\n\n@*param* `is_silent` — Don't trigger event if true\n\n@*return* `self` — Current slider instance", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 155, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 155, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "desc": "Value from 0 to 1", + "finish": [ + 155, + 20 + ], + "name": "value", + "rawdesc": "Value from 0 to 1", + "start": [ + 155, + 15 + ], + "type": "local", + "view": "number" + }, + { + "desc": "Don't trigger event if true", + "finish": [ + 155, + 31 + ], + "name": "is_silent", + "rawdesc": "Don't trigger event if true", + "start": [ + 155, + 22 + ], + "type": "local", + "view": "boolean|nil" + } + ], + "desc": "Set value for slider\n\n@*param* `value` — Value from 0 to 1\n\n@*param* `is_silent` — Don't trigger event if true\n\n@*return* `self` — Current slider instance", + "finish": [ + 164, + 3 + ], + "rawdesc": "Set value for slider", + "returns": [ + { + "desc": "Current slider instance", + "name": "self", + "rawdesc": "Current slider instance", + "type": "function.return", + "view": "druid.slider" + } + ], + "start": [ + 155, + 0 + ], + "type": "function", + "view": "(method) druid.slider:set(value: number, is_silent: boolean|nil)\n -> self: druid.slider" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 155, + 14 + ], + "name": "set", + "rawdesc": "Set value for slider", + "start": [ + 155, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set Slider input enabled or disabled\n\n@*param* `is_enabled` — True if slider is enabled\n\n@*return* `self` — Current slider instance", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 197, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 197, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "desc": "True if slider is enabled", + "finish": [ + 197, + 33 + ], + "name": "is_enabled", + "rawdesc": "True if slider is enabled", + "start": [ + 197, + 23 + ], + "type": "local", + "view": "boolean" + } + ], + "desc": "Set Slider input enabled or disabled\n\n@*param* `is_enabled` — True if slider is enabled\n\n@*return* `self` — Current slider instance", + "finish": [ + 201, + 3 + ], + "rawdesc": "Set Slider input enabled or disabled", + "returns": [ + { + "desc": "Current slider instance", + "name": "self", + "rawdesc": "Current slider instance", + "type": "function.return", + "view": "druid.slider" + } + ], + "start": [ + 197, + 0 + ], + "type": "function", + "view": "(method) druid.slider:set_enabled(is_enabled: boolean)\n -> self: druid.slider" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 197, + 22 + ], + "name": "set_enabled", + "rawdesc": "Set Slider input enabled or disabled", + "start": [ + 197, + 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 input zone for slider.\nUser can touch any place of node, pin instantly will\nmove at this position and node drag will start.\nThis function require the Defold version 1.3.0+\n\n@*return* `self` — Current slider instance", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 183, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 183, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "finish": [ + 183, + 36 + ], + "name": "input_node", + "start": [ + 183, + 26 + ], + "type": "local", + "view": "string|node|nil" + } + ], + "desc": "Set input zone for slider.\nUser can touch any place of node, pin instantly will\nmove at this position and node drag will start.\nThis function require the Defold version 1.3.0+\n\n@*return* `self` — Current slider instance", + "finish": [ + 191, + 3 + ], + "rawdesc": "Set input zone for slider.\nUser can touch any place of node, pin instantly will\nmove at this position and node drag will start.\nThis function require the Defold version 1.3.0+", + "returns": [ + { + "desc": "Current slider instance", + "name": "self", + "rawdesc": "Current slider instance", + "type": "function.return", + "view": "druid.slider" + } + ], + "start": [ + 183, + 0 + ], + "type": "function", + "view": "(method) druid.slider:set_input_node(input_node: string|node|nil)\n -> self: druid.slider" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 183, + 25 + ], + "name": "set_input_node", + "rawdesc": "Set input zone for slider.\nUser can touch any place of node, pin instantly will\nmove at this position and node drag will start.\nThis function require the Defold version 1.3.0+", + "start": [ + 183, + 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 slider steps. Pin node will\napply closest step position\n\n@*param* `steps` — Array of steps\n\n@*return* `self` — Current slider instance", + "extends": { + "args": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 171, + 8 + ], + "name": "self", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 171, + 8 + ], + "type": "self", + "view": "druid.slider" + }, + { + "desc": "Array of steps", + "finish": [ + 171, + 26 + ], + "name": "steps", + "rawdesc": "Array of steps", + "start": [ + 171, + 21 + ], + "type": "local", + "view": "number[]" + } + ], + "desc": "Set slider steps. Pin node will\napply closest step position\n\n@*param* `steps` — Array of steps\n\n@*return* `self` — Current slider instance", + "finish": [ + 174, + 3 + ], + "rawdesc": "Set slider steps. Pin node will\napply closest step position", + "returns": [ + { + "desc": "Current slider instance", + "name": "self", + "rawdesc": "Current slider instance", + "type": "function.return", + "view": "druid.slider" + } + ], + "start": [ + 171, + 0 + ], + "type": "function", + "view": "(method) druid.slider:set_steps(steps: number[])\n -> self: druid.slider" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 171, + 20 + ], + "name": "set_steps", + "rawdesc": "Set slider steps. Pin node will\napply closest step position", + "start": [ + 171, + 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 start position of the slider", + "extends": { + "finish": [ + 10, + 35 + ], + "start": [ + 10, + 28 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 35 + ], + "start": [ + 10, + 28 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 10, + 35 + ], + "name": "start_pos", + "rawdesc": "The start position of the slider", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The steps of the slider", + "extends": { + "finish": [ + 17, + 32 + ], + "start": [ + 17, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 32 + ], + "start": [ + 17, + 24 + ], + "type": "doc.type.array", + "view": "number[]" + } + ], + "view": "number[]" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 17, + 32 + ], + "name": "steps", + "rawdesc": "The steps of the slider", + "start": [ + 17, + 10 + ], + "type": "doc.field", + "view": "number[]", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The style of the slider", + "extends": { + "finish": [ + 9, + 21 + ], + "start": [ + 9, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 21 + ], + "start": [ + 9, + 16 + ], + "type": "doc.type.name", + "view": "table" + } + ], + "view": "table" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 9, + 21 + ], + "name": "style", + "rawdesc": "The style of the slider", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The target position of the slider", + "extends": { + "finish": [ + 12, + 36 + ], + "start": [ + 12, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 36 + ], + "start": [ + 12, + 29 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 12, + 36 + ], + "name": "target_pos", + "rawdesc": "The target position of the slider", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "vector3", + "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" + }, + { + "async": false, + "deprecated": false, + "desc": "The current value of the slider", + "extends": { + "finish": [ + 16, + 30 + ], + "start": [ + 16, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 16, + 30 + ], + "start": [ + 16, + 24 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/slider.lua", + "finish": [ + 16, + 30 + ], + "name": "value", + "rawdesc": "The current value of the slider", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "private" + } + ], + "name": "druid.slider", + "type": "type", + "view": "druid.slider" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component to manage swipe events over a node", + "extends": [ + { + "finish": [ + 11, + 38 + ], + "start": [ + 11, + 23 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/extended/swipe.lua", + "finish": [ + 11, + 38 + ], + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 11, + 10 + ], + "type": "doc.class", + "view": "druid.swipe", + "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": "Check swipe event", + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 131, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 131, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "finish": [ + 131, + 30 + ], + "name": "action", + "start": [ + 131, + 24 + ], + "type": "local", + "view": "action" + } + ], + "desc": "Check swipe event", + "finish": [ + 158, + 3 + ], + "rawdesc": "Check swipe event", + "start": [ + 131, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:_check_swipe(action: action)" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 131, + 23 + ], + "name": "_check_swipe", + "rawdesc": "Check swipe event", + "start": [ + 131, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "desc": "True if the swipe is enabled", + "extends": { + "finish": [ + 19, + 37 + ], + "start": [ + 19, + 30 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 37 + ], + "start": [ + 19, + 30 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 19, + 37 + ], + "name": "_is_enabled", + "rawdesc": "True if the swipe is enabled", + "start": [ + 19, + 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, + "desc": "True if the swipe is on a mobile device", + "extends": { + "finish": [ + 20, + 36 + ], + "start": [ + 20, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 20, + 36 + ], + "start": [ + 20, + 29 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 20, + 36 + ], + "name": "_is_mobile", + "rawdesc": "True if the swipe is on a mobile device", + "start": [ + 20, + 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": "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": "Reset swipe event", + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 123, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 123, + 8 + ], + "type": "self", + "view": "druid.swipe" + } + ], + "desc": "Reset swipe event", + "finish": [ + 125, + 3 + ], + "rawdesc": "Reset swipe event", + "start": [ + 123, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:_reset_swipe()" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 123, + 23 + ], + "name": "_reset_swipe", + "rawdesc": "Reset swipe event", + "start": [ + 123, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The start position of the swipe", + "extends": { + "finish": [ + 18, + 36 + ], + "start": [ + 18, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 36 + ], + "start": [ + 18, + 29 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 18, + 36 + ], + "name": "_start_pos", + "rawdesc": "The start position of the swipe", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Start swipe event\n\n@*param* `action` — The action table", + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 115, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 115, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "desc": "The action table", + "finish": [ + 115, + 30 + ], + "name": "action", + "rawdesc": "The action table", + "start": [ + 115, + 24 + ], + "type": "local", + "view": "action" + } + ], + "desc": "Start swipe event\n\n@*param* `action` — The action table", + "finish": [ + 119, + 3 + ], + "rawdesc": "Start swipe event", + "start": [ + 115, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:_start_swipe(action: action)" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 115, + 23 + ], + "name": "_start_swipe", + "rawdesc": "Start swipe event", + "start": [ + 115, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The time the swipe started", + "extends": { + "finish": [ + 17, + 42 + ], + "start": [ + 17, + 36 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 42 + ], + "start": [ + 17, + 36 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 17, + 42 + ], + "name": "_swipe_start_time", + "rawdesc": "The time the swipe started", + "start": [ + 17, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "True if the swipe should trigger on move", + "extends": { + "finish": [ + 16, + 42 + ], + "start": [ + 16, + 35 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 16, + 42 + ], + "start": [ + 16, + 35 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 16, + 42 + ], + "name": "_trigger_on_move", + "rawdesc": "True if the swipe should trigger on move", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The click zone of the swipe", + "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/extended/swipe.lua", + "finish": [ + 15, + 25 + ], + "name": "click_zone", + "rawdesc": "The click zone of the swipe", + "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, + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 26, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 26, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "finish": [ + 26, + 31 + ], + "name": "node_or_node_id", + "start": [ + 26, + 16 + ], + "type": "local", + "view": "string|node" + }, + { + "finish": [ + 26, + 50 + ], + "name": "on_swipe_callback", + "start": [ + 26, + 33 + ], + "type": "local", + "view": "function" + } + ], + "finish": [ + 35, + 3 + ], + "start": [ + 26, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:init(node_or_node_id: string|node, on_swipe_callback: function)" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 26, + 15 + ], + "name": "init", + "start": [ + 26, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The node to manage the swipe", + "extends": { + "finish": [ + 12, + 19 + ], + "start": [ + 12, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 19 + ], + "start": [ + 12, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 12, + 19 + ], + "name": "node", + "rawdesc": "The node to manage the swipe", + "start": [ + 12, + 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": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 64, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 64, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "desc": "The action id", + "finish": [ + 64, + 29 + ], + "name": "action_id", + "rawdesc": "The action id", + "start": [ + 64, + 20 + ], + "type": "local", + "view": "hash" + }, + { + "desc": "The action table", + "finish": [ + 64, + 37 + ], + "name": "action", + "rawdesc": "The action table", + "start": [ + 64, + 31 + ], + "type": "local", + "view": "action" + } + ], + "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": [ + 92, + 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.swipe:on_input(action_id: hash, action: action)\n -> is_consumed: boolean" + }, + "file": "/druid/extended/swipe.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 to manage swipe events over a node", + "finish": [ + 96, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 96, + 8 + ], + "type": "self", + "view": "druid.swipe" + } + ], + "finish": [ + 98, + 3 + ], + "start": [ + 96, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:on_input_interrupt()" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 96, + 29 + ], + "name": "on_input_interrupt", + "start": [ + 96, + 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 to manage swipe events over a node", + "finish": [ + 39, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 39, + 8 + ], + "type": "self", + "view": "druid.swipe" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 39, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:on_late_init()" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 39, + 23 + ], + "name": "on_late_init", + "start": [ + 39, + 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, + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 51, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "finish": [ + 51, + 32 + ], + "name": "style", + "start": [ + 51, + 27 + ], + "type": "local", + "view": "druid.swipe.style" + } + ], + "finish": [ + 57, + 3 + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:on_style_change(style: druid.swipe.style)" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 51, + 26 + ], + "name": "on_style_change", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "fun(context, side, dist, dt) The event triggered when a swipe is detected", + "extends": { + "finish": [ + 13, + 24 + ], + "start": [ + 13, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 24 + ], + "start": [ + 13, + 19 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 13, + 24 + ], + "name": "on_swipe", + "rawdesc": "fun(context, side, dist, dt) The event triggered when a swipe is detected", + "start": [ + 13, + 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": "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 the click zone for the swipe, useful for restricting events outside stencil node\n\n@*param* `zone` — Gui node", + "extends": { + "args": [ + { + "desc": "The component to manage swipe events over a node", + "finish": [ + 103, + 8 + ], + "name": "self", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 103, + 8 + ], + "type": "self", + "view": "druid.swipe" + }, + { + "desc": "Gui node", + "finish": [ + 103, + 30 + ], + "name": "zone", + "rawdesc": "Gui node", + "start": [ + 103, + 26 + ], + "type": "local", + "view": "string|node|nil" + } + ], + "desc": "Set the click zone for the swipe, useful for restricting events outside stencil node\n\n@*param* `zone` — Gui node", + "finish": [ + 110, + 3 + ], + "rawdesc": "Set the click zone for the swipe, useful for restricting events outside stencil node", + "start": [ + 103, + 0 + ], + "type": "function", + "view": "(method) druid.swipe:set_click_zone(zone: string|node|nil)" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 103, + 25 + ], + "name": "set_click_zone", + "rawdesc": "Set the click zone for the swipe, useful for restricting events outside stencil node", + "start": [ + 103, + 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 the swipe", + "extends": { + "finish": [ + 14, + 33 + ], + "start": [ + 14, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 33 + ], + "start": [ + 14, + 16 + ], + "type": "doc.type.name", + "view": "druid.swipe.style" + } + ], + "view": "druid.swipe.style" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 14, + 33 + ], + "name": "style", + "rawdesc": "The style of the swipe", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "druid.swipe.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.swipe", + "type": "type", + "view": "druid.swipe" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/extended/swipe.lua", + "finish": [ + 5, + 27 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "druid.swipe.style", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Minimum distance for swipe trigger. Default: 50", + "extends": { + "finish": [ + 7, + 36 + ], + "start": [ + 7, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 32 + ], + "start": [ + 7, + 26 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 7, + 36 + ], + "start": [ + 7, + 33 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 7, + 36 + ], + "name": "SWIPE_THRESHOLD", + "rawdesc": "Minimum distance for swipe trigger. Default: 50", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Maximum time for swipe trigger. Default: 0.4", + "extends": { + "finish": [ + 6, + 31 + ], + "start": [ + 6, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 27 + ], + "start": [ + 6, + 21 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 6, + 31 + ], + "start": [ + 6, + 28 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 6, + 31 + ], + "name": "SWIPE_TIME", + "rawdesc": "Maximum time for swipe trigger. Default: 0.4", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "If true, trigger on swipe moving, not only release action. Default: false", + "extends": { + "finish": [ + 8, + 43 + ], + "start": [ + 8, + 32 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 39 + ], + "start": [ + 8, + 32 + ], + "type": "doc.type.name", + "view": "boolean" + }, + { + "finish": [ + 8, + 43 + ], + "start": [ + 8, + 40 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "boolean|nil" + }, + "file": "/druid/extended/swipe.lua", + "finish": [ + 8, + 43 + ], + "name": "SWIPE_TRIGGER_ON_MOVE", + "rawdesc": "If true, trigger on swipe moving, not only release action. Default: false", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "boolean|nil", + "visible": "public" + } + ], + "name": "druid.swipe.style", + "type": "type", + "view": "druid.swipe.style" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/helper.lua", + "finish": [ + 555, + 37 + ], + "start": [ + 555, + 10 + ], + "type": "doc.class", + "view": "druid.system.animation_data", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Current frame", + "extends": { + "finish": [ + 560, + 30 + ], + "start": [ + 560, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 560, + 30 + ], + "start": [ + 560, + 24 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/helper.lua", + "finish": [ + 560, + 30 + ], + "name": "current_frame", + "rawdesc": "Current frame", + "start": [ + 560, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Frames per second", + "extends": { + "finish": [ + 559, + 20 + ], + "start": [ + 559, + 14 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 559, + 20 + ], + "start": [ + 559, + 14 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/helper.lua", + "finish": [ + 559, + 20 + ], + "name": "fps", + "rawdesc": "Frames per second", + "start": [ + 559, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "List of frames with uv coordinates and size", + "extends": { + "finish": [ + 556, + 53 + ], + "start": [ + 556, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 556, + 53 + ], + "start": [ + 556, + 17 + ], + "type": "doc.type.sign", + "view": "table>" + } + ], + "view": "table>" + }, + "file": "/druid/helper.lua", + "finish": [ + 556, + 53 + ], + "name": "frames", + "rawdesc": "List of frames with uv coordinates and size", + "start": [ + 556, + 10 + ], + "type": "doc.field", + "view": "table>", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Height of the animation", + "extends": { + "finish": [ + 558, + 23 + ], + "start": [ + 558, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 558, + 23 + ], + "start": [ + 558, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/helper.lua", + "finish": [ + 558, + 23 + ], + "name": "height", + "rawdesc": "Height of the animation", + "start": [ + 558, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Node with flipbook animation", + "extends": { + "finish": [ + 561, + 19 + ], + "start": [ + 561, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 561, + 19 + ], + "start": [ + 561, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/helper.lua", + "finish": [ + 561, + 19 + ], + "name": "node", + "rawdesc": "Node with flipbook animation", + "start": [ + 561, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Vector with UV coordinates and size", + "extends": { + "finish": [ + 562, + 19 + ], + "start": [ + 562, + 12 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 562, + 19 + ], + "start": [ + 562, + 12 + ], + "type": "doc.type.name", + "view": "vector4" + } + ], + "view": "vector4" + }, + "file": "/druid/helper.lua", + "finish": [ + 562, + 19 + ], + "name": "v", + "rawdesc": "Vector with UV coordinates and size", + "start": [ + 562, + 10 + ], + "type": "doc.field", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Width of the animation", + "extends": { + "finish": [ + 557, + 22 + ], + "start": [ + 557, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 557, + 22 + ], + "start": [ + 557, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/helper.lua", + "finish": [ + 557, + 22 + ], + "name": "width", + "rawdesc": "Width of the animation", + "start": [ + 557, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.system.animation_data", + "type": "type", + "view": "druid.system.animation_data" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/const.lua", + "finish": [ + 0, + 28 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.system.const", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 79 + ], + "start": [ + 7, + 16 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 7, + 13 + ], + "name": "ACTION_BACK", + "start": [ + 7, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 94 + ], + "start": [ + 10, + 21 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 10, + 18 + ], + "name": "ACTION_BACKSPACE", + "start": [ + 10, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 8, + 82 + ], + "start": [ + 8, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 8, + 14 + ], + "name": "ACTION_ENTER", + "start": [ + 8, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 6, + 76 + ], + "start": [ + 6, + 15 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 6, + 12 + ], + "name": "ACTION_ESC", + "start": [ + 6, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 83 + ], + "start": [ + 17, + 16 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 17, + 13 + ], + "name": "ACTION_LCMD", + "start": [ + 17, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 82 + ], + "start": [ + 16, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 16, + 14 + ], + "name": "ACTION_LCTRL", + "start": [ + 16, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 79 + ], + "start": [ + 13, + 16 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 13, + 13 + ], + "name": "ACTION_LEFT", + "start": [ + 13, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 15, + 85 + ], + "start": [ + 15, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 15, + 15 + ], + "name": "ACTION_LSHIFT", + "start": [ + 15, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 5, + 92 + ], + "start": [ + 5, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 5, + 20 + ], + "name": "ACTION_MARKED_TEXT", + "start": [ + 5, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 9, + 90 + ], + "start": [ + 9, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 9, + 19 + ], + "name": "ACTION_MULTITOUCH", + "start": [ + 9, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 14, + 82 + ], + "start": [ + 14, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 14, + 14 + ], + "name": "ACTION_RIGHT", + "start": [ + 14, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 97 + ], + "start": [ + 12, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 12, + 20 + ], + "name": "ACTION_SCROLL_DOWN", + "start": [ + 12, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 11, + 91 + ], + "start": [ + 11, + 21 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 11, + 18 + ], + "name": "ACTION_SCROLL_UP", + "start": [ + 11, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 3, + 71 + ], + "start": [ + 3, + 16 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 3, + 13 + ], + "name": "ACTION_TEXT", + "start": [ + 3, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 74 + ], + "start": [ + 4, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 4, + 14 + ], + "name": "ACTION_TOUCH", + "start": [ + 4, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 1 + ], + "start": [ + 29, + 18 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 29, + 15 + ], + "name": "ALL_INTERESTS", + "start": [ + 29, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 82, + 46 + ], + "start": [ + 82, + 24 + ], + "type": "getfield", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 82, + 21 + ], + "name": "CURRENT_SYSTEM_NAME", + "start": [ + 82, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 79, + 1 + ], + "start": [ + 72, + 16 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 72, + 13 + ], + "name": "LAYOUT_MODE", + "start": [ + 72, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 41, + 45 + ], + "start": [ + 41, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 41, + 20 + ], + "name": "MSG_LAYOUT_CHANGED", + "start": [ + 41, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 24, + 37 + ], + "start": [ + 24, + 20 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 24, + 17 + ], + "name": "ON_FOCUS_GAINED", + "start": [ + 24, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 23, + 33 + ], + "start": [ + 23, + 18 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 23, + 15 + ], + "name": "ON_FOCUS_LOST", + "start": [ + 23, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 23 + ], + "start": [ + 19, + 13 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 19, + 10 + ], + "name": "ON_INPUT", + "start": [ + 19, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 27, + 43 + ], + "start": [ + 27, + 23 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 27, + 20 + ], + "name": "ON_LANGUAGE_CHANGE", + "start": [ + 27, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 31 + ], + "start": [ + 22, + 17 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 22, + 14 + ], + "name": "ON_LATE_INIT", + "start": [ + 22, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 25, + 39 + ], + "start": [ + 25, + 21 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 25, + 18 + ], + "name": "ON_LAYOUT_CHANGE", + "start": [ + 25, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 27 + ], + "start": [ + 21, + 15 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 21, + 12 + ], + "name": "ON_MESSAGE", + "start": [ + 21, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 20, + 22 + ], + "start": [ + 20, + 14 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 20, + 11 + ], + "name": "ON_UPDATE", + "start": [ + 20, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 41 + ], + "start": [ + 26, + 22 + ], + "type": "string", + "view": "string" + }, + "file": "/druid/const.lua", + "finish": [ + 26, + 19 + ], + "name": "ON_WINDOW_RESIZED", + "start": [ + 26, + 0 + ], + "type": "setfield", + "view": "string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 91, + 1 + ], + "start": [ + 84, + 7 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 84, + 4 + ], + "name": "OS", + "start": [ + 84, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 58, + 1 + ], + "start": [ + 48, + 11 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 48, + 8 + ], + "name": "PIVOTS", + "start": [ + 48, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " Components with higher priority value processed first", + "extends": { + "finish": [ + 44, + 21 + ], + "start": [ + 44, + 19 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/const.lua", + "finish": [ + 44, + 16 + ], + "name": "PRIORITY_INPUT", + "rawdesc": " Components with higher priority value processed first", + "start": [ + 44, + 0 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 45, + 26 + ], + "start": [ + 45, + 24 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/const.lua", + "finish": [ + 45, + 21 + ], + "name": "PRIORITY_INPUT_HIGH", + "start": [ + 45, + 0 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 46, + 26 + ], + "start": [ + 46, + 23 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/const.lua", + "finish": [ + 46, + 20 + ], + "name": "PRIORITY_INPUT_MAX", + "start": [ + 46, + 0 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 70, + 1 + ], + "start": [ + 60, + 19 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 60, + 16 + ], + "name": "REVERSE_PIVOTS", + "start": [ + 60, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 97, + 1 + ], + "start": [ + 93, + 10 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 93, + 7 + ], + "name": "SHIFT", + "start": [ + 93, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 114, + 1 + ], + "start": [ + 111, + 9 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 111, + 6 + ], + "name": "SIDE", + "start": [ + 111, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 81, + 31 + ], + "start": [ + 81, + 13 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/const.lua", + "finish": [ + 81, + 10 + ], + "name": "SYS_INFO", + "start": [ + 81, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 109, + 1 + ], + "start": [ + 99, + 16 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/const.lua", + "finish": [ + 99, + 13 + ], + "name": "TEXT_ADJUST", + "start": [ + 99, + 0 + ], + "type": "setfield", + "view": "table", + "visible": "public" + } + ], + "name": "druid.system.const", + "type": "type", + "view": "druid.system.const" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/system/settings.lua", + "finish": [ + 0, + 31 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.system.settings", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 3, + 21 + ], + "start": [ + 3, + 18 + ], + "type": "nil", + "view": "nil" + }, + "file": "/druid/system/settings.lua", + "finish": [ + 3, + 15 + ], + "name": "default_style", + "start": [ + 3, + 0 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "@*param* `...` — Optional params for string.format", + "extends": { + "args": [ + { + "finish": [ + 7, + 27 + ], + "name": "text_id", + "start": [ + 7, + 20 + ], + "type": "local", + "view": "string" + }, + { + "desc": "Optional params for string.format", + "finish": [ + 7, + 32 + ], + "rawdesc": "Optional params for string.format", + "start": [ + 7, + 29 + ], + "type": "...", + "view": "string" + } + ], + "desc": "@*param* `...` — Optional params for string.format", + "finish": [ + 9, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "string" + } + ], + "start": [ + 7, + 0 + ], + "type": "function", + "view": "function druid.system.settings.get_text(text_id: string, ...string)\n -> string" + }, + "file": "/druid/system/settings.lua", + "finish": [ + 7, + 19 + ], + "name": "get_text", + "start": [ + 7, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 12, + 30 + ], + "name": "sound_id", + "start": [ + 12, + 22 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 13, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "function druid.system.settings.play_sound(sound_id: any)" + }, + "file": "/druid/system/settings.lua", + "finish": [ + 12, + 21 + ], + "name": "play_sound", + "start": [ + 12, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + } + ], + "name": "druid.system.settings", + "type": "type", + "view": "druid.system.settings" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "extends": [ + { + "finish": [ + 14, + 37 + ], + "start": [ + 14, + 22 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/base/text.lua", + "finish": [ + 14, + 37 + ], + "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": [ + 14, + 10 + ], + "type": "doc.class", + "view": "druid.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, + "extends": { + "args": [ + { + "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": [ + 302, + 8 + ], + "name": "self", + "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": [ + 302, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "finish": [ + 302, + 36 + ], + "name": "metrics", + "start": [ + 302, + 29 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 305, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 302, + 0 + ], + "type": "function", + "view": "(method) druid.text:_is_fit_info_area(metrics: table)\n -> boolean" + }, + "file": "/druid/base/text.lua", + "finish": [ + 302, + 28 + ], + "name": "_is_fit_info_area", + "start": [ + 302, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 246, + 59 + ], + "start": [ + 246, + 23 + ], + "type": "binary", + "view": "number" + }, + "file": "/druid/base/text.lua", + "finish": [ + 246, + 20 + ], + "name": "_minimal_scale", + "start": [ + 246, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "If pass nil - not use minimal scale", + "finish": [ + 257, + 36 + ], + "rawdesc": "If pass nil - not use minimal scale", + "start": [ + 257, + 23 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/base/text.lua", + "finish": [ + 257, + 20 + ], + "name": "_minimal_scale", + "start": [ + 257, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Reset initial scale for text", + "extends": { + "args": [ + { + "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": [ + 290, + 8 + ], + "name": "self", + "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": [ + 290, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "desc": "Reset initial scale for text", + "finish": [ + 296, + 3 + ], + "rawdesc": "Reset initial scale for text", + "start": [ + 290, + 0 + ], + "type": "function", + "view": "(method) druid.text:_reset_default_scale()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 290, + 31 + ], + "name": "_reset_default_scale", + "rawdesc": "Reset initial scale for text", + "start": [ + 290, + 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, + "extends": { + "args": [ + { + "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": [ + 448, + 8 + ], + "name": "self", + "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": [ + 448, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "finish": [ + 488, + 3 + ], + "start": [ + 448, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_adjust()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 448, + 25 + ], + "name": "_update_adjust", + "start": [ + 448, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Setup scale x, but can only be smaller, than start text scale", + "extends": { + "args": [ + { + "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": [ + 310, + 8 + ], + "name": "self", + "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": [ + 310, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "desc": "Setup scale x, but can only be smaller, than start text scale", + "finish": [ + 388, + 3 + ], + "rawdesc": "Setup scale x, but can only be smaller, than start text scale", + "start": [ + 310, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_text_area_size()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 310, + 33 + ], + "name": "_update_text_area_size", + "rawdesc": "Setup scale x, but can only be smaller, than start text scale", + "start": [ + 310, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "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": [ + 271, + 8 + ], + "name": "self", + "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": [ + 271, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "finish": [ + 285, + 3 + ], + "start": [ + 271, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_text_size()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 271, + 28 + ], + "name": "_update_text_size", + "start": [ + 271, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "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": [ + 438, + 8 + ], + "name": "self", + "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": [ + 438, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "finish": [ + 444, + 3 + ], + "start": [ + 438, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_text_with_anchor_shift()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 438, + 41 + ], + "name": "_update_text_with_anchor_shift", + "start": [ + 438, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "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": [ + 393, + 8 + ], + "name": "self", + "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": [ + 393, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "finish": [ + 393, + 46 + ], + "name": "trim_postfix", + "start": [ + 393, + 34 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 413, + 3 + ], + "start": [ + 393, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_text_with_trim(trim_postfix: string)" + }, + "file": "/druid/base/text.lua", + "finish": [ + 393, + 33 + ], + "name": "_update_text_with_trim", + "start": [ + 393, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "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": [ + 418, + 8 + ], + "name": "self", + "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": [ + 418, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "finish": [ + 418, + 51 + ], + "name": "trim_postfix", + "start": [ + 418, + 39 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 434, + 3 + ], + "start": [ + 418, + 0 + ], + "type": "function", + "view": "(method) druid.text:_update_text_with_trim_left(trim_postfix: string)" + }, + "file": "/druid/base/text.lua", + "finish": [ + 418, + 38 + ], + "name": "_update_text_with_trim_left", + "start": [ + 418, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 44, + 60 + ], + "start": [ + 44, + 20 + ], + "type": "binary", + "view": "string|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 44, + 17 + ], + "name": "adjust_type", + "start": [ + 44, + 1 + ], + "type": "setfield", + "view": "string|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "See const.TEXT_ADJUST. If pass nil - use current adjust type", + "finish": [ + 245, + 31 + ], + "rawdesc": "See const.TEXT_ADJUST. If pass nil - use current adjust type", + "start": [ + 245, + 20 + ], + "type": "getlocal", + "view": "string|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 245, + 17 + ], + "name": "adjust_type", + "start": [ + 245, + 1 + ], + "type": "setfield", + "view": "string|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 45, + 38 + ], + "start": [ + 45, + 14 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 45, + 11 + ], + "name": "color", + "start": [ + 45, + 1 + ], + "type": "setfield", + "view": "vector4", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Color for node", + "finish": [ + 177, + 19 + ], + "rawdesc": "Color for node", + "start": [ + 177, + 14 + ], + "type": "getlocal", + "view": "vector4" + }, + "file": "/druid/base/text.lua", + "finish": [ + 177, + 11 + ], + "name": "color", + "start": [ + 177, + 1 + ], + "type": "setfield", + "view": "vector4", + "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, + "extends": { + "args": [ + { + "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": [ + 154, + 8 + ], + "name": "self", + "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": [ + 154, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "finish": [ + 156, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 154, + 0 + ], + "type": "function", + "view": "(method) druid.text:get_text()\n -> unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 154, + 19 + ], + "name": "get_text", + "start": [ + 154, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return current text adjust type\n\n@*return* `adjust_type` — The current text adjust type", + "extends": { + "args": [ + { + "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": [ + 265, + 8 + ], + "name": "self", + "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": [ + 265, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "desc": "Return current text adjust type\n\n@*return* `adjust_type` — The current text adjust type", + "finish": [ + 267, + 3 + ], + "rawdesc": "Return current text adjust type", + "returns": [ + { + "desc": "The current text adjust type", + "name": "adjust_type", + "rawdesc": "The current text adjust type", + "type": "function.return", + "view": "string" + } + ], + "start": [ + 265, + 0 + ], + "type": "function", + "view": "(method) druid.text:get_text_adjust()\n -> adjust_type: string" + }, + "file": "/druid/base/text.lua", + "finish": [ + 265, + 26 + ], + "name": "get_text_adjust", + "rawdesc": "Return current text adjust type", + "start": [ + 265, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Get chars count by width\n\n@*param* `width` — The width to get the chars count of\n\n@*return* `index` — The chars count", + "extends": { + "args": [ + { + "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": [ + 100, + 8 + ], + "name": "self", + "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": [ + 100, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "The width to get the chars count of", + "finish": [ + 100, + 40 + ], + "name": "width", + "rawdesc": "The width to get the chars count of", + "start": [ + 100, + 35 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Get chars count by width\n\n@*param* `width` — The width to get the chars count of\n\n@*return* `index` — The chars count", + "finish": [ + 127, + 3 + ], + "rawdesc": "Get chars count by width", + "returns": [ + { + "desc": "The chars count", + "name": "index", + "rawdesc": "The chars count", + "type": "function.return", + "view": "number" + } + ], + "start": [ + 100, + 0 + ], + "type": "function", + "view": "(method) druid.text:get_text_index_by_width(width: number)\n -> index: number" + }, + "file": "/druid/base/text.lua", + "finish": [ + 100, + 34 + ], + "name": "get_text_index_by_width", + "rawdesc": "Get chars count by width", + "start": [ + 100, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Calculate text width with font with respect to trailing space\n\n@*param* `text` — The text to calculate the size of, if nil - use current text\n\n@*return* `width` — The text width\n\n@*return* `height` — The text height", + "extends": { + "args": [ + { + "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": [ + 77, + 8 + ], + "name": "self", + "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": [ + 77, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "The text to calculate the size of, if nil - use current text", + "finish": [ + 77, + 29 + ], + "name": "text", + "rawdesc": "The text to calculate the size of, if nil - use current text", + "start": [ + 77, + 25 + ], + "type": "local", + "view": "string|nil" + } + ], + "desc": "Calculate text width with font with respect to trailing space\n\n@*param* `text` — The text to calculate the size of, if nil - use current text\n\n@*return* `width` — The text width\n\n@*return* `height` — The text height", + "finish": [ + 94, + 3 + ], + "rawdesc": "Calculate text width with font with respect to trailing space", + "returns": [ + { + "desc": "The text width", + "name": "width", + "rawdesc": "The text width", + "type": "function.return", + "view": "number" + }, + { + "desc": "The text height", + "name": "height", + "rawdesc": "The text height", + "type": "function.return", + "view": "number" + } + ], + "start": [ + 77, + 0 + ], + "type": "function", + "view": "(method) druid.text:get_text_size(text: string|nil)\n -> width: number\n 2. height: number" + }, + "file": "/druid/base/text.lua", + "finish": [ + 77, + 24 + ], + "name": "get_text_size", + "rawdesc": "Calculate text width with font with respect to trailing space", + "start": [ + 77, + 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 Text constructor\n\n@*param* `node` — Node name or GUI Text Node itself\n\n@*param* `value` — Initial text. Default value is node text from GUI scene. Default: nil\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference. Default: DOWNSCALE", + "extends": { + "args": [ + { + "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": [ + 30, + 8 + ], + "name": "self", + "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": [ + 30, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "Node name or GUI Text Node itself", + "finish": [ + 30, + 20 + ], + "name": "node", + "rawdesc": "Node name or GUI Text Node itself", + "start": [ + 30, + 16 + ], + "type": "local", + "view": "string|node" + }, + { + "desc": "Initial text. Default value is node text from GUI scene. Default: nil", + "finish": [ + 30, + 27 + ], + "name": "value", + "rawdesc": "Initial text. Default value is node text from GUI scene. Default: nil", + "start": [ + 30, + 22 + ], + "type": "local", + "view": "string|nil" + }, + { + "desc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference. Default: DOWNSCALE", + "finish": [ + 30, + 40 + ], + "name": "adjust_type", + "rawdesc": "Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference. Default: DOWNSCALE", + "start": [ + 30, + 29 + ], + "type": "local", + "view": "string|nil" + } + ], + "desc": "The Text constructor\n\n@*param* `node` — Node name or GUI Text Node itself\n\n@*param* `value` — Initial text. Default value is node text from GUI scene. Default: nil\n\n@*param* `adjust_type` — Adjust type for text. By default is DOWNSCALE. Look const.TEXT_ADJUST for reference. Default: DOWNSCALE", + "finish": [ + 52, + 3 + ], + "rawdesc": "The Text constructor", + "start": [ + 30, + 0 + ], + "type": "function", + "view": "(method) druid.text:init(node: string|node, value: string|nil, adjust_type: string|nil)" + }, + "file": "/druid/base/text.lua", + "finish": [ + 30, + 15 + ], + "name": "init", + "rawdesc": "The Text constructor", + "start": [ + 30, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Return true, if text with line break\n\n@*return* `Is` — text node with line break", + "extends": { + "args": [ + { + "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": [ + 233, + 8 + ], + "name": "self", + "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": [ + 233, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "desc": "Return true, if text with line break\n\n@*return* `Is` — text node with line break", + "finish": [ + 235, + 3 + ], + "rawdesc": "Return true, if text with line break", + "returns": [ + { + "desc": "text node with line break", + "name": "Is", + "rawdesc": "text node with line break", + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 233, + 0 + ], + "type": "function", + "view": "(method) druid.text:is_multiline()\n -> Is: boolean" + }, + "file": "/druid/base/text.lua", + "finish": [ + 233, + 23 + ], + "name": "is_multiline", + "rawdesc": "Return true, if text with line break", + "start": [ + 233, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Scale for node", + "finish": [ + 199, + 24 + ], + "rawdesc": "Scale for node", + "start": [ + 199, + 19 + ], + "type": "getlocal", + "view": "vector3" + }, + "file": "/druid/base/text.lua", + "finish": [ + 199, + 16 + ], + "name": "last_scale", + "start": [ + 199, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Text for node", + "finish": [ + 137, + 25 + ], + "rawdesc": "Text for node", + "start": [ + 137, + 19 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 137, + 16 + ], + "name": "last_value", + "start": [ + 137, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The text node", + "extends": { + "finish": [ + 15, + 19 + ], + "start": [ + 15, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 15, + 19 + ], + "start": [ + 15, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/base/text.lua", + "finish": [ + 15, + 19 + ], + "name": "node", + "rawdesc": "The text node", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 37 + ], + "start": [ + 33, + 16 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 33, + 13 + ], + "name": "node_id", + "start": [ + 33, + 1 + ], + "type": "setfield", + "view": "unknown", + "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 to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "finish": [ + 68, + 8 + ], + "name": "self", + "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": [ + 68, + 8 + ], + "type": "self", + "view": "druid.text" + } + ], + "finish": [ + 70, + 3 + ], + "start": [ + 68, + 0 + ], + "type": "function", + "view": "(method) druid.text:on_layout_change()" + }, + "file": "/druid/base/text.lua", + "finish": [ + 68, + 27 + ], + "name": "on_layout_change", + "start": [ + 68, + 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": "The event triggered when the text pivot is set, fun(self, pivot)", + "extends": { + "finish": [ + 18, + 28 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 28 + ], + "start": [ + 18, + 23 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/text.lua", + "finish": [ + 18, + 28 + ], + "name": "on_set_pivot", + "rawdesc": "The event triggered when the text pivot is set, fun(self, pivot)", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The event triggered when the text is set, fun(self, text)", + "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/text.lua", + "finish": [ + 16, + 27 + ], + "name": "on_set_text", + "rawdesc": "The event triggered when the text is set, fun(self, text)", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "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": [ + 57, + 8 + ], + "name": "self", + "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": [ + 57, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "finish": [ + 57, + 32 + ], + "name": "style", + "start": [ + 57, + 27 + ], + "type": "local", + "view": "druid.text.style" + } + ], + "finish": [ + 64, + 3 + ], + "start": [ + 57, + 0 + ], + "type": "function", + "view": "(method) druid.text:on_style_change(style: druid.text.style)" + }, + "file": "/druid/base/text.lua", + "finish": [ + 57, + 26 + ], + "name": "on_style_change", + "start": [ + 57, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The event triggered when the text scale is updated, fun(self, scale, metrics)", + "extends": { + "finish": [ + 17, + 36 + ], + "start": [ + 17, + 31 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 17, + 36 + ], + "start": [ + 17, + 31 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/base/text.lua", + "finish": [ + 17, + 36 + ], + "name": "on_update_text_scale", + "rawdesc": "The event triggered when the text scale is updated, fun(self, scale, metrics)", + "start": [ + 17, + 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, + "extends": { + "finish": [ + 32, + 39 + ], + "start": [ + 32, + 12 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 32, + 9 + ], + "name": "pos", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 222, + 33 + ], + "start": [ + 222, + 12 + ], + "type": "binary", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 222, + 9 + ], + "name": "pos", + "start": [ + 222, + 1 + ], + "type": "setfield", + "view": "unknown", + "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 current scale of the text", + "extends": { + "finish": [ + 22, + 31 + ], + "start": [ + 22, + 24 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 22, + 31 + ], + "start": [ + 22, + 24 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/text.lua", + "finish": [ + 22, + 31 + ], + "name": "scale", + "rawdesc": "The current scale of the text", + "start": [ + 22, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "Set alpha\n\n@*param* `alpha` — Alpha for node\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 187, + 8 + ], + "name": "self", + "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": [ + 187, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "Alpha for node", + "finish": [ + 187, + 26 + ], + "name": "alpha", + "rawdesc": "Alpha for node", + "start": [ + 187, + 21 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Set alpha\n\n@*param* `alpha` — Alpha for node\n\n@*return* `self` — Current text instance", + "finish": [ + 192, + 3 + ], + "rawdesc": "Set alpha", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 187, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_alpha(alpha: number)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 187, + 20 + ], + "name": "set_alpha", + "rawdesc": "Set alpha", + "start": [ + 187, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set color\n\n@*param* `color` — Color for node\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 176, + 8 + ], + "name": "self", + "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": [ + 176, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "Color for node", + "finish": [ + 176, + 26 + ], + "name": "color", + "rawdesc": "Color for node", + "start": [ + 176, + 21 + ], + "type": "local", + "view": "vector4" + } + ], + "desc": "Set color\n\n@*param* `color` — Color for node\n\n@*return* `self` — Current text instance", + "finish": [ + 181, + 3 + ], + "rawdesc": "Set color", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 176, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_color(color: vector4)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 176, + 20 + ], + "name": "set_color", + "rawdesc": "Set color", + "start": [ + 176, + 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 minimal scale for DOWNSCALE_LIMITED or SCALE_THEN_SCROLL adjust types\n\n@*param* `minimal_scale` — If pass nil - not use minimal scale\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 256, + 8 + ], + "name": "self", + "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": [ + 256, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "If pass nil - not use minimal scale", + "finish": [ + 256, + 42 + ], + "name": "minimal_scale", + "rawdesc": "If pass nil - not use minimal scale", + "start": [ + 256, + 29 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Set minimal scale for DOWNSCALE_LIMITED or SCALE_THEN_SCROLL adjust types\n\n@*param* `minimal_scale` — If pass nil - not use minimal scale\n\n@*return* `self` — Current text instance", + "finish": [ + 260, + 3 + ], + "rawdesc": "Set minimal scale for DOWNSCALE_LIMITED or SCALE_THEN_SCROLL adjust types", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 256, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_minimal_scale(minimal_scale: number)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 256, + 28 + ], + "name": "set_minimal_scale", + "rawdesc": "Set minimal scale for DOWNSCALE_LIMITED or SCALE_THEN_SCROLL adjust types", + "start": [ + 256, + 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 text pivot. Text will re-anchor inside text area\n\n@*param* `pivot` — The gui.PIVOT_* constant\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 209, + 8 + ], + "name": "self", + "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": [ + 209, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "The gui.PIVOT_* constant", + "finish": [ + 209, + 26 + ], + "name": "pivot", + "rawdesc": "The gui.PIVOT_* constant", + "start": [ + 209, + 21 + ], + "type": "local", + "view": "userdata" + } + ], + "desc": "Set text pivot. Text will re-anchor inside text area\n\n@*param* `pivot` — The gui.PIVOT_* constant\n\n@*return* `self` — Current text instance", + "finish": [ + 228, + 3 + ], + "rawdesc": "Set text pivot. Text will re-anchor inside text area", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 209, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_pivot(pivot: userdata)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 209, + 20 + ], + "name": "set_pivot", + "rawdesc": "Set text pivot. Text will re-anchor inside text area", + "start": [ + 209, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set scale\n\n@*param* `scale` — Scale for node\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 198, + 8 + ], + "name": "self", + "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": [ + 198, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "Scale for node", + "finish": [ + 198, + 26 + ], + "name": "scale", + "rawdesc": "Scale for node", + "start": [ + 198, + 21 + ], + "type": "local", + "view": "vector3" + } + ], + "desc": "Set scale\n\n@*param* `scale` — Scale for node\n\n@*return* `self` — Current text instance", + "finish": [ + 203, + 3 + ], + "rawdesc": "Set scale", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 198, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_scale(scale: vector3)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 198, + 20 + ], + "name": "set_scale", + "rawdesc": "Set scale", + "start": [ + 198, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set text area size\n\n@*param* `size` — The new text area size\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 162, + 8 + ], + "name": "self", + "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": [ + 162, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "The new text area size", + "finish": [ + 162, + 24 + ], + "name": "size", + "rawdesc": "The new text area size", + "start": [ + 162, + 20 + ], + "type": "local", + "view": "vector3" + } + ], + "desc": "Set text area size\n\n@*param* `size` — The new text area size\n\n@*return* `self` — Current text instance", + "finish": [ + 170, + 3 + ], + "rawdesc": "Set text area size", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 162, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_size(size: vector3)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 162, + 19 + ], + "name": "set_size", + "rawdesc": "Set text area size", + "start": [ + 162, + 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, + "extends": { + "args": [ + { + "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": [ + 148, + 8 + ], + "name": "self", + "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": [ + 148, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "finish": [ + 148, + 28 + ], + "name": "new_text", + "start": [ + 148, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 151, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 148, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_text(new_text: any)\n -> druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 148, + 19 + ], + "name": "set_text", + "start": [ + 148, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set text adjust, refresh the current text visuals, if needed\nValues are: \"downscale\", \"trim\", \"no_adjust\", \"downscale_limited\",\n\"scroll\", \"scale_then_scroll\", \"trim_left\", \"scale_then_trim\", \"scale_then_trim_left\"\n\n@*param* `adjust_type` — See const.TEXT_ADJUST. If pass nil - use current adjust type\n\n@*param* `minimal_scale` — To remove minimal scale, use `text:set_minimal_scale(nil)`, if pass nil - not change minimal scale\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 244, + 8 + ], + "name": "self", + "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": [ + 244, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "See const.TEXT_ADJUST. If pass nil - use current adjust type", + "finish": [ + 244, + 38 + ], + "name": "adjust_type", + "rawdesc": "See const.TEXT_ADJUST. If pass nil - use current adjust type", + "start": [ + 244, + 27 + ], + "type": "local", + "view": "string|nil" + }, + { + "desc": "To remove minimal scale, use `text:set_minimal_scale(nil)`, if pass nil - not change minimal scale", + "finish": [ + 244, + 53 + ], + "name": "minimal_scale", + "rawdesc": "To remove minimal scale, use `text:set_minimal_scale(nil)`, if pass nil - not change minimal scale", + "start": [ + 244, + 40 + ], + "type": "local", + "view": "number|nil" + } + ], + "desc": "Set text adjust, refresh the current text visuals, if needed\nValues are: \"downscale\", \"trim\", \"no_adjust\", \"downscale_limited\",\n\"scroll\", \"scale_then_scroll\", \"trim_left\", \"scale_then_trim\", \"scale_then_trim_left\"\n\n@*param* `adjust_type` — See const.TEXT_ADJUST. If pass nil - use current adjust type\n\n@*param* `minimal_scale` — To remove minimal scale, use `text:set_minimal_scale(nil)`, if pass nil - not change minimal scale\n\n@*return* `self` — Current text instance", + "finish": [ + 250, + 3 + ], + "rawdesc": "Set text adjust, refresh the current text visuals, if needed\nValues are: \"downscale\", \"trim\", \"no_adjust\", \"downscale_limited\",\n\"scroll\", \"scale_then_scroll\", \"trim_left\", \"scale_then_trim\", \"scale_then_trim_left\"", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 244, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_text_adjust(adjust_type: string|nil, minimal_scale: number|nil)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 244, + 26 + ], + "name": "set_text_adjust", + "rawdesc": "Set text adjust, refresh the current text visuals, if needed\nValues are: \"downscale\", \"trim\", \"no_adjust\", \"downscale_limited\",\n\"scroll\", \"scale_then_scroll\", \"trim_left\", \"scale_then_trim\", \"scale_then_trim_left\"", + "start": [ + 244, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": true, + "desc": "Set text to text field\n\n@*param* `set_to` — Text for node\n\n@*return* `self` — Current text instance", + "extends": { + "args": [ + { + "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": [ + 134, + 8 + ], + "name": "self", + "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": [ + 134, + 8 + ], + "type": "self", + "view": "druid.text" + }, + { + "desc": "Text for node", + "finish": [ + 134, + 24 + ], + "name": "set_to", + "rawdesc": "Text for node", + "start": [ + 134, + 18 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Set text to text field\n\n@*param* `set_to` — Text for node\n\n@*return* `self` — Current text instance", + "finish": [ + 145, + 3 + ], + "rawdesc": "Set text to text field", + "returns": [ + { + "desc": "Current text instance", + "name": "self", + "rawdesc": "Current text instance", + "type": "function.return", + "view": "druid.text" + } + ], + "start": [ + 134, + 0 + ], + "type": "function", + "view": "(method) druid.text:set_to(set_to: string)\n -> self: druid.text" + }, + "file": "/druid/base/text.lua", + "finish": [ + 134, + 17 + ], + "name": "set_to", + "rawdesc": "Set text to text field", + "start": [ + 134, + 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 start pivot of the text", + "extends": { + "finish": [ + 20, + 38 + ], + "start": [ + 20, + 30 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 20, + 38 + ], + "start": [ + 20, + 30 + ], + "type": "doc.type.name", + "view": "userdata" + } + ], + "view": "userdata" + }, + "file": "/druid/base/text.lua", + "finish": [ + 20, + 38 + ], + "name": "start_pivot", + "rawdesc": "The start pivot of the text", + "start": [ + 20, + 10 + ], + "type": "doc.field", + "view": "userdata", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The start scale of the text", + "extends": { + "finish": [ + 21, + 37 + ], + "start": [ + 21, + 30 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 21, + 37 + ], + "start": [ + 21, + 30 + ], + "type": "doc.type.name", + "view": "vector3" + } + ], + "view": "vector3" + }, + "file": "/druid/base/text.lua", + "finish": [ + 21, + 37 + ], + "name": "start_scale", + "rawdesc": "The start scale of the text", + "start": [ + 21, + 10 + ], + "type": "doc.field", + "view": "vector3", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 42 + ], + "start": [ + 39, + 19 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 39, + 16 + ], + "name": "start_size", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "The new text area size", + "finish": [ + 163, + 23 + ], + "rawdesc": "The new text area size", + "start": [ + 163, + 19 + ], + "type": "getlocal", + "view": "vector3" + }, + "file": "/druid/base/text.lua", + "finish": [ + 163, + 16 + ], + "name": "start_size", + "start": [ + 163, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The style of the text", + "extends": { + "finish": [ + 19, + 32 + ], + "start": [ + 19, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 32 + ], + "start": [ + 19, + 16 + ], + "type": "doc.type.name", + "view": "druid.text.style" + } + ], + "view": "druid.text.style" + }, + "file": "/druid/base/text.lua", + "finish": [ + 19, + 32 + ], + "name": "style", + "rawdesc": "The style of the text", + "start": [ + 19, + 10 + ], + "type": "doc.field", + "view": "druid.text.style", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 40, + 41 + ], + "start": [ + 40, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 40, + 15 + ], + "name": "text_area", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 164, + 37 + ], + "start": [ + 164, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/base/text.lua", + "finish": [ + 164, + 15 + ], + "name": "text_area", + "start": [ + 164, + 1 + ], + "type": "setfield", + "view": "unknown", + "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.text", + "type": "type", + "view": "druid.text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/base/text.lua", + "finish": [ + 7, + 26 + ], + "start": [ + 7, + 10 + ], + "type": "doc.class", + "view": "druid.text.style", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Scale step on each height adjust step. Default: 0.02", + "extends": { + "finish": [ + 11, + 39 + ], + "start": [ + 11, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 35 + ], + "start": [ + 11, + 29 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 11, + 39 + ], + "start": [ + 11, + 36 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 11, + 39 + ], + "name": "ADJUST_SCALE_DELTA", + "rawdesc": "Scale step on each height adjust step. Default: 0.02", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Amount of iterations for text adjust by height. Default: 20", + "extends": { + "finish": [ + 10, + 33 + ], + "start": [ + 10, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 29 + ], + "start": [ + 10, + 23 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 10, + 33 + ], + "start": [ + 10, + 30 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 10, + 33 + ], + "name": "ADJUST_STEPS", + "rawdesc": "Amount of iterations for text adjust by height. Default: 20", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The default adjust type for any text component. Default: DOWNSCALE", + "extends": { + "finish": [ + 9, + 35 + ], + "start": [ + 9, + 25 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 31 + ], + "start": [ + 9, + 25 + ], + "type": "doc.type.name", + "view": "string" + }, + { + "finish": [ + 9, + 35 + ], + "start": [ + 9, + 32 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "string|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 9, + 35 + ], + "name": "DEFAULT_ADJUST", + "rawdesc": "The default adjust type for any text component. Default: DOWNSCALE", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "string|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The postfix for TRIM adjust type. Default: ...", + "extends": { + "finish": [ + 8, + 33 + ], + "start": [ + 8, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 29 + ], + "start": [ + 8, + 23 + ], + "type": "doc.type.name", + "view": "string" + }, + { + "finish": [ + 8, + 33 + ], + "start": [ + 8, + 30 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "string|nil" + }, + "file": "/druid/base/text.lua", + "finish": [ + 8, + 33 + ], + "name": "TRIM_POSTFIX", + "rawdesc": "The postfix for TRIM adjust type. Default: ...", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "string|nil", + "visible": "public" + } + ], + "name": "druid.text.style", + "type": "type", + "view": "druid.text.style" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "The component that handles a text to display a seconds timer", + "extends": [ + { + "finish": [ + 5, + 38 + ], + "start": [ + 5, + 23 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/extended/timer.lua", + "finish": [ + 5, + 38 + ], + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "druid.timer", + "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": "@*param* `sec` — Seconds to convert\n\n@*return* `The` — formatted time string", + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 115, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 115, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "desc": "Seconds to convert", + "finish": [ + 115, + 33 + ], + "name": "sec", + "rawdesc": "Seconds to convert", + "start": [ + 115, + 30 + ], + "type": "local", + "view": "number" + } + ], + "desc": "@*param* `sec` — Seconds to convert\n\n@*return* `The` — formatted time string", + "finish": [ + 119, + 3 + ], + "returns": [ + { + "desc": "formatted time string", + "name": "The", + "rawdesc": "formatted time string", + "type": "function.return", + "view": "string" + } + ], + "start": [ + 115, + 0 + ], + "type": "function", + "view": "(method) druid.timer:_second_string_min(sec: number)\n -> The: string" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 115, + 29 + ], + "name": "_second_string_min", + "start": [ + 115, + 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": "The start time of the timer", + "extends": { + "finish": [ + 10, + 21 + ], + "start": [ + 10, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 21 + ], + "start": [ + 10, + 15 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 10, + 21 + ], + "name": "from", + "rawdesc": "The start time of the timer", + "start": [ + 10, + 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": "@*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", + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 21, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 21, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "desc": "Gui text node", + "finish": [ + 21, + 20 + ], + "name": "node", + "rawdesc": "Gui text node", + "start": [ + 21, + 16 + ], + "type": "local", + "view": "node" + }, + { + "desc": "Start timer value in seconds", + "finish": [ + 21, + 34 + ], + "name": "seconds_from", + "rawdesc": "Start timer value in seconds", + "start": [ + 21, + 22 + ], + "type": "local", + "view": "number|nil" + }, + { + "desc": "End timer value in seconds", + "finish": [ + 21, + 46 + ], + "name": "seconds_to", + "rawdesc": "End timer value in seconds", + "start": [ + 21, + 36 + ], + "type": "local", + "view": "number|nil" + }, + { + "desc": "Function on timer end", + "finish": [ + 21, + 56 + ], + "name": "callback", + "rawdesc": "Function on timer end", + "start": [ + 21, + 48 + ], + "type": "local", + "view": "function|nil" + } + ], + "desc": "@*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", + "finish": [ + 41, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.timer" + } + ], + "start": [ + 21, + 0 + ], + "type": "function", + "view": "(method) druid.timer:init(node: node, seconds_from: number|nil, seconds_to: number|nil, callback: function|nil)\n -> druid.timer" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 21, + 15 + ], + "name": "init", + "start": [ + 21, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if the timer is on", + "extends": { + "finish": [ + 13, + 27 + ], + "start": [ + 13, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 13, + 23 + ], + "start": [ + 13, + 16 + ], + "type": "doc.type.name", + "view": "boolean" + }, + { + "finish": [ + 13, + 27 + ], + "start": [ + 13, + 24 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "boolean|nil" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 13, + 27 + ], + "name": "is_on", + "rawdesc": "True if the timer is on", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "boolean|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "desc": "Value in seconds", + "finish": [ + 78, + 25 + ], + "rawdesc": "Value in seconds", + "start": [ + 78, + 19 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 78, + 16 + ], + "name": "last_value", + "start": [ + 78, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The node to display the timer", + "extends": { + "finish": [ + 9, + 19 + ], + "start": [ + 9, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 19 + ], + "start": [ + 9, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 9, + 19 + ], + "name": "node", + "rawdesc": "The node to display the timer", + "start": [ + 9, + 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, + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 69, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 69, + 8 + ], + "type": "self", + "view": "druid.timer" + } + ], + "finish": [ + 71, + 3 + ], + "start": [ + 69, + 0 + ], + "type": "function", + "view": "(method) druid.timer:on_layout_change()" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 69, + 27 + ], + "name": "on_layout_change", + "start": [ + 69, + 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": "fun(context, is_on) The event triggered when the timer is enabled", + "extends": { + "finish": [ + 7, + 30 + ], + "start": [ + 7, + 25 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 30 + ], + "start": [ + 7, + 25 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 7, + 30 + ], + "name": "on_set_enabled", + "rawdesc": "fun(context, is_on) The event triggered when the timer is enabled", + "start": [ + 7, + 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": "fun(context, value) The event triggered when the timer ticks", + "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/extended/timer.lua", + "finish": [ + 6, + 23 + ], + "name": "on_tick", + "rawdesc": "fun(context, value) The event triggered when the timer ticks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "fun(context) The event triggered when the timer ends", + "extends": { + "finish": [ + 8, + 28 + ], + "start": [ + 8, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 28 + ], + "start": [ + 8, + 23 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 8, + 28 + ], + "name": "on_timer_end", + "rawdesc": "fun(context) The event triggered when the timer ends", + "start": [ + 8, + 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": "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 timer interval\n\n@*param* `from` — Start time in seconds\n\n@*param* `to` — Target time in seconds\n\n@*return* `self` — Current timer instance", + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 100, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 100, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "desc": "Start time in seconds", + "finish": [ + 100, + 28 + ], + "name": "from", + "rawdesc": "Start time in seconds", + "start": [ + 100, + 24 + ], + "type": "local", + "view": "number" + }, + { + "desc": "Target time in seconds", + "finish": [ + 100, + 32 + ], + "name": "to", + "rawdesc": "Target time in seconds", + "start": [ + 100, + 30 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Set the timer interval\n\n@*param* `from` — Start time in seconds\n\n@*param* `to` — Target time in seconds\n\n@*return* `self` — Current timer instance", + "finish": [ + 109, + 3 + ], + "rawdesc": "Set the timer interval", + "returns": [ + { + "desc": "Current timer instance", + "name": "self", + "rawdesc": "Current timer instance", + "type": "function.return", + "view": "druid.timer" + } + ], + "start": [ + 100, + 0 + ], + "type": "function", + "view": "(method) druid.timer:set_interval(from: number, to: number)\n -> self: druid.timer" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 100, + 23 + ], + "name": "set_interval", + "rawdesc": "Set the timer interval", + "start": [ + 100, + 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 the timer to a specific value\n\n@*param* `is_on` — Timer enable state\n\n@*return* `self` — Current timer instance", + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 88, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 88, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "desc": "Timer enable state", + "finish": [ + 88, + 26 + ], + "name": "is_on", + "rawdesc": "Timer enable state", + "start": [ + 88, + 21 + ], + "type": "local", + "view": "boolean|nil" + } + ], + "desc": "Set the timer to a specific value\n\n@*param* `is_on` — Timer enable state\n\n@*return* `self` — Current timer instance", + "finish": [ + 93, + 3 + ], + "rawdesc": "Set the timer to a specific value", + "returns": [ + { + "desc": "Current timer instance", + "name": "self", + "rawdesc": "Current timer instance", + "type": "function.return", + "view": "druid.timer" + } + ], + "start": [ + 88, + 0 + ], + "type": "function", + "view": "(method) druid.timer:set_state(is_on: boolean|nil)\n -> self: druid.timer" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 88, + 20 + ], + "name": "set_state", + "rawdesc": "Set the timer to a specific value", + "start": [ + 88, + 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 the timer to a specific value\n\n@*param* `set_to` — Value in seconds\n\n@*return* `self` — Current timer instance", + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 77, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 77, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "desc": "Value in seconds", + "finish": [ + 77, + 24 + ], + "name": "set_to", + "rawdesc": "Value in seconds", + "start": [ + 77, + 18 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Set the timer to a specific value\n\n@*param* `set_to` — Value in seconds\n\n@*return* `self` — Current timer instance", + "finish": [ + 82, + 3 + ], + "rawdesc": "Set the timer to a specific value", + "returns": [ + { + "desc": "Current timer instance", + "name": "self", + "rawdesc": "Current timer instance", + "type": "function.return", + "view": "druid.timer" + } + ], + "start": [ + 77, + 0 + ], + "type": "function", + "view": "(method) druid.timer:set_to(set_to: number)\n -> self: druid.timer" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 77, + 17 + ], + "name": "set_to", + "rawdesc": "Set the timer to a specific value", + "start": [ + 77, + 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 target time of the timer", + "extends": { + "finish": [ + 11, + 23 + ], + "start": [ + 11, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 23 + ], + "start": [ + 11, + 17 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 11, + 23 + ], + "name": "target", + "rawdesc": "The target time of the timer", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 50, + 27 + ], + "start": [ + 50, + 13 + ], + "type": "binary", + "view": "unknown" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 50, + 10 + ], + "name": "temp", + "start": [ + 50, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 54, + 30 + ], + "start": [ + 54, + 14 + ], + "type": "binary", + "view": "unknown" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 54, + 11 + ], + "name": "temp", + "start": [ + 54, + 2 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 103, + 14 + ], + "start": [ + 103, + 13 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 103, + 10 + ], + "name": "temp", + "start": [ + 103, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 45, + 8 + ], + "name": "self", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 45, + 8 + ], + "type": "self", + "view": "druid.timer" + }, + { + "finish": [ + 45, + 20 + ], + "name": "dt", + "start": [ + 45, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 65, + 3 + ], + "start": [ + 45, + 0 + ], + "type": "function", + "view": "(method) druid.timer:update(dt: any)" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 45, + 17 + ], + "name": "update", + "start": [ + 45, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "desc": "The current value of the timer", + "extends": { + "finish": [ + 12, + 22 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 22 + ], + "start": [ + 12, + 16 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/extended/timer.lua", + "finish": [ + 12, + 22 + ], + "name": "value", + "rawdesc": "The current value of the timer", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "druid.timer", + "type": "type", + "view": "druid.timer" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 0, + 39 + ], + "start": [ + 0, + 24 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 0, + 39 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.widget", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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.widget", + "type": "type", + "view": "druid.widget" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 0, + 45 + ], + "start": [ + 0, + 33 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/templates/component.template.lua", + "finish": [ + 0, + 45 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.widget.TEMPLATE", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 68 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 15 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/druid/templates/component.template.lua", + "finish": [ + 6, + 12 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 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, + "desc": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 4, + 8 + ], + "name": "self", + "start": [ + 4, + 8 + ], + "type": "self", + "view": "druid.widget.TEMPLATE" + } + ], + "finish": [ + 7, + 3 + ], + "start": [ + 4, + 0 + ], + "type": "function", + "view": "(method) druid.widget.TEMPLATE:init()" + }, + "file": "/druid/templates/component.template.lua", + "finish": [ + 4, + 15 + ], + "name": "init", + "start": [ + 4, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "druid.widget.TEMPLATE" + } + ], + "finish": [ + 12, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) druid.widget.TEMPLATE:on_button()" + }, + "file": "/druid/templates/component.template.lua", + "finish": [ + 10, + 20 + ], + "name": "on_button", + "start": [ + 10, + 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, + "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, + "extends": { + "finish": [ + 5, + 34 + ], + "start": [ + 5, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/templates/component.template.lua", + "finish": [ + 5, + 10 + ], + "name": "root", + "start": [ + 5, + 1 + ], + "type": "setfield", + "view": "node", + "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.widget.TEMPLATE", + "type": "type", + "view": "druid.widget.TEMPLATE" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 49 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/example/examples/widgets/properties_panel/example_properties_panel.lua", + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "druid.widget.example_properties_panel", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 6, + 8 + ], + "name": "self", + "start": [ + 6, + 8 + ], + "type": "self", + "view": "druid.widget.example_properties_panel" + } + ], + "finish": [ + 63, + 3 + ], + "start": [ + 6, + 0 + ], + "type": "function", + "view": "(method) druid.widget.example_properties_panel:init()" + }, + "file": "/example/examples/widgets/properties_panel/example_properties_panel.lua", + "finish": [ + 6, + 15 + ], + "name": "init", + "start": [ + 6, + 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, + "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, + "extends": { + "finish": [ + 7, + 84 + ], + "start": [ + 7, + 25 + ], + "type": "select", + "view": "druid.widget.properties_panel" + }, + "file": "/example/examples/widgets/properties_panel/example_properties_panel.lua", + "finish": [ + 7, + 22 + ], + "name": "properties_panel", + "start": [ + 7, + 1 + ], + "type": "setfield", + "view": "druid.widget.properties_panel", + "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.widget.example_properties_panel", + "type": "type", + "view": "druid.widget.example_properties_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 46 + ], + "start": [ + 3, + 34 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 3, + 46 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.widget.fps_panel", + "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": " in seconds", + "extends": { + "finish": [ + 17, + 22 + ], + "start": [ + 17, + 21 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 17, + 18 + ], + "name": "collect_time", + "rawdesc": " in seconds", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 30 + ], + "start": [ + 18, + 29 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 18, + 26 + ], + "name": "collect_time_counter", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 65, + 67 + ], + "start": [ + 65, + 29 + ], + "type": "binary", + "view": "unknown" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 65, + 26 + ], + "name": "collect_time_counter", + "start": [ + 65, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 72, + 71 + ], + "start": [ + 72, + 30 + ], + "type": "binary", + "view": "unknown" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 72, + 27 + ], + "name": "collect_time_counter", + "start": [ + 72, + 2 + ], + "type": "setfield", + "view": "integer", + "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": " in seconds", + "extends": { + "finish": [ + 16, + 22 + ], + "start": [ + 16, + 19 + ], + "type": "number", + "view": "number" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 16, + 16 + ], + "name": "delta_time", + "rawdesc": " in seconds", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 10 + ], + "type": "doc.field", + "view": "druid.instance", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " Store frame time in seconds last collect_time seconds", + "extends": { + "finish": [ + 22, + 22 + ], + "start": [ + 22, + 20 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 22, + 17 + ], + "name": "fps_samples", + "rawdesc": " Store frame time in seconds last collect_time seconds", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "table", + "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, + "extends": { + "finish": [ + 19, + 57 + ], + "start": [ + 19, + 22 + ], + "type": "binary", + "view": "number" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 19, + 19 + ], + "name": "graph_samples", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "druid.widget.fps_panel" + } + ], + "finish": [ + 48, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) druid.widget.fps_panel:init()" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "extends": { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 24, + 66 + ], + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 24, + 19 + ], + "type": "select", + "view": "druid.widget.mini_graph" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 24, + 16 + ], + "name": "mini_graph", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 24, + 1 + ], + "type": "setfield", + "view": "druid.widget.mini_graph", + "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, + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "druid.widget.fps_panel" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) druid.widget.fps_panel:on_remove()" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 51, + 20 + ], + "name": "on_remove", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 58, + 39 + ], + "start": [ + 58, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 58, + 20 + ], + "name": "previous_time", + "start": [ + 58, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 64, + 34 + ], + "start": [ + 64, + 22 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 64, + 19 + ], + "name": "previous_time", + "start": [ + 64, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 77, + 8 + ], + "name": "self", + "start": [ + 77, + 8 + ], + "type": "self", + "view": "druid.widget.fps_panel" + } + ], + "finish": [ + 101, + 3 + ], + "start": [ + 77, + 0 + ], + "type": "function", + "view": "(method) druid.widget.fps_panel:push_fps_value()" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 77, + 25 + ], + "name": "push_fps_value", + "start": [ + 77, + 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, + "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/widget/fps_panel/fps_panel.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 37, + 48 + ], + "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": [ + 37, + 17 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 37, + 14 + ], + "name": "text_fps", + "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": [ + 37, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 36, + 56 + ], + "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": [ + 36, + 21 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 36, + 18 + ], + "name": "text_min_fps", + "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": [ + 36, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 41, + 5 + ], + "start": [ + 39, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 39, + 14 + ], + "name": "timer_id", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.widget.fps_panel" + }, + { + "finish": [ + 56, + 20 + ], + "name": "dt", + "start": [ + 56, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 74, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.widget.fps_panel:update(dt: any)" + }, + "file": "/druid/widget/fps_panel/fps_panel.lua", + "finish": [ + 56, + 17 + ], + "name": "update", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.widget.fps_panel", + "type": "type", + "view": "druid.widget.fps_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 46 + ], + "start": [ + 5, + 34 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 5, + 46 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "druid.widget.go_widget", + "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, + "extends": { + "finish": [ + 13, + 48 + ], + "start": [ + 13, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 13, + 15 + ], + "name": "animation", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 38 + ], + "start": [ + 12, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 12, + 12 + ], + "name": "circle", + "start": [ + 12, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 14, + 17 + ], + "start": [ + 14, + 16 + ], + "type": "integer", + "view": "integer" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 14, + 13 + ], + "name": "counter", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 34 + ], + "start": [ + 26, + 18 + ], + "type": "binary", + "view": "integer" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 26, + 15 + ], + "name": "counter", + "start": [ + 26, + 3 + ], + "type": "setfield", + "view": "integer", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "druid.widget.go_widget" + } + ], + "finish": [ + 19, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) druid.widget.go_widget:init()" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 72 + ], + "start": [ + 18, + 21 + ], + "type": "select", + "view": "druid.widget.memory_panel" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 18, + 18 + ], + "name": "memory_panel", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.widget.memory_panel", + "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, + "extends": { + "args": [ + { + "finish": [ + 22, + 8 + ], + "name": "self", + "start": [ + 22, + 8 + ], + "type": "self", + "view": "druid.widget.go_widget" + } + ], + "finish": [ + 30, + 3 + ], + "start": [ + 22, + 0 + ], + "type": "function", + "view": "(method) druid.widget.go_widget:play_animation()" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 22, + 25 + ], + "name": "play_animation", + "start": [ + 22, + 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, + "extends": { + "finish": [ + 11, + 34 + ], + "start": [ + 11, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 11, + 10 + ], + "name": "root", + "start": [ + 11, + 1 + ], + "type": "setfield", + "view": "node", + "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": "@*param* `position` — The position to set", + "extends": { + "args": [ + { + "finish": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "druid.widget.go_widget" + }, + { + "desc": "The position to set", + "finish": [ + 34, + 32 + ], + "name": "position", + "rawdesc": "The position to set", + "start": [ + 34, + 24 + ], + "type": "local", + "view": "vector3" + } + ], + "desc": "@*param* `position` — The position to set", + "finish": [ + 36, + 3 + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) druid.widget.go_widget:set_position(position: vector3)" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 34, + 23 + ], + "name": "set_position", + "start": [ + 34, + 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, + "extends": { + "finish": [ + 15, + 42 + ], + "start": [ + 15, + 21 + ], + "type": "select", + "view": "node" + }, + "file": "/example/other/go_bindings/go_widget.lua", + "finish": [ + 15, + 18 + ], + "name": "text_counter", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "node", + "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.widget.go_widget", + "type": "type", + "view": "druid.widget.go_widget" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 49 + ], + "start": [ + 3, + 37 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 3, + 49 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.widget.memory_panel", + "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, + "extends": { + "finish": [ + 10, + 22 + ], + "start": [ + 10, + 19 + ], + "type": "number", + "view": "number" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 10, + 16 + ], + "name": "delta_time", + "start": [ + 10, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 8, + 8 + ], + "name": "self", + "start": [ + 8, + 8 + ], + "type": "self", + "view": "druid.widget.memory_panel" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 8, + 0 + ], + "type": "function", + "view": "(method) druid.widget.memory_panel:init()" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 8, + 15 + ], + "name": "init", + "start": [ + 8, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 28, + 55 + ], + "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": [ + 28, + 18 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 28, + 15 + ], + "name": "max_value", + "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": [ + 28, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 38 + ], + "start": [ + 32, + 15 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 32, + 12 + ], + "name": "memory", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 62, + 21 + ], + "start": [ + 62, + 15 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 62, + 12 + ], + "name": "memory", + "start": [ + 62, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 24 + ], + "start": [ + 12, + 21 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 12, + 18 + ], + "name": "memory_limit", + "start": [ + 12, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 55, + 26 + ], + "start": [ + 55, + 21 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 55, + 18 + ], + "name": "memory_limit", + "start": [ + 55, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 25 + ], + "start": [ + 33, + 23 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 33, + 20 + ], + "name": "memory_samples", + "start": [ + 33, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "extends": { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 14, + 66 + ], + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 14, + 19 + ], + "type": "select", + "view": "druid.widget.mini_graph" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 14, + 16 + ], + "name": "mini_graph", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "druid.widget.mini_graph", + "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, + "extends": { + "args": [ + { + "finish": [ + 49, + 8 + ], + "name": "self", + "start": [ + 49, + 8 + ], + "type": "self", + "view": "druid.widget.memory_panel" + } + ], + "finish": [ + 51, + 3 + ], + "start": [ + 49, + 0 + ], + "type": "function", + "view": "(method) druid.widget.memory_panel:on_remove()" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 49, + 20 + ], + "name": "on_remove", + "start": [ + 49, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "druid.widget.memory_panel" + } + ], + "finish": [ + 85, + 3 + ], + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) druid.widget.memory_panel:push_next_value()" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 59, + 26 + ], + "name": "push_next_value", + "start": [ + 59, + 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, + "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/widget/memory_panel/memory_panel.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 11, + 24 + ], + "start": [ + 11, + 22 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 11, + 19 + ], + "name": "samples_count", + "start": [ + 11, + 1 + ], + "type": "setfield", + "view": "integer", + "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, + "extends": { + "args": [ + { + "finish": [ + 54, + 8 + ], + "name": "self", + "start": [ + 54, + 8 + ], + "type": "self", + "view": "druid.widget.memory_panel" + }, + { + "finish": [ + 54, + 37 + ], + "name": "limit", + "start": [ + 54, + 32 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 56, + 3 + ], + "start": [ + 54, + 0 + ], + "type": "function", + "view": "(method) druid.widget.memory_panel:set_low_memory_limit(limit: any)" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 54, + 31 + ], + "name": "set_low_memory_limit", + "start": [ + 54, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 30, + 54 + ], + "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": [ + 30, + 20 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 30, + 17 + ], + "name": "text_memory", + "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": [ + 30, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 29, + 62 + ], + "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": [ + 29, + 24 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 29, + 21 + ], + "name": "text_per_second", + "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": [ + 29, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 5 + ], + "start": [ + 37, + 17 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 37, + 14 + ], + "name": "timer_id", + "start": [ + 37, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + { + "finish": [ + 88, + 8 + ], + "name": "self", + "start": [ + 88, + 8 + ], + "type": "self", + "view": "druid.widget.memory_panel" + } + ], + "finish": [ + 96, + 3 + ], + "start": [ + 88, + 0 + ], + "type": "function", + "view": "(method) druid.widget.memory_panel:update_text_memory()" + }, + "file": "/druid/widget/memory_panel/memory_panel.lua", + "finish": [ + 88, + 29 + ], + "name": "update_text_memory", + "start": [ + 88, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.widget.memory_panel", + "type": "type", + "view": "druid.widget.memory_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "extends": [ + { + "finish": [ + 8, + 47 + ], + "start": [ + 8, + 35 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 8, + 47 + ], + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 8, + 10 + ], + "type": "doc.class", + "view": "druid.widget.mini_graph", + "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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 56, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 63, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:clear()" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 56, + 16 + ], + "name": "clear", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 49 + ], + "start": [ + 33, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 33, + 15 + ], + "name": "color_one", + "start": [ + 33, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 48 + ], + "start": [ + 32, + 19 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 32, + 16 + ], + "name": "color_zero", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 41, + 53 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 41, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 41, + 15 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 41, + 1 + ], + "type": "setfield", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 23, + 40 + ], + "start": [ + 23, + 16 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 23, + 13 + ], + "name": "content", + "start": [ + 23, + 1 + ], + "type": "setfield", + "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, + "extends": { + "finish": [ + 47, + 46 + ], + "start": [ + 47, + 21 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 47, + 18 + ], + "name": "default_size", + "start": [ + 47, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 147, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 147, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 149, + 3 + ], + "start": [ + 147, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:get_highest_value()" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 147, + 28 + ], + "name": "get_highest_value", + "start": [ + 147, + 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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 108, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 108, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 108, + 31 + ], + "name": "index", + "start": [ + 108, + 26 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 110, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "number" + } + ], + "start": [ + 108, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:get_line_value(index: any)\n -> number" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 108, + 25 + ], + "name": "get_line_value", + "start": [ + 108, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 142, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 142, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 144, + 3 + ], + "start": [ + 142, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:get_lowest_value()" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 142, + 27 + ], + "name": "get_lowest_value", + "start": [ + 142, + 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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 81, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 81, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 83, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 81, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:get_samples()\n -> unknown" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 81, + 22 + ], + "name": "get_samples", + "start": [ + 81, + 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, + "extends": { + "finish": [ + 18, + 44 + ], + "start": [ + 18, + 18 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 18, + 15 + ], + "name": "icon_drag", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 14, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 14, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 48, + 3 + ], + "start": [ + 14, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:init()" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 14, + 15 + ], + "name": "init", + "start": [ + 14, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 36, + 23 + ], + "start": [ + 36, + 18 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 36, + 15 + ], + "name": "is_hidden", + "start": [ + 36, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 163, + 36 + ], + "start": [ + 163, + 18 + ], + "type": "unary", + "view": "boolean" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 163, + 15 + ], + "name": "is_hidden", + "start": [ + 163, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "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": { + "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": [ + 26, + 26 + ], + "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": [ + 24, + 15 + ], + "type": "select", + "view": "druid.layout" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 24, + 12 + ], + "name": "layout", + "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": [ + 24, + 1 + ], + "type": "setfield", + "view": "druid.layout", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 38, + 16 + ], + "start": [ + 38, + 14 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 38, + 11 + ], + "name": "lines", + "start": [ + 38, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 62, + 16 + ], + "start": [ + 62, + 14 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 62, + 11 + ], + "name": "lines", + "start": [ + 62, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " in this value line will be at max height", + "extends": { + "finish": [ + 37, + 19 + ], + "start": [ + 37, + 18 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 37, + 15 + ], + "name": "max_value", + "rawdesc": " in this value line will be at max height", + "start": [ + 37, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 127, + 27 + ], + "start": [ + 127, + 18 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 127, + 15 + ], + "name": "max_value", + "start": [ + 127, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 152, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 152, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 152, + 28 + ], + "name": "dx", + "start": [ + 152, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 152, + 32 + ], + "name": "dy", + "start": [ + 152, + 30 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 159, + 3 + ], + "start": [ + 152, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:on_drag_widget(dx: any, dy: any)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 152, + 25 + ], + "name": "on_drag_widget", + "start": [ + 152, + 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, + "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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 51, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:on_remove()" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 51, + 20 + ], + "name": "on_remove", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 28, + 48 + ], + "start": [ + 28, + 20 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 28, + 17 + ], + "name": "prefab_line", + "start": [ + 28, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 113, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 113, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 113, + 32 + ], + "name": "value", + "start": [ + 113, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 119, + 3 + ], + "start": [ + 113, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:push_line_value(value: any)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 113, + 26 + ], + "name": "push_line_value", + "start": [ + 113, + 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, + "extends": { + "finish": [ + 15, + 34 + ], + "start": [ + 15, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 15, + 10 + ], + "name": "root", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 67, + 23 + ], + "start": [ + 67, + 16 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 67, + 13 + ], + "name": "samples", + "start": [ + 67, + 1 + ], + "type": "setfield", + "view": "any", + "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, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 134, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 134, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 134, + 32 + ], + "name": "index", + "start": [ + 134, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 139, + 3 + ], + "start": [ + 134, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:set_line_height(index: any)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 134, + 26 + ], + "name": "set_line_height", + "start": [ + 134, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set normalized to control the color of the line\n\t\tfor index = 1, mini_graph:get_samples() do\n\t\t\tmini_graph:set_line_value(index, math.random())\n\t\tend\n\n@*param* `value` — The normalized value from 0 to 1", + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 92, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 92, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 92, + 31 + ], + "name": "index", + "start": [ + 92, + 26 + ], + "type": "local", + "view": "number" + }, + { + "desc": "The normalized value from 0 to 1", + "finish": [ + 92, + 38 + ], + "name": "value", + "rawdesc": "The normalized value from 0 to 1", + "start": [ + 92, + 33 + ], + "type": "local", + "view": "number" + } + ], + "desc": "Set normalized to control the color of the line\n\t\tfor index = 1, mini_graph:get_samples() do\n\t\t\tmini_graph:set_line_value(index, math.random())\n\t\tend\n\n@*param* `value` — The normalized value from 0 to 1", + "finish": [ + 104, + 3 + ], + "rawdesc": "Set normalized to control the color of the line\n\t\tfor index = 1, mini_graph:get_samples() do\n\t\t\tmini_graph:set_line_value(index, math.random())\n\t\tend", + "start": [ + 92, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:set_line_value(index: number, value: number)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 92, + 25 + ], + "name": "set_line_value", + "rawdesc": "Set normalized to control the color of the line\n\t\tfor index = 1, mini_graph:get_samples() do\n\t\t\tmini_graph:set_line_value(index, math.random())\n\t\tend", + "start": [ + 92, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 122, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 122, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 122, + 34 + ], + "name": "max_value", + "start": [ + 122, + 25 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 131, + 3 + ], + "start": [ + 122, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:set_max_value(max_value: any)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 122, + 24 + ], + "name": "set_max_value", + "start": [ + 122, + 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": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 66, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 66, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + }, + { + "finish": [ + 66, + 30 + ], + "name": "samples", + "start": [ + 66, + 23 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 78, + 3 + ], + "start": [ + 66, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:set_samples(samples: any)" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 66, + 22 + ], + "name": "set_samples", + "start": [ + 66, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 16, + 54 + ], + "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": [ + 16, + 20 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 16, + 17 + ], + "name": "text_header", + "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": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "desc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "finish": [ + 162, + 8 + ], + "name": "self", + "rawdesc": "Widget to display a several lines with different height in a row\nInit, set amount of samples and max value of value means that the line will be at max height\nUse `push_line_value` to add a new value to the line\nOr `set_line_value` to set a value to the line by index\nSetup colors inside template file (at minimum and maximum)", + "start": [ + 162, + 8 + ], + "type": "self", + "view": "druid.widget.mini_graph" + } + ], + "finish": [ + 172, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.mini_graph" + } + ], + "start": [ + 162, + 0 + ], + "type": "function", + "view": "(method) druid.widget.mini_graph:toggle_hide()\n -> druid.widget.mini_graph" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 162, + 22 + ], + "name": "toggle_hide", + "start": [ + 162, + 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": [ + 39, + 17 + ], + "start": [ + 39, + 15 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/mini_graph/mini_graph.lua", + "finish": [ + 39, + 12 + ], + "name": "values", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + } + ], + "name": "druid.widget.mini_graph", + "type": "type", + "view": "druid.widget.mini_graph" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 8, + 53 + ], + "start": [ + 8, + 41 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 8, + 53 + ], + "start": [ + 8, + 10 + ], + "type": "doc.class", + "view": "druid.widget.properties_panel", + "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": [ + 301, + 28 + ], + "start": [ + 301, + 19 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 301, + 16 + ], + "name": "_is_hidden", + "start": [ + 301, + 1 + ], + "type": "setfield", + "view": "any", + "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, + "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": [ + { + "finish": [ + 194, + 8 + ], + "name": "self", + "start": [ + 194, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 194, + 31 + ], + "name": "on_create", + "start": [ + 194, + 22 + ], + "type": "local", + "view": "fun(button: druid.widget.property_button)|nil" + } + ], + "finish": [ + 196, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 194, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_button(on_create: fun(button: druid.widget.property_button)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 194, + 21 + ], + "name": "add_button", + "start": [ + 194, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 180, + 8 + ], + "name": "self", + "start": [ + 180, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 180, + 33 + ], + "name": "on_create", + "start": [ + 180, + 24 + ], + "type": "local", + "view": "fun(checkbox: druid.widget.property_checkbox)|nil" + } + ], + "finish": [ + 182, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 180, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_checkbox(on_create: fun(checkbox: druid.widget.property_checkbox)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 180, + 23 + ], + "name": "add_checkbox", + "start": [ + 180, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 230, + 8 + ], + "name": "self", + "start": [ + 230, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 230, + 40 + ], + "name": "widget_class", + "start": [ + 230, + 28 + ], + "type": "local", + "view": "" + }, + { + "finish": [ + 230, + 50 + ], + "name": "template", + "start": [ + 230, + 42 + ], + "type": "local", + "view": "string|nil" + }, + { + "finish": [ + 230, + 57 + ], + "name": "nodes", + "start": [ + 230, + 52 + ], + "type": "local", + "view": "node|table|nil" + }, + { + "finish": [ + 230, + 68 + ], + "name": "on_create", + "start": [ + 230, + 59 + ], + "type": "local", + "view": "fun(widget: )|nil" + } + ], + "finish": [ + 243, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 230, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_inner_widget(widget_class: , template: string|nil, nodes: node|table|nil, on_create: fun(widget: )|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 230, + 27 + ], + "name": "add_inner_widget", + "start": [ + 230, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 201, + 8 + ], + "name": "self", + "start": [ + 201, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 201, + 30 + ], + "name": "on_create", + "start": [ + 201, + 21 + ], + "type": "local", + "view": "fun(input: druid.widget.property_input)|nil" + } + ], + "finish": [ + 203, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 201, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_input(on_create: fun(input: druid.widget.property_input)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 201, + 20 + ], + "name": "add_input", + "start": [ + 201, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 213, + 8 + ], + "name": "self", + "start": [ + 213, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 213, + 44 + ], + "name": "on_create", + "start": [ + 213, + 35 + ], + "type": "local", + "view": "fun(selector: druid.widget.property_left_right_selector)|nil" + } + ], + "finish": [ + 215, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 213, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_left_right_selector(on_create: fun(selector: druid.widget.property_left_right_selector)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 213, + 34 + ], + "name": "add_left_right_selector", + "start": [ + 213, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 267, + 8 + ], + "name": "self", + "start": [ + 267, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 267, + 30 + ], + "name": "widget", + "start": [ + 267, + 24 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 276, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 267, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_property(widget: any)\n -> unknown" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 267, + 23 + ], + "name": "add_property", + "start": [ + 267, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 187, + 8 + ], + "name": "self", + "start": [ + 187, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 187, + 31 + ], + "name": "on_create", + "start": [ + 187, + 22 + ], + "type": "local", + "view": "fun(slider: druid.widget.property_slider)|nil" + } + ], + "finish": [ + 189, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 187, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_slider(on_create: fun(slider: druid.widget.property_slider)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 187, + 21 + ], + "name": "add_slider", + "start": [ + 187, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 207, + 8 + ], + "name": "self", + "start": [ + 207, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 207, + 29 + ], + "name": "on_create", + "start": [ + 207, + 20 + ], + "type": "local", + "view": "fun(text: druid.widget.property_text)|nil" + } + ], + "finish": [ + 209, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 207, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_text(on_create: fun(text: druid.widget.property_text)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 207, + 19 + ], + "name": "add_text", + "start": [ + 207, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 219, + 8 + ], + "name": "self", + "start": [ + 219, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 219, + 32 + ], + "name": "on_create", + "start": [ + 219, + 23 + ], + "type": "local", + "view": "fun(vector3: druid.widget.property_vector3)|nil" + } + ], + "finish": [ + 221, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 219, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_vector3(on_create: fun(vector3: druid.widget.property_vector3)|nil)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 219, + 22 + ], + "name": "add_vector3", + "start": [ + 219, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 248, + 8 + ], + "name": "self", + "start": [ + 248, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 248, + 44 + ], + "name": "create_widget_callback", + "start": [ + 248, + 22 + ], + "type": "local", + "view": "fun():druid.widget" + } + ], + "finish": [ + 257, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.properties_panel" + } + ], + "start": [ + 248, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:add_widget(create_widget_callback: fun():druid.widget)\n -> druid.widget.properties_panel" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 248, + 21 + ], + "name": "add_widget", + "start": [ + 248, + 9 + ], + "type": "setmethod", + "view": "function", + "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": [ + 16, + 36 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 24 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 16, + 36 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 24 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 16, + 36 + ], + "name": "button_hidden", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 127, + 8 + ], + "name": "self", + "start": [ + 127, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + } + ], + "finish": [ + 130, + 3 + ], + "start": [ + 127, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:clear()" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 127, + 16 + ], + "name": "clear", + "start": [ + 127, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 101, + 8 + ], + "name": "self", + "start": [ + 101, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + } + ], + "finish": [ + 124, + 3 + ], + "start": [ + 101, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:clear_created_properties()" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 101, + 35 + ], + "name": "clear_created_properties", + "start": [ + 101, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 15, + 50 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 15, + 35 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 15, + 50 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 15, + 35 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 15, + 50 + ], + "name": "contaienr_scroll_content", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 15, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 12, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 12, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 12, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 12, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 12, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 13, + 43 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 13, + 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": [ + 13, + 43 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 13, + 28 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 13, + 43 + ], + "name": "container_content", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 14, + 47 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 14, + 32 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 14, + 47 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 14, + 32 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 14, + 47 + ], + "name": "container_scroll_view", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 40 + ], + "start": [ + 26, + 16 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 26, + 13 + ], + "name": "content", + "start": [ + 26, + 1 + ], + "type": "setfield", + "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": [ + 261, + 8 + ], + "name": "self", + "start": [ + 261, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 261, + 42 + ], + "name": "widget_class", + "start": [ + 261, + 30 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 261, + 52 + ], + "name": "template", + "start": [ + 261, + 44 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 261, + 59 + ], + "name": "nodes", + "start": [ + 261, + 54 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 263, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 261, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:create_from_prefab(widget_class: any, template: any, nodes: any)\n -> unknown" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 261, + 29 + ], + "name": "create_from_prefab", + "start": [ + 261, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "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": [ + 38, + 22 + ], + "start": [ + 38, + 21 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 38, + 18 + ], + "name": "current_page", + "start": [ + 38, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 323, + 25 + ], + "start": [ + 323, + 21 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 323, + 18 + ], + "name": "current_page", + "start": [ + 323, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 34, + 46 + ], + "start": [ + 34, + 21 + ], + "type": "select", + "view": "vector3" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 34, + 18 + ], + "name": "default_size", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 136, + 66 + ], + "start": [ + 136, + 21 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 136, + 18 + ], + "name": "default_size", + "start": [ + 136, + 1 + ], + "type": "setfield", + "view": "vector3", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 24, + 8 + ], + "name": "self", + "start": [ + 24, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + } + ], + "finish": [ + 87, + 3 + ], + "start": [ + 24, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:init()" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 24, + 15 + ], + "name": "init", + "start": [ + 24, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 155, + 23 + ], + "start": [ + 155, + 18 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 155, + 15 + ], + "name": "is_dirty", + "start": [ + 155, + 2 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 240, + 21 + ], + "start": [ + 240, + 17 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 240, + 14 + ], + "name": "is_dirty", + "start": [ + 240, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 254, + 21 + ], + "start": [ + 254, + 17 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 254, + 14 + ], + "name": "is_dirty", + "start": [ + 254, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 324, + 21 + ], + "start": [ + 324, + 17 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 324, + 14 + ], + "name": "is_dirty", + "start": [ + 324, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 311, + 8 + ], + "name": "self", + "start": [ + 311, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + } + ], + "finish": [ + 313, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 311, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:is_hidden()\n -> unknown" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 311, + 20 + ], + "name": "is_hidden", + "start": [ + 311, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "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": { + "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": [ + 11, + 29 + ], + "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": [ + 11, + 17 + ], + "type": "doc.type", + "types": [ + { + "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": [ + 11, + 29 + ], + "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": [ + 11, + 17 + ], + "type": "doc.type.name", + "view": "druid.layout" + } + ], + "view": "druid.layout" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 11, + 29 + ], + "name": "layout", + "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": [ + 11, + 10 + ], + "type": "doc.field", + "view": "druid.layout", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 95, + 8 + ], + "name": "self", + "start": [ + 95, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 95, + 28 + ], + "name": "dx", + "start": [ + 95, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 95, + 32 + ], + "name": "dy", + "start": [ + 95, + 30 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 98, + 3 + ], + "start": [ + 95, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:on_drag_widget(dx: any, dy: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 95, + 25 + ], + "name": "on_drag_widget", + "start": [ + 95, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 90, + 8 + ], + "name": "self", + "start": [ + 90, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + } + ], + "finish": [ + 92, + 3 + ], + "start": [ + 90, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:on_remove()" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 90, + 20 + ], + "name": "on_remove", + "start": [ + 90, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 133, + 8 + ], + "name": "self", + "start": [ + 133, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 133, + 35 + ], + "name": "new_size", + "start": [ + 133, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 150, + 3 + ], + "start": [ + 133, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:on_size_changed(new_size: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 133, + 26 + ], + "name": "on_size_changed", + "start": [ + 133, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 18, + 61 + ], + "start": [ + 18, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 18, + 61 + ], + "start": [ + 18, + 20 + ], + "type": "doc.type.name", + "view": "druid.widget.property_left_right_selector" + } + ], + "view": "druid.widget.property_left_right_selector" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 18, + 61 + ], + "name": "paginator", + "start": [ + 18, + 10 + ], + "type": "doc.field", + "view": "druid.widget.property_left_right_selector", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "List of created properties", + "extends": { + "finish": [ + 19, + 35 + ], + "start": [ + 19, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 35 + ], + "start": [ + 19, + 21 + ], + "type": "doc.type.array", + "view": "druid.widget[]" + } + ], + "view": "druid.widget[]" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 19, + 35 + ], + "name": "properties", + "rawdesc": "List of created properties", + "start": [ + 19, + 10 + ], + "type": "doc.field", + "view": "druid.widget[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "List of properties functions to create a new widget. Used to not spawn non-visible widgets but keep the reference", + "extends": { + "finish": [ + 20, + 41 + ], + "start": [ + 20, + 34 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 20, + 41 + ], + "start": [ + 20, + 34 + ], + "type": "doc.type.array", + "view": "fun()[]" + } + ], + "view": "fun()[]" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 20, + 41 + ], + "name": "properties_constructors", + "rawdesc": "List of properties functions to create a new widget. Used to not spawn non-visible widgets but keep the reference", + "start": [ + 20, + 10 + ], + "type": "doc.field", + "view": "fun()[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 30 + ], + "start": [ + 39, + 28 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 39, + 25 + ], + "name": "properties_per_page", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 318, + 47 + ], + "start": [ + 318, + 28 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 318, + 25 + ], + "name": "properties_per_page", + "start": [ + 318, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 60, + 68 + ], + "start": [ + 60, + 31 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 60, + 28 + ], + "name": "property_button_prefab", + "start": [ + 60, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 54, + 72 + ], + "start": [ + 54, + 33 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 54, + 30 + ], + "name": "property_checkbox_prefab", + "start": [ + 54, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 63, + 66 + ], + "start": [ + 63, + 30 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 63, + 27 + ], + "name": "property_input_prefab", + "start": [ + 63, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 69, + 94 + ], + "start": [ + 69, + 44 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 69, + 41 + ], + "name": "property_left_right_selector_prefab", + "start": [ + 69, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 57, + 68 + ], + "start": [ + 57, + 31 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 57, + 28 + ], + "name": "property_slider_prefab", + "start": [ + 57, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 66, + 64 + ], + "start": [ + 66, + 29 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 66, + 26 + ], + "name": "property_text_prefab", + "start": [ + 66, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 72, + 70 + ], + "start": [ + 72, + 32 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 72, + 29 + ], + "name": "property_vector3_prefab", + "start": [ + 72, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 279, + 8 + ], + "name": "self", + "start": [ + 279, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 279, + 24 + ], + "name": "widget", + "start": [ + 279, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 297, + 3 + ], + "start": [ + 279, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:remove(widget: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 279, + 17 + ], + "name": "remove", + "start": [ + 279, + 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, + "extends": { + "finish": [ + 9, + 19 + ], + "start": [ + 9, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 19 + ], + "start": [ + 9, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 9, + 19 + ], + "name": "root", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 29 + ], + "start": [ + 10, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 29 + ], + "start": [ + 10, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 10, + 29 + ], + "name": "scroll", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 300, + 8 + ], + "name": "self", + "start": [ + 300, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 300, + 31 + ], + "name": "is_hidden", + "start": [ + 300, + 22 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 308, + 3 + ], + "start": [ + 300, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:set_hidden(is_hidden: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 300, + 21 + ], + "name": "set_hidden", + "start": [ + 300, + 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, + "extends": { + "args": [ + { + "finish": [ + 322, + 8 + ], + "name": "self", + "start": [ + 322, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 322, + 24 + ], + "name": "page", + "start": [ + 322, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 325, + 3 + ], + "start": [ + 322, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:set_page(page: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 322, + 19 + ], + "name": "set_page", + "start": [ + 322, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 317, + 8 + ], + "name": "self", + "start": [ + 317, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 317, + 54 + ], + "name": "properties_per_page", + "start": [ + 317, + 35 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 319, + 3 + ], + "start": [ + 317, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:set_properties_per_page(properties_per_page: number)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 317, + 34 + ], + "name": "set_properties_per_page", + "start": [ + 317, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 17, + 32 + ], + "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": [ + 17, + 22 + ], + "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": [ + 17, + 32 + ], + "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": [ + 17, + 22 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 17, + 32 + ], + "name": "text_header", + "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": [ + 17, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 153, + 8 + ], + "name": "self", + "start": [ + 153, + 8 + ], + "type": "self", + "view": "druid.widget.properties_panel" + }, + { + "finish": [ + 153, + 20 + ], + "name": "dt", + "start": [ + 153, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 175, + 3 + ], + "start": [ + 153, + 0 + ], + "type": "function", + "view": "(method) druid.widget.properties_panel:update(dt: any)" + }, + "file": "/druid/widget/properties_panel/properties_panel.lua", + "finish": [ + 153, + 17 + ], + "name": "update", + "start": [ + 153, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.widget.properties_panel", + "type": "type", + "view": "druid.widget.properties_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 40 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_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": [ + 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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 6, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 4, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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": [ + 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/widget/properties_panel/properties/property_button.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, + "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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "druid.widget.property_button" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_button:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "druid.widget.property_button" + } + ], + "finish": [ + 34, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_button:on_click()" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 31, + 19 + ], + "name": "on_click", + "start": [ + 31, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 42 + ], + "start": [ + 17, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 17, + 14 + ], + "name": "selected", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 53, + 8 + ], + "name": "self", + "start": [ + 53, + 8 + ], + "type": "self", + "view": "druid.widget.property_button" + }, + { + "finish": [ + 53, + 32 + ], + "name": "color_value", + "start": [ + 53, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 55, + 3 + ], + "start": [ + 53, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_button:set_color(color_value: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 53, + 20 + ], + "name": "set_color", + "start": [ + 53, + 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, + "extends": { + "args": [ + { + "finish": [ + 47, + 8 + ], + "name": "self", + "start": [ + 47, + 8 + ], + "type": "self", + "view": "druid.widget.property_button" + }, + { + "finish": [ + 47, + 31 + ], + "name": "text", + "start": [ + 47, + 27 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 50, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_button" + } + ], + "start": [ + 47, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_button:set_text_button(text: string)\n -> druid.widget.property_button" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 47, + 26 + ], + "name": "set_text_button", + "start": [ + 47, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 39, + 8 + ], + "name": "self", + "start": [ + 39, + 8 + ], + "type": "self", + "view": "druid.widget.property_button" + }, + { + "finish": [ + 39, + 33 + ], + "name": "text", + "start": [ + 39, + 29 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 42, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_button" + } + ], + "start": [ + 39, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_button:set_text_property(text: string)\n -> druid.widget.property_button" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 39, + 28 + ], + "name": "set_text_property", + "start": [ + 39, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 7, + 32 + ], + "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": [ + 7, + 22 + ], + "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": [ + 7, + 32 + ], + "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": [ + 7, + 22 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 7, + 32 + ], + "name": "text_button", + "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": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_button.lua", + "finish": [ + 5, + 30 + ], + "name": "text_name", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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.widget.property_button", + "type": "type", + "view": "druid.widget.property_button" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 42 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_checkbox", + "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, + "extends": { + "finish": [ + 39, + 20 + ], + "start": [ + 39, + 15 + ], + "type": "getlocal", + "view": "boolean" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 39, + 12 + ], + "name": "_value", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "boolean", + "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": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 6, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 25, + 53 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 25, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 25, + 15 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "druid.container", + "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": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + } + ], + "finish": [ + 53, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:get_value()\n -> boolean" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 51, + 20 + ], + "name": "get_value", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 14, + 34 + ], + "start": [ + 14, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 14, + 10 + ], + "name": "icon", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + } + ], + "finish": [ + 30, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Set the callback function for when the checkbox value changes", + "extends": { + "args": [ + { + "finish": [ + 70, + 8 + ], + "name": "self", + "start": [ + 70, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + }, + { + "finish": [ + 70, + 29 + ], + "name": "callback", + "start": [ + 70, + 21 + ], + "type": "local", + "view": "function" + } + ], + "desc": "Set the callback function for when the checkbox value changes", + "finish": [ + 72, + 3 + ], + "rawdesc": "Set the callback function for when the checkbox value changes", + "start": [ + 70, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:on_change(callback: function)" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 70, + 20 + ], + "name": "on_change", + "rawdesc": "Set the callback function for when the checkbox value changes", + "start": [ + 70, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 29, + 38 + ], + "start": [ + 29, + 24 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 29, + 21 + ], + "name": "on_change_value", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + } + ], + "finish": [ + 58, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:on_click()" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 56, + 19 + ], + "name": "on_click", + "start": [ + 56, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 7, + 23 + ], + "name": "selected", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "node", + "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 the text property of the checkbox", + "extends": { + "args": [ + { + "finish": [ + 63, + 8 + ], + "name": "self", + "start": [ + 63, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + }, + { + "finish": [ + 63, + 33 + ], + "name": "text", + "start": [ + 63, + 29 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Set the text property of the checkbox", + "finish": [ + 65, + 3 + ], + "rawdesc": "Set the text property of the checkbox", + "start": [ + 63, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:set_text_property(text: string)" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 63, + 28 + ], + "name": "set_text_property", + "rawdesc": "Set the text property of the checkbox", + "start": [ + 63, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "druid.widget.property_checkbox" + }, + { + "finish": [ + 34, + 26 + ], + "name": "value", + "start": [ + 34, + 21 + ], + "type": "local", + "view": "boolean" + }, + { + "finish": [ + 34, + 38 + ], + "name": "is_instant", + "start": [ + 34, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 47, + 3 + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_checkbox:set_value(value: boolean, is_instant: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 34, + 20 + ], + "name": "set_value", + "start": [ + 34, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_checkbox.lua", + "finish": [ + 5, + 30 + ], + "name": "text_name", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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.widget.property_checkbox", + "type": "type", + "view": "druid.widget.property_checkbox" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 0, + 51 + ], + "start": [ + 0, + 39 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 0, + 51 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_input", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 4, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 2, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 2, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 2, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 8, + 8 + ], + "name": "self", + "start": [ + 8, + 8 + ], + "type": "self", + "view": "druid.widget.property_input" + } + ], + "finish": [ + 21, + 3 + ], + "start": [ + 8, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_input:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 8, + 15 + ], + "name": "init", + "start": [ + 8, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 42, + 8 + ], + "name": "self", + "start": [ + 42, + 8 + ], + "type": "self", + "view": "druid.widget.property_input" + }, + { + "finish": [ + 42, + 29 + ], + "name": "callback", + "start": [ + 42, + 21 + ], + "type": "local", + "view": "fun(self: druid.widget.property_input, text: string)" + }, + { + "finish": [ + 42, + 47 + ], + "name": "callback_context", + "start": [ + 42, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 44, + 3 + ], + "start": [ + 42, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_input:on_change(callback: fun(self: druid.widget.property_input, text: string), callback_context: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 42, + 20 + ], + "name": "on_change", + "start": [ + 42, + 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, + "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": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 16, + 58 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 16, + 19 + ], + "type": "select", + "view": "druid.rich_input" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 16, + 16 + ], + "name": "rich_input", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.rich_input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 1, + 19 + ], + "start": [ + 1, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 1, + 19 + ], + "start": [ + 1, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 1, + 19 + ], + "name": "root", + "start": [ + 1, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 42 + ], + "start": [ + 13, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 13, + 14 + ], + "name": "selected", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 26, + 8 + ], + "name": "self", + "start": [ + 26, + 8 + ], + "type": "self", + "view": "druid.widget.property_input" + }, + { + "finish": [ + 26, + 33 + ], + "name": "text", + "start": [ + 26, + 29 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 29, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_input" + } + ], + "start": [ + 26, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_input:set_text_property(text: string)\n -> druid.widget.property_input" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 26, + 28 + ], + "name": "set_text_property", + "start": [ + 26, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "druid.widget.property_input" + }, + { + "finish": [ + 34, + 30 + ], + "name": "text", + "start": [ + 34, + 26 + ], + "type": "local", + "view": "string|number" + } + ], + "finish": [ + 37, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_input" + } + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_input:set_text_value(text: string|number)\n -> druid.widget.property_input" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 34, + 25 + ], + "name": "set_text_value", + "start": [ + 34, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 3, + 30 + ], + "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": [ + 3, + 20 + ], + "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": [ + 3, + 30 + ], + "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": [ + 3, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_input.lua", + "finish": [ + 3, + 30 + ], + "name": "text_name", + "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": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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.widget.property_input", + "type": "type", + "view": "druid.widget.property_input" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 65 + ], + "start": [ + 2, + 53 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 2, + 65 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_left_right_selector", + "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": "@*param* `koef` — -1 0 1, on 0 will not move", + "extends": { + "args": [ + { + "finish": [ + 144, + 8 + ], + "name": "self", + "start": [ + 144, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + }, + { + "desc": "-1 0 1, on 0 will not move", + "finish": [ + 144, + 24 + ], + "name": "koef", + "rawdesc": "-1 0 1, on 0 will not move", + "start": [ + 144, + 20 + ], + "type": "local", + "view": "number" + } + ], + "desc": "@*param* `koef` — -1 0 1, on 0 will not move", + "finish": [ + 161, + 3 + ], + "start": [ + 144, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:add_step(koef: number)" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 144, + 19 + ], + "name": "add_step", + "start": [ + 144, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 181, + 2 + ], + "start": [ + 177, + 19 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 177, + 16 + ], + "name": "array_type", + "start": [ + 177, + 1 + ], + "type": "setfield", + "view": "table", + "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": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 6, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "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": [ + 22, + 77 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 22, + 20 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 22, + 17 + ], + "name": "button_left", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 25, + 80 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 21 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 25, + 18 + ], + "name": "button_right", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 30, + 53 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 30, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 30, + 15 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 30, + 1 + ], + "type": "setfield", + "view": "druid.container", + "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": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 205, + 8 + ], + "name": "self", + "start": [ + 205, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + } + ], + "finish": [ + 207, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "string|number" + } + ], + "start": [ + 205, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:get_value()\n -> string|number" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 205, + 20 + ], + "name": "get_value", + "start": [ + 205, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 170, + 2 + ], + "start": [ + 165, + 20 + ], + "type": "table", + "view": "table" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 165, + 17 + ], + "name": "number_type", + "start": [ + 165, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 134, + 8 + ], + "name": "self", + "start": [ + 134, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + } + ], + "finish": [ + 136, + 3 + ], + "start": [ + 134, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:on_button_left()" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 134, + 25 + ], + "name": "on_button_left", + "start": [ + 134, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 138, + 8 + ], + "name": "self", + "start": [ + 138, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + } + ], + "finish": [ + 140, + 3 + ], + "start": [ + 138, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:on_button_right()" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 138, + 26 + ], + "name": "on_button_right", + "start": [ + 138, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "fun(value: string|number)", + "extends": { + "finish": [ + 9, + 31 + ], + "start": [ + 9, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 31 + ], + "start": [ + 9, + 26 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 9, + 31 + ], + "name": "on_change_value", + "rawdesc": "fun(value: string|number)", + "start": [ + 9, + 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": "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 7, + 23 + ], + "name": "selected", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 176, + 8 + ], + "name": "self", + "start": [ + 176, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + }, + { + "finish": [ + 176, + 31 + ], + "name": "array", + "start": [ + 176, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 176, + 40 + ], + "name": "is_loop", + "start": [ + 176, + 33 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 176, + 47 + ], + "name": "steps", + "start": [ + 176, + 42 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 184, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_left_right_selector" + } + ], + "start": [ + 176, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:set_array_type(array: any, is_loop: any, steps: any)\n -> druid.widget.property_left_right_selector" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 176, + 25 + ], + "name": "set_array_type", + "start": [ + 176, + 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, + "extends": { + "args": [ + { + "finish": [ + 164, + 8 + ], + "name": "self", + "start": [ + 164, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + }, + { + "finish": [ + 164, + 30 + ], + "name": "min", + "start": [ + 164, + 27 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 164, + 35 + ], + "name": "max", + "start": [ + 164, + 32 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 164, + 44 + ], + "name": "is_loop", + "start": [ + 164, + 37 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 164, + 51 + ], + "name": "steps", + "start": [ + 164, + 46 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 173, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_left_right_selector" + } + ], + "start": [ + 164, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:set_number_type(min: any, max: any, is_loop: any, steps: any)\n -> druid.widget.property_left_right_selector" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 164, + 26 + ], + "name": "set_number_type", + "start": [ + 164, + 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, + "extends": { + "args": [ + { + "finish": [ + 36, + 8 + ], + "name": "self", + "start": [ + 36, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + }, + { + "finish": [ + 36, + 24 + ], + "name": "text", + "start": [ + 36, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 39, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_left_right_selector" + } + ], + "start": [ + 36, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:set_text(text: any)\n -> druid.widget.property_left_right_selector" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 36, + 19 + ], + "name": "set_text", + "start": [ + 36, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 188, + 8 + ], + "name": "self", + "start": [ + 188, + 8 + ], + "type": "self", + "view": "druid.widget.property_left_right_selector" + }, + { + "finish": [ + 188, + 26 + ], + "name": "value", + "start": [ + 188, + 21 + ], + "type": "local", + "view": "string|number" + }, + { + "finish": [ + 188, + 38 + ], + "name": "is_instant", + "start": [ + 188, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 201, + 3 + ], + "start": [ + 188, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_left_right_selector:set_value(value: string|number, is_instant: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 188, + 20 + ], + "name": "set_value", + "start": [ + 188, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "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": [ + 5, + 30 + ], + "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": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 5, + 30 + ], + "name": "text_name", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 21, + 52 + ], + "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": [ + 21, + 19 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 21, + 16 + ], + "name": "text_value", + "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": [ + 21, + 1 + ], + "type": "setfield", + "view": "druid.text", + "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": [ + 8, + 29 + ], + "start": [ + 8, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 22 + ], + "start": [ + 8, + 16 + ], + "type": "doc.type.name", + "view": "string" + }, + { + "finish": [ + 8, + 29 + ], + "start": [ + 8, + 23 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "string|number" + }, + "file": "/druid/widget/properties_panel/properties/property_left_right_selector.lua", + "finish": [ + 8, + 29 + ], + "name": "value", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "string|number", + "visible": "public" + } + ], + "name": "druid.widget.property_left_right_selector", + "type": "type", + "view": "druid.widget.property_left_right_selector" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 52 + ], + "start": [ + 3, + 40 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 3, + 52 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_slider", + "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, + "extends": { + "args": [ + { + "finish": [ + 120, + 8 + ], + "name": "self", + "start": [ + 120, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 120, + 42 + ], + "name": "value", + "start": [ + 120, + 37 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 122, + 3 + ], + "start": [ + 120, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:_on_slider_change_by_user(value: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 120, + 36 + ], + "name": "_on_slider_change_by_user", + "start": [ + 120, + 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": [ + 45, + 31 + ], + "start": [ + 45, + 23 + ], + "type": "getlocal", + "view": "fun(value: number):string" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 45, + 20 + ], + "name": "_text_function", + "start": [ + 45, + 1 + ], + "type": "setfield", + "view": "fun(value: number):string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 16 + ], + "start": [ + 18, + 15 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 18, + 12 + ], + "name": "_value", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 74, + 20 + ], + "start": [ + 74, + 15 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 74, + 12 + ], + "name": "_value", + "start": [ + 74, + 1 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 5, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 86, + 8 + ], + "name": "self", + "start": [ + 86, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + } + ], + "finish": [ + 88, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "number" + } + ], + "start": [ + 86, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:get_value()\n -> number" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 86, + 20 + ], + "name": "get_value", + "start": [ + 86, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 14, + 8 + ], + "name": "self", + "start": [ + 14, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + } + ], + "finish": [ + 40, + 3 + ], + "start": [ + 14, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 14, + 15 + ], + "name": "init", + "start": [ + 14, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 13 + ], + "start": [ + 21, + 12 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 21, + 9 + ], + "name": "max", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 109, + 20 + ], + "start": [ + 109, + 12 + ], + "type": "binary", + "view": "any" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 109, + 9 + ], + "name": "max", + "start": [ + 109, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 20, + 13 + ], + "start": [ + 20, + 12 + ], + "type": "integer", + "view": "integer" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 20, + 9 + ], + "name": "min", + "start": [ + 20, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 108, + 20 + ], + "start": [ + 108, + 12 + ], + "type": "binary", + "view": "any" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 108, + 9 + ], + "name": "min", + "start": [ + 108, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Sets the callback function for when the slider value changes", + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 59, + 29 + ], + "name": "callback", + "start": [ + 59, + 21 + ], + "type": "local", + "view": "fun(value: number)" + } + ], + "desc": "Sets the callback function for when the slider value changes", + "finish": [ + 61, + 3 + ], + "rawdesc": "Sets the callback function for when the slider value changes", + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:on_change(callback: fun(value: number))" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 59, + 20 + ], + "name": "on_change", + "rawdesc": "Sets the callback function for when the slider value changes", + "start": [ + 59, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "fun(value:number)", + "extends": { + "finish": [ + 10, + 31 + ], + "start": [ + 10, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 31 + ], + "start": [ + 10, + 26 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 10, + 31 + ], + "name": "on_change_value", + "rawdesc": "fun(value:number)", + "start": [ + 10, + 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": "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, + "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/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 42 + ], + "start": [ + 16, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 16, + 14 + ], + "name": "selected", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 107, + 8 + ], + "name": "self", + "start": [ + 107, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 107, + 30 + ], + "name": "min", + "start": [ + 107, + 27 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 107, + 35 + ], + "name": "max", + "start": [ + 107, + 32 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 107, + 41 + ], + "name": "step", + "start": [ + 107, + 37 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 117, + 3 + ], + "start": [ + 107, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:set_number_type(min: any, max: any, step: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 107, + 26 + ], + "name": "set_number_type", + "start": [ + 107, + 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, + "extends": { + "args": [ + { + "finish": [ + 44, + 8 + ], + "name": "self", + "start": [ + 44, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 44, + 37 + ], + "name": "callback", + "start": [ + 44, + 29 + ], + "type": "local", + "view": "fun(value: number):string" + } + ], + "finish": [ + 47, + 3 + ], + "start": [ + 44, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:set_text_function(callback: fun(value: number):string)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 44, + 28 + ], + "name": "set_text_function", + "start": [ + 44, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Sets the text property of the slider", + "extends": { + "args": [ + { + "finish": [ + 52, + 8 + ], + "name": "self", + "start": [ + 52, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 52, + 33 + ], + "name": "text", + "start": [ + 52, + 29 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Sets the text property of the slider", + "finish": [ + 54, + 3 + ], + "rawdesc": "Sets the text property of the slider", + "start": [ + 52, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:set_text_property(text: string)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 52, + 28 + ], + "name": "set_text_property", + "rawdesc": "Sets the text property of the slider", + "start": [ + 52, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 65, + 8 + ], + "name": "self", + "start": [ + 65, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 65, + 26 + ], + "name": "value", + "start": [ + 65, + 21 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 65, + 38 + ], + "name": "is_instant", + "start": [ + 65, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 82, + 3 + ], + "start": [ + 65, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:set_value(value: number, is_instant: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 65, + 20 + ], + "name": "set_value", + "start": [ + 65, + 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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 9, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 9, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 9, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 9, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 9, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 17 + ], + "start": [ + 22, + 13 + ], + "type": "number", + "view": "number" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 22, + 10 + ], + "name": "step", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 110, + 17 + ], + "start": [ + 110, + 13 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 110, + 10 + ], + "name": "step", + "start": [ + 110, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 7, + 30 + ], + "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": [ + 7, + 20 + ], + "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": [ + 7, + 30 + ], + "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": [ + 7, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 7, + 30 + ], + "name": "text_name", + "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": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 8, + 31 + ], + "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": [ + 8, + 21 + ], + "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": [ + 8, + 31 + ], + "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": [ + 8, + 21 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 8, + 31 + ], + "name": "text_value", + "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": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": [ + { + "finish": [ + 91, + 8 + ], + "name": "self", + "start": [ + 91, + 8 + ], + "type": "self", + "view": "druid.widget.property_slider" + }, + { + "finish": [ + 91, + 29 + ], + "name": "value", + "start": [ + 91, + 24 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 104, + 3 + ], + "start": [ + 91, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_slider:update_value(value: any)" + }, + "file": "/druid/widget/properties_panel/properties/property_slider.lua", + "finish": [ + 91, + 23 + ], + "name": "update_value", + "start": [ + 91, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "druid.widget.property_slider", + "type": "type", + "view": "druid.widget.property_slider" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 0, + 50 + ], + "start": [ + 0, + 38 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 0, + 50 + ], + "start": [ + 0, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 2, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 2, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 2, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 2, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 7, + 8 + ], + "name": "self", + "start": [ + 7, + 8 + ], + "type": "self", + "view": "druid.widget.property_text" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 7, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_text:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 7, + 15 + ], + "name": "init", + "start": [ + 7, + 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, + "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, + "extends": { + "finish": [ + 1, + 19 + ], + "start": [ + 1, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 1, + 19 + ], + "start": [ + 1, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 1, + 19 + ], + "name": "root", + "start": [ + 1, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 27, + 8 + ], + "name": "self", + "start": [ + 27, + 8 + ], + "type": "self", + "view": "druid.widget.property_text" + }, + { + "finish": [ + 27, + 33 + ], + "name": "text", + "start": [ + 27, + 29 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 30, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_text" + } + ], + "start": [ + 27, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_text:set_text_property(text: string)\n -> druid.widget.property_text" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 27, + 28 + ], + "name": "set_text_property", + "start": [ + 27, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "druid.widget.property_text" + }, + { + "finish": [ + 35, + 30 + ], + "name": "text", + "start": [ + 35, + 26 + ], + "type": "local", + "view": "string|nil" + } + ], + "finish": [ + 38, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_text" + } + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_text:set_text_value(text: string|nil)\n -> druid.widget.property_text" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 35, + 25 + ], + "name": "set_text_value", + "start": [ + 35, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 3, + 30 + ], + "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": [ + 3, + 20 + ], + "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": [ + 3, + 30 + ], + "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": [ + 3, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 3, + 30 + ], + "name": "text_name", + "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": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 4, + 31 + ], + "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": [ + 4, + 21 + ], + "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": [ + 4, + 31 + ], + "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": [ + 4, + 21 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_text.lua", + "finish": [ + 4, + 31 + ], + "name": "text_right", + "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": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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.widget.property_text", + "type": "type", + "view": "druid.widget.property_text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 53 + ], + "start": [ + 3, + 41 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 3, + 53 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "druid.widget.property_vector3", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 7, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 7, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 7, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 5, + 35 + ], + "name": "container", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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": [ + 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/widget/properties_panel/properties/property_vector3.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, + "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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "druid.widget.property_vector3" + } + ], + "finish": [ + 51, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_vector3:init()" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 50, + 32 + ], + "start": [ + 50, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 50, + 15 + ], + "name": "on_change", + "start": [ + 50, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 25, + 62 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 25, + 21 + ], + "type": "select", + "view": "druid.rich_input" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 25, + 18 + ], + "name": "rich_input_x", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "druid.rich_input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 26, + 62 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 26, + 21 + ], + "type": "select", + "view": "druid.rich_input" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 26, + 18 + ], + "name": "rich_input_y", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "druid.rich_input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 27, + 62 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 27, + 21 + ], + "type": "select", + "view": "druid.rich_input" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 27, + 18 + ], + "name": "rich_input_z", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "druid.rich_input", + "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/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 46 + ], + "start": [ + 16, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 16, + 16 + ], + "name": "selected_x", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 46 + ], + "start": [ + 19, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 19, + 16 + ], + "name": "selected_y", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 46 + ], + "start": [ + 22, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 22, + 16 + ], + "name": "selected_z", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "druid.widget.property_vector3" + }, + { + "finish": [ + 56, + 33 + ], + "name": "text", + "start": [ + 56, + 29 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 59, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_vector3" + } + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_vector3:set_text_property(text: string)\n -> druid.widget.property_vector3" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 56, + 28 + ], + "name": "set_text_property", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 66, + 8 + ], + "name": "self", + "start": [ + 66, + 8 + ], + "type": "self", + "view": "druid.widget.property_vector3" + }, + { + "finish": [ + 66, + 22 + ], + "name": "x", + "start": [ + 66, + 21 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 66, + 25 + ], + "name": "y", + "start": [ + 66, + 24 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 66, + 28 + ], + "name": "z", + "start": [ + 66, + 27 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 71, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "druid.widget.property_vector3" + } + ], + "start": [ + 66, + 0 + ], + "type": "function", + "view": "(method) druid.widget.property_vector3:set_value(x: number, y: number, z: number)\n -> druid.widget.property_vector3" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 66, + 20 + ], + "name": "set_value", + "start": [ + 66, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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, + 30 + ], + "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, + 20 + ], + "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, + 30 + ], + "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, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 6, + 30 + ], + "name": "text_name", + "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, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": [ + 29, + 30 + ], + "start": [ + 29, + 14 + ], + "type": "select", + "view": "unknown" + }, + "file": "/druid/widget/properties_panel/properties/property_vector3.lua", + "finish": [ + 29, + 11 + ], + "name": "value", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + } + ], + "name": "druid.widget.property_vector3", + "type": "type", + "view": "druid.widget.property_vector3" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 6, + 38 + ], + "start": [ + 6, + 33 + ], + "type": "doc.extends.name", + "view": "event" + } + ], + "file": "/druid/extended/layout.lua", + "finish": [ + 6, + 38 + ], + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "event.on_size_changed", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 78 + ], + "start": [ + 7, + 20 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 7, + 25 + ], + "name": { + "[1]": "_", + "finish": [ + 7, + 25 + ], + "start": [ + 7, + 24 + ], + "type": "doc.type.arg.name", + "view": "_" + }, + "start": [ + 7, + 24 + ], + "type": "doc.type.arg", + "view": "any" + }, + { + "finish": [ + 7, + 59 + ], + "name": { + "[1]": "callback", + "finish": [ + 7, + 35 + ], + "start": [ + 7, + 27 + ], + "type": "doc.type.arg.name", + "view": "callback" + }, + "start": [ + 7, + 27 + ], + "type": "doc.type.arg", + "view": "fun(new_size: vector3)" + }, + { + "finish": [ + 7, + 77 + ], + "name": { + "[1]": "context", + "finish": [ + 7, + 68 + ], + "start": [ + 7, + 61 + ], + "type": "doc.type.arg.name", + "view": "context" + }, + "start": [ + 7, + 61 + ], + "type": "doc.type.arg", + "view": "any" + } + ], + "finish": [ + 7, + 78 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 7, + 20 + ], + "type": "doc.type.function", + "view": "fun(_: any, callback: fun(new_size: vector3), context: any)" + } + ], + "view": "fun(_: any, callback: fun(new_size: vector3), context: any)" + }, + "file": "/druid/extended/layout.lua", + "finish": [ + 7, + 78 + ], + "name": "subscribe", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "fun(_: any, callback: fun(new_size: vector3), context: any)", + "visible": "public" + } + ], + "name": "event.on_size_changed", + "type": "type", + "view": "event.on_size_changed" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/event_queue.lua", + "finish": [ + 2, + 21 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "event.queue", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Processes the queue for a given event name, executing callbacks and handling results.\nProcessed callbacks are removed from the queue.\n\n@*param* `event_name` — The name of the event for which to process the queue.", + "extends": { + "args": [ + { + "desc": "The name of the event for which to process the queue.", + "finish": [ + 52, + 47 + ], + "name": "event_name", + "rawdesc": "The name of the event for which to process the queue.", + "start": [ + 52, + 37 + ], + "type": "local", + "view": "string" + } + ], + "desc": "Processes the queue for a given event name, executing callbacks and handling results.\nProcessed callbacks are removed from the queue.\n\n@*param* `event_name` — The name of the event for which to process the queue.", + "finish": [ + 80, + 3 + ], + "rawdesc": "Processes the queue for a given event name, executing callbacks and handling results.\nProcessed callbacks are removed from the queue.", + "start": [ + 52, + 0 + ], + "type": "function", + "view": "function event.queue.process_pending_callbacks(event_name: string)" + }, + "file": "/druid/event_queue.lua", + "finish": [ + 52, + 36 + ], + "name": "process_pending_callbacks", + "rawdesc": "Processes the queue for a given event name, executing callbacks and handling results.\nProcessed callbacks are removed from the queue.", + "start": [ + 52, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Request to handle a specified event and processes the queue of callbacks associated with it.\nIf event has already been triggered, the callback will be executed immediately.\nIf event not triggered yet, callback will be executed when event will be triggered.\nIt triggered only once and then removed from the queue.\n\n@*param* `event_name` — The name of the event to trigger.\n\n@*param* `callback` — The callback function to execute upon triggering.\n\n@*param* `...` — Additional arguments for the callback.", + "extends": { + "args": [ + { + "desc": "The name of the event to trigger.", + "finish": [ + 16, + 29 + ], + "name": "event_name", + "rawdesc": "The name of the event to trigger.", + "start": [ + 16, + 19 + ], + "type": "local", + "view": "string" + }, + { + "desc": "The callback function to execute upon triggering.", + "finish": [ + 16, + 39 + ], + "name": "callback", + "rawdesc": "The callback function to execute upon triggering.", + "start": [ + 16, + 31 + ], + "type": "local", + "view": "fun()" + }, + { + "desc": "Additional arguments for the callback.", + "finish": [ + 16, + 44 + ], + "rawdesc": "Additional arguments for the callback.", + "start": [ + 16, + 41 + ], + "type": "...", + "view": "any" + } + ], + "desc": "Request to handle a specified event and processes the queue of callbacks associated with it.\nIf event has already been triggered, the callback will be executed immediately.\nIf event not triggered yet, callback will be executed when event will be triggered.\nIt triggered only once and then removed from the queue.\n\n@*param* `event_name` — The name of the event to trigger.\n\n@*param* `callback` — The callback function to execute upon triggering.\n\n@*param* `...` — Additional arguments for the callback.", + "finish": [ + 21, + 3 + ], + "rawdesc": "Request to handle a specified event and processes the queue of callbacks associated with it.\nIf event has already been triggered, the callback will be executed immediately.\nIf event not triggered yet, callback will be executed when event will be triggered.\nIt triggered only once and then removed from the queue.", + "start": [ + 16, + 0 + ], + "type": "function", + "view": "function event.queue.request(event_name: string, callback: fun(), ...any)" + }, + "file": "/druid/event_queue.lua", + "finish": [ + 16, + 18 + ], + "name": "request", + "rawdesc": "Request to handle a specified event and processes the queue of callbacks associated with it.\nIf event has already been triggered, the callback will be executed immediately.\nIf event not triggered yet, callback will be executed when event will be triggered.\nIt triggered only once and then removed from the queue.", + "start": [ + 16, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Subscribes to a specified event and executes a callback when the event is triggered.\n If the event has already been triggered, the callback will be executed immediately.\n\n@*param* `event_name` — The name of the event to subscribe to.\n\n@*param* `callback` — The function to call when the event is triggered.", + "extends": { + "args": [ + { + "desc": "The name of the event to subscribe to.", + "finish": [ + 28, + 31 + ], + "name": "event_name", + "rawdesc": "The name of the event to subscribe to.", + "start": [ + 28, + 21 + ], + "type": "local", + "view": "string" + }, + { + "desc": "The function to call when the event is triggered.", + "finish": [ + 28, + 41 + ], + "name": "callback", + "rawdesc": "The function to call when the event is triggered.", + "start": [ + 28, + 33 + ], + "type": "local", + "view": "fun()" + } + ], + "desc": "Subscribes to a specified event and executes a callback when the event is triggered.\n If the event has already been triggered, the callback will be executed immediately.\n\n@*param* `event_name` — The name of the event to subscribe to.\n\n@*param* `callback` — The function to call when the event is triggered.", + "finish": [ + 36, + 3 + ], + "rawdesc": "Subscribes to a specified event and executes a callback when the event is triggered.\n If the event has already been triggered, the callback will be executed immediately.", + "start": [ + 28, + 0 + ], + "type": "function", + "view": "function event.queue.subscribe(event_name: string, callback: fun())" + }, + "file": "/druid/event_queue.lua", + "finish": [ + 28, + 20 + ], + "name": "subscribe", + "rawdesc": "Subscribes to a specified event and executes a callback when the event is triggered.\n If the event has already been triggered, the callback will be executed immediately.", + "start": [ + 28, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Unsubscribes a callback function from a specified event.\n\n@*param* `event_name` — The name of the event to unsubscribe from.\n\n@*param* `callback` — The function to remove from the event's subscription list.", + "extends": { + "args": [ + { + "desc": "The name of the event to unsubscribe from.", + "finish": [ + 42, + 33 + ], + "name": "event_name", + "rawdesc": "The name of the event to unsubscribe from.", + "start": [ + 42, + 23 + ], + "type": "local", + "view": "string" + }, + { + "desc": "The function to remove from the event's subscription list.", + "finish": [ + 42, + 43 + ], + "name": "callback", + "rawdesc": "The function to remove from the event's subscription list.", + "start": [ + 42, + 35 + ], + "type": "local", + "view": "fun()" + } + ], + "desc": "Unsubscribes a callback function from a specified event.\n\n@*param* `event_name` — The name of the event to unsubscribe from.\n\n@*param* `callback` — The function to remove from the event's subscription list.", + "finish": [ + 46, + 3 + ], + "rawdesc": "Unsubscribes a callback function from a specified event.", + "start": [ + 42, + 0 + ], + "type": "function", + "view": "function event.queue.unsubscribe(event_name: string, callback: fun())" + }, + "file": "/druid/event_queue.lua", + "finish": [ + 42, + 22 + ], + "name": "unsubscribe", + "rawdesc": "Unsubscribes a callback function from a specified event.", + "start": [ + 42, + 9 + ], + "type": "setfield", + "view": "function", + "visible": "public" + } + ], + "name": "event.queue", + "type": "type", + "view": "event.queue" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 7, + 51 + ], + "start": [ + 7, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 7, + 51 + ], + "start": [ + 7, + 10 + ], + "type": "doc.class", + "view": "examples.animation_blend", + "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, + "extends": { + "finish": [ + 24, + 103 + ], + "start": [ + 24, + 29 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 24, + 26 + ], + "name": "animation_horizontal", + "start": [ + 24, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 97 + ], + "start": [ + 22, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 22, + 20 + ], + "name": "animation_idle", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 23, + 101 + ], + "start": [ + 23, + 27 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 23, + 24 + ], + "name": "animation_vertical", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 9, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 9, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 9, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 9, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 9, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 9, + 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, + "extends": { + "args": [ + { + "finish": [ + 15, + 8 + ], + "name": "self", + "start": [ + 15, + 8 + ], + "type": "self", + "view": "examples.animation_blend" + }, + { + "finish": [ + 15, + 24 + ], + "name": "template", + "start": [ + 15, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 15, + 31 + ], + "name": "nodes", + "start": [ + 15, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 15, + 0 + ], + "type": "function", + "view": "(method) examples.animation_blend:init(template: string, nodes: table)" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 15, + 15 + ], + "name": "init", + "start": [ + 15, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 37, + 8 + ], + "name": "self", + "start": [ + 37, + 8 + ], + "type": "self", + "view": "examples.animation_blend" + }, + { + "finish": [ + 37, + 29 + ], + "name": "action_id", + "start": [ + 37, + 20 + ], + "type": "local", + "view": "hash" + }, + { + "finish": [ + 37, + 37 + ], + "name": "action", + "start": [ + 37, + 31 + ], + "type": "local", + "view": "action" + } + ], + "finish": [ + 50, + 3 + ], + "start": [ + 37, + 0 + ], + "type": "function", + "view": "(method) examples.animation_blend:on_input(action_id: hash, action: action)" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 37, + 19 + ], + "name": "on_input", + "start": [ + 37, + 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, + "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, + "extends": { + "finish": [ + 31, + 32 + ], + "start": [ + 31, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 31, + 15 + ], + "name": "on_update", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 59, + 127 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 59, + 18 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 59, + 15 + ], + "name": "rich_text", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 59, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 8, + 19 + ], + "start": [ + 8, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 19 + ], + "start": [ + 8, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 8, + 19 + ], + "name": "root", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 41 + ], + "start": [ + 19, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 19, + 15 + ], + "name": "root_size", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "args": [ + { + "finish": [ + 58, + 8 + ], + "name": "self", + "start": [ + 58, + 8 + ], + "type": "self", + "view": "examples.animation_blend" + } + ], + "finish": [ + 69, + 3 + ], + "start": [ + 58, + 0 + ], + "type": "function", + "view": "(method) examples.animation_blend:setup_rich_text()" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 58, + 26 + ], + "name": "setup_rich_text", + "start": [ + 58, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 53, + 8 + ], + "name": "self", + "start": [ + 53, + 8 + ], + "type": "self", + "view": "examples.animation_blend" + } + ], + "finish": [ + 55, + 3 + ], + "start": [ + 53, + 0 + ], + "type": "function", + "view": "(method) examples.animation_blend:update()" + }, + "file": "/example/examples/panthera/animation_blend/animation_blend.lua", + "finish": [ + 53, + 17 + ], + "name": "update", + "start": [ + 53, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "examples.animation_blend", + "type": "type", + "view": "examples.animation_blend" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 51 + ], + "start": [ + 5, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/panthera/basic_animation/basic_animation.lua", + "finish": [ + 5, + 51 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.basic_animation", + "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, + "extends": { + "finish": [ + 15, + 91 + ], + "start": [ + 15, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/panthera/basic_animation/basic_animation.lua", + "finish": [ + 15, + 15 + ], + "name": "animation", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 21, + 5 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 17, + 15 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/panthera/basic_animation/basic_animation.lua", + "finish": [ + 17, + 12 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 17, + 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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/panthera/basic_animation/basic_animation.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.basic_animation" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.basic_animation:init(template: string, nodes: table)" + }, + "file": "/example/examples/panthera/basic_animation/basic_animation.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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": "examples.basic_animation", + "type": "type", + "view": "examples.basic_animation" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 39 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/back_handler/basic_back_handler.lua", + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/back_handler/basic_back_handler.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.basic_back_handler" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 12, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.basic_back_handler:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/back_handler/basic_back_handler.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 15, + 8 + ], + "name": "self", + "start": [ + 15, + 8 + ], + "type": "self", + "view": "examples.basic_back_handler" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 15, + 0 + ], + "type": "function", + "view": "(method) examples.basic_back_handler:on_back()" + }, + "file": "/example/examples/basic/back_handler/basic_back_handler.lua", + "finish": [ + 15, + 18 + ], + "name": "on_back", + "start": [ + 15, + 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, + "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": "examples.basic_back_handler", + "type": "type", + "view": "examples.basic_back_handler" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 34 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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, + "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": [ + 5, + 31 + ], + "start": [ + 5, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 31 + ], + "start": [ + 5, + 18 + ], + "type": "doc.type.name", + "view": "druid.blocker" + } + ], + "view": "druid.blocker" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 5, + 31 + ], + "name": "blocker", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.blocker", + "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": [ + 19, + 73 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 19, + 15 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 19, + 12 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 16, + 72 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 20 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 16, + 17 + ], + "name": "button_root", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.basic_blocker" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.basic_blocker:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 28, + 8 + ], + "name": "self", + "start": [ + 28, + 8 + ], + "type": "self", + "view": "examples.basic_blocker" + } + ], + "finish": [ + 30, + 3 + ], + "start": [ + 28, + 0 + ], + "type": "function", + "view": "(method) examples.basic_blocker:on_button_click()" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 28, + 26 + ], + "name": "on_button_click", + "start": [ + 28, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 23, + 8 + ], + "name": "self", + "start": [ + 23, + 8 + ], + "type": "self", + "view": "examples.basic_blocker" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 23, + 0 + ], + "type": "function", + "view": "(method) examples.basic_blocker:on_root_click()" + }, + "file": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 23, + 24 + ], + "name": "on_root_click", + "start": [ + 23, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "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": "/example/examples/basic/blocker/basic_blocker.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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": "examples.basic_blocker", + "type": "type", + "view": "examples.basic_blocker" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 33 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/button/basic_button.lua", + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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": [ + 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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/button/basic_button.lua", + "finish": [ + 4, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/button/basic_button.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.basic_button" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 15, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.basic_button:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/button/basic_button.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 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, + "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": "examples.basic_button", + "type": "type", + "view": "examples.basic_button" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 46 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/button/basic_button_double_click.lua", + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_button_double_click", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/button/basic_button_double_click.lua", + "finish": [ + 4, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/button/basic_button_double_click.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.basic_button_double_click" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 19, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.basic_button_double_click:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/button/basic_button_double_click.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 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, + "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": "examples.basic_button_double_click", + "type": "type", + "view": "examples.basic_button_double_click" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 53 + ], + "start": [ + 5, + 38 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/button/basic_button_hold.lua", + "finish": [ + 5, + 53 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.basic_button_hold", + "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, + "extends": { + "finish": [ + 15, + 76 + ], + "start": [ + 15, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/button/basic_button_hold.lua", + "finish": [ + 15, + 15 + ], + "name": "animation", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 7, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 7, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/button/basic_button_hold.lua", + "finish": [ + 7, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/button/basic_button_hold.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.basic_button_hold" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 45, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.basic_button_hold:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/button/basic_button_hold.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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": "examples.basic_button_hold", + "type": "type", + "view": "examples.basic_button_hold" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 33 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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": "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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 component used for managing hotkeys and trigger callbacks when hotkeys are pressed", + "extends": { + "desc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed", + "finish": [ + 15, + 79 + ], + "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed", + "start": [ + 15, + 15 + ], + "type": "select", + "view": "druid.hotkey" + }, + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 15, + 12 + ], + "name": "hotkey", + "rawdesc": "The component used for managing hotkeys and trigger callbacks when hotkeys are pressed", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "druid.hotkey", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.basic_hotkey" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 16, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.basic_hotkey:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 19, + 8 + ], + "name": "self", + "start": [ + 19, + 8 + ], + "type": "self", + "view": "examples.basic_hotkey" + } + ], + "finish": [ + 23, + 3 + ], + "start": [ + 19, + 0 + ], + "type": "function", + "view": "(method) examples.basic_hotkey:on_hotkey()" + }, + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 19, + 20 + ], + "name": "on_hotkey", + "start": [ + 19, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "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": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/hotkey/basic_hotkey.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.basic_hotkey", + "type": "type", + "view": "examples.basic_hotkey" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 47 + ], + "start": [ + 2, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/input/basic_input.lua", + "finish": [ + 2, + 47 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_input", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/input/basic_input.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.basic_input" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 21, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.basic_input:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/input/basic_input.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing input fields in basic way", + "extends": { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 4, + 27 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 4, + 27 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.input" + } + ], + "view": "druid.input" + }, + "file": "/example/examples/basic/input/basic_input.lua", + "finish": [ + 4, + 27 + ], + "name": "input", + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing input fields in basic way", + "extends": { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 15, + 68 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 15, + 16 + ], + "type": "select", + "view": "druid.input" + }, + "file": "/example/examples/basic/input/basic_input.lua", + "finish": [ + 15, + 13 + ], + "name": "input_2", + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "druid.input", + "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": "examples.basic_input", + "type": "type", + "view": "examples.basic_input" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 48 + ], + "start": [ + 4, + 33 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 4, + 48 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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": "С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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 24, + 8 + ], + "name": "self", + "start": [ + 24, + 8 + ], + "type": "self", + "view": "examples.basic_layout" + }, + { + "finish": [ + 24, + 24 + ], + "name": "template", + "start": [ + 24, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 24, + 31 + ], + "name": "nodes", + "start": [ + 24, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 24, + 0 + ], + "type": "function", + "view": "(method) examples.basic_layout:init(template: string, nodes: table)" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 24, + 15 + ], + "name": "init", + "start": [ + 24, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "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": { + "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": [ + 28, + 66 + ], + "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": [ + 28, + 15 + ], + "type": "select", + "view": "druid.layout" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 28, + 12 + ], + "name": "layout", + "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": [ + 28, + 1 + ], + "type": "setfield", + "view": "druid.layout", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 34, + 16 + ], + "start": [ + 34, + 14 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 34, + 11 + ], + "name": "nodes", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "table", + "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, + "extends": { + "args": [ + { + "finish": [ + 67, + 8 + ], + "name": "self", + "start": [ + 67, + 8 + ], + "type": "self", + "view": "examples.basic_layout" + } + ], + "finish": [ + 72, + 3 + ], + "start": [ + 67, + 0 + ], + "type": "function", + "view": "(method) examples.basic_layout:on_remove()" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 67, + 20 + ], + "name": "on_remove", + "start": [ + 67, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 30, + 38 + ], + "start": [ + 30, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 30, + 12 + ], + "name": "prefab", + "start": [ + 30, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 6, + 19 + ], + "name": "root", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "examples.basic_layout" + }, + { + "finish": [ + 56, + 26 + ], + "name": "pivot", + "start": [ + 56, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 64, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) examples.basic_layout:set_pivot(pivot: any)" + }, + "file": "/example/examples/layout/basic/basic_layout.lua", + "finish": [ + 56, + 20 + ], + "name": "set_pivot", + "start": [ + 56, + 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": "examples.basic_layout", + "type": "type", + "view": "examples.basic_layout" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 39 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_progress_bar", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.basic_progress_bar" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 17, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.basic_progress_bar:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "extends": { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 4, + 33 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 19 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 4, + 33 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 19 + ], + "type": "doc.type.name", + "view": "druid.progress" + } + ], + "view": "druid.progress" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 4, + 33 + ], + "name": "progress", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.progress", + "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, + "extends": { + "args": [ + { + "finish": [ + 20, + 8 + ], + "name": "self", + "start": [ + 20, + 8 + ], + "type": "self", + "view": "examples.basic_progress_bar" + }, + { + "finish": [ + 20, + 26 + ], + "name": "value", + "start": [ + 20, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 23, + 3 + ], + "start": [ + 20, + 0 + ], + "type": "function", + "view": "(method) examples.basic_progress_bar:set_value(value: any)" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 20, + 20 + ], + "name": "set_value", + "start": [ + 20, + 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": [ + 14, + 50 + ], + "start": [ + 14, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar.lua", + "finish": [ + 14, + 16 + ], + "name": "text_value", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_progress_bar", + "type": "type", + "view": "examples.basic_progress_bar" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 46 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 2, + 61 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_progress_bar_slice9", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.basic_progress_bar_slice9" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 17, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.basic_progress_bar_slice9:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "extends": { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 4, + 33 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 19 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 4, + 33 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 19 + ], + "type": "doc.type.name", + "view": "druid.progress" + } + ], + "view": "druid.progress" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 4, + 33 + ], + "name": "progress", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.progress", + "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, + "extends": { + "args": [ + { + "finish": [ + 20, + 8 + ], + "name": "self", + "start": [ + 20, + 8 + ], + "type": "self", + "view": "examples.basic_progress_bar_slice9" + }, + { + "finish": [ + 20, + 26 + ], + "name": "value", + "start": [ + 20, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 23, + 3 + ], + "start": [ + 20, + 0 + ], + "type": "function", + "view": "(method) examples.basic_progress_bar_slice9:set_value(value: any)" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 20, + 20 + ], + "name": "set_value", + "start": [ + 20, + 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": [ + 14, + 50 + ], + "start": [ + 14, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/progress_bar/basic_progress_bar_slice9.lua", + "finish": [ + 14, + 16 + ], + "name": "text_value", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_progress_bar_slice9", + "type": "type", + "view": "examples.basic_progress_bar_slice9" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 51 + ], + "start": [ + 2, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/rich_text/basic_rich_text.lua", + "finish": [ + 2, + 51 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_rich_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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/rich_text/basic_rich_text.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.basic_rich_text" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 13, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.basic_rich_text:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/rich_text/basic_rich_text.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 4, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 4, + 20 + ], + "type": "doc.type.name", + "view": "druid.rich_text" + } + ], + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/basic_rich_text.lua", + "finish": [ + 4, + 35 + ], + "name": "rich_text", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text", + "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": "examples.basic_rich_text", + "type": "type", + "view": "examples.basic_rich_text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 33 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_slider", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.basic_slider" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 23, + 8 + ], + "name": "self", + "start": [ + 23, + 8 + ], + "type": "self", + "view": "examples.basic_slider" + }, + { + "finish": [ + 23, + 33 + ], + "name": "value", + "start": [ + 23, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 23, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider:on_slider_change(value: any)" + }, + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 23, + 27 + ], + "name": "on_slider_change", + "start": [ + 23, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "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": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 5, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 48 + ], + "start": [ + 19, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/slider/basic_slider.lua", + "finish": [ + 19, + 16 + ], + "name": "text_value", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_slider", + "type": "type", + "view": "examples.basic_slider" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 56 + ], + "start": [ + 2, + 41 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 2, + 56 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_slider_stepped", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.basic_slider_stepped" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider_stepped:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "examples.basic_slider_stepped" + }, + { + "finish": [ + 25, + 33 + ], + "name": "value", + "start": [ + 25, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 27, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider_stepped:on_slider_change(value: any)" + }, + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 25, + 27 + ], + "name": "on_slider_change", + "start": [ + 25, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "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": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 5, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 48 + ], + "start": [ + 21, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/slider/basic_slider_stepped.lua", + "finish": [ + 21, + 16 + ], + "name": "text_value", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_slider_stepped", + "type": "type", + "view": "examples.basic_slider_stepped" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 57 + ], + "start": [ + 2, + 42 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 2, + 57 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_slider_vertical", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.basic_slider_vertical" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider_vertical:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 23, + 8 + ], + "name": "self", + "start": [ + 23, + 8 + ], + "type": "self", + "view": "examples.basic_slider_vertical" + }, + { + "finish": [ + 23, + 33 + ], + "name": "value", + "start": [ + 23, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 23, + 0 + ], + "type": "function", + "view": "(method) examples.basic_slider_vertical:on_slider_change(value: any)" + }, + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 23, + 27 + ], + "name": "on_slider_change", + "start": [ + 23, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "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": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 5, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 48 + ], + "start": [ + 19, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/slider/basic_slider_vertical.lua", + "finish": [ + 19, + 16 + ], + "name": "text_value", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_slider_vertical", + "type": "type", + "view": "examples.basic_slider_vertical" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 47 + ], + "start": [ + 2, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 2, + 47 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.basic_swipe", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 8, + 8 + ], + "name": "self", + "start": [ + 8, + 8 + ], + "type": "self", + "view": "examples.basic_swipe" + }, + { + "finish": [ + 8, + 24 + ], + "name": "template", + "start": [ + 8, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 8, + 31 + ], + "name": "nodes", + "start": [ + 8, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 14, + 3 + ], + "start": [ + 8, + 0 + ], + "type": "function", + "view": "(method) examples.basic_swipe:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 8, + 15 + ], + "name": "init", + "start": [ + 8, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 17, + 8 + ], + "name": "self", + "start": [ + 17, + 8 + ], + "type": "self", + "view": "examples.basic_swipe" + }, + { + "finish": [ + 17, + 30 + ], + "name": "swipe_side", + "start": [ + 17, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 17, + 36 + ], + "name": "dist", + "start": [ + 17, + 32 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 17, + 48 + ], + "name": "delta_time", + "start": [ + 17, + 38 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 29, + 3 + ], + "start": [ + 17, + 0 + ], + "type": "function", + "view": "(method) examples.basic_swipe:on_swipe(swipe_side: any, dist: any, delta_time: any)" + }, + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 17, + 19 + ], + "name": "on_swipe", + "start": [ + 17, + 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": "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 component to manage swipe events over a node", + "extends": { + "desc": "The component to manage swipe events over a node", + "finish": [ + 11, + 57 + ], + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 11, + 14 + ], + "type": "select", + "view": "druid.swipe" + }, + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 11, + 11 + ], + "name": "swipe", + "rawdesc": "The component to manage swipe events over a node", + "start": [ + 11, + 1 + ], + "type": "setfield", + "view": "druid.swipe", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 45 + ], + "start": [ + 13, + 18 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/swipe/basic_swipe.lua", + "finish": [ + 13, + 15 + ], + "name": "text_hint", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "node", + "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": "examples.basic_swipe", + "type": "type", + "view": "examples.basic_swipe" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 46 + ], + "start": [ + 3, + 31 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 3, + 46 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.basic_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": " This code is for adjustable text area with mouse", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 19, + 5 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 16, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 16, + 15 + ], + "name": "container", + "rawdesc": " This code is for adjustable text area with mouse", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.container", + "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": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.basic_text" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.basic_text:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "examples.basic_text" + } + ], + "finish": [ + 36, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) examples.basic_text:refresh_text_position()" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 31, + 32 + ], + "name": "refresh_text_position", + "start": [ + 31, + 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 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": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "examples.basic_text" + }, + { + "finish": [ + 25, + 26 + ], + "name": "pivot", + "start": [ + 25, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) examples.basic_text:set_pivot(pivot: any)" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 25, + 20 + ], + "name": "set_pivot", + "start": [ + 25, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/text/basic_text.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.basic_text", + "type": "type", + "view": "examples.basic_text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 47 + ], + "start": [ + 4, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 4, + 47 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.basic_timer", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "examples.basic_timer" + }, + { + "finish": [ + 13, + 24 + ], + "name": "template", + "start": [ + 13, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 13, + 31 + ], + "name": "nodes", + "start": [ + 13, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) examples.basic_timer:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 27, + 35 + ], + "start": [ + 27, + 21 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 27, + 18 + ], + "name": "on_cycle_end", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 6, + 19 + ], + "name": "root", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "node", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 7, + 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": [ + 7, + 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": [ + 7, + 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": [ + 7, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 7, + 25 + ], + "name": "text", + "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": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a text to display a seconds timer", + "extends": { + "desc": "The component that handles a text to display a seconds timer", + "finish": [ + 17, + 42 + ], + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 17, + 14 + ], + "type": "select", + "view": "druid.timer" + }, + "file": "/example/examples/basic/timer/basic_timer.lua", + "finish": [ + 17, + 11 + ], + "name": "timer", + "rawdesc": "The component that handles a text to display a seconds timer", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.timer", + "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": "examples.basic_timer", + "type": "type", + "view": "examples.basic_timer" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 37 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.button_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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 16, + 47 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 15 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 16, + 12 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 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": [ + 6, + 18 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 18 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "any" + } + ], + "view": "any" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 6, + 18 + ], + "name": "data", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 29, + 8 + ], + "name": "self", + "start": [ + 29, + 8 + ], + "type": "self", + "view": "examples.button_component" + } + ], + "finish": [ + 31, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 29, + 0 + ], + "type": "function", + "view": "(method) examples.button_component:get_data()\n -> unknown" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 29, + 19 + ], + "name": "get_data", + "start": [ + 29, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.button_component" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.button_component:init(template: string, nodes: table)" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 24, + 8 + ], + "name": "self", + "start": [ + 24, + 8 + ], + "type": "self", + "view": "examples.button_component" + }, + { + "finish": [ + 24, + 24 + ], + "name": "data", + "start": [ + 24, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 26, + 3 + ], + "start": [ + 24, + 0 + ], + "type": "function", + "view": "(method) examples.button_component:set_data(data: any)" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 24, + 19 + ], + "name": "set_data", + "start": [ + 24, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/data_list/cache_with_component/button_component.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.button_component", + "type": "type", + "view": "examples.button_component" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 44 + ], + "start": [ + 3, + 29 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 3, + 44 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.checkbox", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 5, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 5, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 5, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 44, + 8 + ], + "name": "self", + "start": [ + 44, + 8 + ], + "type": "self", + "view": "examples.checkbox" + } + ], + "finish": [ + 46, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + } + ], + "start": [ + 44, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox:get_state()\n -> unknown" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 44, + 20 + ], + "name": "get_state", + "start": [ + 44, + 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": " Checkbox icon to hide/show", + "extends": { + "finish": [ + 15, + 34 + ], + "start": [ + 15, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 15, + 10 + ], + "name": "icon", + "rawdesc": " Checkbox icon to hide/show", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.checkbox" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 36, + 29 + ], + "start": [ + 36, + 19 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 36, + 16 + ], + "name": "is_enabled", + "start": [ + 36, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "examples.checkbox" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox:on_checkbox_click()" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 25, + 28 + ], + "name": "on_checkbox_click", + "start": [ + 25, + 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, + "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, + "extends": { + "finish": [ + 21, + 39 + ], + "start": [ + 21, + 25 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 21, + 22 + ], + "name": "on_state_changed", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": " Selected effect to show when checkbox is changed", + "extends": { + "finish": [ + 16, + 42 + ], + "start": [ + 16, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 16, + 14 + ], + "name": "selected", + "rawdesc": " Selected effect to show when checkbox is changed", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "examples.checkbox" + }, + { + "finish": [ + 31, + 31 + ], + "name": "is_enabled", + "start": [ + 31, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 41, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox:set_state(is_enabled: any)" + }, + "file": "/example/examples/basic/checkbox/checkbox.lua", + "finish": [ + 31, + 20 + ], + "name": "set_state", + "start": [ + 31, + 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": "examples.checkbox", + "type": "type", + "view": "examples.checkbox" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 6, + 50 + ], + "start": [ + 6, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 6, + 50 + ], + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "examples.checkbox_group", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 8, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 8, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 8, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 57 + ], + "start": [ + 17, + 19 + ], + "type": "select", + "view": "examples.checkbox" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 17, + 16 + ], + "name": "checkbox_1", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "examples.checkbox", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 57 + ], + "start": [ + 18, + 19 + ], + "type": "select", + "view": "examples.checkbox" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 18, + 16 + ], + "name": "checkbox_2", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "examples.checkbox", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 57 + ], + "start": [ + 19, + 19 + ], + "type": "select", + "view": "examples.checkbox" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 19, + 16 + ], + "name": "checkbox_3", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "examples.checkbox", + "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": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 7, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 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, + "extends": { + "args": [ + { + "finish": [ + 14, + 8 + ], + "name": "self", + "start": [ + 14, + 8 + ], + "type": "self", + "view": "examples.checkbox_group" + }, + { + "finish": [ + 14, + 24 + ], + "name": "template", + "start": [ + 14, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 14, + 31 + ], + "name": "nodes", + "start": [ + 14, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 26, + 3 + ], + "start": [ + 14, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox_group:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 14, + 15 + ], + "name": "init", + "start": [ + 14, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 29, + 8 + ], + "name": "self", + "start": [ + 29, + 8 + ], + "type": "self", + "view": "examples.checkbox_group" + } + ], + "finish": [ + 35, + 3 + ], + "start": [ + 29, + 0 + ], + "type": "function", + "view": "(method) examples.checkbox_group:on_checkbox_click()" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 29, + 28 + ], + "name": "on_checkbox_click", + "start": [ + 29, + 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, + "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, + "extends": { + "finish": [ + 25, + 39 + ], + "start": [ + 25, + 25 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/checkbox_group/checkbox_group.lua", + "finish": [ + 25, + 22 + ], + "name": "on_state_changed", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": "examples.checkbox_group", + "type": "type", + "view": "examples.checkbox_group" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 62 + ], + "start": [ + 3, + 47 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 3, + 62 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.data_list_add_remove_clear", + "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, + "extends": { + "args": [ + { + "finish": [ + 52, + 8 + ], + "name": "self", + "start": [ + 52, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + }, + { + "finish": [ + 52, + 25 + ], + "name": "index", + "start": [ + 52, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 54, + 3 + ], + "start": [ + 52, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:add_item(index: any)" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 52, + 19 + ], + "name": "add_item", + "start": [ + 52, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 63, + 8 + ], + "name": "self", + "start": [ + 63, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + } + ], + "finish": [ + 65, + 3 + ], + "start": [ + 63, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:clear()" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 63, + 16 + ], + "name": "clear", + "start": [ + 63, + 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": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + }, + { + "finish": [ + 34, + 41 + ], + "name": "item_data", + "start": [ + 34, + 32 + ], + "type": "local", + "view": "table" + }, + { + "finish": [ + 34, + 48 + ], + "name": "index", + "start": [ + 34, + 43 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 44, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "node" + }, + { + "type": "function.return", + "view": "druid.component" + } + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:create_item_callback(item_data: table, index: number)\n -> node\n 2. druid.component" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 34, + 31 + ], + "name": "create_item_callback", + "start": [ + 34, + 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 component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements", + "extends": { + "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": [ + 5, + 35 + ], + "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": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "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": [ + 5, + 35 + ], + "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": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.data_list" + } + ], + "view": "druid.data_list" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 5, + 35 + ], + "name": "data_list", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.data_list", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 18, + 59 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 18, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 18, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:init(template: string, nodes: table)" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 47, + 8 + ], + "name": "self", + "start": [ + 47, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + }, + { + "finish": [ + 47, + 32 + ], + "name": "index", + "start": [ + 47, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 49, + 3 + ], + "start": [ + 47, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:on_button_click(index: any)" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 47, + 26 + ], + "name": "on_button_click", + "start": [ + 47, + 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, + "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": { + "finish": [ + 27, + 36 + ], + "start": [ + 27, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 27, + 19 + ], + "name": "on_item_click", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 14, + 38 + ], + "start": [ + 14, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 14, + 12 + ], + "name": "prefab", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 57, + 8 + ], + "name": "self", + "start": [ + 57, + 8 + ], + "type": "self", + "view": "examples.data_list_add_remove_clear" + }, + { + "finish": [ + 57, + 28 + ], + "name": "index", + "start": [ + 57, + 23 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 60, + 3 + ], + "start": [ + 57, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_add_remove_clear:remove_item(index: any)" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 57, + 22 + ], + "name": "remove_item", + "start": [ + 57, + 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, + "extends": { + "finish": [ + 17, + 55 + ], + "start": [ + 17, + 15 + ], + "type": "select", + "view": "druid.scroll" + }, + "file": "/example/examples/data_list/add_remove_clear/data_list_add_remove_clear.lua", + "finish": [ + 17, + 12 + ], + "name": "scroll", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.scroll", + "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": "examples.data_list_add_remove_clear", + "type": "type", + "view": "examples.data_list_add_remove_clear" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 51 + ], + "start": [ + 3, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 3, + 51 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.data_list_basic", + "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": [ + 33, + 8 + ], + "name": "self", + "start": [ + 33, + 8 + ], + "type": "self", + "view": "examples.data_list_basic" + }, + { + "finish": [ + 33, + 41 + ], + "name": "item_data", + "start": [ + 33, + 32 + ], + "type": "local", + "view": "table" + }, + { + "finish": [ + 33, + 48 + ], + "name": "index", + "start": [ + 33, + 43 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 43, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "node" + }, + { + "type": "function.return", + "view": "druid.component" + } + ], + "start": [ + 33, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_basic:create_item_callback(item_data: table, index: number)\n -> node\n 2. druid.component" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 33, + 31 + ], + "name": "create_item_callback", + "start": [ + 33, + 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 component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements", + "extends": { + "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": [ + 18, + 93 + ], + "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": [ + 18, + 18 + ], + "type": "select", + "view": "druid.data_list" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 18, + 15 + ], + "name": "data_list", + "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": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.data_list", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 17, + 59 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 17, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 17, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.data_list_basic" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 27, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_basic:init(template: string, nodes: table)" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 46, + 8 + ], + "name": "self", + "start": [ + 46, + 8 + ], + "type": "self", + "view": "examples.data_list_basic" + }, + { + "finish": [ + 46, + 32 + ], + "name": "index", + "start": [ + 46, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 48, + 3 + ], + "start": [ + 46, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_basic:on_button_click(index: any)" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 46, + 26 + ], + "name": "on_button_click", + "start": [ + 46, + 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, + "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": { + "finish": [ + 26, + 36 + ], + "start": [ + 26, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 26, + 19 + ], + "name": "on_item_click", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 13, + 38 + ], + "start": [ + 13, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 13, + 12 + ], + "name": "prefab", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "finish": [ + 16, + 55 + ], + "start": [ + 16, + 15 + ], + "type": "select", + "view": "druid.scroll" + }, + "file": "/example/examples/data_list/basic/data_list_basic.lua", + "finish": [ + 16, + 12 + ], + "name": "scroll", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.scroll", + "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": "examples.data_list_basic", + "type": "type", + "view": "examples.data_list_basic" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 66 + ], + "start": [ + 5, + 51 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 5, + 66 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.data_list_cache_with_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": [ + 38, + 8 + ], + "name": "self", + "start": [ + 38, + 8 + ], + "type": "self", + "view": "examples.data_list_cache_with_component" + }, + { + "finish": [ + 38, + 41 + ], + "name": "item_data", + "start": [ + 38, + 32 + ], + "type": "local", + "view": "table" + }, + { + "finish": [ + 38, + 48 + ], + "name": "index", + "start": [ + 38, + 43 + ], + "type": "local", + "view": "number" + } + ], + "finish": [ + 45, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "node" + }, + { + "type": "function.return", + "view": "druid.component" + } + ], + "start": [ + 38, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_cache_with_component:create_item_callback(item_data: table, index: number)\n -> node\n 2. druid.component" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 38, + 31 + ], + "name": "create_item_callback", + "start": [ + 38, + 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 component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements", + "extends": { + "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": [ + 20, + 93 + ], + "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": [ + 20, + 18 + ], + "type": "select", + "view": "druid.data_list" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 20, + 15 + ], + "name": "data_list", + "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": [ + 20, + 1 + ], + "type": "setfield", + "view": "druid.data_list", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 19, + 59 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 19, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 19, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.data_list_cache_with_component" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_cache_with_component:init(template: string, nodes: table)" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 65, + 8 + ], + "name": "self", + "start": [ + 65, + 8 + ], + "type": "self", + "view": "examples.data_list_cache_with_component" + }, + { + "finish": [ + 65, + 35 + ], + "name": "instance", + "start": [ + 65, + 27 + ], + "type": "local", + "view": "examples.button_component" + } + ], + "finish": [ + 68, + 3 + ], + "start": [ + 65, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_cache_with_component:on_button_click(instance: examples.button_component)" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 65, + 26 + ], + "name": "on_button_click", + "start": [ + 65, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 52, + 8 + ], + "name": "self", + "start": [ + 52, + 8 + ], + "type": "self", + "view": "examples.data_list_cache_with_component" + }, + { + "finish": [ + 52, + 31 + ], + "name": "index", + "start": [ + 52, + 26 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 52, + 37 + ], + "name": "node", + "start": [ + 52, + 33 + ], + "type": "local", + "view": "node" + }, + { + "finish": [ + 52, + 47 + ], + "name": "instance", + "start": [ + 52, + 39 + ], + "type": "local", + "view": "examples.button_component" + }, + { + "finish": [ + 52, + 53 + ], + "name": "data", + "start": [ + 52, + 49 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 56, + 3 + ], + "start": [ + 52, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_cache_with_component:on_element_add(index: number, node: node, instance: examples.button_component, data: table)" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 52, + 25 + ], + "name": "on_element_add", + "start": [ + 52, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "examples.data_list_cache_with_component" + }, + { + "finish": [ + 59, + 34 + ], + "name": "index", + "start": [ + 59, + 29 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 59, + 40 + ], + "name": "node", + "start": [ + 59, + 36 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 59, + 50 + ], + "name": "instance", + "start": [ + 59, + 42 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 59, + 56 + ], + "name": "data", + "start": [ + 59, + 52 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 61, + 3 + ], + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_cache_with_component:on_element_remove(index: any, node: any, instance: any, data: any)" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 59, + 28 + ], + "name": "on_element_remove", + "start": [ + 59, + 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, + "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": { + "finish": [ + 31, + 36 + ], + "start": [ + 31, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 31, + 19 + ], + "name": "on_item_click", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 15, + 53 + ], + "start": [ + 15, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 15, + 12 + ], + "name": "prefab", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "finish": [ + 18, + 55 + ], + "start": [ + 18, + 15 + ], + "type": "select", + "view": "druid.scroll" + }, + "file": "/example/examples/data_list/cache_with_component/cache_with_component.lua", + "finish": [ + 18, + 12 + ], + "name": "scroll", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.scroll", + "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": "examples.data_list_cache_with_component", + "type": "type", + "view": "examples.data_list_cache_with_component" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 62 + ], + "start": [ + 2, + 47 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 2, + 62 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.data_list_horizontal_basic", + "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": [ + 27, + 8 + ], + "name": "self", + "start": [ + 27, + 8 + ], + "type": "self", + "view": "examples.data_list_horizontal_basic" + }, + { + "finish": [ + 27, + 41 + ], + "name": "item_data", + "start": [ + 27, + 32 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 27, + 48 + ], + "name": "index", + "start": [ + 27, + 43 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 36, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "unknown" + }, + { + "type": "function.return", + "view": "druid.button" + } + ], + "start": [ + 27, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_horizontal_basic:create_item_callback(item_data: any, index: any)\n -> unknown\n 2. druid.button" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 27, + 31 + ], + "name": "create_item_callback", + "start": [ + 27, + 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 component used for managing a list of data with a scrollable view, used to manage huge list data and render only visible elements", + "extends": { + "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": [ + 17, + 93 + ], + "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": [ + 17, + 18 + ], + "type": "select", + "view": "druid.data_list" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 17, + 15 + ], + "name": "data_list", + "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": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.data_list", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 16, + 62 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 16, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 16, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.data_list_horizontal_basic" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 24, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_horizontal_basic:init(template: string, nodes: table)" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 39, + 8 + ], + "name": "self", + "start": [ + 39, + 8 + ], + "type": "self", + "view": "examples.data_list_horizontal_basic" + }, + { + "finish": [ + 39, + 32 + ], + "name": "index", + "start": [ + 39, + 27 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 41, + 3 + ], + "start": [ + 39, + 0 + ], + "type": "function", + "view": "(method) examples.data_list_horizontal_basic:on_button_click(index: any)" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 39, + 26 + ], + "name": "on_button_click", + "start": [ + 39, + 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, + "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, + "extends": { + "finish": [ + 12, + 38 + ], + "start": [ + 12, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 12, + 12 + ], + "name": "prefab", + "start": [ + 12, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "finish": [ + 15, + 55 + ], + "start": [ + 15, + 15 + ], + "type": "select", + "view": "druid.scroll" + }, + "file": "/example/examples/data_list/basic/data_list_horizontal_basic.lua", + "finish": [ + 15, + 12 + ], + "name": "scroll", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "druid.scroll", + "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": "examples.data_list_horizontal_basic", + "type": "type", + "view": "examples.data_list_horizontal_basic" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 25 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/drag/drag.lua", + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.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, + "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": " Init drag and move the drag node on drag callback", + "extends": { + "desc": "A component that allows you to subscribe to drag events over a node", + "finish": [ + 18, + 5 + ], + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 13, + 13 + ], + "type": "select", + "view": "druid.drag" + }, + "file": "/example/examples/basic/drag/drag.lua", + "finish": [ + 13, + 10 + ], + "name": "drag", + "rawdesc": " Init drag and move the drag node on drag callback", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "druid.drag", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/drag/drag.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.drag" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.drag:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/drag/drag.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 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, + "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": " Save start position for animation", + "extends": { + "finish": [ + 21, + 55 + ], + "start": [ + 21, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/drag/drag.lua", + "finish": [ + 21, + 20 + ], + "name": "start_position", + "rawdesc": " Save start position for animation", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": "examples.drag", + "type": "type", + "view": "examples.drag" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 33 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 2, + 48 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.drag_to_node", + "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, + "extends": { + "finish": [ + 12, + 17 + ], + "start": [ + 12, + 16 + ], + "type": "integer", + "view": "integer" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 12, + 13 + ], + "name": "counter", + "start": [ + 12, + 1 + ], + "type": "setfield", + "view": "integer", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 41, + 33 + ], + "start": [ + 41, + 17 + ], + "type": "binary", + "view": "integer" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 41, + 14 + ], + "name": "counter", + "start": [ + 41, + 2 + ], + "type": "setfield", + "view": "integer", + "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": " Init drag and move the drag node on drag callback", + "extends": { + "desc": "A component that allows you to subscribe to drag events over a node", + "finish": [ + 17, + 59 + ], + "rawdesc": "A component that allows you to subscribe to drag events over a node", + "start": [ + 17, + 13 + ], + "type": "select", + "view": "druid.drag" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 17, + 10 + ], + "name": "drag", + "rawdesc": " Init drag and move the drag node on drag callback", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.drag", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.drag_to_node" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.drag_to_node:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "examples.drag_to_node" + }, + { + "finish": [ + 25, + 21 + ], + "name": "dx", + "start": [ + 25, + 19 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 25, + 25 + ], + "name": "dy", + "start": [ + 25, + 23 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 25, + 28 + ], + "name": "x", + "start": [ + 25, + 27 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 25, + 31 + ], + "name": "y", + "start": [ + 25, + 30 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 25, + 38 + ], + "name": "touch", + "start": [ + 25, + 33 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) examples.drag_to_node:on_drag(dx: any, dy: any, x: any, y: any, touch: any)" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 25, + 18 + ], + "name": "on_drag", + "start": [ + 25, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 36, + 8 + ], + "name": "self", + "start": [ + 36, + 8 + ], + "type": "self", + "view": "examples.drag_to_node" + }, + { + "finish": [ + 36, + 24 + ], + "name": "x", + "start": [ + 36, + 23 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 36, + 27 + ], + "name": "y", + "start": [ + 36, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 36, + 34 + ], + "name": "touch", + "start": [ + 36, + 29 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 36, + 0 + ], + "type": "function", + "view": "(method) examples.drag_to_node:on_drag_end(x: any, y: any, touch: any)" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 36, + 22 + ], + "name": "on_drag_end", + "start": [ + 36, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 55, + 8 + ], + "name": "self", + "start": [ + 55, + 8 + ], + "type": "self", + "view": "examples.drag_to_node" + } + ], + "finish": [ + 58, + 3 + ], + "start": [ + 55, + 0 + ], + "type": "function", + "view": "(method) examples.drag_to_node:on_drop_to_zone()" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 55, + 26 + ], + "name": "on_drop_to_zone", + "start": [ + 55, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 49, + 8 + ], + "name": "self", + "start": [ + 49, + 8 + ], + "type": "self", + "view": "examples.drag_to_node" + }, + { + "finish": [ + 49, + 42 + ], + "name": "is_pick_zone", + "start": [ + 49, + 30 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 52, + 3 + ], + "start": [ + 49, + 0 + ], + "type": "function", + "view": "(method) examples.drag_to_node:on_hover_pick_zone(is_pick_zone: any)" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 49, + 29 + ], + "name": "on_hover_pick_zone", + "start": [ + 49, + 9 + ], + "type": "setmethod", + "view": "function", + "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": " Save start position for animation", + "extends": { + "finish": [ + 21, + 55 + ], + "start": [ + 21, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 21, + 20 + ], + "name": "start_position", + "rawdesc": " Save start position for animation", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 13, + 50 + ], + "start": [ + 13, + 21 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 13, + 18 + ], + "name": "text_counter", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "node", + "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": [ + 11, + 34 + ], + "start": [ + 11, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/drag/drag_to_node.lua", + "finish": [ + 11, + 10 + ], + "name": "zone", + "start": [ + 11, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + } + ], + "name": "examples.drag_to_node", + "type": "type", + "view": "examples.drag_to_node" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 46 + ], + "start": [ + 5, + 31 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 5, + 46 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.druid_logo", + "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, + "extends": { + "finish": [ + 23, + 86 + ], + "start": [ + 23, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 23, + 15 + ], + "name": "animation", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 60 + ], + "start": [ + 26, + 24 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 26, + 21 + ], + "name": "animation_hover", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 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": "/example/components/druid_logo/druid_logo.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, + "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": [ + 27, + 42 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 27, + 14 + ], + "type": "select", + "view": "druid.hover" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 27, + 11 + ], + "name": "hover", + "rawdesc": "The component for handling hover events on a node", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "druid.hover", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 14, + 8 + ], + "name": "self", + "start": [ + 14, + 8 + ], + "type": "self", + "view": "examples.druid_logo" + }, + { + "finish": [ + 14, + 32 + ], + "name": "template", + "start": [ + 14, + 24 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 14, + 39 + ], + "name": "nodes", + "start": [ + 14, + 34 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 29, + 3 + ], + "start": [ + 14, + 0 + ], + "type": "function", + "view": "(method) examples.druid_logo:init(template: string, nodes: table)" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 14, + 23 + ], + "name": "init", + "start": [ + 14, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 32, + 8 + ], + "name": "self", + "start": [ + 32, + 8 + ], + "type": "self", + "view": "examples.druid_logo" + } + ], + "finish": [ + 34, + 3 + ], + "start": [ + 32, + 0 + ], + "type": "function", + "view": "(method) examples.druid_logo:on_click()" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 32, + 27 + ], + "name": "on_click", + "start": [ + 32, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 37, + 8 + ], + "name": "self", + "start": [ + 37, + 8 + ], + "type": "self", + "view": "examples.druid_logo" + }, + { + "finish": [ + 37, + 42 + ], + "name": "is_hover", + "start": [ + 37, + 34 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 43, + 3 + ], + "start": [ + 37, + 0 + ], + "type": "function", + "view": "(method) examples.druid_logo:on_mouse_hover(is_hover: any)" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 37, + 33 + ], + "name": "on_mouse_hover", + "start": [ + 37, + 9 + ], + "type": "setmethod", + "view": "function", + "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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 6, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 6, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 6, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 7, + 37 + ], + "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": [ + 7, + 27 + ], + "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": [ + 7, + 37 + ], + "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": [ + 7, + 27 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/druid_logo/druid_logo.lua", + "finish": [ + 7, + 37 + ], + "name": "text_description", + "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": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.druid_logo", + "type": "type", + "view": "examples.druid_logo" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 38 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/example/examples/widgets/fps_panel/example_fps_panel.lua", + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.example_fps_panel", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 10 + ], + "type": "doc.field", + "view": "druid.instance", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 63 + ], + "start": [ + 7, + 18 + ], + "type": "select", + "view": "druid.widget.fps_panel" + }, + "file": "/example/examples/widgets/fps_panel/example_fps_panel.lua", + "finish": [ + 7, + 15 + ], + "name": "fps_panel", + "start": [ + 7, + 1 + ], + "type": "setfield", + "view": "druid.widget.fps_panel", + "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, + "extends": { + "args": [ + { + "finish": [ + 6, + 8 + ], + "name": "self", + "start": [ + 6, + 8 + ], + "type": "self", + "view": "examples.example_fps_panel" + } + ], + "finish": [ + 8, + 3 + ], + "start": [ + 6, + 0 + ], + "type": "function", + "view": "(method) examples.example_fps_panel:init()" + }, + "file": "/example/examples/widgets/fps_panel/example_fps_panel.lua", + "finish": [ + 6, + 15 + ], + "name": "init", + "start": [ + 6, + 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, + "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": "examples.example_fps_panel", + "type": "type", + "view": "examples.example_fps_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 53 + ], + "start": [ + 2, + 41 + ], + "type": "doc.extends.name", + "view": "druid.widget" + } + ], + "file": "/example/examples/widgets/memory_panel/example_memory_panel.lua", + "finish": [ + 2, + 53 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.example_memory_panel", + "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": "Ready to use druid instance", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 1, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 1, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 1, + 30 + ], + "name": "druid", + "rawdesc": "Ready to use druid instance", + "start": [ + 1, + 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, + "extends": { + "args": [ + { + "finish": [ + 6, + 8 + ], + "name": "self", + "start": [ + 6, + 8 + ], + "type": "self", + "view": "examples.example_memory_panel" + } + ], + "finish": [ + 8, + 3 + ], + "start": [ + 6, + 0 + ], + "type": "function", + "view": "(method) examples.example_memory_panel:init()" + }, + "file": "/example/examples/widgets/memory_panel/example_memory_panel.lua", + "finish": [ + 6, + 15 + ], + "name": "init", + "start": [ + 6, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 72 + ], + "start": [ + 7, + 21 + ], + "type": "select", + "view": "druid.widget.memory_panel" + }, + "file": "/example/examples/widgets/memory_panel/example_memory_panel.lua", + "finish": [ + 7, + 18 + ], + "name": "memory_panel", + "start": [ + 7, + 1 + ], + "type": "setfield", + "view": "druid.widget.memory_panel", + "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": "examples.example_memory_panel", + "type": "type", + "view": "examples.example_memory_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 34 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.example_scene", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.example_scene" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 21, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.example_scene:init(template: string, nodes: table)" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 3, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "examples.example_scene" + }, + { + "finish": [ + 25, + 30 + ], + "name": "info", + "start": [ + 25, + 26 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 27, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) examples.example_scene:set_debug_info(info: string)" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 25, + 25 + ], + "name": "set_debug_info", + "start": [ + 25, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "examples.example_scene" + }, + { + "finish": [ + 31, + 28 + ], + "name": "path", + "start": [ + 31, + 24 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 37, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) examples.example_scene:set_gui_path(path: string)" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 31, + 23 + ], + "name": "set_gui_path", + "start": [ + 31, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 4, + 36 + ], + "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": [ + 4, + 26 + ], + "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": [ + 4, + 36 + ], + "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": [ + 4, + 26 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 4, + 36 + ], + "name": "text_debug_info", + "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": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 34 + ], + "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": [ + 5, + 24 + ], + "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": [ + 5, + 34 + ], + "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": [ + 5, + 24 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/example_scene/example_scene.lua", + "finish": [ + 5, + 34 + ], + "name": "text_gui_path", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.example_scene", + "type": "type", + "view": "examples.example_scene" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.gamepad_tester", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 28, + 94 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 28, + 17 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 28, + 14 + ], + "name": "button_a", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 28, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 26, + 95 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 17 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 26, + 14 + ], + "name": "button_b", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 37, + 95 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 37, + 20 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 37, + 17 + ], + "name": "button_back", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 37, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 23, + 100 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 23, + 20 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 23, + 17 + ], + "name": "button_down", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 30, + 96 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 30, + 18 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 30, + 15 + ], + "name": "button_l1", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 30, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 20, + 100 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 20, + 20 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 20, + 17 + ], + "name": "button_left", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 20, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 6, + 39 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 27 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 39 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 27 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 6, + 39 + ], + "name": "button_left_bump", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "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": [ + 31, + 96 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 31, + 18 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 31, + 15 + ], + "name": "button_r1", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 21, + 103 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 21, + 21 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 21, + 18 + ], + "name": "button_right", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 7, + 40 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 28 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 7, + 40 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 28 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 7, + 40 + ], + "name": "button_right_bump", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "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": [ + 36, + 98 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 36, + 21 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 36, + 18 + ], + "name": "button_start", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 36, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 33, + 106 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 33, + 26 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 33, + 23 + ], + "name": "button_stick_left", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 33, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 34, + 108 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 34, + 27 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 34, + 24 + ], + "name": "button_stick_right", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 22, + 94 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 22, + 18 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 22, + 15 + ], + "name": "button_up", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 25, + 94 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 17 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 25, + 14 + ], + "name": "button_x", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 27, + 92 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 27, + 17 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 27, + 14 + ], + "name": "button_y", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 27, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 4, + 30 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 18 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 4, + 30 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 18 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 4, + 30 + ], + "name": "buttons", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "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": [ + 5, + 37 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 25 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 5, + 37 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 25 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 5, + 37 + ], + "name": "buttons_system", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "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, + "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": "/example/examples/gamepad/gamepad_tester/gamepad_tester.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, + "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, + "extends": { + "args": [ + { + "finish": [ + 15, + 8 + ], + "name": "self", + "start": [ + 15, + 8 + ], + "type": "self", + "view": "examples.gamepad_tester" + }, + { + "finish": [ + 15, + 24 + ], + "name": "template", + "start": [ + 15, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 15, + 31 + ], + "name": "nodes", + "start": [ + 15, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 44, + 3 + ], + "start": [ + 15, + 0 + ], + "type": "function", + "view": "(method) examples.gamepad_tester:init(template: string, nodes: table)" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 15, + 15 + ], + "name": "init", + "start": [ + 15, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 47, + 8 + ], + "name": "self", + "start": [ + 47, + 8 + ], + "type": "self", + "view": "examples.gamepad_tester" + }, + { + "finish": [ + 47, + 29 + ], + "name": "action_id", + "start": [ + 47, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 47, + 37 + ], + "name": "action", + "start": [ + 47, + 31 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 82, + 3 + ], + "start": [ + 47, + 0 + ], + "type": "function", + "view": "(method) examples.gamepad_tester:on_input(action_id: any, action: any)" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 47, + 19 + ], + "name": "on_input", + "start": [ + 47, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "finish": [ + 42, + 57 + ], + "start": [ + 42, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 42, + 16 + ], + "name": "stick_left", + "start": [ + 42, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 43, + 59 + ], + "start": [ + 43, + 20 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 43, + 17 + ], + "name": "stick_right", + "start": [ + 43, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "extends": { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 39, + 68 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 39, + 19 + ], + "type": "select", + "view": "druid.progress" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 39, + 16 + ], + "name": "trigger_l2", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "druid.progress", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "extends": { + "desc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "finish": [ + 40, + 68 + ], + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 40, + 19 + ], + "type": "select", + "view": "druid.progress" + }, + "file": "/example/examples/gamepad/gamepad_tester/gamepad_tester.lua", + "finish": [ + 40, + 16 + ], + "name": "trigger_r2", + "rawdesc": "The component used to manage a node as a progress bar, changing the size and scale of the node", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "druid.progress", + "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": "examples.gamepad_tester", + "type": "type", + "view": "examples.gamepad_tester" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 25 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.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": "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": { + "args": [ + { + "finish": [ + 32, + 8 + ], + "name": "self", + "start": [ + 32, + 8 + ], + "type": "self", + "view": "examples.grid" + } + ], + "finish": [ + 41, + 3 + ], + "start": [ + 32, + 0 + ], + "type": "function", + "view": "(method) examples.grid:add_element()" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 32, + 22 + ], + "name": "add_element", + "start": [ + 32, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "examples.grid" + } + ], + "finish": [ + 62, + 3 + ], + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) examples.grid:clear()" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 56, + 16 + ], + "name": "clear", + "start": [ + 56, + 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, + "extends": { + "finish": [ + 14, + 24 + ], + "start": [ + 14, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 14, + 19 + ], + "name": "created_nodes", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 60, + 24 + ], + "start": [ + 60, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 60, + 19 + ], + "name": "created_nodes", + "start": [ + 60, + 1 + ], + "type": "setfield", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 3, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 3, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 3, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.grid" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 24, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.grid:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 27, + 8 + ], + "name": "self", + "start": [ + 27, + 8 + ], + "type": "self", + "view": "examples.grid" + } + ], + "finish": [ + 29, + 3 + ], + "start": [ + 27, + 0 + ], + "type": "function", + "view": "(method) examples.grid:on_remove()" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 27, + 20 + ], + "name": "on_remove", + "start": [ + 27, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 16, + 38 + ], + "start": [ + 16, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 16, + 12 + ], + "name": "prefab", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 44, + 8 + ], + "name": "self", + "start": [ + 44, + 8 + ], + "type": "self", + "view": "examples.grid" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 44, + 0 + ], + "type": "function", + "view": "(method) examples.grid:remove_element()" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 44, + 25 + ], + "name": "remove_element", + "start": [ + 44, + 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 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 4, + 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": [ + 4, + 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": [ + 4, + 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": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/grid/grid.lua", + "finish": [ + 4, + 25 + ], + "name": "text", + "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": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.grid", + "type": "type", + "view": "examples.grid" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 41 + ], + "start": [ + 2, + 26 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 2, + 41 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.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": "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, + "extends": { + "finish": [ + 24, + 52 + ], + "start": [ + 24, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 24, + 19 + ], + "name": "default_color", + "start": [ + 24, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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 component for handling hover events on a node", + "extends": { + "desc": "The component for handling hover events on a node", + "finish": [ + 4, + 27 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for handling hover events on a node", + "finish": [ + 4, + 27 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.hover" + } + ], + "view": "druid.hover" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 4, + 27 + ], + "name": "hover", + "rawdesc": "The component for handling hover events on a node", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.hover", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " Default hover callback is `on_hover`, designed for mobile devices\n It's only hover if touch action is above the node", + "extends": { + "desc": "The component for handling hover events on a node", + "finish": [ + 18, + 85 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 18, + 22 + ], + "type": "select", + "view": "druid.hover" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 18, + 19 + ], + "name": "hover_default", + "rawdesc": " Default hover callback is `on_hover`, designed for mobile devices\n It's only hover if touch action is above the node", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.hover", + "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": [ + 5, + 35 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 5, + 24 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for handling hover events on a node", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component for handling hover events on a node", + "start": [ + 5, + 24 + ], + "type": "doc.type.name", + "view": "druid.hover" + } + ], + "view": "druid.hover" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 5, + 35 + ], + "name": "hover_pressed", + "rawdesc": "The component for handling hover events on a node", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.hover", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "examples.hover" + }, + { + "finish": [ + 13, + 24 + ], + "name": "template", + "start": [ + 13, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 13, + 31 + ], + "name": "nodes", + "start": [ + 13, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) examples.hover:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 28, + 8 + ], + "name": "self", + "start": [ + 28, + 8 + ], + "type": "self", + "view": "examples.hover" + }, + { + "finish": [ + 28, + 28 + ], + "name": "is_hover", + "start": [ + 28, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 28, + 44 + ], + "name": "hover_instance", + "start": [ + 28, + 30 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 30, + 3 + ], + "start": [ + 28, + 0 + ], + "type": "function", + "view": "(method) examples.hover:on_hover(is_hover: any, hover_instance: any)" + }, + "file": "/example/examples/basic/hover/hover.lua", + "finish": [ + 28, + 19 + ], + "name": "on_hover", + "start": [ + 28, + 9 + ], + "type": "setmethod", + "view": "function", + "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": "examples.hover", + "type": "type", + "view": "examples.hover" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 46 + ], + "start": [ + 4, + 31 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 4, + 46 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.hover_hint", + "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": [ + 11, + 35 + ], + "start": [ + 11, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 11, + 35 + ], + "start": [ + 11, + 29 + ], + "type": "doc.type.name", + "view": "string" + } + ], + "view": "string" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 11, + 35 + ], + "name": "_hint_text", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "string", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 38 + ], + "start": [ + 12, + 34 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 38 + ], + "start": [ + 12, + 34 + ], + "type": "doc.type.name", + "view": "hash" + } + ], + "view": "hash" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 12, + 38 + ], + "name": "_hover_timer_id", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "hash", + "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": [ + 30, + 21 + ], + "start": [ + 30, + 18 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 30, + 15 + ], + "name": "_timer_id", + "start": [ + 30, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 49, + 7 + ], + "start": [ + 46, + 20 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 46, + 17 + ], + "name": "_timer_id", + "start": [ + 46, + 3 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 47, + 24 + ], + "start": [ + 47, + 21 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 47, + 18 + ], + "name": "_timer_id", + "start": [ + 47, + 4 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 60, + 22 + ], + "start": [ + 60, + 19 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 60, + 16 + ], + "name": "_timer_id", + "start": [ + 60, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 41, + 8 + ], + "name": "self", + "start": [ + 41, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + }, + { + "finish": [ + 41, + 30 + ], + "name": "node", + "start": [ + 41, + 26 + ], + "type": "local", + "view": "string|node" + }, + { + "finish": [ + 41, + 41 + ], + "name": "hint_text", + "start": [ + 41, + 32 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 41, + 54 + ], + "name": "pivot_point", + "start": [ + 41, + 43 + ], + "type": "local", + "view": "constant" + }, + { + "finish": [ + 41, + 69 + ], + "name": "content_pivot", + "start": [ + 41, + 56 + ], + "type": "local", + "view": "constant" + } + ], + "finish": [ + 54, + 3 + ], + "start": [ + 41, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:add_hover_hint(node: string|node, hint_text: string, pivot_point: constant, content_pivot: constant)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 41, + 25 + ], + "name": "add_hover_hint", + "start": [ + 41, + 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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 57, + 8 + ], + "name": "self", + "start": [ + 57, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + } + ], + "finish": [ + 69, + 3 + ], + "start": [ + 57, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:hide_hint()" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 57, + 20 + ], + "name": "hide_hint", + "start": [ + 57, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 9, + 30 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 30 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type.array", + "view": "druid.hover[]" + } + ], + "view": "druid.hover[]" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 9, + 30 + ], + "name": "hovers", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.hover[]", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 22, + 8 + ], + "name": "self", + "start": [ + 22, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + }, + { + "finish": [ + 22, + 24 + ], + "name": "template", + "start": [ + 22, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 22, + 31 + ], + "name": "nodes", + "start": [ + 22, + 26 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 34, + 3 + ], + "start": [ + 22, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:init(template: string, nodes: any)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 22, + 15 + ], + "name": "init", + "start": [ + 22, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 10, + 26 + ], + "start": [ + 10, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 10, + 26 + ], + "start": [ + 10, + 19 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 10, + 26 + ], + "name": "is_shown", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "boolean", + "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, + "extends": { + "finish": [ + 7, + 25 + ], + "start": [ + 7, + 21 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 25 + ], + "start": [ + 7, + 21 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 7, + 25 + ], + "name": "panel_hint", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 89, + 8 + ], + "name": "self", + "start": [ + 89, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + }, + { + "finish": [ + 89, + 31 + ], + "name": "node", + "start": [ + 89, + 27 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 89, + 42 + ], + "name": "hint_text", + "start": [ + 89, + 33 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 89, + 55 + ], + "name": "pivot_point", + "start": [ + 89, + 44 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 89, + 70 + ], + "name": "content_pivot", + "start": [ + 89, + 57 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 102, + 3 + ], + "start": [ + 89, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:refresh_content(node: any, hint_text: any, pivot_point: any, content_pivot: any)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 89, + 26 + ], + "name": "refresh_content", + "start": [ + 89, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "private" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 109, + 8 + ], + "name": "self", + "start": [ + 109, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + }, + { + "finish": [ + 109, + 32 + ], + "name": "node", + "start": [ + 109, + 28 + ], + "type": "local", + "view": "node" + }, + { + "finish": [ + 109, + 45 + ], + "name": "pivot_point", + "start": [ + 109, + 34 + ], + "type": "local", + "view": "constant" + }, + { + "finish": [ + 109, + 60 + ], + "name": "content_pivot", + "start": [ + 109, + 47 + ], + "type": "local", + "view": "constant" + } + ], + "finish": [ + 135, + 3 + ], + "start": [ + 109, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:refresh_position(node: node, pivot_point: constant, content_pivot: constant)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 109, + 27 + ], + "name": "refresh_position", + "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, + "extends": { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 19 + ], + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 6, + 19 + ], + "name": "root", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 75, + 8 + ], + "name": "self", + "start": [ + 75, + 8 + ], + "type": "self", + "view": "examples.hover_hint" + }, + { + "finish": [ + 75, + 25 + ], + "name": "node", + "start": [ + 75, + 21 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 75, + 36 + ], + "name": "hint_text", + "start": [ + 75, + 27 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 75, + 49 + ], + "name": "pivot_point", + "start": [ + 75, + 38 + ], + "type": "local", + "view": "constant" + }, + { + "finish": [ + 75, + 64 + ], + "name": "content_pivot", + "start": [ + 75, + 51 + ], + "type": "local", + "view": "constant" + } + ], + "finish": [ + 85, + 3 + ], + "start": [ + 75, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint:show_hint(node: any, hint_text: string, pivot_point: constant, content_pivot: constant)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 75, + 20 + ], + "name": "show_hint", + "start": [ + 75, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 8, + 30 + ], + "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": [ + 8, + 20 + ], + "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": [ + 8, + 30 + ], + "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": [ + 8, + 20 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint.lua", + "finish": [ + 8, + 30 + ], + "name": "text_hint", + "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": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.hover_hint", + "type": "type", + "view": "examples.hover_hint" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 54 + ], + "start": [ + 4, + 39 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/widgets/hover_hint/hover_hint_example.lua", + "finish": [ + 4, + 54 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.hover_hint_example", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint_example.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "finish": [ + 13, + 59 + ], + "start": [ + 13, + 19 + ], + "type": "select", + "view": "examples.hover_hint" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint_example.lua", + "finish": [ + 13, + 16 + ], + "name": "hover_hint", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "examples.hover_hint", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.hover_hint_example" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 19, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.hover_hint_example:init(template: string, nodes: table)" + }, + "file": "/example/examples/widgets/hover_hint/hover_hint_example.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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": "examples.hover_hint_example", + "type": "type", + "view": "examples.hover_hint_example" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 39 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/intro/how_to_use_example/how_to_use_example.lua", + "finish": [ + 2, + 54 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.how_to_use_example", + "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": [ + 9, + 45 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 9, + 14 + ], + "type": "select", + "view": "druid.instance" + }, + "file": "/example/examples/intro/how_to_use_example/how_to_use_example.lua", + "finish": [ + 9, + 11 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 9, + 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, + "extends": { + "args": [ + { + "finish": [ + 8, + 8 + ], + "name": "self", + "start": [ + 8, + 8 + ], + "type": "self", + "view": "examples.how_to_use_example" + }, + { + "finish": [ + 8, + 24 + ], + "name": "template", + "start": [ + 8, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 8, + 31 + ], + "name": "nodes", + "start": [ + 8, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 23, + 3 + ], + "start": [ + 8, + 0 + ], + "type": "function", + "view": "(method) examples.how_to_use_example:init(template: string, nodes: table)" + }, + "file": "/example/examples/intro/how_to_use_example/how_to_use_example.lua", + "finish": [ + 8, + 15 + ], + "name": "init", + "start": [ + 8, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 26, + 8 + ], + "name": "self", + "start": [ + 26, + 8 + ], + "type": "self", + "view": "examples.how_to_use_example" + }, + { + "finish": [ + 26, + 25 + ], + "name": "link", + "start": [ + 26, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 26, + 0 + ], + "type": "function", + "view": "(method) examples.how_to_use_example:open_link(link: any)" + }, + "file": "/example/examples/intro/how_to_use_example/how_to_use_example.lua", + "finish": [ + 26, + 20 + ], + "name": "open_link", + "start": [ + 26, + 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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/intro/how_to_use_example/how_to_use_example.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "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": "examples.how_to_use_example", + "type": "type", + "view": "examples.how_to_use_example" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/input/input_password.lua", + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.input_password", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/input/input_password.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.input_password" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 20, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.input_password:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/input/input_password.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing input fields in basic way", + "extends": { + "desc": "The component used for managing input fields in basic way", + "finish": [ + 14, + 90 + ], + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 14, + 14 + ], + "type": "select", + "view": "druid.input" + }, + "file": "/example/examples/basic/input/input_password.lua", + "finish": [ + 14, + 11 + ], + "name": "input", + "rawdesc": "The component used for managing input fields in basic way", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "druid.input", + "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, + "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": "/example/examples/basic/input/input_password.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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": "examples.input_password", + "type": "type", + "view": "examples.input_password" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 41 + ], + "start": [ + 4, + 26 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 4, + 41 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.intro", + "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, + "extends": { + "finish": [ + 26, + 81 + ], + "start": [ + 26, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 26, + 15 + ], + "name": "animation", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 11, + 45 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 11, + 14 + ], + "type": "select", + "view": "druid.instance" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 11, + 11 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 11, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.intro" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.intro:init(template: string, nodes: table)" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 36, + 8 + ], + "name": "self", + "start": [ + 36, + 8 + ], + "type": "self", + "view": "examples.intro" + } + ], + "finish": [ + 38, + 3 + ], + "start": [ + 36, + 0 + ], + "type": "function", + "view": "(method) examples.intro:on_remove()" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 36, + 20 + ], + "name": "on_remove", + "start": [ + 36, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "examples.intro" + }, + { + "finish": [ + 31, + 25 + ], + "name": "link", + "start": [ + 31, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) examples.intro:open_link(link: any)" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 31, + 20 + ], + "name": "open_link", + "start": [ + 31, + 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, + "extends": { + "finish": [ + 5, + 19 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 19 + ], + "start": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/intro/intro/intro.lua", + "finish": [ + 5, + 19 + ], + "name": "root", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "node", + "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": "examples.intro", + "type": "type", + "view": "examples.intro" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 50 + ], + "start": [ + 3, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 3, + 50 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.multiline_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": " This code is for adjustable text area with mouse", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 20, + 5 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 17, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 17, + 15 + ], + "name": "container", + "rawdesc": " This code is for adjustable text area with mouse", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.container", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.multiline_text" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 23, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.multiline_text:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 32, + 8 + ], + "name": "self", + "start": [ + 32, + 8 + ], + "type": "self", + "view": "examples.multiline_text" + } + ], + "finish": [ + 37, + 3 + ], + "start": [ + 32, + 0 + ], + "type": "function", + "view": "(method) examples.multiline_text:refresh_text_position()" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 32, + 32 + ], + "name": "refresh_text_position", + "start": [ + 32, + 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, + "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": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 4, + 19 + ], + "name": "root", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 26, + 8 + ], + "name": "self", + "start": [ + 26, + 8 + ], + "type": "self", + "view": "examples.multiline_text" + }, + { + "finish": [ + 26, + 26 + ], + "name": "pivot", + "start": [ + 26, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 29, + 3 + ], + "start": [ + 26, + 0 + ], + "type": "function", + "view": "(method) examples.multiline_text:set_pivot(pivot: any)" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 26, + 20 + ], + "name": "set_pivot", + "start": [ + 26, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 14, + 40 + ], + "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": [ + 14, + 13 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/example/examples/basic/text/multiline_text.lua", + "finish": [ + 14, + 10 + ], + "name": "text", + "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": [ + 14, + 1 + ], + "type": "setfield", + "view": "druid.text", + "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": "examples.multiline_text", + "type": "type", + "view": "examples.multiline_text" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 53 + ], + "start": [ + 3, + 38 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 3, + 53 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.on_screen_control", + "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, + "extends": { + "finish": [ + 15, + 44 + ], + "start": [ + 15, + 18 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 15, + 15 + ], + "name": "character", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 18, + 52 + ], + "start": [ + 18, + 27 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 18, + 24 + ], + "name": "character_eye_left", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 54 + ], + "start": [ + 19, + 28 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 19, + 25 + ], + "name": "character_eye_right", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 59 + ], + "start": [ + 16, + 27 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 16, + 24 + ], + "name": "character_position", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.on_screen_control" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 26, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_control:init(template: string, nodes: table)" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 29, + 8 + ], + "name": "self", + "start": [ + 29, + 8 + ], + "type": "self", + "view": "examples.on_screen_control" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 29, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_control:on_action_button()" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 29, + 27 + ], + "name": "on_action_button", + "start": [ + 29, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "examples.on_screen_control" + }, + { + "finish": [ + 35, + 24 + ], + "name": "x", + "start": [ + 35, + 23 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 35, + 27 + ], + "name": "y", + "start": [ + 35, + 26 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 35, + 31 + ], + "name": "dt", + "start": [ + 35, + 29 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 49, + 3 + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_control:on_movement(x: any, y: any, dt: any)" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 35, + 22 + ], + "name": "on_movement", + "start": [ + 35, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 52, + 8 + ], + "name": "self", + "start": [ + 52, + 8 + ], + "type": "self", + "view": "examples.on_screen_control" + } + ], + "finish": [ + 55, + 3 + ], + "start": [ + 52, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_control:on_movement_stop()" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 52, + 27 + ], + "name": "on_movement_stop", + "start": [ + 52, + 9 + ], + "type": "setmethod", + "view": "function", + "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": { + "finish": [ + 5, + 50 + ], + "start": [ + 5, + 26 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 50 + ], + "start": [ + 5, + 26 + ], + "type": "doc.type.name", + "view": "examples.on_screen_input" + } + ], + "view": "examples.on_screen_input" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_control.lua", + "finish": [ + 5, + 50 + ], + "name": "on_screen_input", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "examples.on_screen_input", + "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": "examples.on_screen_control", + "type": "type", + "view": "examples.on_screen_control" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 51 + ], + "start": [ + 5, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 5, + 51 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.on_screen_input", + "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": [ + 63, + 41 + ], + "start": [ + 63, + 24 + ], + "type": "binary", + "view": "number" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 63, + 21 + ], + "name": "_is_stick_drag", + "start": [ + 63, + 2 + ], + "type": "setfield", + "view": "boolean|number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 88, + 29 + ], + "start": [ + 88, + 24 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 88, + 21 + ], + "name": "_is_stick_drag", + "start": [ + 88, + 2 + ], + "type": "setfield", + "view": "boolean|number", + "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, + "extends": { + "finish": [ + 71, + 25 + ], + "start": [ + 71, + 17 + ], + "type": "getfield", + "view": "number" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 71, + 14 + ], + "name": "_prev_x", + "start": [ + 71, + 2 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 91, + 20 + ], + "start": [ + 91, + 17 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 91, + 14 + ], + "name": "_prev_x", + "start": [ + 91, + 2 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 72, + 25 + ], + "start": [ + 72, + 17 + ], + "type": "getfield", + "view": "number" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 72, + 14 + ], + "name": "_prev_y", + "start": [ + 72, + 2 + ], + "type": "setfield", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 92, + 20 + ], + "start": [ + 92, + 17 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 92, + 14 + ], + "name": "_prev_y", + "start": [ + 92, + 2 + ], + "type": "setfield", + "view": "number", + "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": [ + 19, + 55 + ], + "start": [ + 19, + 22 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 19, + 19 + ], + "name": "button_action", + "start": [ + 19, + 1 + ], + "type": "setfield", + "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": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 16, + 8 + ], + "name": "self", + "start": [ + 16, + 8 + ], + "type": "self", + "view": "examples.on_screen_input" + }, + { + "finish": [ + 16, + 24 + ], + "name": "template", + "start": [ + 16, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 16, + 31 + ], + "name": "nodes", + "start": [ + 16, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 30, + 3 + ], + "start": [ + 16, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_input:init(template: string, nodes: table)" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 16, + 15 + ], + "name": "init", + "start": [ + 16, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 29, + 54 + ], + "start": [ + 29, + 22 + ], + "type": "select", + "view": "boolean" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 29, + 19 + ], + "name": "is_multitouch", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "()", + "extends": { + "finish": [ + 7, + 25 + ], + "start": [ + 7, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 25 + ], + "start": [ + 7, + 20 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 7, + 25 + ], + "name": "on_action", + "rawdesc": "()", + "start": [ + 7, + 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, + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "examples.on_screen_input" + }, + { + "finish": [ + 35, + 29 + ], + "name": "action_id", + "start": [ + 35, + 20 + ], + "type": "local", + "view": "hash" + }, + { + "finish": [ + 35, + 37 + ], + "name": "action", + "start": [ + 35, + 31 + ], + "type": "local", + "view": "action" + } + ], + "finish": [ + 49, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_input:on_input(action_id: hash, action: action)\n -> boolean" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 35, + 19 + ], + "name": "on_input", + "start": [ + 35, + 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": "(x: number, y: number, dt: number) X/Y values are in range -1..1", + "extends": { + "finish": [ + 8, + 27 + ], + "start": [ + 8, + 22 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 8, + 27 + ], + "start": [ + 8, + 22 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 8, + 27 + ], + "name": "on_movement", + "rawdesc": "(x: number, y: number, dt: number) X/Y values are in range -1..1", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "event", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "()", + "extends": { + "finish": [ + 9, + 32 + ], + "start": [ + 9, + 27 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 32 + ], + "start": [ + 9, + 27 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 9, + 32 + ], + "name": "on_movement_stop", + "rawdesc": "()", + "start": [ + 9, + 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": { + "finish": [ + 20, + 63 + ], + "start": [ + 20, + 26 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 20, + 23 + ], + "name": "on_screen_control", + "start": [ + 20, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 53, + 8 + ], + "name": "self", + "start": [ + 53, + 8 + ], + "type": "self", + "view": "examples.on_screen_input" + }, + { + "finish": [ + 53, + 31 + ], + "name": "action", + "start": [ + 53, + 25 + ], + "type": "local", + "view": "action|touch" + } + ], + "finish": [ + 96, + 3 + ], + "start": [ + 53, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_input:process_touch(action: action|touch)" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 53, + 24 + ], + "name": "process_touch", + "start": [ + 53, + 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 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, + "extends": { + "finish": [ + 23, + 56 + ], + "start": [ + 23, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 23, + 20 + ], + "name": "stick_position", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 62 + ], + "start": [ + 22, + 19 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 22, + 16 + ], + "name": "stick_root", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 99, + 8 + ], + "name": "self", + "start": [ + 99, + 8 + ], + "type": "self", + "view": "examples.on_screen_input" + }, + { + "finish": [ + 99, + 20 + ], + "name": "dt", + "start": [ + 99, + 18 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 103, + 3 + ], + "start": [ + 99, + 0 + ], + "type": "function", + "view": "(method) examples.on_screen_input:update(dt: any)" + }, + "file": "/example/examples/gamepad/on_screen_control/on_screen_input.lua", + "finish": [ + 99, + 17 + ], + "name": "update", + "start": [ + 99, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "examples.on_screen_input", + "type": "type", + "view": "examples.on_screen_input" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 6, + 47 + ], + "start": [ + 6, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 6, + 47 + ], + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "examples.radio_group", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 8, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 8, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 8, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 2 + ], + "start": [ + 18, + 19 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 18, + 16 + ], + "name": "checkboxes", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "table", + "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": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 7, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 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, + "extends": { + "args": [ + { + "finish": [ + 14, + 8 + ], + "name": "self", + "start": [ + 14, + 8 + ], + "type": "self", + "view": "examples.radio_group" + }, + { + "finish": [ + 14, + 24 + ], + "name": "template", + "start": [ + 14, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 14, + 31 + ], + "name": "nodes", + "start": [ + 14, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 14, + 0 + ], + "type": "function", + "view": "(method) examples.radio_group:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 14, + 15 + ], + "name": "init", + "start": [ + 14, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 36, + 8 + ], + "name": "self", + "start": [ + 36, + 8 + ], + "type": "self", + "view": "examples.radio_group" + } + ], + "finish": [ + 51, + 3 + ], + "start": [ + 36, + 0 + ], + "type": "function", + "view": "(method) examples.radio_group:on_checkbox_click()" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 36, + 28 + ], + "name": "on_checkbox_click", + "start": [ + 36, + 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, + "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, + "extends": { + "finish": [ + 32, + 39 + ], + "start": [ + 32, + 25 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 32, + 22 + ], + "name": "on_state_changed", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 17, + 16 + ], + "start": [ + 17, + 14 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/radio_group/radio_group.lua", + "finish": [ + 17, + 11 + ], + "name": "state", + "start": [ + 17, + 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" + } + ], + "name": "examples.radio_group", + "type": "type", + "view": "examples.radio_group" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 46 + ], + "start": [ + 2, + 31 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/input/rich_input.lua", + "finish": [ + 2, + 46 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.rich_input", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/input/rich_input.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 9, + 8 + ], + "name": "self", + "start": [ + 9, + 8 + ], + "type": "self", + "view": "examples.rich_input" + }, + { + "finish": [ + 9, + 24 + ], + "name": "template", + "start": [ + 9, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 9, + 31 + ], + "name": "nodes", + "start": [ + 9, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 17, + 3 + ], + "start": [ + 9, + 0 + ], + "type": "function", + "view": "(method) examples.rich_input:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/input/rich_input.lua", + "finish": [ + 9, + 15 + ], + "name": "init", + "start": [ + 9, + 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, + "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": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 4, + 37 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 4, + 21 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 4, + 37 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 4, + 21 + ], + "type": "doc.type.name", + "view": "druid.rich_input" + } + ], + "view": "druid.rich_input" + }, + "file": "/example/examples/basic/input/rich_input.lua", + "finish": [ + 4, + 37 + ], + "name": "rich_input", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.rich_input", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "extends": { + "desc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "finish": [ + 15, + 62 + ], + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 15, + 21 + ], + "type": "select", + "view": "druid.rich_input" + }, + "file": "/example/examples/basic/input/rich_input.lua", + "finish": [ + 15, + 18 + ], + "name": "rich_input_2", + "rawdesc": "The component that handles a rich text input field, it's a wrapper around the druid.input component", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "druid.rich_input", + "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": "examples.rich_input", + "type": "type", + "view": "examples.rich_input" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 50 + ], + "start": [ + 3, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 3, + 50 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "examples.rich_text_tags", + "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": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 4, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 4, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 4, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.rich_text_tags" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 47, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.rich_text_tags:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "finish": [ + 35, + 2 + ], + "start": [ + 29, + 17 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 29, + 14 + ], + "name": "position", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "table", + "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 component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.rich_text" + } + ], + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 5, + 35 + ], + "name": "rich_text", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 23, + 69 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 23, + 25 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 23, + 22 + ], + "name": "rich_text_breaks", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 14, + 67 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 14, + 24 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 14, + 21 + ], + "name": "rich_text_color", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 14, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 17, + 65 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 17, + 23 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 17, + 20 + ], + "name": "rich_text_font", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 26, + 67 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 26, + 24 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 26, + 21 + ], + "name": "rich_text_image", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 20, + 65 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 20, + 23 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 20, + 20 + ], + "name": "rich_text_size", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 20, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "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, + "extends": { + "args": [ + { + "finish": [ + 50, + 8 + ], + "name": "self", + "start": [ + 50, + 8 + ], + "type": "self", + "view": "examples.rich_text_tags" + }, + { + "finish": [ + 50, + 26 + ], + "name": "pivot", + "start": [ + 50, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 71, + 3 + ], + "start": [ + 50, + 0 + ], + "type": "function", + "view": "(method) examples.rich_text_tags:set_pivot(pivot: any)" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags.lua", + "finish": [ + 50, + 20 + ], + "name": "set_pivot", + "start": [ + 50, + 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": "examples.rich_text_tags", + "type": "type", + "view": "examples.rich_text_tags" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 4, + 57 + ], + "start": [ + 4, + 42 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 4, + 57 + ], + "start": [ + 4, + 10 + ], + "type": "doc.class", + "view": "examples.rich_text_tags_custom", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.rich_text_tags_custom" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 41, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.rich_text_tags_custom:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "finish": [ + 40, + 36 + ], + "start": [ + 40, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 40, + 19 + ], + "name": "on_link_click", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 38, + 2 + ], + "start": [ + 34, + 17 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 34, + 14 + ], + "name": "position", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "table", + "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 component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 6, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 6, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 20 + ], + "type": "doc.type.name", + "view": "druid.rich_text" + } + ], + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 6, + 35 + ], + "name": "rich_text", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 28, + 77 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 28, + 29 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 28, + 26 + ], + "name": "rich_text_characters", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 28, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 31, + 69 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 31, + 25 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 31, + 22 + ], + "name": "rich_text_custom", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " Init rich text with links example", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 16, + 66 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 16, + 24 + ], + "type": "select", + "view": "druid.rich_text" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 16, + 21 + ], + "name": "rich_text_link", + "rawdesc": " Init rich text with links example", + "start": [ + 16, + 2 + ], + "type": "setfield", + "view": "druid.rich_text", + "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, + "extends": { + "args": [ + { + "finish": [ + 44, + 8 + ], + "name": "self", + "start": [ + 44, + 8 + ], + "type": "self", + "view": "examples.rich_text_tags_custom" + }, + { + "finish": [ + 44, + 26 + ], + "name": "pivot", + "start": [ + 44, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 62, + 3 + ], + "start": [ + 44, + 0 + ], + "type": "function", + "view": "(method) examples.rich_text_tags_custom:set_pivot(pivot: any)" + }, + "file": "/example/examples/basic/rich_text/rich_text_tags_custom.lua", + "finish": [ + 44, + 20 + ], + "name": "set_pivot", + "start": [ + 44, + 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": "examples.rich_text_tags_custom", + "type": "type", + "view": "examples.rich_text_tags_custom" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 27 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.scroll", + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 16, + 67 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 23 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 16, + 20 + ], + "name": "button_stencil", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 15, + 69 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 15, + 24 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 15, + 21 + ], + "name": "button_tutorial", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 15, + 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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "args": [ + { + "finish": [ + 10, + 8 + ], + "name": "self", + "start": [ + 10, + 8 + ], + "type": "self", + "view": "examples.scroll" + }, + { + "finish": [ + 10, + 24 + ], + "name": "template", + "start": [ + 10, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 10, + 31 + ], + "name": "nodes", + "start": [ + 10, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 17, + 3 + ], + "start": [ + 10, + 0 + ], + "type": "function", + "view": "(method) examples.scroll:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 10, + 15 + ], + "name": "init", + "start": [ + 10, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 29 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 4, + 29 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/examples/basic/scroll/scroll.lua", + "finish": [ + 4, + 29 + ], + "name": "scroll", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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": "examples.scroll", + "type": "type", + "view": "examples.scroll" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 37 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 2, + 52 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.scroll_bind_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": "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": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid" + } + ], + "finish": [ + 44, + 3 + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid:add_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 35, + 22 + ], + "name": "add_element", + "start": [ + 35, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid" + } + ], + "finish": [ + 65, + 3 + ], + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid:clear()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 59, + 16 + ], + "name": "clear", + "start": [ + 59, + 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, + "extends": { + "finish": [ + 15, + 24 + ], + "start": [ + 15, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 15, + 19 + ], + "name": "created_nodes", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 63, + 24 + ], + "start": [ + 63, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 63, + 19 + ], + "name": "created_nodes", + "start": [ + 63, + 1 + ], + "type": "setfield", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 4, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 27, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 30, + 8 + ], + "name": "self", + "start": [ + 30, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 30, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid:on_remove()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 30, + 20 + ], + "name": "on_remove", + "start": [ + 30, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 17, + 38 + ], + "start": [ + 17, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 17, + 12 + ], + "name": "prefab", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 47, + 8 + ], + "name": "self", + "start": [ + 47, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid" + } + ], + "finish": [ + 56, + 3 + ], + "start": [ + 47, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid:remove_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 47, + 25 + ], + "name": "remove_element", + "start": [ + 47, + 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, + "extends": { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 3, + 29 + ], + "name": "scroll", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.scroll_bind_grid", + "type": "type", + "view": "examples.scroll_bind_grid" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 63 + ], + "start": [ + 2, + 48 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 2, + 63 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.scroll_bind_grid_horizontal", + "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, + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_horizontal" + } + ], + "finish": [ + 44, + 3 + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_horizontal:add_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 35, + 22 + ], + "name": "add_element", + "start": [ + 35, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_horizontal" + } + ], + "finish": [ + 65, + 3 + ], + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_horizontal:clear()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 59, + 16 + ], + "name": "clear", + "start": [ + 59, + 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, + "extends": { + "finish": [ + 15, + 24 + ], + "start": [ + 15, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 15, + 19 + ], + "name": "created_nodes", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 63, + 24 + ], + "start": [ + 63, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 63, + 19 + ], + "name": "created_nodes", + "start": [ + 63, + 1 + ], + "type": "setfield", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 4, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_horizontal" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 27, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_horizontal:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 30, + 8 + ], + "name": "self", + "start": [ + 30, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_horizontal" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 30, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_horizontal:on_remove()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 30, + 20 + ], + "name": "on_remove", + "start": [ + 30, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 17, + 38 + ], + "start": [ + 17, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 17, + 12 + ], + "name": "prefab", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 47, + 8 + ], + "name": "self", + "start": [ + 47, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_horizontal" + } + ], + "finish": [ + 56, + 3 + ], + "start": [ + 47, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_horizontal:remove_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 47, + 25 + ], + "name": "remove_element", + "start": [ + 47, + 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, + "extends": { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 3, + 29 + ], + "name": "scroll", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_horizontal.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.scroll_bind_grid_horizontal", + "type": "type", + "view": "examples.scroll_bind_grid_horizontal" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 59 + ], + "start": [ + 2, + 44 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 2, + 59 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.scroll_bind_grid_points", + "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, + "extends": { + "args": [ + { + "finish": [ + 41, + 8 + ], + "name": "self", + "start": [ + 41, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_points" + } + ], + "finish": [ + 50, + 3 + ], + "start": [ + 41, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_points:add_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 41, + 22 + ], + "name": "add_element", + "start": [ + 41, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 65, + 8 + ], + "name": "self", + "start": [ + 65, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_points" + } + ], + "finish": [ + 71, + 3 + ], + "start": [ + 65, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_points:clear()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 65, + 16 + ], + "name": "clear", + "start": [ + 65, + 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, + "extends": { + "finish": [ + 15, + 24 + ], + "start": [ + 15, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 15, + 19 + ], + "name": "created_nodes", + "start": [ + 15, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 69, + 24 + ], + "start": [ + 69, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 69, + 19 + ], + "name": "created_nodes", + "start": [ + 69, + 1 + ], + "type": "setfield", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 4, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 4, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_points" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_points:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 36, + 8 + ], + "name": "self", + "start": [ + 36, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_points" + } + ], + "finish": [ + 38, + 3 + ], + "start": [ + 36, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_points:on_remove()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 36, + 20 + ], + "name": "on_remove", + "start": [ + 36, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 17, + 38 + ], + "start": [ + 17, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 17, + 12 + ], + "name": "prefab", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 53, + 8 + ], + "name": "self", + "start": [ + 53, + 8 + ], + "type": "self", + "view": "examples.scroll_bind_grid_points" + } + ], + "finish": [ + 62, + 3 + ], + "start": [ + 53, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_bind_grid_points:remove_element()" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 53, + 25 + ], + "name": "remove_element", + "start": [ + 53, + 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, + "extends": { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 29 + ], + "start": [ + 3, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 3, + 29 + ], + "name": "scroll", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 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": [ + 5, + 15 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/basic/scroll_bind_grid/scroll_bind_grid_points.lua", + "finish": [ + 5, + 25 + ], + "name": "text", + "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": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.scroll_bind_grid_points", + "type": "type", + "view": "examples.scroll_bind_grid_points" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 34 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 2, + 49 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples.scroll_slider", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples.scroll_slider" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 25, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_slider:init(template: string, nodes: table)" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 40, + 8 + ], + "name": "self", + "start": [ + 40, + 8 + ], + "type": "self", + "view": "examples.scroll_slider" + }, + { + "finish": [ + 40, + 28 + ], + "name": "_", + "start": [ + 40, + 27 + ], + "type": "local", + "view": "any" + }, + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 40, + 36 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 40, + 30 + ], + "type": "local", + "view": "druid.button" + } + ], + "finish": [ + 43, + 3 + ], + "start": [ + 40, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_slider:on_button_click(_: any, button: druid.button)" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 40, + 26 + ], + "name": "on_button_click", + "start": [ + 40, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 28, + 8 + ], + "name": "self", + "start": [ + 28, + 8 + ], + "type": "self", + "view": "examples.scroll_slider" + } + ], + "finish": [ + 31, + 3 + ], + "start": [ + 28, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_slider:on_scroll()" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 28, + 20 + ], + "name": "on_scroll", + "start": [ + 28, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "examples.scroll_slider" + }, + { + "finish": [ + 34, + 26 + ], + "name": "value", + "start": [ + 34, + 21 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 36, + 3 + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_slider:on_slider(value: any)" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 34, + 20 + ], + "name": "on_slider", + "start": [ + 34, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 46, + 8 + ], + "name": "self", + "start": [ + 46, + 8 + ], + "type": "self", + "view": "examples.scroll_slider" + }, + { + "finish": [ + 46, + 40 + ], + "name": "is_hover", + "start": [ + 46, + 32 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 49, + 3 + ], + "start": [ + 46, + 0 + ], + "type": "function", + "view": "(method) examples.scroll_slider:on_slider_back_hover(is_hover: any)" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 46, + 31 + ], + "name": "on_slider_back_hover", + "start": [ + 46, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 4, + 29 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 4, + 29 + ], + "start": [ + 4, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 4, + 29 + ], + "name": "scroll", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 5, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/example/examples/basic/scroll_slider/scroll_slider.lua", + "finish": [ + 5, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "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": "examples.scroll_slider", + "type": "type", + "view": "examples.scroll_slider" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 55 + ], + "start": [ + 5, + 40 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 5, + 55 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.window_confirmation", + "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, + "extends": { + "finish": [ + 29, + 92 + ], + "start": [ + 29, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 29, + 15 + ], + "name": "animation", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 26, + 65 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 22 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 26, + 19 + ], + "name": "button_accept", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 11, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 11, + 23 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 11, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 11, + 23 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 11, + 35 + ], + "name": "button_close", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 11, + 10 + ], + "type": "doc.field", + "view": "druid.button", + "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": [ + 27, + 67 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 27, + 23 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 27, + 20 + ], + "name": "button_decline", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 27, + 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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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, + "extends": { + "args": [ + { + "finish": [ + 17, + 8 + ], + "name": "self", + "start": [ + 17, + 8 + ], + "type": "self", + "view": "examples.window_confirmation" + }, + { + "finish": [ + 17, + 24 + ], + "name": "template", + "start": [ + 17, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 17, + 31 + ], + "name": "nodes", + "start": [ + 17, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 31, + 3 + ], + "start": [ + 17, + 0 + ], + "type": "function", + "view": "(method) examples.window_confirmation:init(template: string, nodes: table)" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 17, + 15 + ], + "name": "init", + "start": [ + 17, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 34, + 8 + ], + "name": "self", + "start": [ + 34, + 8 + ], + "type": "self", + "view": "examples.window_confirmation" + } + ], + "finish": [ + 36, + 3 + ], + "start": [ + 34, + 0 + ], + "type": "function", + "view": "(method) examples.window_confirmation:on_button_close()" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 34, + 26 + ], + "name": "on_button_close", + "start": [ + 34, + 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, + "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": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 29 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 29 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 8, + 44 + ], + "name": "text_button_accept", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 9, + 45 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 9, + 30 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 9, + 45 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 9, + 30 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 9, + 45 + ], + "name": "text_button_decline", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 10, + 42 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 10, + 27 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 10, + 42 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 10, + 27 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 10, + 42 + ], + "name": "text_description", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 7, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 22 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 7, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 22 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_confirmation/window_confirmation.lua", + "finish": [ + 7, + 37 + ], + "name": "text_header", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "examples.window_confirmation", + "type": "type", + "view": "examples.window_confirmation" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 47 + ], + "start": [ + 5, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 5, + 47 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "examples.window_info", + "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, + "extends": { + "finish": [ + 26, + 92 + ], + "start": [ + 26, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 26, + 15 + ], + "name": "animation", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 24, + 65 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 24, + 22 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 24, + 19 + ], + "name": "button_accept", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 24, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 9, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 9, + 23 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 9, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 9, + 23 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 9, + 35 + ], + "name": "button_close", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 10, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 10, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 10, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 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, + "extends": { + "args": [ + { + "finish": [ + 16, + 8 + ], + "name": "self", + "start": [ + 16, + 8 + ], + "type": "self", + "view": "examples.window_info" + }, + { + "finish": [ + 16, + 24 + ], + "name": "template", + "start": [ + 16, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 16, + 31 + ], + "name": "nodes", + "start": [ + 16, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 16, + 0 + ], + "type": "function", + "view": "(method) examples.window_info:init(template: string, nodes: table)" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 16, + 15 + ], + "name": "init", + "start": [ + 16, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 31, + 8 + ], + "name": "self", + "start": [ + 31, + 8 + ], + "type": "self", + "view": "examples.window_info" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 31, + 0 + ], + "type": "function", + "view": "(method) examples.window_info:on_button_close()" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 31, + 26 + ], + "name": "on_button_close", + "start": [ + 31, + 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, + "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": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 7, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 29 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 7, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 29 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 7, + 44 + ], + "name": "text_button_accept", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 42 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 27 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 42 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 27 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 8, + 42 + ], + "name": "text_description", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 6, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 6, + 22 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 6, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 6, + 22 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/examples/windows/window_info/window_info.lua", + "finish": [ + 6, + 37 + ], + "name": "text_header", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "examples.window_info", + "type": "type", + "view": "examples.window_info" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 8, + 51 + ], + "start": [ + 8, + 36 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 8, + 51 + ], + "start": [ + 8, + 10 + ], + "type": "doc.class", + "view": "examples.window_language", + "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": [ + 32, + 40 + ], + "start": [ + 32, + 25 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 32, + 22 + ], + "name": "_current_lang_id", + "start": [ + 32, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 104, + 32 + ], + "start": [ + 104, + 25 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 104, + 22 + ], + "name": "_current_lang_id", + "start": [ + 104, + 1 + ], + "type": "setfield", + "view": "any", + "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, + "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": [ + 40, + 103 + ], + "start": [ + 40, + 18 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 40, + 15 + ], + "name": "animation", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 10, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 10, + 23 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 10, + 35 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 10, + 23 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 10, + 35 + ], + "name": "button_close", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "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": [ + 28, + 24 + ], + "start": [ + 28, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 28, + 19 + ], + "name": "created_nodes", + "start": [ + 28, + 1 + ], + "type": "setfield", + "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": [ + 11, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 11, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 11, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 11, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 11, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 11, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 13, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 13, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 13, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 13, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 13, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 13, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 24, + 8 + ], + "name": "self", + "start": [ + 24, + 8 + ], + "type": "self", + "view": "examples.window_language" + }, + { + "finish": [ + 24, + 24 + ], + "name": "template", + "start": [ + 24, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 24, + 31 + ], + "name": "nodes", + "start": [ + 24, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 24, + 0 + ], + "type": "function", + "view": "(method) examples.window_language:init(template: string, nodes: table)" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 24, + 15 + ], + "name": "init", + "start": [ + 24, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 12, + 50 + ], + "start": [ + 12, + 23 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 12, + 50 + ], + "start": [ + 12, + 23 + ], + "type": "doc.type.sign", + "view": "table" + } + ], + "view": "table" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 12, + 50 + ], + "name": "lang_buttons", + "start": [ + 12, + 10 + ], + "type": "doc.field", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 59, + 8 + ], + "name": "self", + "start": [ + 59, + 8 + ], + "type": "self", + "view": "examples.window_language" + } + ], + "finish": [ + 92, + 3 + ], + "start": [ + 59, + 0 + ], + "type": "function", + "view": "(method) examples.window_language:load_langs()" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 59, + 21 + ], + "name": "load_langs", + "start": [ + 59, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 95, + 8 + ], + "name": "self", + "start": [ + 95, + 8 + ], + "type": "self", + "view": "examples.window_language" + } + ], + "finish": [ + 97, + 3 + ], + "start": [ + 95, + 0 + ], + "type": "function", + "view": "(method) examples.window_language:on_button_close()" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 95, + 26 + ], + "name": "on_button_close", + "start": [ + 95, + 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, + "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": [ + { + "finish": [ + 100, + 8 + ], + "name": "self", + "start": [ + 100, + 8 + ], + "type": "self", + "view": "examples.window_language" + }, + { + "finish": [ + 100, + 37 + ], + "name": "lang_id", + "start": [ + 100, + 30 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 112, + 3 + ], + "start": [ + 100, + 0 + ], + "type": "function", + "view": "(method) examples.window_language:on_language_button(lang_id: any)" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 100, + 29 + ], + "name": "on_language_button", + "start": [ + 100, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 14, + 34 + ], + "start": [ + 14, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 14, + 34 + ], + "start": [ + 14, + 29 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 14, + 34 + ], + "name": "on_language_change", + "start": [ + 14, + 10 + ], + "type": "doc.field", + "view": "event", + "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, + "extends": { + "args": [ + { + "finish": [ + 49, + 8 + ], + "name": "self", + "start": [ + 49, + 8 + ], + "type": "self", + "view": "examples.window_language" + } + ], + "finish": [ + 56, + 3 + ], + "start": [ + 49, + 0 + ], + "type": "function", + "view": "(method) examples.window_language:on_remove()" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 49, + 20 + ], + "name": "on_remove", + "start": [ + 49, + 9 + ], + "type": "setmethod", + "view": "function", + "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, + "extends": { + "finish": [ + 29, + 45 + ], + "start": [ + 29, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 29, + 12 + ], + "name": "prefab", + "start": [ + 29, + 1 + ], + "type": "setfield", + "view": "node", + "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": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 9, + 32 + ], + "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": [ + 9, + 22 + ], + "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": [ + 9, + 32 + ], + "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": [ + 9, + 22 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/examples/windows/window_language/window_language.lua", + "finish": [ + 9, + 32 + ], + "name": "text_header", + "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": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "examples.window_language", + "type": "type", + "view": "examples.window_language" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 6, + 45 + ], + "start": [ + 6, + 30 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 6, + 45 + ], + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "examples_list_view", + "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": "@*param* `druid_example` — The main GUI component", + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "examples_list_view" + }, + { + "finish": [ + 51, + 31 + ], + "name": "examples", + "start": [ + 51, + 23 + ], + "type": "local", + "view": "druid.examples" + }, + { + "desc": "The main GUI component", + "finish": [ + 51, + 46 + ], + "name": "druid_example", + "rawdesc": "The main GUI component", + "start": [ + 51, + 33 + ], + "type": "local", + "view": "druid.example" + } + ], + "desc": "@*param* `druid_example` — The main GUI component", + "finish": [ + 138, + 3 + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) examples_list_view:add_example(examples: druid.examples, druid_example: druid.example)" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 51, + 22 + ], + "name": "add_example", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 41, + 35 + ], + "start": [ + 41, + 21 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 41, + 18 + ], + "name": "add_log_text", + "start": [ + 41, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 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": "/example/components/examples_list_view/examples_list_view.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": [ + 38, + 19 + ], + "start": [ + 38, + 17 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 38, + 14 + ], + "name": "examples", + "start": [ + 38, + 1 + ], + "type": "setfield", + "view": "table", + "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 manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 10, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 10, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 10, + 25 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 10, + 15 + ], + "type": "doc.type.name", + "view": "druid.grid" + } + ], + "view": "druid.grid" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 10, + 25 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 10, + 10 + ], + "type": "doc.field", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 16, + 8 + ], + "name": "self", + "start": [ + 16, + 8 + ], + "type": "self", + "view": "examples_list_view" + }, + { + "finish": [ + 16, + 24 + ], + "name": "template", + "start": [ + 16, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 16, + 31 + ], + "name": "nodes", + "start": [ + 16, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 16, + 0 + ], + "type": "function", + "view": "(method) examples_list_view:init(template: string, nodes: table)" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 16, + 15 + ], + "name": "init", + "start": [ + 16, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 39, + 36 + ], + "start": [ + 39, + 22 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 39, + 19 + ], + "name": "on_debug_info", + "start": [ + 39, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 40, + 41 + ], + "start": [ + 40, + 27 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 40, + 24 + ], + "name": "on_set_information", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "unknown", + "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, + "extends": { + "finish": [ + 25, + 60 + ], + "start": [ + 25, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 25, + 12 + ], + "name": "prefab", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "node", + "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 component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 7, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 7, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 7, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 9, + 29 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 29 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 9, + 29 + ], + "name": "scroll", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "@*return* — true if example was found and selected", + "extends": { + "args": [ + { + "finish": [ + 143, + 8 + ], + "name": "self", + "start": [ + 143, + 8 + ], + "type": "self", + "view": "examples_list_view" + }, + { + "finish": [ + 143, + 44 + ], + "name": "name_id", + "start": [ + 143, + 37 + ], + "type": "local", + "view": "string" + } + ], + "desc": "@*return* — true if example was found and selected", + "finish": [ + 161, + 3 + ], + "returns": [ + { + "desc": "true if example was found and selected", + "rawdesc": "true if example was found and selected", + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 143, + 0 + ], + "type": "function", + "view": "(method) examples_list_view:select_example_by_name_id(name_id: string)\n -> boolean" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 143, + 36 + ], + "name": "select_example_by_name_id", + "start": [ + 143, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 37, + 28 + ], + "start": [ + 37, + 25 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 37, + 22 + ], + "name": "selected_example", + "start": [ + 37, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 85, + 31 + ], + "start": [ + 85, + 28 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 85, + 25 + ], + "name": "selected_example", + "start": [ + 85, + 4 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 104, + 4 + ], + "start": [ + 99, + 27 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 99, + 24 + ], + "name": "selected_example", + "start": [ + 99, + 3 + ], + "type": "setfield", + "view": "table", + "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" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 164, + 8 + ], + "name": "self", + "start": [ + 164, + 8 + ], + "type": "self", + "view": "examples_list_view" + } + ], + "finish": [ + 178, + 3 + ], + "start": [ + 164, + 0 + ], + "type": "function", + "view": "(method) examples_list_view:update_debug_info()" + }, + "file": "/example/components/examples_list_view/examples_list_view.lua", + "finish": [ + 164, + 28 + ], + "name": "update_debug_info", + "start": [ + 164, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "examples_list_view", + "type": "type", + "view": "examples_list_view" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 35 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 2, + 50 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "examples_list_view_item", + "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": [ + 23, + 23 + ], + "start": [ + 23, + 19 + ], + "type": "boolean", + "view": "boolean" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 23, + 16 + ], + "name": "_is_folded", + "start": [ + 23, + 1 + ], + "type": "setfield", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 44, + 28 + ], + "start": [ + 44, + 19 + ], + "type": "getlocal", + "view": "boolean" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 44, + 16 + ], + "name": "_is_folded", + "start": [ + 44, + 1 + ], + "type": "setfield", + "view": "boolean", + "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, + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 25, + 44 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 15 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 25, + 12 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "druid.button", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 20, + 56 + ], + "start": [ + 20, + 27 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 20, + 24 + ], + "name": "color_not_selected", + "start": [ + 20, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 54 + ], + "start": [ + 21, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 21, + 20 + ], + "name": "color_selected", + "start": [ + 21, + 1 + ], + "type": "setfield", + "view": "unknown", + "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": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 5, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 5, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 5, + 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, + "extends": { + "finish": [ + 18, + 50 + ], + "start": [ + 18, + 18 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 18, + 15 + ], + "name": "highlight", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 16, + 34 + ], + "start": [ + 16, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 16, + 10 + ], + "name": "icon", + "start": [ + 16, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 33, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:init(template: string, nodes: table)" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 49, + 8 + ], + "name": "self", + "start": [ + 49, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + } + ], + "finish": [ + 51, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 49, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:is_folded()\n -> boolean" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 49, + 20 + ], + "name": "is_folded", + "start": [ + 49, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 6, + 24 + ], + "start": [ + 6, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 6, + 24 + ], + "start": [ + 6, + 19 + ], + "type": "doc.type.name", + "view": "event" + } + ], + "view": "event" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 6, + 24 + ], + "name": "on_click", + "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, + "extends": { + "args": [ + { + "finish": [ + 62, + 8 + ], + "name": "self", + "start": [ + 62, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + }, + { + "finish": [ + 62, + 28 + ], + "name": "is_hover", + "start": [ + 62, + 20 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 68, + 3 + ], + "start": [ + 62, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:on_hover(is_hover: any)" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 62, + 19 + ], + "name": "on_hover", + "start": [ + 62, + 9 + ], + "type": "setmethod", + "view": "function", + "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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 3, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 48 + ], + "start": [ + 17, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 17, + 14 + ], + "name": "selected", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 37, + 8 + ], + "name": "self", + "start": [ + 37, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + }, + { + "finish": [ + 37, + 43 + ], + "name": "is_enabled", + "start": [ + 37, + 33 + ], + "type": "local", + "view": "boolean" + } + ], + "finish": [ + 39, + 3 + ], + "start": [ + 37, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:set_fold_icon_enabled(is_enabled: boolean)" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 37, + 32 + ], + "name": "set_fold_icon_enabled", + "start": [ + 37, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 43, + 8 + ], + "name": "self", + "start": [ + 43, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + }, + { + "finish": [ + 43, + 36 + ], + "name": "is_folded", + "start": [ + 43, + 27 + ], + "type": "local", + "view": "boolean" + } + ], + "finish": [ + 46, + 3 + ], + "start": [ + 43, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:set_fold_status(is_folded: boolean)" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 43, + 26 + ], + "name": "set_fold_status", + "start": [ + 43, + 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, + "extends": { + "args": [ + { + "finish": [ + 54, + 8 + ], + "name": "self", + "start": [ + 54, + 8 + ], + "type": "self", + "view": "examples_list_view_item" + }, + { + "finish": [ + 54, + 35 + ], + "name": "is_selected", + "start": [ + 54, + 24 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 59, + 3 + ], + "start": [ + 54, + 0 + ], + "type": "function", + "view": "(method) examples_list_view_item:set_selected(is_selected: any)" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 54, + 23 + ], + "name": "set_selected", + "start": [ + 54, + 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 component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/examples_list_view/examples_list_view_item.lua", + "finish": [ + 4, + 30 + ], + "name": "text", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "examples_list_view_item", + "type": "type", + "view": "examples_list_view_item" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 25 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 2, + 40 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "new_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": " If your component is gui template, pass the template name and set it\n If your component is cloned my gui.clone_tree, pass nodes to component and set it\n Use inner druid instance to create components inside this component", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 10, + 45 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 14 + ], + "type": "select", + "view": "druid.instance" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 10, + 11 + ], + "name": "druid", + "rawdesc": " If your component is gui template, pass the template name and set it\n If your component is cloned my gui.clone_tree, pass nodes to component and set it\n Use inner druid instance to create components inside this component", + "start": [ + 10, + 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": " Component constructor. Template name and nodes are optional. Pass it if you use it in your component", + "extends": { + "args": [ + { + "finish": [ + 6, + 8 + ], + "name": "self", + "start": [ + 6, + 8 + ], + "type": "self", + "view": "new_component" + }, + { + "finish": [ + 6, + 24 + ], + "name": "template", + "start": [ + 6, + 16 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 6, + 31 + ], + "name": "nodes", + "start": [ + 6, + 26 + ], + "type": "local", + "view": "any" + } + ], + "desc": " Component constructor. Template name and nodes are optional. Pass it if you use it in your component", + "finish": [ + 15, + 3 + ], + "rawdesc": " Component constructor. Template name and nodes are optional. Pass it if you use it in your component", + "start": [ + 6, + 0 + ], + "type": "function", + "view": "(method) new_component:init(template: any, nodes: any)" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 6, + 15 + ], + "name": "init", + "rawdesc": " Component constructor. Template name and nodes are optional. Pass it if you use it in your component", + "start": [ + 6, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call, if game gained focus", + "extends": { + "args": [ + { + "finish": [ + 61, + 8 + ], + "name": "self", + "start": [ + 61, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call, if game gained focus", + "finish": [ + 62, + 3 + ], + "rawdesc": " [OPTIONAL] Call, if game gained focus", + "start": [ + 61, + 0 + ], + "type": "function", + "view": "(method) new_component:on_focus_gained()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 61, + 26 + ], + "name": "on_focus_gained", + "rawdesc": " [OPTIONAL] Call, if game gained focus", + "start": [ + 61, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call, if game lost focus", + "extends": { + "args": [ + { + "finish": [ + 56, + 8 + ], + "name": "self", + "start": [ + 56, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call, if game lost focus", + "finish": [ + 57, + 3 + ], + "rawdesc": " [OPTIONAL] Call, if game lost focus", + "start": [ + 56, + 0 + ], + "type": "function", + "view": "(method) new_component:on_focus_lost()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 56, + 24 + ], + "name": "on_focus_lost", + "rawdesc": " [OPTIONAL] Call, if game lost focus", + "start": [ + 56, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call default on_input from gui script", + "extends": { + "args": [ + { + "finish": [ + 24, + 8 + ], + "name": "self", + "start": [ + 24, + 8 + ], + "type": "self", + "view": "new_component" + }, + { + "finish": [ + 24, + 29 + ], + "name": "action_id", + "start": [ + 24, + 20 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 24, + 37 + ], + "name": "action", + "start": [ + 24, + 31 + ], + "type": "local", + "view": "any" + } + ], + "desc": " [OPTIONAL] Call default on_input from gui script", + "finish": [ + 26, + 3 + ], + "rawdesc": " [OPTIONAL] Call default on_input from gui script", + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 24, + 0 + ], + "type": "function", + "view": "(method) new_component:on_input(action_id: any, action: any)\n -> boolean" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 24, + 19 + ], + "name": "on_input", + "rawdesc": " [OPTIONAL] Call default on_input from gui script", + "start": [ + 24, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call, if input was capturing before this component\n Example: scroll is start scrolling, so you need unhover button", + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call, if input was capturing before this component\n Example: scroll is start scrolling, so you need unhover button", + "finish": [ + 52, + 3 + ], + "rawdesc": " [OPTIONAL] Call, if input was capturing before this component\n Example: scroll is start scrolling, so you need unhover button", + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) new_component:on_input_interrupt()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 51, + 29 + ], + "name": "on_input_interrupt", + "rawdesc": " [OPTIONAL] Call, if input was capturing before this component\n Example: scroll is start scrolling, so you need unhover button", + "start": [ + 51, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call if druid has triggered on_language_change", + "extends": { + "args": [ + { + "finish": [ + 40, + 8 + ], + "name": "self", + "start": [ + 40, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call if druid has triggered on_language_change", + "finish": [ + 41, + 3 + ], + "rawdesc": " [OPTIONAL] Call if druid has triggered on_language_change", + "start": [ + 40, + 0 + ], + "type": "function", + "view": "(method) new_component:on_language_change()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 40, + 29 + ], + "name": "on_language_change", + "rawdesc": " [OPTIONAL] Call if druid has triggered on_language_change", + "start": [ + 40, + 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": " [OPTIONAL] Call if game layout has changed and need to restore values in component", + "extends": { + "args": [ + { + "finish": [ + 45, + 8 + ], + "name": "self", + "start": [ + 45, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call if game layout has changed and need to restore values in component", + "finish": [ + 46, + 3 + ], + "rawdesc": " [OPTIONAL] Call if game layout has changed and need to restore values in component", + "start": [ + 45, + 0 + ], + "type": "function", + "view": "(method) new_component:on_layout_change()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 45, + 27 + ], + "name": "on_layout_change", + "rawdesc": " [OPTIONAL] Call if game layout has changed and need to restore values in component", + "start": [ + 45, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call default on_message from gui script", + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "new_component" + }, + { + "finish": [ + 35, + 32 + ], + "name": "message_id", + "start": [ + 35, + 22 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 35, + 41 + ], + "name": "message", + "start": [ + 35, + 34 + ], + "type": "local", + "view": "any" + }, + { + "finish": [ + 35, + 49 + ], + "name": "sender", + "start": [ + 35, + 43 + ], + "type": "local", + "view": "any" + } + ], + "desc": " [OPTIONAL] Call default on_message from gui script", + "finish": [ + 36, + 3 + ], + "rawdesc": " [OPTIONAL] Call default on_message from gui script", + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) new_component:on_message(message_id: any, message: any, sender: any)" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 35, + 21 + ], + "name": "on_message", + "rawdesc": " [OPTIONAL] Call default on_message from gui script", + "start": [ + 35, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call on component remove or on druid:final", + "extends": { + "args": [ + { + "finish": [ + 66, + 8 + ], + "name": "self", + "start": [ + 66, + 8 + ], + "type": "self", + "view": "new_component" + } + ], + "desc": " [OPTIONAL] Call on component remove or on druid:final", + "finish": [ + 67, + 3 + ], + "rawdesc": " [OPTIONAL] Call on component remove or on druid:final", + "start": [ + 66, + 0 + ], + "type": "function", + "view": "(method) new_component:on_remove()" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 66, + 20 + ], + "name": "on_remove", + "rawdesc": " [OPTIONAL] Call on component remove or on druid:final", + "start": [ + 66, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": " [OPTIONAL] Call on component creation and on component:set_style() function", + "extends": { + "args": [ + { + "finish": [ + 30, + 8 + ], + "name": "self", + "start": [ + 30, + 8 + ], + "type": "self", + "view": "new_component" + }, + { + "finish": [ + 30, + 32 + ], + "name": "style", + "start": [ + 30, + 27 + ], + "type": "local", + "view": "any" + } + ], + "desc": " [OPTIONAL] Call on component creation and on component:set_style() function", + "finish": [ + 31, + 3 + ], + "rawdesc": " [OPTIONAL] Call on component creation and on component:set_style() function", + "start": [ + 30, + 0 + ], + "type": "function", + "view": "(method) new_component:on_style_change(style: any)" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 30, + 26 + ], + "name": "on_style_change", + "rawdesc": " [OPTIONAL] Call on component creation and on component:set_style() function", + "start": [ + 30, + 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": " self:get_node will auto process component template and nodes", + "extends": { + "finish": [ + 13, + 34 + ], + "start": [ + 13, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 13, + 10 + ], + "name": "root", + "rawdesc": " self:get_node will auto process component template and nodes", + "start": [ + 13, + 1 + ], + "type": "setfield", + "view": "node", + "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": " [OPTIONAL] Call every update step", + "extends": { + "args": [ + { + "finish": [ + 19, + 8 + ], + "name": "self", + "start": [ + 19, + 8 + ], + "type": "self", + "view": "new_component" + }, + { + "finish": [ + 19, + 20 + ], + "name": "dt", + "start": [ + 19, + 18 + ], + "type": "local", + "view": "any" + } + ], + "desc": " [OPTIONAL] Call every update step", + "finish": [ + 20, + 3 + ], + "rawdesc": " [OPTIONAL] Call every update step", + "start": [ + 19, + 0 + ], + "type": "function", + "view": "(method) new_component:update(dt: any)" + }, + "file": "/druid/templates/component_full.template.lua", + "finish": [ + 19, + 17 + ], + "name": "update", + "rawdesc": " [OPTIONAL] Call every update step", + "start": [ + 19, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "new_component", + "type": "type", + "view": "new_component" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 38 + ], + "start": [ + 2, + 23 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 2, + 38 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "output_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, + "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": { + "args": [ + { + "finish": [ + 38, + 8 + ], + "name": "self", + "start": [ + 38, + 8 + ], + "type": "self", + "view": "output_list" + }, + { + "finish": [ + 38, + 28 + ], + "name": "text", + "start": [ + 38, + 24 + ], + "type": "local", + "view": "string" + } + ], + "finish": [ + 54, + 3 + ], + "start": [ + 38, + 0 + ], + "type": "function", + "view": "(method) output_list:add_log_text(text: string)" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 38, + 23 + ], + "name": "add_log_text", + "start": [ + 38, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 57, + 8 + ], + "name": "self", + "start": [ + 57, + 8 + ], + "type": "self", + "view": "output_list" + } + ], + "finish": [ + 68, + 3 + ], + "start": [ + 57, + 0 + ], + "type": "function", + "view": "(method) output_list:clear()" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 57, + 16 + ], + "name": "clear", + "start": [ + 57, + 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, + "extends": { + "finish": [ + 18, + 24 + ], + "start": [ + 18, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 18, + 19 + ], + "name": "created_texts", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 66, + 24 + ], + "start": [ + 66, + 22 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 66, + 19 + ], + "name": "created_texts", + "start": [ + 66, + 1 + ], + "type": "setfield", + "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": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 6, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 6, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 6, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 22, + 61 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 22, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 22, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 22, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 11, + 8 + ], + "name": "self", + "start": [ + 11, + 8 + ], + "type": "self", + "view": "output_list" + }, + { + "finish": [ + 11, + 24 + ], + "name": "template", + "start": [ + 11, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 11, + 31 + ], + "name": "nodes", + "start": [ + 11, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 34, + 3 + ], + "start": [ + 11, + 0 + ], + "type": "function", + "view": "(method) output_list:init(template: string, nodes: table)" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 11, + 15 + ], + "name": "init", + "start": [ + 11, + 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, + "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, + "extends": { + "finish": [ + 19, + 36 + ], + "start": [ + 19, + 15 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 19, + 12 + ], + "name": "prefab", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "node", + "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 component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 3, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 3, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 5, + 29 + ], + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 5, + 29 + ], + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 5, + 29 + ], + "name": "scroll", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 4, + 32 + ], + "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": [ + 4, + 22 + ], + "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": [ + 4, + 32 + ], + "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": [ + 4, + 22 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/output_list/output_list.lua", + "finish": [ + 4, + 32 + ], + "name": "text_header", + "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": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "output_list", + "type": "type", + "view": "output_list" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 5, + 47 + ], + "start": [ + 5, + 32 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 5, + 47 + ], + "start": [ + 5, + 10 + ], + "type": "doc.class", + "view": "panel_druid_profiler", + "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": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 7, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.instance", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 46, + 22 + ], + "start": [ + 46, + 20 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 46, + 17 + ], + "name": "fps_samples", + "start": [ + 46, + 1 + ], + "type": "setfield", + "view": "table", + "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 used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 19, + 68 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 19, + 25 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 19, + 22 + ], + "name": "group_components", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 18, + 54 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 18, + 18 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 18, + 15 + ], + "name": "group_fps", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 18, + 1 + ], + "type": "setfield", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 17, + 60 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 17, + 21 + ], + "type": "select", + "view": "druid.container" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 17, + 18 + ], + "name": "group_memory", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + }, + { + "finish": [ + 13, + 24 + ], + "name": "template", + "start": [ + 13, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 13, + 31 + ], + "name": "nodes", + "start": [ + 13, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 69, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:init(template: string, nodes: table)" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "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": { + "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": [ + 24, + 60 + ], + "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": [ + 24, + 15 + ], + "type": "select", + "view": "druid.layout" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 24, + 12 + ], + "name": "layout", + "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": [ + 24, + 1 + ], + "type": "setfield", + "view": "druid.layout", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 61, + 2 + ], + "start": [ + 58, + 25 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 58, + 22 + ], + "name": "nodes_components", + "start": [ + 58, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 57, + 2 + ], + "start": [ + 53, + 18 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 53, + 15 + ], + "name": "nodes_fps", + "start": [ + 53, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 52, + 2 + ], + "start": [ + 48, + 21 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 48, + 18 + ], + "name": "nodes_memory", + "start": [ + 48, + 1 + ], + "type": "setfield", + "view": "table", + "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": [ + { + "finish": [ + 72, + 8 + ], + "name": "self", + "start": [ + 72, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 77, + 3 + ], + "start": [ + 72, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:on_language_change()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 72, + 29 + ], + "name": "on_language_change", + "start": [ + 72, + 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, + "extends": { + "finish": [ + 45, + 25 + ], + "start": [ + 45, + 22 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 45, + 19 + ], + "name": "previous_time", + "start": [ + 45, + 1 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 128, + 39 + ], + "start": [ + 128, + 23 + ], + "type": "select", + "view": "unknown" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 128, + 20 + ], + "name": "previous_time", + "start": [ + 128, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 134, + 34 + ], + "start": [ + 134, + 22 + ], + "type": "getlocal", + "view": "unknown" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 134, + 19 + ], + "name": "previous_time", + "start": [ + 134, + 1 + ], + "type": "setfield", + "view": "unknown", + "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 component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 6, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 6, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 6, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 143, + 8 + ], + "name": "self", + "start": [ + 143, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 145, + 3 + ], + "start": [ + 143, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:run_collectgarbage()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 143, + 29 + ], + "name": "run_collectgarbage", + "start": [ + 143, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 126, + 8 + ], + "name": "self", + "start": [ + 126, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 140, + 3 + ], + "start": [ + 126, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:sample_fps()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 126, + 21 + ], + "name": "sample_fps", + "start": [ + 126, + 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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 39, + 76 + ], + "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": [ + 39, + 31 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 39, + 28 + ], + "name": "text_components_amount", + "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": [ + 39, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 37, + 62 + ], + "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": [ + 37, + 24 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 37, + 21 + ], + "name": "text_fps_amount", + "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": [ + 37, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 38, + 56 + ], + "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": [ + 38, + 21 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 38, + 18 + ], + "name": "text_fps_min", + "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": [ + 38, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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": [ + 36, + 68 + ], + "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": [ + 36, + 27 + ], + "type": "select", + "view": "druid.text" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 36, + 24 + ], + "name": "text_memory_amount", + "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": [ + 36, + 1 + ], + "type": "setfield", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 121, + 8 + ], + "name": "self", + "start": [ + 121, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 123, + 3 + ], + "start": [ + 121, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:update()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 121, + 17 + ], + "name": "update", + "start": [ + 121, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 111, + 8 + ], + "name": "self", + "start": [ + 111, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 118, + 3 + ], + "start": [ + 111, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:update_components()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 111, + 28 + ], + "name": "update_components", + "start": [ + 111, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 94, + 8 + ], + "name": "self", + "start": [ + 94, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 108, + 3 + ], + "start": [ + 94, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:update_fps()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 94, + 21 + ], + "name": "update_fps", + "start": [ + 94, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 80, + 8 + ], + "name": "self", + "start": [ + 80, + 8 + ], + "type": "self", + "view": "panel_druid_profiler" + } + ], + "finish": [ + 91, + 3 + ], + "start": [ + 80, + 0 + ], + "type": "function", + "view": "(method) panel_druid_profiler:update_memory()" + }, + "file": "/example/components/panel_druid_profiler/panel_druid_profiler.lua", + "finish": [ + 80, + 24 + ], + "name": "update_memory", + "start": [ + 80, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + } + ], + "name": "panel_druid_profiler", + "type": "type", + "view": "panel_druid_profiler" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 3, + 44 + ], + "start": [ + 3, + 29 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 3, + 44 + ], + "start": [ + 3, + 10 + ], + "type": "doc.class", + "view": "panel_information", + "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, + "extends": { + "finish": [ + 43, + 52 + ], + "start": [ + 43, + 24 + ], + "type": "getfield", + "view": "unknown" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 43, + 21 + ], + "name": "_profiler_mode", + "start": [ + 43, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 47, + 47 + ], + "start": [ + 47, + 24 + ], + "type": "getfield", + "view": "unknown" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 47, + 21 + ], + "name": "_profiler_mode", + "start": [ + 47, + 2 + ], + "type": "setfield", + "view": "unknown", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 51, + 27 + ], + "start": [ + 51, + 24 + ], + "type": "nil", + "view": "nil" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 51, + 21 + ], + "name": "_profiler_mode", + "start": [ + 51, + 2 + ], + "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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 26, + 93 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 24 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 26, + 21 + ], + "name": "button_profiler", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 26, + 1 + ], + "type": "setfield", + "view": "druid.button", + "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": [ + 28, + 71 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 28, + 25 + ], + "type": "select", + "view": "druid.button" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 28, + 22 + ], + "name": "button_view_code", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 28, + 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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 7, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "panel_information" + }, + { + "finish": [ + 12, + 39 + ], + "name": "template", + "start": [ + 12, + 31 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 46 + ], + "name": "nodes", + "start": [ + 12, + 41 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 32, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) panel_information:init(template: string, nodes: table)" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 12, + 30 + ], + "name": "init", + "start": [ + 12, + 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, + "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, + "extends": { + "args": [ + { + "finish": [ + 41, + 8 + ], + "name": "self", + "start": [ + 41, + 8 + ], + "type": "self", + "view": "panel_information" + } + ], + "finish": [ + 54, + 3 + ], + "start": [ + 41, + 0 + ], + "type": "function", + "view": "(method) panel_information:on_profiler_click()" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 41, + 43 + ], + "name": "on_profiler_click", + "start": [ + 41, + 9 + ], + "type": "setmethod", + "view": "function", + "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": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "extends": { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 6, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "finish": [ + 6, + 35 + ], + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 20 + ], + "type": "doc.type.name", + "view": "druid.rich_text" + } + ], + "view": "druid.rich_text" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 6, + 35 + ], + "name": "rich_text", + "rawdesc": "The component that handles a rich text display, allows to custom color, size, font, etc. of the parts of the text", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "view": "druid.rich_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 4, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "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, + "extends": { + "args": [ + { + "finish": [ + 35, + 8 + ], + "name": "self", + "start": [ + 35, + 8 + ], + "type": "self", + "view": "panel_information" + }, + { + "finish": [ + 35, + 42 + ], + "name": "text_id", + "start": [ + 35, + 35 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 38, + 3 + ], + "start": [ + 35, + 0 + ], + "type": "function", + "view": "(method) panel_information:set_text(text_id: any)" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 35, + 34 + ], + "name": "set_text", + "start": [ + 35, + 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 component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 22 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 37 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 22 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/panel_information/panel_information.lua", + "finish": [ + 5, + 37 + ], + "name": "text_header", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "panel_information", + "type": "type", + "view": "panel_information" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 6, + 43 + ], + "start": [ + 6, + 28 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 6, + 43 + ], + "start": [ + 6, + 10 + ], + "type": "doc.class", + "view": "properties_panel", + "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, + "extends": { + "args": [ + { + "finish": [ + 108, + 8 + ], + "name": "self", + "start": [ + 108, + 8 + ], + "type": "self", + "view": "properties_panel" + }, + { + "finish": [ + 108, + 29 + ], + "name": "text_id", + "start": [ + 108, + 22 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 108, + 48 + ], + "name": "on_click_callback", + "start": [ + 108, + 31 + ], + "type": "local", + "view": "function" + } + ], + "finish": [ + 121, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "property_button" + } + ], + "start": [ + 108, + 0 + ], + "type": "function", + "view": "(method) properties_panel:add_button(text_id: string, on_click_callback: function)\n -> property_button" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 108, + 21 + ], + "name": "add_button", + "start": [ + 108, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 65, + 8 + ], + "name": "self", + "start": [ + 65, + 8 + ], + "type": "self", + "view": "properties_panel" + }, + { + "finish": [ + 65, + 31 + ], + "name": "text_id", + "start": [ + 65, + 24 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 65, + 46 + ], + "name": "initial_value", + "start": [ + 65, + 33 + ], + "type": "local", + "view": "boolean" + }, + { + "finish": [ + 65, + 66 + ], + "name": "on_change_callback", + "start": [ + 65, + 48 + ], + "type": "local", + "view": "function" + } + ], + "finish": [ + 80, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "property_checkbox" + } + ], + "start": [ + 65, + 0 + ], + "type": "function", + "view": "(method) properties_panel:add_checkbox(text_id: string, initial_value: boolean, on_change_callback: function)\n -> property_checkbox" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 65, + 23 + ], + "name": "add_checkbox", + "start": [ + 65, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 87, + 8 + ], + "name": "self", + "start": [ + 87, + 8 + ], + "type": "self", + "view": "properties_panel" + }, + { + "finish": [ + 87, + 29 + ], + "name": "text_id", + "start": [ + 87, + 22 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 87, + 44 + ], + "name": "initial_value", + "start": [ + 87, + 31 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 87, + 64 + ], + "name": "on_change_callback", + "start": [ + 87, + 46 + ], + "type": "local", + "view": "function" + } + ], + "finish": [ + 103, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "property_slider" + } + ], + "start": [ + 87, + 0 + ], + "type": "function", + "view": "(method) properties_panel:add_slider(text_id: string, initial_value: number, on_change_callback: function)\n -> property_slider" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 87, + 21 + ], + "name": "add_slider", + "start": [ + 87, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 45, + 8 + ], + "name": "self", + "start": [ + 45, + 8 + ], + "type": "self", + "view": "properties_panel" + } + ], + "finish": [ + 58, + 3 + ], + "start": [ + 45, + 0 + ], + "type": "function", + "view": "(method) properties_panel:clear()" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 45, + 16 + ], + "name": "clear", + "start": [ + 45, + 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": [ + 10, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 10, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 10, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 10, + 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 component for manage the nodes position in the grid with various options", + "extends": { + "desc": "The component for manage the nodes position in the grid with various options", + "finish": [ + 31, + 66 + ], + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 31, + 13 + ], + "type": "select", + "view": "druid.grid" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 31, + 10 + ], + "name": "grid", + "rawdesc": "The component for manage the nodes position in the grid with various options", + "start": [ + 31, + 1 + ], + "type": "setfield", + "view": "druid.grid", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 15, + 8 + ], + "name": "self", + "start": [ + 15, + 8 + ], + "type": "self", + "view": "properties_panel" + }, + { + "finish": [ + 15, + 24 + ], + "name": "template", + "start": [ + 15, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 15, + 31 + ], + "name": "nodes", + "start": [ + 15, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 42, + 3 + ], + "start": [ + 15, + 0 + ], + "type": "function", + "view": "(method) properties_panel:init(template: string, nodes: table)" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 15, + 15 + ], + "name": "init", + "start": [ + 15, + 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, + "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, + "extends": { + "finish": [ + 25, + 21 + ], + "start": [ + 25, + 19 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 25, + 16 + ], + "name": "properties", + "start": [ + 25, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 49, + 21 + ], + "start": [ + 49, + 19 + ], + "type": "table", + "view": "table" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 49, + 16 + ], + "name": "properties", + "start": [ + 49, + 1 + ], + "type": "setfield", + "view": "table", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 40, + 68 + ], + "start": [ + 40, + 31 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 40, + 28 + ], + "name": "property_button_prefab", + "start": [ + 40, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 34, + 72 + ], + "start": [ + 34, + 33 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 34, + 30 + ], + "name": "property_checkbox_prefab", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 37, + 68 + ], + "start": [ + 37, + 31 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 37, + 28 + ], + "name": "property_slider_prefab", + "start": [ + 37, + 1 + ], + "type": "setfield", + "view": "node", + "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 component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 7, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 7, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 7, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 9, + 29 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 9, + 29 + ], + "start": [ + 9, + 17 + ], + "type": "doc.type.name", + "view": "druid.scroll" + } + ], + "view": "druid.scroll" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 9, + 29 + ], + "name": "scroll", + "start": [ + 9, + 10 + ], + "type": "doc.field", + "view": "druid.scroll", + "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 component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 29 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 8, + 44 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 29 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/properties_panel/properties_panel.lua", + "finish": [ + 8, + 44 + ], + "name": "text_no_properties", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 8, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "properties_panel", + "type": "type", + "view": "properties_panel" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 27 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "property_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": [ + 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": "Druid component to make clickable node with various interaction callbacks", + "extends": { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 5, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 5, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 5, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 7, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 7, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 7, + 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, + "extends": { + "args": [ + { + "finish": [ + 12, + 8 + ], + "name": "self", + "start": [ + 12, + 8 + ], + "type": "self", + "view": "property_button" + }, + { + "finish": [ + 12, + 24 + ], + "name": "template", + "start": [ + 12, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 12, + 31 + ], + "name": "nodes", + "start": [ + 12, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 22, + 3 + ], + "start": [ + 12, + 0 + ], + "type": "function", + "view": "(method) property_button:init(template: string, nodes: table)" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 12, + 15 + ], + "name": "init", + "start": [ + 12, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 25, + 8 + ], + "name": "self", + "start": [ + 25, + 8 + ], + "type": "self", + "view": "property_button" + } + ], + "finish": [ + 28, + 3 + ], + "start": [ + 25, + 0 + ], + "type": "function", + "view": "(method) property_button:on_click()" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 25, + 19 + ], + "name": "on_click", + "start": [ + 25, + 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, + "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, + "extends": { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 3, + 19 + ], + "start": [ + 3, + 15 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 3, + 19 + ], + "name": "root", + "start": [ + 3, + 10 + ], + "type": "doc.field", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 42 + ], + "start": [ + 17, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 17, + 14 + ], + "name": "selected", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "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 component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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, + 32 + ], + "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, + 22 + ], + "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, + 32 + ], + "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, + 22 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 6, + 32 + ], + "name": "text_button", + "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, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 4, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 20 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/properties_panel/properties/property_button.lua", + "finish": [ + 4, + 35 + ], + "name": "text_name", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "property_button", + "type": "type", + "view": "property_button" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 44 + ], + "start": [ + 2, + 29 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 2, + 44 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "property_checkbox", + "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, + "extends": { + "finish": [ + 35, + 20 + ], + "start": [ + 35, + 15 + ], + "type": "getlocal", + "view": "boolean" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 35, + 12 + ], + "name": "_value", + "start": [ + 35, + 1 + ], + "type": "setfield", + "view": "boolean", + "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": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "Druid component to make clickable node with various interaction callbacks", + "finish": [ + 6, + 29 + ], + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 17 + ], + "type": "doc.type.name", + "view": "druid.button" + } + ], + "view": "druid.button" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 6, + 29 + ], + "name": "button", + "rawdesc": "Druid component to make clickable node with various interaction callbacks", + "start": [ + 6, + 10 + ], + "type": "doc.field", + "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, + "desc": "The Druid Factory used to create components", + "extends": { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 46, + 8 + ], + "name": "self", + "start": [ + 46, + 8 + ], + "type": "self", + "view": "property_checkbox" + } + ], + "finish": [ + 48, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "boolean" + } + ], + "start": [ + 46, + 0 + ], + "type": "function", + "view": "(method) property_checkbox:get_value()\n -> boolean" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 46, + 20 + ], + "name": "get_value", + "start": [ + 46, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 34 + ], + "start": [ + 17, + 13 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 17, + 10 + ], + "name": "icon", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "property_checkbox" + }, + { + "finish": [ + 13, + 24 + ], + "name": "template", + "start": [ + 13, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 13, + 31 + ], + "name": "nodes", + "start": [ + 13, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 26, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) property_checkbox:init(template: string, nodes: table)" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 51, + 8 + ], + "name": "self", + "start": [ + 51, + 8 + ], + "type": "self", + "view": "property_checkbox" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 51, + 0 + ], + "type": "function", + "view": "(method) property_checkbox:on_click()" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 51, + 19 + ], + "name": "on_click", + "start": [ + 51, + 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, + "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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 4, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 7, + 23 + ], + "start": [ + 7, + 19 + ], + "type": "doc.type.name", + "view": "node" + } + ], + "view": "node" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 7, + 23 + ], + "name": "selected", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 30, + 8 + ], + "name": "self", + "start": [ + 30, + 8 + ], + "type": "self", + "view": "property_checkbox" + }, + { + "finish": [ + 30, + 26 + ], + "name": "value", + "start": [ + 30, + 21 + ], + "type": "local", + "view": "boolean" + }, + { + "finish": [ + 30, + 38 + ], + "name": "is_instant", + "start": [ + 30, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 42, + 3 + ], + "start": [ + 30, + 0 + ], + "type": "function", + "view": "(method) property_checkbox:set_value(value: boolean, is_instant: any)" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 30, + 20 + ], + "name": "set_value", + "start": [ + 30, + 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 component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/properties_panel/properties/property_checkbox.lua", + "finish": [ + 5, + 35 + ], + "name": "text_name", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "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": "property_checkbox", + "type": "type", + "view": "property_checkbox" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "extends": [ + { + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 27 + ], + "type": "doc.extends.name", + "view": "druid.component" + } + ], + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 2, + 42 + ], + "start": [ + 2, + 10 + ], + "type": "doc.class", + "view": "property_slider", + "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, + "extends": { + "args": [ + { + "finish": [ + 62, + 8 + ], + "name": "self", + "start": [ + 62, + 8 + ], + "type": "self", + "view": "property_slider" + }, + { + "finish": [ + 62, + 42 + ], + "name": "value", + "start": [ + 62, + 37 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 68, + 3 + ], + "start": [ + 62, + 0 + ], + "type": "function", + "view": "(method) property_slider:_on_slider_change_by_user(value: any)" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 62, + 36 + ], + "name": "_on_slider_change_by_user", + "start": [ + 62, + 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": [ + 34, + 31 + ], + "start": [ + 34, + 23 + ], + "type": "getlocal", + "view": "fun(value: number):string" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 34, + 20 + ], + "name": "_text_function", + "start": [ + 34, + 1 + ], + "type": "setfield", + "view": "fun(value: number):string", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 16 + ], + "start": [ + 19, + 15 + ], + "type": "integer", + "view": "integer" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 19, + 12 + ], + "name": "_value", + "start": [ + 19, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 45, + 20 + ], + "start": [ + 45, + 15 + ], + "type": "getlocal", + "view": "number" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 45, + 12 + ], + "name": "_value", + "start": [ + 45, + 1 + ], + "type": "setfield", + "view": "any", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 63, + 20 + ], + "start": [ + 63, + 15 + ], + "type": "getlocal", + "view": "any" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 63, + 12 + ], + "name": "_value", + "start": [ + 63, + 1 + ], + "type": "setfield", + "view": "any", + "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": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type", + "types": [ + { + "desc": "The Druid Factory used to create components", + "finish": [ + 3, + 30 + ], + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 16 + ], + "type": "doc.type.name", + "view": "druid.instance" + } + ], + "view": "druid.instance" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 3, + 30 + ], + "name": "druid", + "rawdesc": "The Druid Factory used to create components", + "start": [ + 3, + 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, + "extends": { + "args": [ + { + "finish": [ + 57, + 8 + ], + "name": "self", + "start": [ + 57, + 8 + ], + "type": "self", + "view": "property_slider" + } + ], + "finish": [ + 59, + 3 + ], + "returns": [ + { + "type": "function.return", + "view": "number" + } + ], + "start": [ + 57, + 0 + ], + "type": "function", + "view": "(method) property_slider:get_value()\n -> number" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 57, + 20 + ], + "name": "get_value", + "start": [ + 57, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 13, + 8 + ], + "name": "self", + "start": [ + 13, + 8 + ], + "type": "self", + "view": "property_slider" + }, + { + "finish": [ + 13, + 24 + ], + "name": "template", + "start": [ + 13, + 16 + ], + "type": "local", + "view": "string" + }, + { + "finish": [ + 13, + 31 + ], + "name": "nodes", + "start": [ + 13, + 26 + ], + "type": "local", + "view": "table" + } + ], + "finish": [ + 29, + 3 + ], + "start": [ + 13, + 0 + ], + "type": "function", + "view": "(method) property_slider:init(template: string, nodes: table)" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 13, + 15 + ], + "name": "init", + "start": [ + 13, + 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, + "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": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "extends": { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "finish": [ + 4, + 30 + ], + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 15 + ], + "type": "doc.type.name", + "view": "druid.container" + } + ], + "view": "druid.container" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 4, + 30 + ], + "name": "root", + "rawdesc": "The component used for managing the size and positions with other containers relations to create a adaptable layouts", + "start": [ + 4, + 10 + ], + "type": "doc.field", + "view": "druid.container", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 17, + 42 + ], + "start": [ + 17, + 17 + ], + "type": "select", + "view": "node" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 17, + 14 + ], + "name": "selected", + "start": [ + 17, + 1 + ], + "type": "setfield", + "view": "node", + "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, + "extends": { + "args": [ + { + "finish": [ + 33, + 8 + ], + "name": "self", + "start": [ + 33, + 8 + ], + "type": "self", + "view": "property_slider" + }, + { + "finish": [ + 33, + 37 + ], + "name": "callback", + "start": [ + 33, + 29 + ], + "type": "local", + "view": "fun(value: number):string" + } + ], + "finish": [ + 36, + 3 + ], + "start": [ + 33, + 0 + ], + "type": "function", + "view": "(method) property_slider:set_text_function(callback: fun(value: number):string)" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 33, + 28 + ], + "name": "set_text_function", + "start": [ + 33, + 9 + ], + "type": "setmethod", + "view": "function", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "args": [ + { + "finish": [ + 40, + 8 + ], + "name": "self", + "start": [ + 40, + 8 + ], + "type": "self", + "view": "property_slider" + }, + { + "finish": [ + 40, + 26 + ], + "name": "value", + "start": [ + 40, + 21 + ], + "type": "local", + "view": "number" + }, + { + "finish": [ + 40, + 38 + ], + "name": "is_instant", + "start": [ + 40, + 28 + ], + "type": "local", + "view": "any" + } + ], + "finish": [ + 53, + 3 + ], + "start": [ + 40, + 0 + ], + "type": "function", + "view": "(method) property_slider:set_value(value: number, is_instant: any)" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 40, + 20 + ], + "name": "set_value", + "start": [ + 40, + 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 component to make a draggable node over a line with a progress report", + "extends": { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 7, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 7, + 17 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component to make a draggable node over a line with a progress report", + "finish": [ + 7, + 29 + ], + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 7, + 17 + ], + "type": "doc.type.name", + "view": "druid.slider" + } + ], + "view": "druid.slider" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 7, + 29 + ], + "name": "slider", + "rawdesc": "The component to make a draggable node over a line with a progress report", + "start": [ + 7, + 10 + ], + "type": "doc.field", + "view": "druid.slider", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "extends": { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 20 + ], + "type": "doc.type", + "types": [ + { + "desc": "The component used for displaying localized text, can automatically update text when locale is changed", + "finish": [ + 5, + 35 + ], + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 20 + ], + "type": "doc.type.name", + "view": "druid.lang_text" + } + ], + "view": "druid.lang_text" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 5, + 35 + ], + "name": "text_name", + "rawdesc": "The component used for displaying localized text, can automatically update text when locale is changed", + "start": [ + 5, + 10 + ], + "type": "doc.field", + "view": "druid.lang_text", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area", + "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, + 31 + ], + "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, + 21 + ], + "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, + 31 + ], + "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, + 21 + ], + "type": "doc.type.name", + "view": "druid.text" + } + ], + "view": "druid.text" + }, + "file": "/example/components/properties_panel/properties/property_slider.lua", + "finish": [ + 6, + 31 + ], + "name": "text_value", + "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, + 10 + ], + "type": "doc.field", + "view": "druid.text", + "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": "property_slider", + "type": "type", + "view": "property_slider" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 52, + 15 + ], + "start": [ + 52, + 10 + ], + "type": "doc.class", + "view": "touch", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "desc": "Accelerometer x value (if present).", + "extends": { + "finish": [ + 61, + 26 + ], + "start": [ + 61, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 61, + 22 + ], + "start": [ + 61, + 16 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 61, + 26 + ], + "start": [ + 61, + 23 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 61, + 26 + ], + "name": "acc_x", + "rawdesc": "Accelerometer x value (if present).", + "start": [ + 61, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Accelerometer y value (if present).", + "extends": { + "finish": [ + 62, + 26 + ], + "start": [ + 62, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 62, + 22 + ], + "start": [ + 62, + 16 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 62, + 26 + ], + "start": [ + 62, + 23 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 62, + 26 + ], + "name": "acc_y", + "rawdesc": "Accelerometer y value (if present).", + "start": [ + 62, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Accelerometer z value (if present).", + "extends": { + "finish": [ + 63, + 26 + ], + "start": [ + 63, + 16 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 63, + 22 + ], + "start": [ + 63, + 16 + ], + "type": "doc.type.name", + "view": "number" + }, + { + "finish": [ + 63, + 26 + ], + "start": [ + 63, + 23 + ], + "type": "doc.type.name", + "view": "nil" + } + ], + "view": "number|nil" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 63, + 26 + ], + "name": "acc_z", + "rawdesc": "Accelerometer z value (if present).", + "start": [ + 63, + 10 + ], + "type": "doc.field", + "view": "number|nil", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The change in x value.", + "extends": { + "finish": [ + 59, + 19 + ], + "start": [ + 59, + 13 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 59, + 19 + ], + "start": [ + 59, + 13 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 59, + 19 + ], + "name": "dx", + "rawdesc": "The change in x value.", + "start": [ + 59, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The change in y value.", + "extends": { + "finish": [ + 60, + 19 + ], + "start": [ + 60, + 13 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 60, + 19 + ], + "start": [ + 60, + 13 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 60, + 19 + ], + "name": "dy", + "rawdesc": "The change in y value.", + "start": [ + 60, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "A number identifying the touch input during its duration.", + "extends": { + "finish": [ + 53, + 19 + ], + "start": [ + 53, + 13 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 53, + 19 + ], + "start": [ + 53, + 13 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 53, + 19 + ], + "name": "id", + "rawdesc": "A number identifying the touch input during its duration.", + "start": [ + 53, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if the finger was pressed this frame.", + "extends": { + "finish": [ + 54, + 25 + ], + "start": [ + 54, + 18 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 54, + 25 + ], + "start": [ + 54, + 18 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 54, + 25 + ], + "name": "pressed", + "rawdesc": "True if the finger was pressed this frame.", + "start": [ + 54, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "True if the finger was released this frame.", + "extends": { + "finish": [ + 55, + 26 + ], + "start": [ + 55, + 19 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 55, + 26 + ], + "start": [ + 55, + 19 + ], + "type": "doc.type.name", + "view": "boolean" + } + ], + "view": "boolean" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 55, + 26 + ], + "name": "released", + "rawdesc": "True if the finger was released this frame.", + "start": [ + 55, + 10 + ], + "type": "doc.field", + "view": "boolean", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "Number of taps, one for single, two for double-tap, etc", + "extends": { + "finish": [ + 56, + 26 + ], + "start": [ + 56, + 20 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 56, + 26 + ], + "start": [ + 56, + 20 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 56, + 26 + ], + "name": "tap_count", + "rawdesc": "Number of taps, one for single, two for double-tap, etc", + "start": [ + 56, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The x touch location.", + "extends": { + "finish": [ + 57, + 18 + ], + "start": [ + 57, + 12 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 57, + 18 + ], + "start": [ + 57, + 12 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 57, + 18 + ], + "name": "x", + "rawdesc": "The x touch location.", + "start": [ + 57, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "desc": "The y touch location.", + "extends": { + "finish": [ + 58, + 18 + ], + "start": [ + 58, + 12 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 58, + 18 + ], + "start": [ + 58, + 12 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 58, + 18 + ], + "name": "y", + "rawdesc": "The y touch location.", + "start": [ + 58, + 10 + ], + "type": "doc.field", + "view": "number", + "visible": "public" + } + ], + "name": "touch", + "type": "type", + "view": "touch" + }, + { + "defines": [ + { + "async": false, + "deprecated": false, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 18, + 14 + ], + "start": [ + 18, + 10 + ], + "type": "doc.class", + "view": "utf8", + "visible": "public" + } + ], + "fields": [ + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 25, + 20 + ], + "start": [ + 25, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 25, + 20 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 25, + 15 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 25, + 20 + ], + "name": "byte", + "start": [ + 25, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 22, + 20 + ], + "start": [ + 22, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 22, + 20 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 22, + 15 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 22, + 20 + ], + "name": "char", + "start": [ + 22, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 30, + 20 + ], + "start": [ + 30, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 30, + 20 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 30, + 15 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 30, + 20 + ], + "name": "dump", + "start": [ + 30, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 26, + 20 + ], + "start": [ + 26, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 26, + 20 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 26, + 15 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 26, + 20 + ], + "name": "find", + "start": [ + 26, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 31, + 22 + ], + "start": [ + 31, + 17 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 31, + 22 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 31, + 17 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 31, + 22 + ], + "name": "format", + "start": [ + 31, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 24, + 22 + ], + "start": [ + 24, + 17 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 24, + 22 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 24, + 17 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 24, + 22 + ], + "name": "gensub", + "start": [ + 24, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 28, + 42 + ], + "start": [ + 28, + 17 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 28, + 30 + ], + "name": { + "[1]": "s", + "finish": [ + 28, + 22 + ], + "start": [ + 28, + 21 + ], + "type": "doc.type.arg.name", + "view": "s" + }, + "start": [ + 28, + 21 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 28, + 41 + ], + "name": { + "[1]": "m", + "finish": [ + 28, + 33 + ], + "start": [ + 28, + 32 + ], + "type": "doc.type.arg.name", + "view": "m" + }, + "start": [ + 28, + 32 + ], + "type": "doc.type.arg", + "view": "string" + } + ], + "finish": [ + 28, + 42 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 28, + 17 + ], + "type": "doc.type.function", + "view": "fun(s: string, m: string)" + } + ], + "view": "fun(s: string, m: string)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 28, + 42 + ], + "name": "gmatch", + "start": [ + 28, + 10 + ], + "type": "doc.field", + "view": "fun(s: string, m: string)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 29, + 20 + ], + "start": [ + 29, + 15 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 29, + 20 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 29, + 15 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 29, + 20 + ], + "name": "gsub", + "start": [ + 29, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 19, + 35 + ], + "start": [ + 19, + 14 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 19, + 27 + ], + "name": { + "[1]": "s", + "finish": [ + 19, + 19 + ], + "start": [ + 19, + 18 + ], + "type": "doc.type.arg.name", + "view": "s" + }, + "start": [ + 19, + 18 + ], + "type": "doc.type.arg", + "view": "string" + } + ], + "finish": [ + 19, + 35 + ], + "returns": [ + { + "finish": [ + 19, + 35 + ], + "start": [ + 19, + 29 + ], + "type": "doc.type", + "types": [ + { + "finish": [ + 19, + 35 + ], + "start": [ + 19, + 29 + ], + "type": "doc.type.name", + "view": "number" + } + ], + "view": "number" + } + ], + "start": [ + 19, + 14 + ], + "type": "doc.type.function", + "view": "fun(s: string):number" + } + ], + "view": "fun(s: string):number" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 19, + 35 + ], + "name": "len", + "start": [ + 19, + 10 + ], + "type": "doc.field", + "view": "fun(s: string):number", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 32, + 21 + ], + "start": [ + 32, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 32, + 21 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 32, + 16 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 32, + 21 + ], + "name": "lower", + "start": [ + 32, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 27, + 41 + ], + "start": [ + 27, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 27, + 29 + ], + "name": { + "[1]": "s", + "finish": [ + 27, + 21 + ], + "start": [ + 27, + 20 + ], + "type": "doc.type.arg.name", + "view": "s" + }, + "start": [ + 27, + 20 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 27, + 40 + ], + "name": { + "[1]": "m", + "finish": [ + 27, + 32 + ], + "start": [ + 27, + 31 + ], + "type": "doc.type.arg.name", + "view": "m" + }, + "start": [ + 27, + 31 + ], + "type": "doc.type.arg", + "view": "string" + } + ], + "finish": [ + 27, + 41 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 27, + 16 + ], + "type": "doc.type.function", + "view": "fun(s: string, m: string)" + } + ], + "view": "fun(s: string, m: string)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 27, + 41 + ], + "name": "match", + "start": [ + 27, + 10 + ], + "type": "doc.field", + "view": "fun(s: string, m: string)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 34, + 19 + ], + "start": [ + 34, + 14 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 34, + 19 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 34, + 14 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 34, + 19 + ], + "name": "rep", + "start": [ + 34, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 21, + 23 + ], + "start": [ + 21, + 18 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 21, + 23 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 21, + 18 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 21, + 23 + ], + "name": "reverse", + "start": [ + 21, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 20, + 65 + ], + "start": [ + 20, + 14 + ], + "type": "doc.type", + "types": [ + { + "args": [ + { + "finish": [ + 20, + 27 + ], + "name": { + "[1]": "s", + "finish": [ + 20, + 19 + ], + "start": [ + 20, + 18 + ], + "type": "doc.type.arg.name", + "view": "s" + }, + "start": [ + 20, + 18 + ], + "type": "doc.type.arg", + "view": "string" + }, + { + "finish": [ + 20, + 48 + ], + "name": { + "[1]": "start_index", + "finish": [ + 20, + 40 + ], + "start": [ + 20, + 29 + ], + "type": "doc.type.arg.name", + "view": "start_index" + }, + "start": [ + 20, + 29 + ], + "type": "doc.type.arg", + "view": "number" + }, + { + "finish": [ + 20, + 64 + ], + "name": { + "[1]": "length", + "finish": [ + 20, + 56 + ], + "start": [ + 20, + 50 + ], + "type": "doc.type.arg.name", + "view": "length" + }, + "start": [ + 20, + 50 + ], + "type": "doc.type.arg", + "view": "number" + } + ], + "finish": [ + 20, + 65 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 20, + 14 + ], + "type": "doc.type.function", + "view": "fun(s: string, start_index: number, length: number)" + } + ], + "view": "fun(s: string, start_index: number, length: number)" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 20, + 65 + ], + "name": "sub", + "start": [ + 20, + 10 + ], + "type": "doc.field", + "view": "fun(s: string, start_index: number, length: number)", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 23, + 23 + ], + "start": [ + 23, + 18 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 23, + 23 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 23, + 18 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 23, + 23 + ], + "name": "unicode", + "start": [ + 23, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + }, + { + "async": false, + "deprecated": false, + "extends": { + "finish": [ + 33, + 21 + ], + "start": [ + 33, + 16 + ], + "type": "doc.type", + "types": [ + { + "args": { + "view": "unknown" + }, + "finish": [ + 33, + 21 + ], + "returns": { + "view": "unknown" + }, + "start": [ + 33, + 16 + ], + "type": "doc.type.function", + "view": "fun()" + } + ], + "view": "fun()" + }, + "file": "/druid/system/druid_annotations.lua", + "finish": [ + 33, + 21 + ], + "name": "upper", + "start": [ + 33, + 10 + ], + "type": "doc.field", + "view": "fun()", + "visible": "public" + } + ], + "name": "utf8", + "type": "type", + "view": "utf8" + } +] \ No newline at end of file diff --git a/wiki/03-styles.md b/wiki/03-styles.md index 278bd92..23ab005 100644 --- a/wiki/03-styles.md +++ b/wiki/03-styles.md @@ -1,6 +1,7 @@ # Styles ## Overview + Styles - set of functions and parameters for components to customize their behavior. Styles is a table, where key is name of component, and value is style table for this component. @@ -8,29 +9,33 @@ Styles is a table, where key is name of component, and value is style table for In component API documentation, you can find the style API for this component. Or just lookup for existing styles and modify them. ## Usage + Setup default druid style for all druid instances via `druid.set_default_style` You can pass _nil_ or _empty_table_ to use default values for all components (no styles) + ```lua local druid = require("druid.druid") local my_style = require("my.amazing.style") function init(self) - druid.set_default_style(my_style) + druid.set_default_style(my_style) end ``` Setup custom style to specific druid instance: + ```lua local druid = require("druid.druid") local my_style = require("my.amazing.style") function init(self) - -- This druid instance will be use my_style as default - self.druid = druid.new(self, my_style) + -- This druid instance will be use my_style as default + self.druid = druid.new(self, my_style) end ``` Change component style with _set_style_ function + ```lua local druid = require("druid.druid") local my_style = require("my.amazing.style") diff --git a/wiki/advanced-setup.md b/wiki/advanced-setup.md index cf369d1..3744225 100644 --- a/wiki/advanced-setup.md +++ b/wiki/advanced-setup.md @@ -1,6 +1,5 @@ # Advanced Druid Setup - ## Input Bindings By default, **Druid** uses all key names from Defold's default `/builtins/input/all.input_binding` for input bindings. @@ -96,23 +95,3 @@ local function on_window_callback(self, event, data) end window.set_listener(on_window_callback) ``` - - -## Lua Annotations - -[EmmyLua](https://emmylua.github.io/annotation.html) is a Lua annotation library. It is a useful tool for enabling Lua code autocompletion in editors such as [VSCode](https://github.com/EmmyLua/VSCode-EmmyLua) and [IntelliJ IDEA](https://github.com/EmmyLua/IntelliJ-EmmyLua). - -Since dependencies cannot be processed by external editors, to use the EmmyLua annotations, you should copy the _druid/annotations.lua_ file to your project. - -Remember that you can restart the EmmyLua server to refresh the changes if something goes wrong. - -After the annotations are processed, you should specify the type of "Druid" in the "require" statement: - -```lua ----@type druid -local druid = require("druid.druid") - --- Now the autocomplete is working -``` - -