ctrlMapCursor: Difference between revisions
Jump to navigation
Jump to search
(Improved formatting, added information about the custom cursor, fixed 1st example.) |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 55: | Line 55: | ||
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:47, 25 March 2013
Description
- Description:
- Changes the default the cursor that appears when interacting with a map control to a custom one.
Use an empty string to restore the default cursor.
If the specified cursor does not exist, the default is used and no error is produced.
The cursor texture is one of the following and is case sensitive:
- Track
- Move
- Array
- Scroll
- Groups:
- Uncategorised
Syntax
- Syntax:
- control ctrlMapCursor [cursorTexture, customCursor]
- Parameters:
- control: Control - Map control
- cursorTexture: String - Cursor texture name
- customCursor: String - Cursor class name
- Return Value:
- Nothing
Examples
- Example 1:
_map ctrlMapCursor ["Track", _customCursor]
- Example 2:
uiNamespace setVariable ["_map",(findDisplay 12) displayCtrl 51]; (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overFriendly"];
Additional Information
- See also:
- See also needed
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