isUIContext

From Bohemia Interactive Community
Revision as of 16:41, 13 June 2021 by Lou Montana (talk | contribs) (Text replacement - " \| *('''[a-zA-Z0-9]+''') \|r1=" to " \|s1= $1 |r1=")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI ControlProgram Flow

Syntax

Syntax:
isUIContext
Return Value:
Boolean

Examples

Example 1:
if (isUIContext) then {hint "UI control event"};
Example 2:
_button ctrlSetEventHandler ['ButtonDown',"call {diag_log isUIContext}"]; // Outputs true
Example 3:
_button ctrlSetEventHandler ['ButtonDown',"[] spawn {diag_log isUIContext}"]; // Outputs false

Additional Information

See also:
canSuspendisRemoteExecutedisRemoteExecutedJIPisGamePausedisGameFocusedserverCommand

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note