From e45564ea3f0f27c32264f98da80c6d3556256de0 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 26 Jun 2024 22:28:13 +0300 Subject: Changed naming of gui functions set2Top and set2Back to setToTop and setToBack. --- examples/textBoxed/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/textBoxed/main.lua') 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 - -- cgit v1.2.3