2015-01-14 06:24:17 +00:00
|
|
|
class RscText;
|
|
|
|
class RscPicture;
|
2019-05-27 15:46:07 +00:00
|
|
|
class RscControlsGroupNoScrollbars;
|
2015-01-14 06:24:17 +00:00
|
|
|
|
|
|
|
class RscInGameUI {
|
2019-05-27 15:46:07 +00:00
|
|
|
class RscWeaponZeroing;
|
|
|
|
class CBA_ScriptedOptic: RscWeaponZeroing {
|
|
|
|
class CA_Zeroing;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ACE_RscOptics_vector: CBA_ScriptedOptic {
|
|
|
|
controls[] = {
|
|
|
|
"CA_FOVMode","ScopeBlack","Reticle","BodyNight","BodyDay","TrippleHeadLeft","TrippleHeadRight","CA_Zeroing","Magnification","ActiveDisplayHelper",
|
|
|
|
"CA_Distance","CA_Heading","CA_OpticsPitch","CA_Elev","CA_OpticsZoom","CA_VisionMode","ACE_ScriptedDisplayControlsGroup"
|
|
|
|
};
|
2015-01-21 21:52:39 +00:00
|
|
|
|
|
|
|
class CA_Distance: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 151; // distance
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
class CA_Heading: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 156; // azimuth
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
class CA_OpticsPitch: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 182; // inclination
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
class CA_Elev: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 175; // inclination, more accurate
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
class CA_OpticsZoom: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 180; // some kind of zoom
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
class CA_VisionMode: RscText {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = 179; // ???
|
2015-01-21 21:52:39 +00:00
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
2019-05-27 15:46:07 +00:00
|
|
|
class CA_Zeroing: CA_Zeroing {
|
|
|
|
onLoad = "(_this select 0) ctrlShow false";
|
|
|
|
};
|
2015-01-21 21:52:39 +00:00
|
|
|
|
2019-05-27 15:46:07 +00:00
|
|
|
class ACE_ScriptedDisplayControlsGroup: RscControlsGroupNoScrollbars {
|
|
|
|
onLoad = "uiNamespace setVariable ['ACE_dlgVector', ctrlParent (_this select 0)];";
|
2015-01-21 21:52:39 +00:00
|
|
|
idc = 170;
|
2019-05-27 15:46:07 +00:00
|
|
|
x = "safezoneX";
|
|
|
|
y = "safezoneY";
|
|
|
|
w = "safezoneW";
|
|
|
|
h = "safezoneH";
|
2015-01-21 21:52:39 +00:00
|
|
|
|
|
|
|
class controls {
|
|
|
|
class Center: RscPicture {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_CENTER;
|
2015-01-21 21:52:39 +00:00
|
|
|
colorText[] = {1,0,0,0.5};
|
2019-05-27 15:46:07 +00:00
|
|
|
x = "0.5 - (0.8 / 16 * safezoneW)/2 - safezoneX";
|
|
|
|
y = "0.5 - (0.8 / 9 * safezoneH)/2 - safezoneY";
|
|
|
|
w = "0.8 / 16 * safezoneW";
|
|
|
|
h = "0.8 / 9 * safezoneH";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Crosshair: Center {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_CROSSHAIR;
|
|
|
|
x = "0.5 - (0.7 / 16 * safezoneW)/2 - safezoneX";
|
|
|
|
y = "0.5 - (0.7 / 9 * safezoneH)/2 - safezoneY";
|
|
|
|
w = "0.7 / 16 * safezoneW";
|
|
|
|
h = "0.7 / 9 * safezoneH";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Digit0: Center {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_0;
|
|
|
|
x = "(0.54 + 0 * 0.02) * safezoneW";
|
|
|
|
y = "0.54 * safezoneH";
|
|
|
|
w = "0.5 / 16 * safezoneW";
|
|
|
|
h = "0.5 / 9 * safezoneH";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit1: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_1;
|
|
|
|
x = "(0.54 + 1 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit2: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_2;
|
|
|
|
x = "(0.54 + 2 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit3: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_3;
|
|
|
|
x = "(0.54 + 3 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit4: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_4;
|
|
|
|
x = "(0.54 + 4 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit5: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_5;
|
|
|
|
x = "(0.35 + 0 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit6: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_6;
|
|
|
|
x = "(0.35 + 1 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit7: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_7;
|
|
|
|
x = "(0.35 + 2 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit8: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_8;
|
|
|
|
x = "(0.35 + 3 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class Digit9: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_9;
|
|
|
|
x = "(0.35 + 4 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DigitE1: Digit0 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_E1;
|
|
|
|
x = "(0.39 + 0 * 0.02) * safezoneW";
|
|
|
|
y = "0.42 * safezoneH";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class DigitE2: DigitE1 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_E2;
|
|
|
|
x = "(0.39 + 1 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class DigitE3: DigitE1 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_E3;
|
|
|
|
x = "(0.39 + 2 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
class DigitE4: DigitE1 {
|
2019-05-27 15:46:07 +00:00
|
|
|
idc = IDC_DIGIT_E4;
|
|
|
|
x = "(0.39 + 3 * 0.02) * safezoneW";
|
2015-01-21 21:52:39 +00:00
|
|
|
};
|
|
|
|
};
|
2015-01-14 06:24:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|