Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tagging #240

Merged
merged 5 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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##,F) { \
displayName = CSTRING(TRIPLES(Cav_Tagging,##name##_##col##,F)); \
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.
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"
22 changes: 22 additions & 0 deletions addons/tagging/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project name="Cav">
<Package name="Tagging">
<Key ID="STR_Cav_Tagging_Cav_Black_F">
<English>Cav Black</English>
</Key>
<Key ID="STR_Cav_Tagging_Cav_Blue_F">
<English>Cav Blue</English>
</Key>
<Key ID="STR_Cav_Tagging_Cav_Green_F">
<English>Cav Green</English>
</Key>
<Key ID="STR_Cav_Tagging_Cav_Red_F">
<English>Cav Red</English>
</Key>
<Key ID="STR_Cav_Tagging_Cav_White_F">
<English>Cav White</English>
</Key>
<Key ID="STR_Cav_Tagging_Cav_Yellow_F">
<English>Cav Yellow</English>
</Key>
</Package>
</Project>
Loading