summaryrefslogtreecommitdiff
path: root/examples/textBoxed/main.lua
diff options
context:
space:
mode:
authorjussi2024-06-26 22:28:13 +0300
committerjussi2024-06-26 22:28:13 +0300
commite45564ea3f0f27c32264f98da80c6d3556256de0 (patch)
treedd9fb36032fcd2aa791226c75826c9cec4a7c3ff /examples/textBoxed/main.lua
parentc96306bcc3bc685297b8553d01d2eff163754afc (diff)
downloadreilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.tar.gz
reilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.tar.bz2
reilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.zip
Changed naming of gui functions set2Top and set2Back to setToTop and setToBack.
Diffstat (limited to 'examples/textBoxed/main.lua')
-rw-r--r--examples/textBoxed/main.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/textBoxed/main.lua b/examples/textBoxed/main.lua
index ce570c0..df731c3 100644
--- a/examples/textBoxed/main.lua
+++ b/examples/textBoxed/main.lua
@@ -3,6 +3,7 @@ local spacing = 1
local rect = { 100, 64, 200, 200 }
local wordwrap = true
local linkColor = RL.BLUE
+local limitHeight = true
local mouseCharId = 0
local textOffset = { 0, 0 }
@@ -34,21 +35,21 @@ function RL.draw()
mouseCharId, textOffset = RL.DrawTextBoxedEx(
RL.GetFontDefault(),
- "You 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.",
+ "\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,
- textSize, spacing, wordwrap, RL.RED, { 0, 0 }
+ textSize, spacing, wordwrap, RL.RED, limitHeight, { 0, 0 }
)
mouseCharId, textOffset = RL.DrawTextBoxedEx(
RL.GetFontDefault(),
" Hyperlink.",
rect,
- textSize, spacing, wordwrap, linkColor, textOffset
+ textSize, spacing, wordwrap, linkColor, limitHeight, 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, textOffset
+ textSize, spacing, wordwrap, RL.RED, limitHeight, textOffset
)
if 0 < mouseCharId then
@@ -57,4 +58,3 @@ function RL.draw()
linkColor = RL.BLUE
end
end
-