Skip to content

Commit

Permalink
Goggles - Draw under HUD (requires 2.16) (#9615)
Browse files Browse the repository at this point in the history
Goggles - Draw under HUD
  • Loading branch information
BaerMitUmlaut authored Nov 4, 2023
1 parent c80edd6 commit 30ec1ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/goggles/functions/fnc_applyDirtEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if ([_unit] call FUNC(isGogglesVisible)) then {
private _dirtImage = getText (configFile >> "CfgGlasses" >> goggles _unit >> "ACE_OverlayDirt");

if (_dirtImage != "") then {
GVAR(GogglesEffectsLayer) cutRsc ["RscACE_GogglesEffects", "PLAIN", 0.1, false];
GVAR(GogglesEffectsLayer) cutRsc ["RscACE_GogglesEffects", "PLAIN", 0.1, false, false];
(GETUVAR(GVAR(DisplayEffects),displayNull) displayCtrl 10660) ctrlSetText _dirtImage;

private _effectBrightness = linearConversion [0,1,([] call EFUNC(common,ambientBrightness)),0.25,1];
Expand Down
2 changes: 1 addition & 1 deletion addons/goggles/functions/fnc_applyDustEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (call FUNC(ExternalCamera)) exitWith {};
private _unit = ACE_player;

if ([_unit] call FUNC(isGogglesVisible)) exitWith {
GVAR(GogglesEffectsLayer) cutRsc ["RscACE_GogglesEffects", "PLAIN", 2, false];
GVAR(GogglesEffectsLayer) cutRsc ["RscACE_GogglesEffects", "PLAIN", 2, false, false];

((GETUVAR(GVAR(DisplayEffects),displayNull)) displayCtrl 10662) ctrlSetText format [getText (configFile >> "CfgGlasses" >> goggles _unit >> "ACE_DustPath"), GETDUSTT(DAMOUNT) + 1];

Expand Down
2 changes: 1 addition & 1 deletion addons/goggles/functions/fnc_applyGlassesEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private _imagePath = getText (_config >> ["ACE_Overlay", "ACE_OverlayCracked"] s
private _angle = getNumber (_config >> "ACE_Overlay_Angle");

if (_imagePath != "") then {
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false];
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false, false];
private _overlay = (GLASSDISPLAY displayCtrl 10650);
_overlay ctrlSetText _imagePath;

Expand Down
2 changes: 1 addition & 1 deletion addons/goggles/functions/fnc_handleExplosion.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (getText (_config >> "ACE_OverlayCracked") != "") then {
if (call FUNC(ExternalCamera)) exitWith {};

if (isNull (GLASSDISPLAY)) then {
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false];
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false, false];
};

(GLASSDISPLAY displayCtrl 10650) ctrlSetText getText (_config >> "ACE_OverlayCracked");
Expand Down

0 comments on commit 30ec1ed

Please sign in to comment.