GUI Control - Positioning
28 scripting commands. Also as Markdown for agents.
- ctrlAngleGets rotation info of a control set as `ST_PICTURE`. Supported control types: - CT_STATIC - Arma 3 v2.10 CT_ACTIVETEXT
- ctrlModelScaleReturns 3D control model scale.
- ctrlMousePositionReturns position of the mouse on the screen relative to UI Control in UI coordinates. Also works within CT_CONTROLS_GROUPs. In that case, returned…
- ctrlPositionReturns the current position of 2D control as `[x, y, w, h]` array. For 3D control it returns relative `[x, z, y]`.
- ctrlScaleReturns the current scale of the control.
- ctrlSetModelScaleSets 3D control model scale
- ctrlSetMousePositionSimilar to setMousePosition but relative to the given control.
- ctrlSetPixelPrecisionSwitches mode of pixel precision (rounding) in a given control interface.
- ctrlSetPositionSets wanted position and size for 2D control animation. Width and height are optional. ctrlCommit is required to complete the operation.
- ctrlSetPositionHSets the height of a 2D control. ctrlCommit is required to complete the operation.
- ctrlSetPositionWSets the width of a 2D control. ctrlCommit is required to complete the operation.
- ctrlSetPositionXSets horizontal position (x) of the 2D control. ctrlCommit is required to complete the operation.
- ctrlSetPositionYSets vertical position (y) of a 2D control. ctrlCommit is required to complete the operation.
- ctrlSetScaleSets scale of a control. Top left corner remains same. This command requires ctrlCommit.
- getMousePositionReturns mouse position in UI coordinates.
- getResolutionReturns an array containing all information about current client screen resolution.
- pixelGridReturns grid size based on screen resolution, UI size and configs: uiScaleFactor, uiScaleMaxGrids.
- pixelGridBaseReturns grid size based on screen resolution.
- pixelGridNoUIScaleReturns grid size based on screen resolution and configs: `uiScaleFactor`, `uiScaleMaxGrids`. As mentioned in the name of this command, the user…
- pixelHReturns the height of one pixel for current resolution.
- pixelWReturns width of one pixel for current resolution.
- safeZoneHReturns the height of the screen in screen measurement units. Taken from top left corner of the default viewport (0,0) of the screen and going in the…
- safeZoneWReturns the width of the screen in screen measurement units. Taken from top left corner of the default viewport (0,0) of the screen and going in the…
- safeZoneWAbsReturns absolute safeZoneW including all monitors.
- safeZoneXReturns the X of the left border of the screen, which is also a distance in screen measurement units from top left corner of the default viewport…
- safeZoneXAbsReturns absolute safeZoneX including all monitors.
- safeZoneYReturns the Y of the top border of the screen, which is also a distance in screen measurement units from top left corner of the default viewport…
- setMousePositionMoves mouse pointer to specified position on the screen. x and y could be any number, but will be clipped so mouse never leaves the screen area.