openCuratorInterface: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Replaced <code> with <sqf>)
 
(8 intermediate revisions by one other user not shown)
Line 15: Line 15:


|x1= Open interface:
|x1= Open interface:
<code>openCuratorInterface;</code>
<sqf>openCuratorInterface;</sqf>


|x2= Close interface:
|x2= Close interface:
<code>findDisplay 312 [[closeDisplay]] 2;</code>
<sqf>findDisplay 312 closeDisplay 2;</sqf>


|x3= Detect if user used "Zeus" key to open curator interface in the absence of event handler for it:
|x3= Detect if user used "Zeus" key to open curator interface in the absence of event handler for it:
<code>[[findDisplay]] 46 [[displayAddEventHandler]] ["KeyDown", {
<sqf>
if ([[inputAction]] "CuratorInterface" > 0) [[then]]
findDisplay 46 displayAddEventHandler ["KeyDown", {
if (inputAction "CuratorInterface" > 0) then
{
{
[[hint]] "Curator interface is open";
hint "Curator interface is open";
};
};
[[false]]
false
}];</code>
}];
</sqf>


|seealso= [[Arma 3: Curator]]
|seealso= [[Arma 3: Curator]]
}}
}}

Latest revision as of 15:17, 14 May 2022

Hover & click on the images for description

Description

Description:
Force opens curator interface.
Groups:
Curator

Syntax

Syntax:
openCuratorInterface
Return Value:
Nothing

Examples

Example 1:
Open interface:
openCuratorInterface;
Example 2:
Close interface:
Example 3:
Detect if user used "Zeus" key to open curator interface in the absence of event handler for it:
findDisplay 46 displayAddEventHandler ["KeyDown", { if (inputAction "CuratorInterface" > 0) then { hint "Curator interface is open"; }; false }];

Additional Information

See also:
Arma 3: Curator

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