Updated docs
There is still stuff to do
This commit is contained in:
13
docs/objects/Label/getFontSize.md
Normal file
13
docs/objects/Label/getFontSize.md
Normal file
@@ -0,0 +1,13 @@
|
||||
## getFontSize
|
||||
Returns the current font size
|
||||
|
||||
#### Returns:
|
||||
1. `number` font size
|
||||
|
||||
#### Usage:
|
||||
* Creates a default label, sets the text to "Basalt!" and its font size to 2. Also prints the current fontsize.
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aLabel = mainFrame:addLabel():setText("Basalt!"):setFontSize(2)
|
||||
basalt.debug(aLabel:getFontSize())
|
||||
```
|
||||
18
docs/objects/Label/setFontSize.md
Normal file
18
docs/objects/Label/setFontSize.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## setFontSize
|
||||
Sets the font size, calculated by bigfonts. Default size is 1.
|
||||
|
||||
#### Parameters:
|
||||
1. `number` The size (1, 2, 3, 4)
|
||||
|
||||
#### Returns:
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
* Creates a default label, sets the text to "Basalt!" and its font size to 2.
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aLabel = mainFrame:addLabel():setText("Basalt!"):setFontSize(2)
|
||||
```
|
||||
```xml
|
||||
<label font="2" />
|
||||
```
|
||||
18
docs/objects/Label/setText.md
Normal file
18
docs/objects/Label/setText.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## setText
|
||||
Sets the text which gets displayed.
|
||||
|
||||
#### Parameters:
|
||||
1. `string` The text which should be displayed
|
||||
|
||||
#### Returns:
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
* Creates a default label with text "Some random text".
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aLabel = mainFrame:addLabel():setText("Some random text")
|
||||
```
|
||||
```xml
|
||||
<label text="Some random text" />
|
||||
```
|
||||
Reference in New Issue
Block a user