Updated Label (markdown)
19
Label.md
19
Label.md
@@ -13,3 +13,22 @@ local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello lovely basalt c
|
|||||||
````
|
````
|
||||||
**arguments:** string text<br>
|
**arguments:** string text<br>
|
||||||
**returns:** self<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user