Layer IDs are now stored in #defines

This commit is contained in:
ulteq 2015-06-07 13:55:35 +02:00
parent 9ce655dcd2
commit 618d557227
4 changed files with 10 additions and 7 deletions

View File

@ -25,7 +25,7 @@ GVAR(cur_cam) = 0;
GVAR(ROTATE) = 0; GVAR(ROTATE) = 0;
GVAR(ELEVAT) = 0.01; GVAR(ELEVAT) = 0.01;
13521 cutText["","PLAIN"]; HUNTIR_BACKGROUND_LAYER_ID cutText["","PLAIN"];
closedialog 0; closedialog 0;
createDialog "ace_huntir_cam_dialog"; createDialog "ace_huntir_cam_dialog";

View File

@ -19,12 +19,12 @@ if ((ACE_player call CBA_fnc_getUnitAnim) select 0 == "stand") then {
ACE_player playMove "AmovPercMstpSrasWrflDnon_diary"; ACE_player playMove "AmovPercMstpSrasWrflDnon_diary";
}; };
13521 cutText ["", "BLACK", 0]; HUNTIR_BACKGROUND_LAYER_ID cutText ["", "BLACK", 0];
createDialog "ace_huntir_cam_dialog_off"; createDialog "ace_huntir_cam_dialog_off";
[{ [{
if (!dialog) exitWith { if (!dialog) exitWith {
13521 cutText ["", "PLAIN", 0]; HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN", 0];
}; };
closeDialog 0; closeDialog 0;
createDialog "ace_huntir_cam_dialog_inactive"; createDialog "ace_huntir_cam_dialog_inactive";
@ -48,7 +48,7 @@ createDialog "ace_huntir_cam_dialog_off";
if (dialog && GVAR(state) == "connected") then { if (dialog && GVAR(state) == "connected") then {
[_nearestHuntIRs select 0] call FUNC(cam); [_nearestHuntIRs select 0] call FUNC(cam);
} else { } else {
13521 cutText ["", "PLAIN"]; HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN"];
}; };
}; };
switch (GVAR(state)) do { switch (GVAR(state)) do {
@ -84,7 +84,7 @@ createDialog "ace_huntir_cam_dialog_off";
[{ [{
GVAR(done) = true; GVAR(done) = true;
closedialog 0; closedialog 0;
13521 cutText ["", "PLAIN"]; HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN"];
}, [], 3, 0] call EFUNC(common,waitAndExecute); }, [], 3, 0] call EFUNC(common,waitAndExecute);
}; };
}; };

View File

@ -48,13 +48,13 @@ _fnc_correctIt = {
_pos _pos
}; };
1234 cutRsc ["ace_huntir_cam_rose", "PLAIN"]; HUNTIR_CAM_ROSE_LAYER_ID cutRsc ["ace_huntir_cam_rose", "PLAIN"];
[{ [{
EXPLODE_1_PVT(_this select 0,_fnc_correctIt); EXPLODE_1_PVT(_this select 0,_fnc_correctIt);
if (GVAR(stop)) exitWith { if (GVAR(stop)) exitWith {
1234 cutText ["", "PLAIN"]; HUNTIR_CAM_ROSE_LAYER_ID cutText ["", "PLAIN"];
[_this select 1] call CBA_fnc_removePerFrameHandler; [_this select 1] call CBA_fnc_removePerFrameHandler;
}; };

View File

@ -10,3 +10,6 @@
#endif #endif
#include "\z\ace\addons\main\script_macros.hpp" #include "\z\ace\addons\main\script_macros.hpp"
#define HUNTIR_BACKGROUND_LAYER_ID 13521
#define HUNTIR_CAM_ROSE_LAYER_ID 13522