Difference between revisions of "ctrlMousePosition"
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= GUI Control |GROUP1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{RV|type=command |
− | |game1= | + | |game1= arma3 |
+ | |version1= 2.00 | ||
− | | | + | |gr1= GUI Control - Positioning |
− | | | + | |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 | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
− | |r1= [[Array]] | + | |r1= [[Array]] |
− | |||
− | |x1= < | + | |x1= <sqf>private _mouseRelPos = ctrlMousePosition _ctrl;</sqf> |
− | |||
− | |seealso= [[setMousePosition]] [[getMousePosition]] | + | |seealso= [[setMousePosition]] [[getMousePosition]] |
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 12:24, 4 May 2022
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:
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