2016-05-30 16:37:03 +00:00
|
|
|
class RscInGameUI {
|
|
|
|
class RscOptics_LaserDesignator {
|
|
|
|
class CA_IGUI_elements_group: RscControlsGroup {
|
|
|
|
class controls {
|
2023-07-30 01:41:46 +00:00
|
|
|
// Hide the vanilla distance display
|
2016-05-30 16:37:03 +00:00
|
|
|
class CA_Distance: RscText {
|
2023-07-30 01:41:46 +00:00
|
|
|
idc = IDC_LASERDESIGNATOR_DISTANCE; // Purposeful overwrite, makes range update constantly, do not remove
|
|
|
|
fade = 1;
|
|
|
|
colorText[] = {0,0,0,0}; // fade doesn't work in some cases (e.g. controlling remote designator uav)
|
2016-05-30 16:37:03 +00:00
|
|
|
};
|
2023-07-30 01:41:46 +00:00
|
|
|
class ACE_Distance: CA_Distance {
|
|
|
|
idc = IDC_LASERDESIGNATOR_ACEDISTANCE;
|
|
|
|
fade = 0;
|
2016-05-30 16:37:03 +00:00
|
|
|
colorText[] = {0.706,0.0745,0.0196,1};
|
|
|
|
};
|
2021-10-15 18:47:05 +00:00
|
|
|
class ACE_LaserCode_Helper: RscMapControl {
|
2016-05-30 16:37:03 +00:00
|
|
|
idc = -1;
|
|
|
|
onDraw = QUOTE(_this call FUNC(onLaserDesignatorDraw));
|
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
2021-10-15 18:47:05 +00:00
|
|
|
class ACE_LaserCode: RscText {
|
2023-07-30 01:41:46 +00:00
|
|
|
idc = IDC_LASERDESIGNATOR_LASERCODE;
|
2016-05-30 16:37:03 +00:00
|
|
|
style = 0;
|
|
|
|
sizeEx = "0.038*SafezoneH";
|
|
|
|
colorText[] = {0.706,0.0745,0.0196,1};
|
|
|
|
shadow = 0;
|
|
|
|
font = "EtelkaMonospacePro";
|
|
|
|
text = "Code: 1001";
|
|
|
|
x = "32.7 * (0.01875 * SafezoneH)";
|
|
|
|
y = "35.5 * (0.025 * SafezoneH)";
|
|
|
|
w = "12 * (0.01875 * SafezoneH)";
|
|
|
|
h = "1.6 * (0.025 * SafezoneH)";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|