2015-02-03 22:03:43 +00:00
|
|
|
|
2015-01-12 10:02:44 +00:00
|
|
|
#define MACRO_RANGEFINDER \
|
2015-01-14 20:07:41 +00:00
|
|
|
class CA_Distance; \
|
|
|
|
class ACE_CA_Distance: CA_Distance { \
|
|
|
|
idc = 1713151; \
|
|
|
|
text = "----"; \
|
|
|
|
}; \
|
|
|
|
class ACE_Rangehelper: RscMapControl { \
|
|
|
|
onDraw = "((ctrlParent (_this select 0)) displayCtrl 1713151) ctrlShow (cameraView == 'GUNNER');"; \
|
|
|
|
w = 0; \
|
|
|
|
h = 0; \
|
|
|
|
};
|
2015-01-12 10:02:44 +00:00
|
|
|
|
2017-05-15 22:30:47 +00:00
|
|
|
class RscText;
|
2015-01-12 10:02:44 +00:00
|
|
|
class RscControlsGroup;
|
|
|
|
class RscMapControl;
|
|
|
|
|
|
|
|
class RscInGameUI {
|
2015-01-14 20:07:41 +00:00
|
|
|
class RscUnitInfo;
|
2015-01-12 10:02:44 +00:00
|
|
|
|
2015-01-14 20:07:41 +00:00
|
|
|
class RscOptics_Heli_Attack_02_gunner: RscUnitInfo {
|
|
|
|
class CA_IGUI_elements_group: RscControlsGroup {
|
|
|
|
class controls {
|
|
|
|
MACRO_RANGEFINDER
|
|
|
|
};
|
|
|
|
};
|
2015-04-06 19:54:06 +00:00
|
|
|
};
|
2017-05-15 22:30:47 +00:00
|
|
|
class Rsc_ACE_Helo_UI_Turret: RscUnitInfo { // RscOptics_Heli_Attack_01_gunner
|
2016-02-21 21:56:35 +00:00
|
|
|
onLoad = "[""onLoad"",_this,""RscUnitInfo"",'IGUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay'); uiNamespace setVariable ['ACE_dlgRangefinder', _this select 0]; ((_this select 0) displayCtrl 151) ctrlSetTextColor [0, 0, 0, 0];";
|
2015-04-06 19:54:06 +00:00
|
|
|
class CA_IGUI_elements_group: RscControlsGroup {
|
|
|
|
class controls {
|
|
|
|
MACRO_RANGEFINDER
|
|
|
|
};
|
|
|
|
};
|
2015-01-14 20:07:41 +00:00
|
|
|
};
|
2017-05-15 22:30:47 +00:00
|
|
|
|
2015-01-14 20:07:41 +00:00
|
|
|
class RscOptics_APC_Tracked_01_gunner: RscUnitInfo {
|
|
|
|
class CA_IGUI_elements_group: RscControlsGroup {
|
|
|
|
class controls {
|
2017-05-15 22:30:47 +00:00
|
|
|
class CA_Distance: RscText {};
|
2015-01-14 20:07:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2017-05-15 22:30:47 +00:00
|
|
|
class ACE_RscOptics_APC_Tracked_01_gunner: RscOptics_APC_Tracked_01_gunner {
|
|
|
|
class CA_IGUI_elements_group: CA_IGUI_elements_group {
|
|
|
|
class controls: controls {
|
|
|
|
// MACRO_RANGEFINDER + modify IDC of CA_Distance
|
|
|
|
class CA_Distance: CA_Distance {
|
|
|
|
idc = 151;
|
|
|
|
};
|
|
|
|
class ACE_CA_Distance: CA_Distance {
|
|
|
|
idc = 1713151;
|
|
|
|
text = "----";
|
|
|
|
};
|
|
|
|
class ACE_Rangehelper: RscMapControl {
|
|
|
|
onDraw = "((ctrlParent (_this select 0)) displayCtrl 1713151) ctrlShow (cameraView == 'GUNNER');";
|
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
2015-01-14 20:07:41 +00:00
|
|
|
};
|
|
|
|
};
|
2015-01-12 10:02:44 +00:00
|
|
|
};
|
|
|
|
};
|