Skip to content
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

setText

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

Wiki Navigation

Home

Clone this wiki locally