ACE3/addons/laser/RscInGameUI.hpp

39 lines
1.6 KiB
C++
Raw Permalink Normal View History

2016-05-30 16:37:03 +00:00
class RscInGameUI {
class RscOptics_LaserDesignator {
class CA_IGUI_elements_group: RscControlsGroup {
class controls {
// Hide the vanilla distance display
2016-05-30 16:37:03 +00:00
class CA_Distance: RscText {
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
};
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};
};
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;
};
class ACE_LaserCode: RscText {
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)";
};
};
};
};
};