Files
Basalt/docs/objects/Object/isFocused.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

382 B

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
local mainFrame = basalt.createFrame()
local aButton = mainFrame:addButton()
basalt.debug(aButton:isFocused()) -- shows true or false as a debug message