mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
Reimport docs
This commit is contained in:
@@ -223,6 +223,8 @@ function M:on_input(action_id, action)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: inject-field
|
||||
-- Source: https://github.com/britzl/defold-richtext version 5.19.0
|
||||
-- Author: Britzl
|
||||
-- Modified by: Insality
|
||||
|
@@ -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 .. "(.*)")
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user