Annotations update

This commit is contained in:
Insality
2025-08-10 00:55:38 +03:00
parent 574f764559
commit 097963bdb3
4 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ local utf8 = utf8 or utf8_lua --[[@as utf8]]
---@field on_update_text_scale event fun(self: druid.text, scale: vector3, metrics: table) The event triggered when the text scale is updated ---@field on_update_text_scale event fun(self: druid.text, scale: vector3, metrics: table) The event triggered when the text scale is updated
---@field on_set_pivot event fun(self: druid.text, pivot: userdata) The event triggered when the text pivot is set ---@field on_set_pivot event fun(self: druid.text, pivot: userdata) The event triggered when the text pivot is set
---@field style druid.text.style The style of the text ---@field style druid.text.style The style of the text
---@field start_pivot userdata The start pivot of the text ---@field start_pivot number The start pivot of the text
---@field start_scale vector3 The start scale of the text ---@field start_scale vector3 The start scale of the text
---@field scale vector3 The current scale of the text ---@field scale vector3 The current scale of the text
local M = component.create("text") local M = component.create("text")
@@ -224,7 +224,7 @@ end
---Set text pivot. Text will re-anchor inside text area ---Set text pivot. Text will re-anchor inside text area
---@param pivot userdata The gui.PIVOT_* constant ---@param pivot number The gui.PIVOT_* constant
---@return druid.text self Current text instance ---@return druid.text self Current text instance
function M:set_pivot(pivot) function M:set_pivot(pivot)
local prev_pivot = gui.get_pivot(self.node) local prev_pivot = gui.get_pivot(self.node)

View File

@@ -374,7 +374,6 @@ end
---Сreate a new component class, which will inherit from the base Druid component. ---Сreate a new component class, which will inherit from the base Druid component.
---@protected
---@param name string|nil The name of the component ---@param name string|nil The name of the component
---@param input_priority number|nil The input priority. The bigger number processed first. Default value: 10 ---@param input_priority number|nil The input priority. The bigger number processed first. Default value: 10
---@return druid.component ---@return druid.component

View File

@@ -30,7 +30,7 @@ local function get_atlas_path(self, request)
return nil return nil
end end
return go.get(request.sender, "textures", { key = request.texture_name }) return go.get(request.sender, "textures", { key = request.texture_name }) --[[@as string]]
end end

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: invisible
-- Hello, Defolder! Wish you a good day! -- Hello, Defolder! Wish you a good day!
local events = require("event.events") local events = require("event.events")