Docs update, mostly Basalt, Sidebar and Footer. #28
@@ -1,21 +1,27 @@
|
|||||||
## basalt.debug
|
|
||||||
|
# basalt.debug
|
||||||
|
|
||||||
Creates a label with some information on the main frame on the bottom left. When you click on that label it will open a log view for you. See it as the new print for debugging
|
Creates a label with some information on the main frame on the bottom left. When you click on that label it will open a log view for you. See it as the new print for debugging
|
||||||
|
|
||||||
You can also edit the default debug Label (change position, change color or whatever you want) by accessing the variable basalt.debugLabel
|
You can also edit the default debug Label (change position, change color or whatever you want) by accessing the variable `basalt.debugLabel`
|
||||||
which returns the debug Label.
|
which returns the debug Label.
|
||||||
|
|
||||||
Also basalt.debugFrame and basalt.debugList are available.
|
`basalt.debugFrame` and `basalt.debugList` are also available.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
#### Parameters:
|
|
||||||
1. `...` (multiple parameters are possible, like print does)
|
1. `...` (multiple parameters are possible, like print does)
|
||||||
|
|
||||||
#### Usage:
|
## Usage
|
||||||
|
|
||||||
* Prints "Hello! ^-^" to the debug console
|
* Prints "Hello! ^-^" to the debug console
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
basalt.debug("Hello! ", "^-^")
|
basalt.debug("Hello! ", "^-^")
|
||||||
```
|
```
|
||||||
|
|
||||||
* Changes the debug label's anchor
|
* Changes the debug label's anchor
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
basalt.debugLabel:setAnchor("topLeft") -- default anchor is bottomLeft
|
basalt.debugLabel:setAnchor("topLeft") -- default anchor is bottomLeft
|
||||||
basalt.debug("Hello!")
|
basalt.debug("Hello!")
|
||||||
|
|||||||
Reference in New Issue
Block a user