diff options
| author | jussi | 2023-11-07 01:37:21 +0200 |
|---|---|---|
| committer | jussi | 2023-11-07 01:37:21 +0200 |
| commit | 28ac27fae16d5d2df6174564dde05c6064515a33 (patch) | |
| tree | 8c338c22b9b8ec220d29d00b9acb0eb83742f588 /ReiLua_API.lua | |
| parent | 7b8ef2cd90997382dca80f5122908eb6a8e60467 (diff) | |
| download | reilua-enhanced-28ac27fae16d5d2df6174564dde05c6064515a33.tar.gz reilua-enhanced-28ac27fae16d5d2df6174564dde05c6064515a33.tar.bz2 reilua-enhanced-28ac27fae16d5d2df6174564dde05c6064515a33.zip | |
Replaced DrawTextBoxedSelectable with DrawTextBoxedTinted.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index cefb0ee..65f98ce 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -3434,31 +3434,30 @@ function RL.DrawTextCodepoint( font, codepoint, position, fontSize, tint ) end ---@return any RL.DrawTextCodepoints function RL.DrawTextCodepoints( font, codepoints, position, fontSize, spacing, tint ) end ----Draw text using font inside rectangle limits. Function from raylib [text] example - Rectangle bounds +---Draw text using font inside rectangle limits. Return character from mouse position. Function from raylib [text] example - Rectangle bounds. +---- Success return int ---@param font any ----@param char any +---@param text string ---@param rec table ---@param fontSize number ---@param spacing number ---@param wordWrap boolean ---@param tint table ----@return any RL.DrawTextBoxed -function RL.DrawTextBoxed( font, char, rec, fontSize, spacing, wordWrap, tint ) end +---@return any mouseCharId +function RL.DrawTextBoxed( font, text, rec, fontSize, spacing, wordWrap, tint ) end ----Draw text using font inside rectangle limits with support for text selection. Function from raylib [text] example - Rectangle bounds +---Draw text using font inside rectangle limits with support for tint and background tint for each character. Return character from mouse position +---- Success return int ---@param font any ---@param text string ---@param rec table ---@param fontSize number ---@param spacing number ---@param wordWrap boolean ----@param tint table ----@param selectStart integer ----@param selectLength integer ----@param selectTint table ----@param selectBackTint table ----@return any RL.DrawTextBoxedSelectable -function RL.DrawTextBoxedSelectable( font, text, rec, fontSize, spacing, wordWrap, tint, selectStart, selectLength, selectTint, selectBackTint ) end +---@param tints table +---@param backTints table +---@return any mouseCharId +function RL.DrawTextBoxedTinted( font, text, rec, fontSize, spacing, wordWrap, tints, backTints ) end -- Text - Font info functions |
