ctrlMapMouseOver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (control cat added)
(links in example)
Line 21: Line 21:




|x1= <pre>
|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]]
{
{
ctrlMapMouseOver (uiNamespace getVariable "_map")
[[ctrlMapMouseOver]] ([[uiNamespace]] [[getVariable]] "_map")
}
}
else
[[else]]
{
{
[""]
[""]
};
};


if (_mouseover select 0 == "task" && str(_logic getVariable "onTaskAssigned") != str{}) then
[[if]] (_mouseover [[select]] 0 [[==]] "task" [[&&]] [[str]](_logic [[getVariable]] "onTaskAssigned") != [[str]]{}) [[then]]
{
{
//--- Task
//--- Task
(uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overMission"];
([[uiNamespace]] [[getVariable]] "_map") [[ctrlMapCursor]] ["Track","HC_overMission"];
}
}
else
else
{
{
//--- Waypoint
//--- Waypoint
(uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_move"];
([[uiNamespace]] [[getVariable]] "_map") [[ctrlMapCursor]] ["Track","HC_move"];
};
};
</pre>|= EXAMPLE1  
</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 02:51, 26 June 2016

Hover & click on the images for description

Description

Description:
Returns description of map sign mouse cursor is over.
Groups:
Uncategorised

Syntax

Syntax:
ctrlMapMouseOver control
Parameters:
control: Control -
Return Value:
Array

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"]; };

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

Notes

Bottom Section