mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update annotations P.1
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user