From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Sets the rotation of a control set as ST_PICTURE. Rotation will be done within the control boundaries, so if the X and Y are given off center, the picture may get clipped by the control boundaries.
Only requires ctrlCommit when fourth parameter is set to false. Procedural textures filled controls do not rotate. Supported control types:
⚠
Images that touch borders may "bleed" during rotation transformation, to avoid this, make sure the image has a 1px transparent padding.
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetAngle [angle, centerX, centerY, now]
- Parameters:
- control: Control - picture control
- angle: Number - rotation angle (clockwise)
- centerX: Number - rotation center X in range 0 to 1. Control center is 0.5
- centerY: Number - rotation center Y in range 0 to 1. Control center is 0.5
- since
1.78 - now: Boolean - (Optional, default true) if false, control will wait for ctrlCommit input for result to apply
- Return Value:
- Nothing
Examples
- Example 1:
Copy_control ctrlSetAngle [25, 0.5, 0.5];
- Example 2:
- Example 3:
Additional Information
- See also:
- ctrlAngle
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