Skip to content

Commit

Permalink
Changed Icons & fixed Zen bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Jul 28, 2021
1 parent 1370a4f commit c90ccf2
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 20 deletions.
8 changes: 6 additions & 2 deletions addons/functions/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ class Extended_Deleted_EventHandlers {
class ACE_envelope_small {
CAMOUFLAGE_DELETE;
};

class ACE_envelope_big {
CAMOUFLAGE_DELETE;
};

class GRAD_envelope_giant {
CAMOUFLAGE_DELETE;
};

class GRAD_envelope_vehicle {
CAMOUFLAGE_DELETE;
};
class GRAD_envelope_long {
CAMOUFLAGE_DELETE;
};
class GRAD_envelope_short {
CAMOUFLAGE_DELETE;
};
};

class Extended_Init_EventHandlers {
Expand All @@ -64,6 +65,9 @@ class Extended_Init_EventHandlers {
class GRAD_envelope_long {
TRENCH_INIT;
};
class GRAD_envelope_short {
TRENCH_INIT;
};
};

class Extended_InitPost_EventHandlers {
Expand Down
10 changes: 8 additions & 2 deletions addons/functions/functions/fnc_initCurator.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ _logic addEventHandler ["CuratorObjectEdited", {
params ["", "_object"];

if (isClass (configFile >> "CfgVehicles" >> typeOf _object >> "CamouflagePositions1")) then {
_object setObjectTextureGlobal [0, surfaceTexture (getPos _object)];
[{
params ["_obj"];
_obj setObjectTextureGlobal [0, surfaceTexture (getPos _obj)];
}, _object] call CBA_fnc_execNextFrame;
};
}];

_logic addEventHandler ["CuratorObjectPlaced", {
params ["", "_object"];

if (isClass (configFile >> "CfgVehicles" >> typeOf _object >> "CamouflagePositions1")) then {
_object setObjectTextureGlobal [0, surfaceTexture (getPos _object)];
[{
params ["_obj"];
_obj setObjectTextureGlobal [0, surfaceTexture (getPos _obj)];
}, _object] call CBA_fnc_execNextFrame;
};
}];
6 changes: 3 additions & 3 deletions addons/functions/functions/fnc_initTrench.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (GVAR(allowHitDecay)) then {
if (local _object) then {
// Has to be delayed to ensure MP compatibility (vehicle spawned in same frame as texture is applied)
[{
params ["_obj"];
_obj setObjectTextureGlobal [0, surfaceTexture (getPos _obj)];
}, _object] call CBA_fnc_execNextFrame;
params ["_object"];
_object setObjectTextureGlobal [0, surfaceTexture (getPos _object)];
}, _object, 0.1] call CBA_fnc_waitAndExecute;
};
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MAJOR 1
#define MINOR 6
#define PATCHLVL 8
#define BUILD 5
#define BUILD 6

5 changes: 4 additions & 1 deletion hemtt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ prefix = "grad_trenches"
author = "Salbei"
files = [
"mod.cpp",
"logo_grad_ca.paa",
"logo_active_ca.paa",
"logo_ca.paa",
"overview_co.paa",
"logo_small_ca.paa",
"LICENSE",
"README.md"
]
Expand Down
Binary file added logo_active_ca.paa
Binary file not shown.
Binary file added logo_ca.paa
Binary file not shown.
Binary file removed logo_grad_ca.paa
Binary file not shown.
Binary file added logo_small_ca.paa
Binary file not shown.
23 changes: 12 additions & 11 deletions mod.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name = "GRAD Trenches";
name = "Gruppe Adler Trenches";
author = "Gruppe Adler";
picture = "logo_grad_ca.paa";
actionName = "Website";
action = "https://github.com/gruppe-adler/grad_trenches/releases";
description = "Gruppe Adler Trenches";
logo = "logo_grad_ca.paa";
logoOver = "logo_grad_ca.paa";
logo = "logo_ca.paa";
logoOver = "logo_active_ca.paa";
tooltip = "Gruppe Adler Trenches";
overview = "GRAD Trenches applies the ground texture to ACE Trenches.";
overviewPicture = "Adler.paa";
overviewText = "";
overviewFootnote = "";
tooltipOwned = "Gruppe Adler Trenches";
picture = "overview_co.paa";
actionName = "GitHub";
action = "https://github.com/gruppe-adler/grad_trenches";
overview = "<br/><t align='center' size='0.75'>Visit Gruppe Adler on <t href='https://gruppe-adler.de/'>our Website</t> | <t href='http://discord.gruppe-adler.de'>Discord</t> | <t href='https://www.youtube.com/user/gruppeadler'>YouTube</t> | <t href='https://twitter.com/Gruppe_Adler'>Twitter</t></t><br/><br/>";
hideName = 0;
hidePicture = 0;
dlcColor[] = {0.8196, 0.5529, 0.1216, 1};
logoSmall = "logo_small_ca.paa";
Binary file added overview_co.paa
Binary file not shown.

0 comments on commit c90ccf2

Please sign in to comment.