From 28ac27fae16d5d2df6174564dde05c6064515a33 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 7 Nov 2023 01:37:21 +0200 Subject: Replaced DrawTextBoxedSelectable with DrawTextBoxedTinted. --- ReiLua_API.lua | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'ReiLua_API.lua') 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 -- cgit v1.2.3