openCuratorInterface: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Replaced <code> with <sqf>)
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.16


|1.16|= Game version
|eff= local
____________________________________________________________________________________________


| Force opens curator interface. |= Description
|gr1= Curator
____________________________________________________________________________________________


| '''openCuratorInterface''' |= Syntax
|descr= Force opens curator interface.


| [[Nothing]] |= RETURNVALUE
|s1= [[openCuratorInterface]]


|x1= Open interface: <code>[[openCuratorInterface]];</code>|= EXAMPLE1
|r1= [[Nothing]]
|x2= Close interface: <code>[[findDisplay]] 312 [[closeDisplay]] 2;</code>|= EXAMPLE2
|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]] {
[[hint]] "Curator interface is open";
};
[[false]]
}];</code>|= EXAMPLE3
____________________________________________________________________________________________


| [[Curator]] |= SEEALSO
|x1= Open interface:
<sqf>openCuratorInterface;</sqf>


| mp= Client side execution |= MPBEHAVIOUR
|x2= Close interface:
____________________________________________________________________________________________
<sqf>findDisplay 312 closeDisplay 2;</sqf>
}}


<h3 style='display:none'>Notes</h3>
|x3= Detect if user used "Zeus" key to open curator interface in the absence of event handler for it:
<dl class='command_description'>
<sqf>
<!-- Note Section BEGIN -->
findDisplay 46 displayAddEventHandler ["KeyDown", {
if (inputAction "CuratorInterface" > 0) then
{
hint "Curator interface is open";
};
false
}];
</sqf>


<!-- Note Section END -->
|seealso= [[Arma 3: Curator]]
</dl>
}}
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]]

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