Updated Label (markdown)

Robert Jelic
2022-05-29 16:32:29 +02:00
parent ce662495c6
commit 6b13236a66

@@ -13,3 +13,22 @@ local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello lovely basalt c
````
**arguments:** string text<br>
**returns:** self<br>
## setFontSize
sets the font size of that text.
````lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello"):setFontSize(2):show()
````
**arguments:** number size (1 = default, 2 = big, 3 = bigger, 4 = huge)<br>
**returns:** self<br>
## getFontSize
returns the fontsize
````lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello"):setFontSize(2):show()
basalt.debug(aInput:getFontSize()) -- returns 2
````
**arguments:** <br>
**returns:** number<br>