Skip to content

Commit

Permalink
Added tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Jul 11, 2024
1 parent 0a5cef8 commit 34846ef
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/tagging/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\cav\addons\tagging
16 changes: 16 additions & 0 deletions addons/tagging/ACE_Tags.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#define MACRO_GLUE(g1,g2) g1##g2
#define MACRO_TAG(name,col) class TRIPLES(CAV_Tagging,name,col) { \
displayName = CSTRING(TRIPLES(CAV_Tagging,name,col)); \
requiredItem = QUOTE(MACRO_GLUE(ACE_Spraypaint,col)); \
textures[] = {QPATHTOF(UI\tags\tag_##name##_##col##_ca.paa)}; \
icon = QPATHTOF(UI\icons\icon_action_##name##_##col##_ca.paa); \
}

class ACE_Tags {
MACRO_TAG(Cav,Black);
MACRO_TAG(Cav,Blue);
MACRO_TAG(Cav,Green);
MACRO_TAG(Cav,Red);
MACRO_TAG(Cav,White);
MACRO_TAG(Cav,Yellow);
};
Binary file added addons/tagging/UI/icons/icon_action.psd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added addons/tagging/UI/tags/tag_cav.psd
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added addons/tagging/UI/tags/tag_cav_white_ca.paa
Binary file not shown.
Binary file added addons/tagging/UI/tags/tag_cav_yellow_ca.paa
Binary file not shown.
20 changes: 20 additions & 0 deletions addons/tagging/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"cav_main",
"cav_common"
};
author = ECSTRING(Main,ModTeam);
authors[] = {"Brostrom.A (Evul)"};
url = ECSTRING(Main,Url);
VERSION_CONFIG;
};
};

#include "ACE_Tags.hpp"
5 changes: 5 additions & 0 deletions addons/tagging/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define COMPONENT tagging
#define COMPONENT_BEAUTIFIED Tagging

#include "\z\cav\addons\main\script_mod.hpp"
#include "\z\cav\addons\main\script_macros.hpp"
4 changes: 4 additions & 0 deletions addons/tagging/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Project name="Cav">
<Package name="Tagging">
</Package>
</Project>

0 comments on commit 34846ef

Please sign in to comment.