ctrlMapMouseOver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma2
| arma2
Line 12: Line 12:


|p1= control: [[Control]] - map control
|p1= control: [[Control]] - map control
|p2=
|p3=


| [[Array]] - Possible values:
| [[Array]] - Possible values:
Line 28: Line 24:
* ["customMark"]
* ["customMark"]


|x1= <code>
|x1= <code>([[uiNamespace]] [[getVariable]] "_map") [[ctrlMapCursor]] ["Track","HC_overFriendly"];
([[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 54: Line 49:
|x2= <code>[[onEachFrame]] {[[hintSilent]] [[str]] [[ctrlMapMouseOver]] ([[findDisplay]] 12 [[displayCtrl]] 51)};</code>
|x2= <code>[[onEachFrame]] {[[hintSilent]] [[str]] [[ctrlMapMouseOver]] ([[findDisplay]] 12 [[displayCtrl]] 51)};</code>


| [[findDisplay]], [[displayCtrl]]
|seealso= [[findDisplay]], [[displayCtrl]]
}}
}}





Revision as of 00:29, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control - Map

Syntax

Syntax:
Syntax needed
Parameters:
control: Control - map control
Return Value:
Return value needed

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:
onEachFrame {hintSilent str ctrlMapMouseOver (findDisplay 12 displayCtrl 51)};

Additional Information

See also:
findDisplaydisplayCtrl

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