Epoch/Sources/epoch_code/gui/scripts/Epoch_genderSelection.sqf

10 lines
540 B
Plaintext
Raw Normal View History

2015-10-28 15:16:00 +00:00
_min = safezoneX + 0.4 * safezoneW;
_max = safezoneX + 0.6 * safezoneW;
_r = linearConversion [_min, _max, _this, 0.2, -1, true];
_r2 = linearConversion [_min, _max, _this, 2, 0.8, true];
2015-11-01 07:28:48 +00:00
_r3 = linearConversion [_min, _max, _this, safezoneX, safezoneX - safezoneW * 0.3, true];
2015-10-28 15:16:00 +00:00
(findDisplay -7 displayCtrl 88801) ctrlSetPosition [_r,1,1.8];
2015-11-01 07:28:48 +00:00
(findDisplay -7 displayCtrl 88802) ctrlSetPosition [_r2,1,1.8];
(findDisplay -7 displayCtrl 88800) ctrlSetPosition [_r3,safezoneY - safezoneH * 0.1];
(findDisplay -7 displayCtrl 88800) ctrlCommit 0;