This commit is the equivalent of a atomic bomb
This commit is contained in:
193
source/braf_tracked/BRAF_Tracked_Optics/optics.hpp
Normal file
193
source/braf_tracked/BRAF_Tracked_Optics/optics.hpp
Normal file
@@ -0,0 +1,193 @@
|
||||
class ScrollBar;
|
||||
class RscControlsGroup {
|
||||
class VScrollbar;
|
||||
class HScrollbar;
|
||||
class Controls;
|
||||
};
|
||||
class RscControlsGroupNoScrollbars;
|
||||
class RscText;
|
||||
class RscPicture;
|
||||
class RCWSOptics;
|
||||
class Optics_Armored;
|
||||
/*class RscInGameUI {
|
||||
class RscOptics_MBT_01_gunner;
|
||||
class BRAF_RscOptics_EE9_gunner : RscOptics_MBT_01_gunner {
|
||||
idd = 300;
|
||||
controls[] = {
|
||||
"CA_Zeroing",
|
||||
"CA_IGUI_elements_group",
|
||||
"CA_APC_WFOV_mode_group",
|
||||
"CA_APC_NFOV_mode_group"
|
||||
};
|
||||
class CA_IGUI_elements_group : RscControlsGroup {
|
||||
idc = 170;
|
||||
class VScrollbar : VScrollbar {
|
||||
width = 0;
|
||||
};
|
||||
class HScrollbar : HScrollbar {
|
||||
height = 0;
|
||||
};
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_TurretIndicator : RscPicture {
|
||||
IDC = 206;
|
||||
type = 105;
|
||||
textSize = "0.02*SafezoneH";
|
||||
style = 0;
|
||||
color[] = { 1, 1, 1, 1 };
|
||||
x = "5.25*(0.01875*SafezoneH)";
|
||||
y = "3.5*(0.025*SafezoneH)";
|
||||
w = "6*(0.01875*SafezoneH)";
|
||||
h = "6*(0.025*SafezoneH)";
|
||||
imageHull = "A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorHull.paa";
|
||||
imageTurret = "A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorTurret.paa";
|
||||
imageObsTurret = "#(rgb,8,8,3)color(0,0,0,0)";
|
||||
imageGun = "#(rgb,8,8,3)color(0,0,0,0)";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CA_APC_WFOV_mode_group : RscControlsGroupNoScrollbars {
|
||||
idc = 163;
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_FOVModeWFOV : RscText {
|
||||
shadow = 0;
|
||||
font = "EtelkaMonospacePro";
|
||||
colorText[] = { 1, 1, 1, 1 };
|
||||
sizeEx = "0.032*SafezoneH";
|
||||
idc = 1002;
|
||||
text = "WFOV";
|
||||
x = "40.4 * (0.01875 * SafezoneH)";
|
||||
y = "29.2 * (0.025 * SafezoneH)";
|
||||
w = "5 * (0.01875 * SafezoneH)";
|
||||
h = "1.2 * (0.025 * SafezoneH)";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CA_APC_NFOV_mode_group : RscControlsGroupNoScrollbars {
|
||||
idc = 162;
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_FOVModeNFOV : RscText {
|
||||
shadow = 0;
|
||||
font = "EtelkaMonospacePro";
|
||||
colorText[] = { 0.70899999, 0.972, 0.384, 1 };
|
||||
sizeEx = "0.032*SafezoneH";
|
||||
idc = 1007;
|
||||
text = "NFOV";
|
||||
x = "40.4*(0.01875*SafezoneH)";
|
||||
y = "29.2*(0.025*SafezoneH)";
|
||||
w = "5*(0.01875*SafezoneH)";
|
||||
h = "1.2*(0.025*SafezoneH)";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
class BRAF_RscOptics_LMV_gunner : RscOptics_MBT_01_gunner {
|
||||
idd = 300;
|
||||
controls[] = {
|
||||
"CA_Zeroing",
|
||||
"CA_IGUI_elements_group",
|
||||
"CA_APC_WFOV_mode_group",
|
||||
"CA_APC_NFOV_mode_group"
|
||||
};
|
||||
class CA_IGUI_elements_group : RscControlsGroup {
|
||||
idc = 170;
|
||||
class VScrollbar : VScrollbar {
|
||||
width = 0;
|
||||
};
|
||||
class HScrollbar : HScrollbar {
|
||||
height = 0;
|
||||
};
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_TurretIndicator : RscPicture {
|
||||
IDC = 206;
|
||||
type = 105;
|
||||
textSize = "0.02*SafezoneH";
|
||||
style = 0;
|
||||
color[] = { 1, 1, 1, 1 };
|
||||
x = "5.25*(0.01875*SafezoneH)";
|
||||
y = "3.5*(0.025*SafezoneH)";
|
||||
w = "6*(0.01875*SafezoneH)";
|
||||
h = "6*(0.025*SafezoneH)";
|
||||
imageHull = "A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorHull.paa";
|
||||
imageTurret = "A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorTurret.paa";
|
||||
imageObsTurret = "#(rgb,8,8,3)color(0,0,0,0)";
|
||||
imageGun = "#(rgb,8,8,3)color(0,0,0,0)";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CA_APC_WFOV_mode_group : RscControlsGroupNoScrollbars {
|
||||
idc = 163;
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_FOVModeWFOV : RscText {
|
||||
shadow = 0;
|
||||
font = "EtelkaMonospacePro";
|
||||
colorText[] = { 1, 1, 1, 1 };
|
||||
sizeEx = "0.032*SafezoneH";
|
||||
idc = 1002;
|
||||
text = "WFOV";
|
||||
x = "40.4 * (0.01875 * SafezoneH)";
|
||||
y = "29.2 * (0.025 * SafezoneH)";
|
||||
w = "5 * (0.01875 * SafezoneH)";
|
||||
h = "1.2 * (0.025 * SafezoneH)";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CA_APC_NFOV_mode_group : RscControlsGroupNoScrollbars {
|
||||
idc = 162;
|
||||
x = "0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
|
||||
y = "0*(0.025*SafezoneH)+(SafezoneY)";
|
||||
w = "53.5*(0.01875*SafezoneH)";
|
||||
h = "40*(0.025*SafezoneH)";
|
||||
class controls {
|
||||
class CA_FOVModeNFOV : RscText {
|
||||
shadow = 0;
|
||||
font = "EtelkaMonospacePro";
|
||||
colorText[] = { 0.70899999, 0.972, 0.384, 1 };
|
||||
sizeEx = "0.032*SafezoneH";
|
||||
idc = 1007;
|
||||
text = "NFOV";
|
||||
x = "40.4*(0.01875*SafezoneH)";
|
||||
y = "29.2*(0.025*SafezoneH)";
|
||||
w = "5*(0.01875*SafezoneH)";
|
||||
h = "1.2*(0.025*SafezoneH)";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};*/
|
||||
class braf_m41_gunner_optics : Optics_Armored {
|
||||
class Wide : RCWSOptics {
|
||||
initFov = "(36 / 120)";
|
||||
minFov = "(36 / 120)";
|
||||
maxFov = "(36 / 120)";
|
||||
visionMode[] = { "Normal" };
|
||||
thermalMode[] = {};
|
||||
gunnerOpticsModel = "\braf\braf_tracked\BRAF_Tracked_Optics\M41\braf_m41_gunner_optics_w.p3d";
|
||||
gunnerOpticsEffect[] = {};
|
||||
};
|
||||
class Medium : Wide {
|
||||
gunnerOpticsModel = "\braf\braf_tracked\BRAF_Tracked_Optics\M41\braf_m41_gunner_optics_m.p3d";
|
||||
initFov = "(150 * 0.05625 / 120)";
|
||||
minFov = "(150 * 0.05625 / 120)";
|
||||
maxFov = "(150 * 0.05625 / 120)";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user