Update annotations P.1

This commit is contained in:
Insality
2024-10-29 20:31:45 +02:00
parent a46f38734e
commit c85d66fdca
40 changed files with 1458 additions and 3941 deletions

View File

@@ -104,23 +104,23 @@ function druid_instance.new(self, component, ...) end
--- Set current component style table.
--- Invoke `on_style_change` on component, if exist. Component should handle their style changing and store all style params
---@generic T: druid.base_component
---@param self T @{BaseComponent}
---@param self T BaseComponent
---@param druid_style table|nil Druid style module
---@return T @{BaseComponent}
---@return T BaseComponent
function druid__base_component.set_style(self, druid_style) end
--- Set component template name.
--- Use on all your custom components with GUI layouts used as templates. It will check parent template name to build full template name in self:get_node()
---@generic T: druid.base_component
---@param self T @{BaseComponent}
---@param self T BaseComponent
---@param template string BaseComponent template name
---@return T @{BaseComponent}
---@return T BaseComponent
function druid__base_component.set_template(self, template) end
--- Set current component nodes.
--- Use if your component nodes was cloned with `gui.clone_tree` and you got the node tree.
---@generic T: druid.base_component
---@param self T @{BaseComponent}
---@param self T BaseComponent
---@param nodes table BaseComponent nodes table
---@return T @{BaseComponent}
---@return T BaseComponent
function druid__base_component.set_nodes(self, nodes) end