summaryrefslogtreecommitdiff
path: root/examples/textBoxed/main.lua
diff options
context:
space:
mode:
authorjussi2025-05-14 11:20:00 +0300
committerjussi2025-05-14 11:20:00 +0300
commit913b8f882031893f926b6aba89ec4456cb39a2c0 (patch)
tree12d36ab998cae64c8426b3564ccad40dcd088be5 /examples/textBoxed/main.lua
parent067e4091ba9b34d1cc568ada266efde9cbe5c413 (diff)
downloadreilua-enhanced-913b8f882031893f926b6aba89ec4456cb39a2c0.tar.gz
reilua-enhanced-913b8f882031893f926b6aba89ec4456cb39a2c0.tar.bz2
reilua-enhanced-913b8f882031893f926b6aba89ec4456cb39a2c0.zip
DrawTextBoxed Color change escape sequence.
Diffstat (limited to 'examples/textBoxed/main.lua')
-rw-r--r--examples/textBoxed/main.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/textBoxed/main.lua b/examples/textBoxed/main.lua
index df731c3..c6b497f 100644
--- a/examples/textBoxed/main.lua
+++ b/examples/textBoxed/main.lua
@@ -33,7 +33,7 @@ function RL.draw()
RL.ClearBackground( RL.RAYWHITE )
RL.DrawRectangleLines( rect, RL.GREEN )
- mouseCharId, textOffset = RL.DrawTextBoxedEx(
+ _, textOffset = RL.DrawTextBoxedEx(
RL.GetFontDefault(),
"\tYou can change the size of the box by pressing right mouse and toggle the wordwrap by pressing space. First we will write some text before the hyperlink to show that it is indeed is as powerful feature as adverticed.",
rect,
@@ -45,12 +45,18 @@ function RL.draw()
rect,
textSize, spacing, wordwrap, linkColor, limitHeight, textOffset
)
- RL.DrawTextBoxedEx(
+ _, textOffset = RL.DrawTextBoxedEx(
RL.GetFontDefault(),
" Then we demonstrate this further by writin more text after the link. Isn't this just amazing! Don't forget to press left mouse to print text to your console when hovering mouse over the hyperlink.",
rect,
textSize, spacing, wordwrap, RL.RED, limitHeight, textOffset
)
+ RL.DrawTextBoxedEx(
+ RL.GetFontDefault(),
+ " \a#D28484FF Also supports \a#0000FFFF changing text \a#CCD834FF color in the \a#00FFFFFF middle of \a#B623A3FF the \a#00FF00FF text draw.",
+ rect,
+ textSize, spacing, wordwrap, RL.WHITE, limitHeight, textOffset
+ )
if 0 < mouseCharId then
linkColor = RL.GREEN