openCuratorInterface: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''openCuratorInterface''' |= Syntax | | '''openCuratorInterface''' |= Syntax | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= Open interface: <code>[[openCuratorInterface]];</code>|= | |x1= Open interface: <code>[[openCuratorInterface]];</code>|EXAMPLE1= | ||
|x2= Close interface: <code>[[findDisplay]] 312 [[closeDisplay]] 2;</code>|= | |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", { | |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]] { | if ([[inputAction]] "CuratorInterface" > 0) [[then]] { | ||
Line 21: | Line 21: | ||
}; | }; | ||
[[false]] | [[false]] | ||
}];</code>|= | }];</code>|EXAMPLE3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Curator]] |= | | [[Curator]] |SEEALSO= | ||
| mp= Client side execution |= | | mp= Client side execution |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:35, 7 April 2019
Description
- Description:
- Force opens curator interface.
- Multiplayer:
- Client side execution
- Groups:
- Uncategorised
Syntax
- Syntax:
- openCuratorInterface
- Return Value:
- Nothing
Examples
- Example 1:
- Open interface:
openCuratorInterface;
- Example 2:
- Close interface:
findDisplay 312 closeDisplay 2;
- 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:
- 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