-
Notifications
You must be signed in to change notification settings - Fork 41
Label
Robert Jelic edited this page May 2, 2022
·
11 revisions
With labels you are able to add simple text to the screen.
Here are all possible functions available for labels:
Remember label also inherits from object
sets the text of your label, it automatically adjusts the width to the text len. If you by any chance dont want the width to be able to change, use :setValue() instead
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aLabel = mainFrame:addLabel("myFirstLabel"):setText("I am a label!"):show()args: string text
returns: self
Thanks for checking out our wiki, join our discord for more help: discord.gg/yM7kndJdJJ