isUIContext: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 18: | Line 18: | ||
|x3= <code>_button [[ctrlSetEventHandler]] ['ButtonDown',"[] [[spawn]] {[[diag_log]] [[isUIContext]]}"]; // Outputs false</code> | |x3= <code>_button [[ctrlSetEventHandler]] ['ButtonDown',"[] [[spawn]] {[[diag_log]] [[isUIContext]]}"]; // Outputs false</code> | ||
| [[canSuspend]], [[isRemoteExecuted]], [[isRemoteExecutedJIP]], [[isGamePaused]], [[isGameFocused]], [[serverCommand]] | |seealso= [[canSuspend]], [[isRemoteExecuted]], [[isRemoteExecutedJIP]], [[isGamePaused]], [[isGameFocused]], [[serverCommand]] | ||
}} | }} |
Revision as of 23:47, 16 February 2021
Description
- Description:
- Description needed
- Groups:
- GUI ControlProgram Flow
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
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