isUIContext: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "|r1=$1 |x1=") |
||
Line 12: | Line 12: | ||
| '''isUIContext''' | | '''isUIContext''' | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <code>[[if]] ([[isUIContext]]) [[then]] {[[hint]] "UI control event"};</code> | |x1= <code>[[if]] ([[isUIContext]]) [[then]] {[[hint]] "UI control event"};</code> |
Revision as of 14:05, 10 June 2021
Description
- Description:
- Description needed
- Groups:
- GUI ControlProgram Flow
Syntax
- Syntax:
- Syntax needed
- 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
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