widget.* to druid.widget lls class

This commit is contained in:
Insality
2025-03-16 17:44:08 +02:00
parent ad0447b649
commit 5348561d68
17 changed files with 64 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
---@class widget.property_text: druid.widget
---@class druid.widget.property_text: druid.widget
---@field root node
---@field container druid.container
---@field text_name druid.text
@@ -24,7 +24,7 @@ end
---@param text string
---@return widget.property_text
---@return druid.widget.property_text
function M:set_text_property(text)
self.text_name:set_text(text)
return self
@@ -32,7 +32,7 @@ end
---@param text string|nil
---@return widget.property_text
---@return druid.widget.property_text
function M:set_text_value(text)
self.text_right:set_text(text or "")
return self