-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add medical items category button to ACE Arsenal (#14)
* Add medical items category button to ACE Arsenal * Move category adding to preInit Fixes missing category in eden
- Loading branch information
Showing
10 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\afmed\addons\medical_arsenal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Extended_PreInit_EventHandlers { | ||
class ADDON { | ||
init = QUOTE(call COMPILE_FILE(XEH_preInit)); | ||
}; | ||
}; | ||
class Extended_PostInit_EventHandlers { | ||
class ADDON { | ||
init = QUOTE(call COMPILE_FILE(XEH_postInit)); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Medical Arsenal | ||
|
||
ACE Arsenal integration for ArmaForces Medical. | ||
|
||
### Authors | ||
|
||
- [veteran29](http://github.com/veteran29) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "script_component.hpp" | ||
ADDON = false; | ||
|
||
#include "initSettings.sqf" | ||
|
||
if (GVAR(addCategory)) then { | ||
GVAR(medicalArsenalButton) = [ | ||
ALL_MEDICAL_ITEMS, | ||
LLSTRING(Medications), | ||
"\z\ace\addons\medical_gui\data\categories\medication.paa" | ||
] call ace_arsenal_fnc_addRightPanelButton; | ||
}; | ||
|
||
ADDON = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class ADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = { | ||
"afmed_main", | ||
"ace_arsenal" | ||
}; | ||
author = "ArmaForces"; | ||
VERSION_CONFIG; | ||
}; | ||
}; | ||
|
||
#include "CfgEventHandlers.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
QGVAR(addCategory), | ||
"CHECKBOX", | ||
LLSTRING(AddCategory), | ||
[LELSTRING(Main,SettingsCategory), LLSTRING(SettingsSubcategory)], | ||
true, | ||
false, | ||
{}, | ||
true | ||
] call CBA_fnc_addSetting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#define COMPONENT medical_arsenal | ||
#include "\z\afmed\addons\main\script_mod.hpp" | ||
|
||
// #define DEBUG_MODE_FULL | ||
// #define DISABLE_COMPILE_CACHE | ||
|
||
#ifdef DEBUG_ENABLED_MEDICAL_ARSENAL | ||
#define DEBUG_MODE_FULL | ||
#endif | ||
#ifdef DEBUG_SETTINGS_MEDICAL_ARSENAL | ||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MEDICAL_ARSENAL | ||
#endif | ||
|
||
#include "\z\afmed\addons\main\script_macros.hpp" | ||
|
||
#define ALL_MEDICAL_ITEMS [\ | ||
"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_quikclot",\ | ||
"ACE_tourniquet", "ACE_splint",\ | ||
"ACE_morphine", "ACE_adenosine", "ACE_atropine", "ACE_epinephrine",\ | ||
"ACE_plasmaIV", "ACE_plasmaIV_500", "ACE_plasmaIV_250",\ | ||
"ACE_bloodIV", "ACE_bloodIV_500", "ACE_bloodIV_250",\ | ||
"ACE_salineIV", "ACE_salineIV_500", "ACE_salineIV_250",\ | ||
"ACE_personalAidKit", "ACE_surgicalKit", "ACE_bodyBag",\ | ||
"AFMED_apap"\ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project name="AFMED"> | ||
<Package name="Medical_Arsenal"> | ||
<Key ID="STR_AFMED_Medical_Arsenal_Medications"> | ||
<English>Medications</English> | ||
<Polish>Medykamenty</Polish> | ||
</Key> | ||
<Key ID="STR_AFMED_Medical_Arsenal_AddCategory"> | ||
<English>Add arsenal category</English> | ||
<Polish>Dodaj kategorię do arsenału</Polish> | ||
</Key> | ||
<Key ID="STR_AFMED_Medical_Arsenal_SettingsSubcategory"> | ||
<English>Arsenal</English> | ||
<Polish>Arsenał</Polish> | ||
</Key> | ||
</Package> | ||
</Project> |