UIElement:can_receive_input

Returns whether this element can currently receive input actions. This implies the following conditions:

Usage

ui_element:can_receive_input(player_index)

Arguments

Name Type Description
player_index number Number identifying the player whose inputs to consider.

Returns

Name Type Description
can_receive boolean True if this element can receive inputs, false otherwise.

Examples

local menu = crystal.Overlay:new();
print(menu:can_receive_input(1)); -- Prints "true"
menu:set_player_index(2);
print(menu:can_receive_input(1)); -- Prints "false"

This site uses Just the Docs, a documentation theme for Jekyll.