ctrlMapMouseOver: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[&&\]\]([^<]*)<\/code>" to "<code>$1&&$2</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 32: | Line 32: | ||
* ["customMark"] | * ["customMark"] | ||
|x1= < | |x1= <sqf>(uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overFriendly"]; | ||
_mouseover = if (count (ctrlMapMouseOver (uiNamespace getVariable "_map")) > 0) then | _mouseover = if (count (ctrlMapMouseOver (uiNamespace getVariable "_map")) > 0) then | ||
Line 52: | Line 52: | ||
//--- Waypoint | //--- Waypoint | ||
(uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_move"]; | (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_move"]; | ||
};</ | };</sqf> | ||
|x2= < | |x2= <sqf>onEachFrame {hintSilent str ctrlMapMouseOver (findDisplay 12 displayCtrl 51)};</sqf> | ||
|seealso= [[findDisplay]] [[displayCtrl]] | |seealso= [[findDisplay]] [[displayCtrl]] | ||
}} | }} |
Revision as of 10:21, 13 May 2022
Description
- Description:
- Returns description of map sign mouse cursor is over. Works with in-game map as well as 2D editor map in edit mode.
- Groups:
- GUI Control - Map
Syntax
- Syntax:
- ctrlMapMouseOver control
- Parameters:
- control: Control - map control
- Return Value:
- Array - Possible values:
Examples
- Example 1:
- (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overFriendly"]; _mouseover = if (count (ctrlMapMouseOver (uiNamespace getVariable "_map")) > 0) then { ctrlMapMouseOver (uiNamespace getVariable "_map") } else { [""] }; if (_mouseover select 0 == "task" && str(_logic getVariable "onTaskAssigned") != str{}) then { //--- Task (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overMission"]; } else { //--- Waypoint (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_move"]; };
- Example 2:
Additional Information
- See also:
- findDisplay displayCtrl
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