ctrlMapPosition: Difference between revisions
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.08 |branch= dev |gr1= GUI Control - Map |descr= Returns map position in format [x, y, w, h]. If map is inside a Controls group,...") |
BrettMayson (talk | contribs) mNo edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.08 | |version1= 2.08 | ||
|gr1= GUI Control - Map | |gr1= GUI Control - Map | ||
|descr= Returns map position in format [x, y, w, h]. If map is inside a Controls | |descr= A getter for [[ctrlMapSetPosition]]. Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner. | ||
|s1= [[ctrlMapPosition]] map | |s1= [[ctrlMapPosition]] map | ||
| Line 13: | Line 12: | ||
|p1= map: [[Control]] - [[CT_MAP|Map control]] | |p1= map: [[Control]] - [[CT_MAP|Map control]] | ||
|r1= [[Array]] | |r1= [[Array]] with [x, y, w, h] | ||
* x: [[Number]] - position in x | |||
* y: [[Number]] - position in y | |||
* w: [[Number]] - width of the map control | |||
* h: [[Number]] - height of the map control | |||
|x1= < | |x1= <sqf>ctrlMapPosition _map;</sqf> | ||
|seealso= [[ctrlMapSetPosition]] | |seealso= [[ctrlMapSetPosition]] [[ctrlCreate]] | ||
}} | }} | ||
Latest revision as of 05:03, 3 January 2026
Description
- Description:
- A getter for ctrlMapSetPosition. Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner.
- Groups:
- GUI Control - Map
Syntax
- Syntax:
- ctrlMapPosition map
- Parameters:
- map: Control - Map control
- Return Value:
- Array with [x, y, w, h]
Examples
- Example 1:
- ctrlMapPosition _map;
Additional Information
- See also:
- ctrlMapSetPosition ctrlCreate
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note