Reimport docs

This commit is contained in:
Insality
2025-03-18 22:00:51 +02:00
parent 3c063313de
commit 44b735adda
31 changed files with 617 additions and 869 deletions

View File

@@ -223,6 +223,8 @@ function M:on_input(action_id, action)
return true
end
end
return false
end

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: inject-field
-- Source: https://github.com/britzl/defold-richtext version 5.19.0
-- Author: Britzl
-- Modified by: Insality

View File

@@ -27,10 +27,10 @@ end
---Split string at first occurrence of token
---@param s string The string to split
---@param s string? The string to split
---@param token string The token to split string on
---@return string before The string before the token or the whole string if token doesn't exist
---@return string after The string after the token or nil
---@return string? before The string before the token or the whole string if token doesn't exist
---@return string? after The string after the token or nil
local function split(s, token)
if not s then return nil, nil end
local before, after = s:match("(.-)" .. token .. "(.*)")

View File

@@ -41,6 +41,7 @@ local rich_text = require("druid.custom.rich_text.module.rt")
---@field image druid.rich_text.word.image
---@field br boolean
---@field nobr boolean
---@field tags table<string, boolean>
---@class druid.rich_text.word.image
---@field texture string