ACE3/addons/laser/RscInGameUI.hpp
Grim 628d62d329
Laser - Cleanup laser designator config and code (#9289)
* cleanup laser designator code

* condition

* use macro for IDC

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* IDC to macro

* switch to _currentShooter

* hide CA_Distance even if fade fails

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-30 04:41:46 +03:00

39 lines
1.6 KiB
C++

class RscInGameUI {
class RscOptics_LaserDesignator {
class CA_IGUI_elements_group: RscControlsGroup {
class controls {
// Hide the vanilla distance display
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)
};
class ACE_Distance: CA_Distance {
idc = IDC_LASERDESIGNATOR_ACEDISTANCE;
fade = 0;
colorText[] = {0.706,0.0745,0.0196,1};
};
class ACE_LaserCode_Helper: RscMapControl {
idc = -1;
onDraw = QUOTE(_this call FUNC(onLaserDesignatorDraw));
w = 0;
h = 0;
};
class ACE_LaserCode: RscText {
idc = IDC_LASERDESIGNATOR_LASERCODE;
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)";
};
};
};
};
};