openCuratorInterface: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
m (Replaced <code> with <sqf>)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.16


|1.16
|eff= local


|gr1= Curator
|gr1= Curator


| Force opens curator interface.
|descr= Force opens curator interface.


| '''openCuratorInterface'''
|s1= [[openCuratorInterface]]


| [[Nothing]]
|r1= [[Nothing]]


|x1= Open interface: <code>[[openCuratorInterface]];</code>
|x1= Open interface:
|x2= Close interface: <code>[[findDisplay]] 312 [[closeDisplay]] 2;</code>
<sqf>openCuratorInterface;</sqf>
|x3= Detect if user used "Zeus" key to open curator interface in the absence of event handler for it: <code>[[findDisplay]] 46 [[displayAddEventHandler]] ["KeyDown", {
 
if ([[inputAction]] "CuratorInterface" > 0) [[then]] {
|x2= Close interface:
[[hint]] "Curator interface is open";
<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:
<sqf>
findDisplay 46 displayAddEventHandler ["KeyDown", {
if (inputAction "CuratorInterface" > 0) then
{
hint "Curator interface is open";
};
};
[[false]]
false
}];</code>
}];
 
</sqf>
| [[Curator]]


| mp= Client side execution |MPBEHAVIOUR=  
|seealso= [[Arma 3: Curator]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16: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