mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Layer IDs are now stored in #defines
This commit is contained in:
parent
9ce655dcd2
commit
618d557227
@ -25,7 +25,7 @@ GVAR(cur_cam) = 0;
|
||||
GVAR(ROTATE) = 0;
|
||||
GVAR(ELEVAT) = 0.01;
|
||||
|
||||
13521 cutText["","PLAIN"];
|
||||
HUNTIR_BACKGROUND_LAYER_ID cutText["","PLAIN"];
|
||||
|
||||
closedialog 0;
|
||||
createDialog "ace_huntir_cam_dialog";
|
||||
|
@ -19,12 +19,12 @@ if ((ACE_player call CBA_fnc_getUnitAnim) select 0 == "stand") then {
|
||||
ACE_player playMove "AmovPercMstpSrasWrflDnon_diary";
|
||||
};
|
||||
|
||||
13521 cutText ["", "BLACK", 0];
|
||||
HUNTIR_BACKGROUND_LAYER_ID cutText ["", "BLACK", 0];
|
||||
createDialog "ace_huntir_cam_dialog_off";
|
||||
|
||||
[{
|
||||
if (!dialog) exitWith {
|
||||
13521 cutText ["", "PLAIN", 0];
|
||||
HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN", 0];
|
||||
};
|
||||
closeDialog 0;
|
||||
createDialog "ace_huntir_cam_dialog_inactive";
|
||||
@ -48,7 +48,7 @@ createDialog "ace_huntir_cam_dialog_off";
|
||||
if (dialog && GVAR(state) == "connected") then {
|
||||
[_nearestHuntIRs select 0] call FUNC(cam);
|
||||
} else {
|
||||
13521 cutText ["", "PLAIN"];
|
||||
HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN"];
|
||||
};
|
||||
};
|
||||
switch (GVAR(state)) do {
|
||||
@ -84,7 +84,7 @@ createDialog "ace_huntir_cam_dialog_off";
|
||||
[{
|
||||
GVAR(done) = true;
|
||||
closedialog 0;
|
||||
13521 cutText ["", "PLAIN"];
|
||||
HUNTIR_BACKGROUND_LAYER_ID cutText ["", "PLAIN"];
|
||||
}, [], 3, 0] call EFUNC(common,waitAndExecute);
|
||||
};
|
||||
};
|
||||
|
@ -48,13 +48,13 @@ _fnc_correctIt = {
|
||||
_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);
|
||||
|
||||
if (GVAR(stop)) exitWith {
|
||||
1234 cutText ["", "PLAIN"];
|
||||
HUNTIR_CAM_ROSE_LAYER_ID cutText ["", "PLAIN"];
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
|
@ -10,3 +10,6 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#define HUNTIR_BACKGROUND_LAYER_ID 13521
|
||||
#define HUNTIR_CAM_ROSE_LAYER_ID 13522
|
Loading…
Reference in New Issue
Block a user