Updated docs
There is still stuff to do
This commit is contained in:
13
docs/objects/Object/isFocused.md
Normal file
13
docs/objects/Object/isFocused.md
Normal file
@@ -0,0 +1,13 @@
|
||||
## isFocused
|
||||
Returns if the object is currently the focused object of the parent frame
|
||||
|
||||
#### Returns:
|
||||
1. `boolean` Whether the object is focused
|
||||
|
||||
#### Usage:
|
||||
* Prints whether the button is focused to the debug console
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aButton = mainFrame:addButton()
|
||||
basalt.debug(aButton:isFocused()) -- shows true or false as a debug message
|
||||
```
|
||||
Reference in New Issue
Block a user