mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
28 lines
1022 B
Plaintext
28 lines
1022 B
Plaintext
/*
|
|
Author: Raimonds Virtoss - EpochMod.com
|
|
|
|
Contributors:
|
|
|
|
Description:
|
|
Displays custom text message to player
|
|
|
|
Licence:
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
Github:
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_genderSelection.sqf
|
|
*/
|
|
//[[[cog import generate_private_arrays ]]]
|
|
private ["_max","_min","_r","_r2","_r3"];
|
|
//[[[end]]]
|
|
_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];
|
|
_r3 = linearConversion [_min, _max, _this, safezoneX, safezoneX - safezoneW * 0.3, true];
|
|
|
|
(findDisplay -7 displayCtrl 88801) ctrlSetPosition [_r,1,1.8];
|
|
(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;
|