mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Yardage - Make macros uppercase (#9894)
* Renamed macros in yardage * Update fnc_turnOn.sqf
This commit is contained in:
parent
8805414669
commit
35d40e614c
@ -15,12 +15,12 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#define __dsp (uiNamespace getVariable "ACE_RscYardage450")
|
||||
#define __ctrlTarget (__dsp displayCtrl 720041)
|
||||
#define __ctrlLaser (__dsp displayCtrl 720042)
|
||||
#define __ctrlRange (__dsp displayCtrl 720043)
|
||||
#define __ctrlMeters (__dsp displayCtrl 720044)
|
||||
#define __ctrlYards (__dsp displayCtrl 720045)
|
||||
#define DISPLAY_YARDAGE (uiNamespace getVariable "ACE_RscYardage450")
|
||||
#define CTRL_TARGET (DISPLAY_YARDAGE displayCtrl 720041)
|
||||
#define CTRL_LASER (DISPLAY_YARDAGE displayCtrl 720042)
|
||||
#define CTRL_RANGE (DISPLAY_YARDAGE displayCtrl 720043)
|
||||
#define CTRL_METERS (DISPLAY_YARDAGE displayCtrl 720044)
|
||||
#define CTRL_YARDS (DISPLAY_YARDAGE displayCtrl 720045)
|
||||
|
||||
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {};
|
||||
|
||||
@ -38,21 +38,21 @@ GVAR(active) = true;
|
||||
};
|
||||
|
||||
if (currentWeapon ACE_player == "ACE_Yardage450" && cameraView == "GUNNER") then {
|
||||
if (isNil {__dsp} || {isNull __dsp} || {ctrlIDD __dsp != -1}) then {
|
||||
TRACE_1("making display",__dsp);
|
||||
if (isNil {DISPLAY_YARDAGE} || {isNull DISPLAY_YARDAGE} || {ctrlIDD DISPLAY_YARDAGE != -1}) then {
|
||||
TRACE_1("making display",DISPLAY_YARDAGE);
|
||||
QUOTE(ADDON) cutRsc ["ACE_RscYardage450", "PLAIN", 1, false];
|
||||
};
|
||||
|
||||
__ctrlLaser ctrlShow GVAR(lasing);
|
||||
CTRL_LASER ctrlShow GVAR(lasing);
|
||||
if (GVAR(targetAcquired)) then {
|
||||
__ctrlTarget ctrlSetText "Target Acquired";
|
||||
__ctrlRange ctrlSetText GVAR(targetRangeText);
|
||||
CTRL_TARGET ctrlSetText "Target Acquired";
|
||||
CTRL_RANGE ctrlSetText GVAR(targetRangeText);
|
||||
} else {
|
||||
__ctrlTarget ctrlSetText "";
|
||||
__ctrlRange ctrlSetText "---";
|
||||
CTRL_TARGET ctrlSetText "";
|
||||
CTRL_RANGE ctrlSetText "---";
|
||||
};
|
||||
__ctrlMeters ctrlShow !GVAR(useYards);
|
||||
__ctrlYards ctrlShow GVAR(useYards);
|
||||
CTRL_METERS ctrlShow !GVAR(useYards);
|
||||
CTRL_YARDS ctrlShow GVAR(useYards);
|
||||
} else {
|
||||
QUOTE(ADDON) cutText ["", "PLAIN"];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user