ctrlMapCursor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 74: Line 74:
<dt class="note">[[User:Bull A|Bull A]]</dt>
<dt class="note">[[User:Bull A|Bull A]]</dt>
<dd class="note">
<dd class="note">
Current use is limited to controls within #Display - 12
_ctrl argument must be (findDisplay 12 displayCtrl 51). Other controls, even if extending from the RscMapControl class will not be affected by this command.<br/><br/>
Example:<br/>
<code>_map = uiNamespace getVariable ["CustomMapDisplayIdd",_displayNull];
_map [[ctrlMapCursor]] ["Track", "Track"];</code>
Result: No change
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 11:13, 15 August 2015

Hover & click on the images for description

Description

Description:
Changes the default 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 is the name of a config entry from CfgWrapperUI / Cursors. Some possible class names:

  • Arrow
  • Track
  • Move
  • Scroll
  • Rotate
  • Track3D
  • Move3D
  • Rotate3D
  • Raise3D
  • Wait
  • HC_move
  • HC_overFriendly
  • HC_overEnemy
  • HC_overMission
  • HC_unsel

NOTE: Cursor name is case sensitive.
Groups:
Uncategorised

Syntax

Syntax:
control ctrlMapCursor [defaultCursor, newCursor]
Parameters:
control: Control - Map control
defaultCursor: String - Cursor class name
newCursor: String - Cursor class name
Return Value:
Nothing

Examples

Example 1:
_map ctrlMapCursor ["Track", "Arrow"];
Example 2:
uiNamespace setVariable ["_map",findDisplay 12 displayCtrl 51]; (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overFriendly"];
Example 3:
findDisplay 12 displayCtrl 51 ctrlMapCursor ["Scroll", "Wait"];

Additional Information

See also:
setMousePosition

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

Notes

Bottom Section

Posted on August 14, 2015 - 11:01 (UTC)
Bull A
_ctrl argument must be (findDisplay 12 displayCtrl 51). Other controls, even if extending from the RscMapControl class will not be affected by this command.

Example:
_map = uiNamespace getVariable ["CustomMapDisplayIdd",_displayNull]; _map ctrlMapCursor ["Track", "Track"]; Result: No change