Nightvision - Register effects during preInit (#9788)

This commit is contained in:
Grim 2024-02-11 13:55:48 -03:00 committed by GitHub
parent cdc51643bb
commit a47ae27080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -8,4 +8,7 @@ PREP_RECOMPILE_END;
#include "initSettings.inc.sqf"
// #9781 - register effects layer ASAP
QGVAR(display) cutText ["", "PLAIN"];
ADDON = true;

View File

@ -48,10 +48,9 @@ if (GVAR(fogScaling) > 0) then {
};
};
// Note: Using BIS_fnc_rscLayer because of bug with string syntax - https://feedback.bistudio.com/T120768
(QGVAR(display) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; // Cleanup Old Display
QGVAR(display) cutText ["", "PLAIN"]; // Cleanup Old Display
if (_activated) then { // Create New Display
(QGVAR(display) call BIS_fnc_rscLayer) cutRsc [QGVAR(title), "PLAIN", 0, false, false]; // draw under HUD
QGVAR(display) cutRsc [QGVAR(title), "PLAIN", 0, false, false]; // draw under HUD
};
// Cleanup Old PP Effects