2015-04-03 17:25:28 +00:00
|
|
|
// by commy2
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
disableSerialization;
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
params ["_display"];
|
2015-04-03 17:25:28 +00:00
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _control = _display displayCtrl 1713154;
|
2015-04-03 17:25:28 +00:00
|
|
|
|
|
|
|
if (!ctrlShown (_display displayCtrl 154)) exitWith {
|
2015-12-21 16:05:48 +00:00
|
|
|
_control ctrlShow false;
|
2015-04-03 17:25:28 +00:00
|
|
|
};
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _sizeX = (call EFUNC(common,getZoom))/4;
|
|
|
|
private _sizeY = _sizeX*safezoneW/safezoneH;
|
2015-04-03 17:25:28 +00:00
|
|
|
|
|
|
|
_control ctrlSetPosition [
|
|
|
|
safezoneX+0.5*safezoneW-0.5*_sizeX,
|
|
|
|
safezoneY+0.5*safezoneH-0.5*_sizeY,
|
|
|
|
_sizeX,
|
|
|
|
_sizeY
|
|
|
|
];
|
|
|
|
|
|
|
|
_control ctrlCommit 0;
|
|
|
|
_control ctrlShow true;
|