ctrlMapMouseOver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(links in example)
(description example seealso)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns description of map sign mouse cursor is over. |= Description
| Returns description of map sign mouse cursor is over. Works with in-game map as well as 2D editor map in edit mode. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''ctrlMapMouseOver''' control |= Syntax
| '''ctrlMapMouseOver''' control |= Syntax


|p1= control: [[Control]] -  |= PARAMETER1  
|p1= control: [[Control]] - map control |= PARAMETER1  


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 18: Line 18:
|p3= |= PARAMETER3  
|p3= |= PARAMETER3  


| [[Array]] |= RETURNVALUE  
| [[Array]] - Possible values:
* ["unit", [[Object]]]
* ["vehicle", [[Object]]]
* ["vehicleGroup", [[Object]]]
* ["object", [[Object]]]
* ["waypoint", [[Waypoint]]]
* ["trigger", [[Object]]]
* ["marker", [[String]]]
* ["task", [[Task]]]
* ["customMark"] |= RETURNVALUE  




Line 44: Line 53:
};
};
</code>|= EXAMPLE1  
</code>|= EXAMPLE1  
|x2= <code>[[onEachFrame]] {[[hintSilent]] [[str]] [[ctrlMapMouseOver]] ([[findDisplay]] 12 [[displayCtrl]] 51)};</code>|= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[findDisplay]], [[displayCtrl]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 12:43, 26 June 2016

Hover & click on the images for description

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:
Uncategorised

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:
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

Notes

Bottom Section