From 097963bdb3a9e4f86cbd6344a4c03da0c4948df9 Mon Sep 17 00:00:00 2001 From: Insality Date: Sun, 10 Aug 2025 00:55:38 +0300 Subject: [PATCH] Annotations update --- druid/base/text.lua | 4 ++-- druid/component.lua | 1 - druid/druid.script | 2 +- druid/system/druid_instance.lua | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/druid/base/text.lua b/druid/base/text.lua index e13f612..5ccb250 100755 --- a/druid/base/text.lua +++ b/druid/base/text.lua @@ -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_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 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 scale vector3 The current scale of the text local M = component.create("text") @@ -224,7 +224,7 @@ end ---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 function M:set_pivot(pivot) local prev_pivot = gui.get_pivot(self.node) diff --git a/druid/component.lua b/druid/component.lua index 9617636..4ed835c 100644 --- a/druid/component.lua +++ b/druid/component.lua @@ -374,7 +374,6 @@ end ---Сreate a new component class, which will inherit from the base Druid component. ----@protected ---@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 ---@return druid.component diff --git a/druid/druid.script b/druid/druid.script index a40fe8b..3235c02 100644 --- a/druid/druid.script +++ b/druid/druid.script @@ -30,7 +30,7 @@ local function get_atlas_path(self, request) return nil end - return go.get(request.sender, "textures", { key = request.texture_name }) + return go.get(request.sender, "textures", { key = request.texture_name }) --[[@as string]] end diff --git a/druid/system/druid_instance.lua b/druid/system/druid_instance.lua index 20174a2..52c8b1b 100755 --- a/druid/system/druid_instance.lua +++ b/druid/system/druid_instance.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: invisible -- Hello, Defolder! Wish you a good day! local events = require("event.events")