Files
Basalt/docs/objects/Object/isFocused.md
Robert Jelic ab72f244ed Updated some formatting
Updated formatting for object
2022-10-20 21:05:29 +02:00

393 B

Object

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