Difference between revisions of "ctrlMousePosition"
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 | ||
− | |game1= arma3 | + | |game1= arma3 |
− | |version= 2.00 | + | |version= 2.00 |
− | |gr1= GUI Control | + | |gr1= GUI Control |
− | |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. |
|mp= |Multiplayer Behaviour= | |mp= |Multiplayer Behaviour= | ||
Line 13: | Line 13: | ||
|pr= |Problems= | |pr= |Problems= | ||
− | |s1= [[ctrlMousePosition]] control | + | |s1= [[ctrlMousePosition]] control |
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
− | |r1= [[Array]] | + | |r1= [[Array]] |
− | |x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> | + | |x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> |
− | |seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]] | + | |seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]] |
}} | }} | ||
Revision as of 01:29, 18 January 2021
Description
- Description:
- Returns position of the mouse on the screen relative to UI Control in UI coordinates.
- Groups:
- GUI Control
Syntax
- Syntax:
- ctrlMousePosition control
- Parameters:
- control: Control
- Return Value:
- Array
Examples
- Example 1:
_mousePos = ctrlMousePosition _ctrl;
Additional Information
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
Bottom Section
- Posted on October 2, 2020 - 11:14 (UTC)
- Dscha
- ctrlMousePosition also do work with Controls within a CT CONTROLS GROUP. The return would be its position, relative to the parent position (ctrlParentControlsGroup).