bad syntax fix
This commit is contained in:
@@ -7,28 +7,28 @@ Remember Label inherits from [Object](objects/Object.md)
|
||||
|
||||
## setText
|
||||
sets the text which gets displayed.
|
||||
````lua
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||
local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello lovely basalt community!"):show()
|
||||
````
|
||||
```
|
||||
**arguments:** string text<br>
|
||||
**returns:** self<br>
|
||||
|
||||
## setFontSize
|
||||
sets the font size of that text.
|
||||
````lua
|
||||
```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
|
||||
```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