mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
373 B
Plaintext
21 lines
373 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private ["_control", "_zoom"];
|
|
|
|
_control = _this select 0;
|
|
_zoom = _this select 1;
|
|
|
|
private ["_sizeX", "_sizeY"];
|
|
|
|
_sizeX = _zoom/4;
|
|
_sizeY = _sizeX*safezoneW/safezoneH;
|
|
|
|
_control ctrlSetPosition [
|
|
safezoneX+0.5*safezoneW-0.5*_sizeX,
|
|
safezoneY+0.5*safezoneH-0.5*_sizeY,
|
|
_sizeX,
|
|
_sizeY
|
|
];
|
|
_control ctrlCommit 0;
|