mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Goggles - Draw under HUD (requires 2.16) (#9615)
Goggles - Draw under HUD
This commit is contained in:
@ -28,7 +28,7 @@ if ([_unit] call FUNC(isGogglesVisible)) then {
|
|||||||
private _dirtImage = getText (configFile >> "CfgGlasses" >> goggles _unit >> "ACE_OverlayDirt");
|
private _dirtImage = getText (configFile >> "CfgGlasses" >> goggles _unit >> "ACE_OverlayDirt");
|
||||||
|
|
||||||
if (_dirtImage != "") then {
|
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;
|
(GETUVAR(GVAR(DisplayEffects),displayNull) displayCtrl 10660) ctrlSetText _dirtImage;
|
||||||
|
|
||||||
private _effectBrightness = linearConversion [0,1,([] call EFUNC(common,ambientBrightness)),0.25,1];
|
private _effectBrightness = linearConversion [0,1,([] call EFUNC(common,ambientBrightness)),0.25,1];
|
||||||
|
@ -20,7 +20,7 @@ if (call FUNC(ExternalCamera)) exitWith {};
|
|||||||
private _unit = ACE_player;
|
private _unit = ACE_player;
|
||||||
|
|
||||||
if ([_unit] call FUNC(isGogglesVisible)) exitWith {
|
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];
|
((GETUVAR(GVAR(DisplayEffects),displayNull)) displayCtrl 10662) ctrlSetText format [getText (configFile >> "CfgGlasses" >> goggles _unit >> "ACE_DustPath"), GETDUSTT(DAMOUNT) + 1];
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ private _imagePath = getText (_config >> ["ACE_Overlay", "ACE_OverlayCracked"] s
|
|||||||
private _angle = getNumber (_config >> "ACE_Overlay_Angle");
|
private _angle = getNumber (_config >> "ACE_Overlay_Angle");
|
||||||
|
|
||||||
if (_imagePath != "") then {
|
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);
|
private _overlay = (GLASSDISPLAY displayCtrl 10650);
|
||||||
_overlay ctrlSetText _imagePath;
|
_overlay ctrlSetText _imagePath;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ if (getText (_config >> "ACE_OverlayCracked") != "") then {
|
|||||||
if (call FUNC(ExternalCamera)) exitWith {};
|
if (call FUNC(ExternalCamera)) exitWith {};
|
||||||
|
|
||||||
if (isNull (GLASSDISPLAY)) then {
|
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");
|
(GLASSDISPLAY displayCtrl 10650) ctrlSetText getText (_config >> "ACE_OverlayCracked");
|
||||||
|
Reference in New Issue
Block a user