ctrlMousePosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *Multiplayer Behaviour *= * " to " ") |
(formatting and new command group) |
||
Line 5: | Line 5: | ||
|version1= 2.00 | |version1= 2.00 | ||
|gr1= GUI Control | |gr1= GUI Control - Positioning | ||
|descr= Returns position of the mouse on the screen relative to UI Control in UI coordinates. | |descr= Returns position of the mouse on the screen relative to UI Control in UI coordinates. Also works within [[CT_CONTROLS_GROUP]]s. In that case, returned position is relative to the position of the group. | ||
|s1= [[ctrlMousePosition]] control | |s1= [[ctrlMousePosition]] control | ||
Line 21: | Line 17: | ||
|x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> | |x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> | ||
|seealso= [[setMousePosition]] [[getMousePosition | |seealso= [[setMousePosition]] [[getMousePosition]] | ||
}} | }} | ||
Revision as of 01:28, 5 March 2021
Description
- Description:
- Returns position of the mouse on the screen relative to UI Control in UI coordinates. Also works within CT_CONTROLS_GROUPs. In that case, returned position is relative to the position of the group.
- Groups:
- GUI Control - Positioning
Syntax
- Syntax:
- ctrlMousePosition control
- Parameters:
- control: Control
- Return Value:
- Array
Examples
- Example 1:
_mousePos = ctrlMousePosition _ctrl;
Additional Information
- See also:
- setMousePosition getMousePosition
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