393 B
393 B
Object
isFocused
Returns if the object is currently the focused object of the parent frame
Returns
booleanWhether the object is focused
Usage
- Prints whether the button is focused to the debug console
local mainFrame = basalt.createFrame()
local aButton = mainFrame:addButton()
basalt.debug(aButton:isFocused()) -- shows true or false as a debug message