ctrlMapPosition: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 12: | 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= <sqf>ctrlMapPosition _map;</sqf> | |x1= <sqf>ctrlMapPosition _map;</sqf> | ||
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