ctrlMapMouseOver: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= GUI Control - Map | |gr1= GUI Control - Map | ||
| Returns description of map sign mouse cursor is over. Works with in-game map as well as 2D editor map in edit mode. | | Returns description of map sign mouse cursor is over. Works with in-game map as well as 2D editor map in edit mode. | ||
| '''ctrlMapMouseOver''' control | | '''ctrlMapMouseOver''' control | ||
|p1= control: [[Control]] - map control | |p1= control: [[Control]] - map control | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Array]] - Possible values: | | [[Array]] - Possible values: | ||
Line 26: | Line 26: | ||
* ["marker", [[String]]] | * ["marker", [[String]]] | ||
* ["task", [[Task]]] | * ["task", [[Task]]] | ||
* ["customMark"] | * ["customMark"] | ||
Line 51: | Line 51: | ||
([[uiNamespace]] [[getVariable]] "_map") [[ctrlMapCursor]] ["Track","HC_move"]; | ([[uiNamespace]] [[getVariable]] "_map") [[ctrlMapCursor]] ["Track","HC_move"]; | ||
}; | }; | ||
</code> | </code> | ||
|x2= <code>[[onEachFrame]] {[[hintSilent]] [[str]] [[ctrlMapMouseOver]] ([[findDisplay]] 12 [[displayCtrl]] 51)};</code> | |x2= <code>[[onEachFrame]] {[[hintSilent]] [[str]] [[ctrlMapMouseOver]] ([[findDisplay]] 12 [[displayCtrl]] 51)};</code> | ||
| [[findDisplay]], [[displayCtrl]] | | [[findDisplay]], [[displayCtrl]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:30, 18 January 2021
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:
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