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

Add 'name' value to all CfgPatches #365

Merged
merged 1 commit into from
Jun 6, 2016
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
16 changes: 7 additions & 9 deletions addons/ai/config.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#include "script_component.hpp"
class CfgPatches
{
class ADDON
{

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "CBA_common" };
requiredAddons[] = {"CBA_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Rommel"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

#include "CfgFunctions.hpp"


8 changes: 8 additions & 0 deletions addons/ai/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project name="CBA_A3">
<Package name="AI">
<Key ID="STR_CBA_AI_Component">
<English>Community Base Addons - Artificial Intelligence</English>
</Key>
</Package>
</Project>
16 changes: 7 additions & 9 deletions addons/arrays/config.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#include "script_component.hpp"
class CfgPatches
{
class ADDON
{

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "CBA_common" };
requiredAddons[] = {"CBA_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

#include "CfgFunctions.hpp"


8 changes: 8 additions & 0 deletions addons/arrays/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project name="CBA_A3">
<Package name="Arrays">
<Key ID="STR_CBA_Arrays_Component">
<English>Community Base Addons - Arrays</English>
</Key>
</Package>
</Project>
5 changes: 3 additions & 2 deletions addons/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_BaseConfig_F"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner","Sickboy","Rocko"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

Expand Down
8 changes: 8 additions & 0 deletions addons/common/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project name="CBA_A3">
<Package name="Common">
<Key ID="STR_CBA_Common_Component">
<English>Community Base Addons - Common Component</English>
</Key>
</Package>
</Project>

<Project name="Arma2">
<Package name="CBA">
<Container name="STR_DN">
Expand Down
5 changes: 3 additions & 2 deletions addons/diagnostic/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common","CBA_events","3DEN"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner","Sickboy"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

Expand Down
8 changes: 8 additions & 0 deletions addons/diagnostic/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project name="CBA_A3">
<Package name="Diagnostics">
<Key ID="STR_CBA_Diagnostics_Component">
<English>Community Base Addons - Diagnostics</English>
</Key>
</Package>
</Project>
6 changes: 6 additions & 0 deletions addons/diagnostic/xeh/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#ifndef EH_DEBUG_ENABLED
class CfgPatches {
class cba_diagnostics_xeh_disabled {
author = "$STR_CBA_Author";
name = "$STR_CBA_Optional_Component";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ECSTRING(Optional,Component)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that imply that "Optional" is a component?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would expand to the above. Not sure about semantics, if you are worried people might be looking for "optional" component then it might be best to leave it like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it everywhere I can, but there are some PBOs that don't or can't include the script_mod

url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
worlds[] = {};
Expand All @@ -14,6 +17,9 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = "$STR_CBA_Optional_Component";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ECSTRING(Optional,Component)

url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
worlds[] = {};
Expand Down
5 changes: 3 additions & 2 deletions addons/events/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner","Sickboy","Xeno","commy2"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

Expand Down
8 changes: 8 additions & 0 deletions addons/events/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project name="CBA_A3">
<Package name="Events">
<Key ID="STR_CBA_Events_Component">
<English>Community Base Addons - Events</English>
</Key>
</Package>
</Project>
16 changes: 7 additions & 9 deletions addons/hashes/config.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#include "script_component.hpp"
class CfgPatches
{
class ADDON
{

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "CBA_common" };
requiredAddons[] = {"CBA_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

#include "CfgFunctions.hpp"


8 changes: 8 additions & 0 deletions addons/hashes/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project name="CBA_A3">
<Package name="Hashes">
<Key ID="STR_CBA_Hashes_Component">
<English>Community Base Addons - Hashes</English>
</Key>
</Package>
</Project>
18 changes: 9 additions & 9 deletions addons/help/CfgRscStd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
class RscButton;
class CBA_Credits_Ver_Btn: RscButton {
idc = -1; //template
colorText[] = {1, 1, 1, 0};
colorDisabled[] = {1, 1, 1, 0};
colorBackground[] = {1, 1, 1, 0};
colorBackgroundDisabled[] = {1, 1, 1, 0};
colorBackgroundActive[] = {1, 1, 1, 0};
colorShadow[] = {1, 1, 1, 0};
colorFocused[] = {1, 1, 1, 0};
soundClick[] = {"", 0.1, 1};
colorText[] = {1,1,1,0};
colorDisabled[] = {1,1,1,0};
colorBackground[] = {1,1,1,0};
colorBackgroundDisabled[] = {1,1,1,0};
colorBackgroundActive[] = {1,1,1,0};
colorShadow[] = {1,1,1,0};
colorFocused[] = {1,1,1,0};
soundClick[] = {"",0.1,1};
x = -1;
y = -1;
w = 0;
Expand All @@ -20,7 +20,7 @@ class CBA_Credits_Ver_Btn: RscButton {
class RscStructuredText;
class CBA_Credits_Cont: RscStructuredText {
idc = -1; //template
colorBackground[] = { 0, 0, 0, 0 };
colorBackground[] = {0,0,0,0};
__SX(25);
__SY(23);
__SW(30);
Expand Down
5 changes: 3 additions & 2 deletions addons/help/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common","cba_hashes","cba_keybinding","A3_UI_F"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"alef","Rocko","Sickboy"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

Expand Down
4 changes: 4 additions & 0 deletions addons/help/fnc_setCreditsLine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ if (isNil "_entry") exitWith {};
// addon name
private _name = configName _entry;

if (isText (_entry >> "name")) then {
_name = getText (_entry >> "name");
};

if (!CBA_MonochromeCredits) then {
_name = format ["<t color='#99cccc'>%1</t>", _name];
};
Expand Down
122 changes: 62 additions & 60 deletions addons/help/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,62 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project name="Arma3">
<Package name="CBA">
<Container name="STR_DN">
<Key ID="STR_DN_CBA_HELP_KEYS">
<English>Keybindings</English>
<German>Tastendruckzuweisung</German>
<Spanish>Keybindings</Spanish>
<Czech>Keybindings</Czech>
<Russian>Keybindings</Russian>
<Italian>Keybindings</Italian>
<Polish>Klawisze</Polish>
<French>Keybindings</French>
<Hungarian>Keybindings</Hungarian>
</Key>
<Key ID="STR_DN_CBA_WEBSITE">
<English>Bugtracker</English>
<German>Bugtracker</German>
<Spanish>Bugtracker</Spanish>
<Czech>Bugtracker</Czech>
<Russian>Bugtracker</Russian>
<Italian>Bugtracker</Italian>
<Polish>Zgłaszanie błędów</Polish>
<French>Bugtracker</French>
<Hungarian>Bugtracker</Hungarian>
</Key>
<Key ID="STR_DN_CBA_WEBSITE_WIKI">
<English>Wiki (Documentation)</English>
<German>Wiki (Documentation)</German>
<Spanish>Wiki (Documentation)</Spanish>
<Czech>Wiki (Documentation)</Czech>
<Russian>Wiki (Documentation)</Russian>
<Italian>Wiki (Documentation)</Italian>
<Polish>Wiki (dokumentacja)</Polish>
<French>Wiki (Documentation)</French>
<Hungarian>Wiki (Documentation)</Hungarian>
</Key>
<Key ID="STR_DN_CBA_CREDITS">
<English>Credits</English>
<German>Credits</German>
<Spanish>Credits</Spanish>
<Czech>Credits</Czech>
<Russian>Credits</Russian>
<Italian>Credits</Italian>
<Polish>Twórcy</Polish>
<French>Credits</French>
<Hungarian>Credits</Hungarian>
</Key>
<Key ID="STR_DN_CBA_CREDITS_ADDONS">
<English>Credits - Addons</English>
<German>Credits - Addons</German>
<Spanish>Credits - Addons</Spanish>
<Czech>Credits - Addons</Czech>
<Russian>Credits - Addons</Russian>
<Italian>Credits - Addons</Italian>
<Polish>Twórcy - Addons</Polish>
<French>Credits - Addons</French>
<Hungarian>Credits - Addons</Hungarian>
</Key>
</Container>
</Package>
<Project name="CBA_A3">
<Package name="Help">
<Key ID="STR_CBA_Help_Component">
<English>Community Base Addons - Help</English>
</Key>

<Key ID="STR_DN_CBA_HELP_KEYS">
<English>Keybindings</English>
<German>Tastendruckzuweisung</German>
<Spanish>Keybindings</Spanish>
<Czech>Keybindings</Czech>
<Russian>Keybindings</Russian>
<Italian>Keybindings</Italian>
<Polish>Klawisze</Polish>
<French>Keybindings</French>
<Hungarian>Keybindings</Hungarian>
</Key>
<Key ID="STR_DN_CBA_WEBSITE">
<English>Bugtracker</English>
<German>Bugtracker</German>
<Spanish>Bugtracker</Spanish>
<Czech>Bugtracker</Czech>
<Russian>Bugtracker</Russian>
<Italian>Bugtracker</Italian>
<Polish>Zgłaszanie błędów</Polish>
<French>Bugtracker</French>
<Hungarian>Bugtracker</Hungarian>
</Key>
<Key ID="STR_DN_CBA_WEBSITE_WIKI">
<English>Wiki (Documentation)</English>
<German>Wiki (Documentation)</German>
<Spanish>Wiki (Documentation)</Spanish>
<Czech>Wiki (Documentation)</Czech>
<Russian>Wiki (Documentation)</Russian>
<Italian>Wiki (Documentation)</Italian>
<Polish>Wiki (dokumentacja)</Polish>
<French>Wiki (Documentation)</French>
<Hungarian>Wiki (Documentation)</Hungarian>
</Key>
<Key ID="STR_DN_CBA_CREDITS">
<English>Credits</English>
<German>Credits</German>
<Spanish>Credits</Spanish>
<Czech>Credits</Czech>
<Russian>Credits</Russian>
<Italian>Credits</Italian>
<Polish>Twórcy</Polish>
<French>Credits</French>
<Hungarian>Credits</Hungarian>
</Key>
<Key ID="STR_DN_CBA_CREDITS_ADDONS">
<English>Credits - Addons</English>
<German>Credits - Addons</German>
<Spanish>Credits - Addons</Spanish>
<Czech>Credits - Addons</Czech>
<Russian>Credits - Addons</Russian>
<Italian>Credits - Addons</Italian>
<Polish>Twórcy - Addons</Polish>
<French>Credits - Addons</French>
<Hungarian>Credits - Addons</Hungarian>
</Key>
</Package>
</Project>
Loading