Docs: basalt.getVariable & basalt.getVersion
This commit is contained in:
24
docs/objects/Basalt/getVariable.md
Normal file
24
docs/objects/Basalt/getVariable.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# basalt.getVariable
|
||||
|
||||
Returns a variable defined with [setVariable](objects/Basalt/setVariable)
|
||||
|
||||
## Returns
|
||||
|
||||
1. `variable` The variable stored
|
||||
|
||||
## Usage
|
||||
|
||||
* Displays the stored variable in the debug console
|
||||
|
||||
```lua
|
||||
basalt.setVariable("abc", function()
|
||||
basalt.debug("I got clicked")
|
||||
return 1
|
||||
end)
|
||||
|
||||
basalt.debug(basalt.getVariable("abc")()) -- Should debug log "I got clicked" and debug log 2 (which was returned from the function)
|
||||
```
|
||||
|
||||
```xml
|
||||
<button onClick="abc" text="Click me" />
|
||||
```
|
||||
15
docs/objects/Basalt/getVersion.md
Normal file
15
docs/objects/Basalt/getVersion.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# basalt.getVersion
|
||||
|
||||
Returns the currently active/visible base frame.
|
||||
|
||||
## Returns
|
||||
|
||||
1. `string` The current version of Basalt
|
||||
|
||||
## Usage
|
||||
|
||||
* Displays the version of Basalt in the debug console
|
||||
|
||||
```lua
|
||||
basalt.debug(basalt.getVersion()) -- Example: 1.6.2
|
||||
```
|
||||
Reference in New Issue
Block a user