Expanded module and string table

This commit is contained in:
GitHawk 2016-02-26 11:30:22 +01:00
parent 704e858d9c
commit 279541676e
3 changed files with 26 additions and 1 deletions

View File

@ -6,4 +6,11 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
values[] = {CSTRING(RearmSettings_vehicle), CSTRING(RearmSettings_magazine), CSTRING(RearmSettings_caliber)}; values[] = {CSTRING(RearmSettings_vehicle), CSTRING(RearmSettings_magazine), CSTRING(RearmSettings_caliber)};
}; };
class GVAR(supply) {
displayName = CSTRING(RearmSettings_supply_DisplayName);
description = CSTRING(RearmSettings_supply_Description);
value = 0;
typeName = "SCALAR";
values[] = {CSTRING(RearmSettings_unlimited), CSTRING(RearmSettings_caliber), CSTRING(RearmSettings_magazineSupply)};
};
}; };

View File

@ -22,5 +22,7 @@ params ["_logic", "", ["_activated", false, [false]]];
if (!_activated) exitWith {}; if (!_activated) exitWith {};
[_logic, QGVAR(level), "level"] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(level), "level"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(supply), "supply"] call EFUNC(common,readSettingFromModule);
diag_log text format ["[ACE]: Rearm Module Initialized on level: %1", GVAR(level)]; diag_log text format ["[ACE]: Rearm Module Initialized on level: %1", GVAR(level)];
diag_log text format ["[ACE]: Rearm Module Initialized on supply: %1", GVAR(supply)];

View File

@ -71,6 +71,22 @@
<Italian>Ammontare basato sul calibro</Italian> <Italian>Ammontare basato sul calibro</Italian>
<Spanish>Cantidad basada en el calibre</Spanish> <Spanish>Cantidad basada en el calibre</Spanish>
</Key> </Key>
<Key ID="STR_ACE_Rearm_RearmSettings_supply_DisplayName">
<English>Ammunition supply</English>
<German>Munitionsvorat</German>
</Key>
<Key ID="STR_ACE_Rearm_RearmSettings_supply_Description">
<English>How much ammunition does an ammo truck carry?</English>
<German>Wie viel Munition transportiert ein Munitionslaster?</German>
</Key>
<Key ID="STR_ACE_Rearm_RearmSettings_unlimited">
<English>Unlimited ammo supply</English>
<German>Unbegrenzter Munitionsvorat</German>
</Key>
<Key ID="STR_ACE_Rearm_RearmSettings_magazineSupply">
<English>Only specific Magazines</English>
<German>Nur bestimmte Magazine</German>
</Key>
<Key ID="STR_ACE_Rearm_Rearm"> <Key ID="STR_ACE_Rearm_Rearm">
<English>Rearm</English> <English>Rearm</English>
<German>Aufmunitionieren</German> <German>Aufmunitionieren</German>