Add stamina bar selective UI

This commit is contained in:
jonpas 2016-03-09 18:58:46 +01:00
parent 70100825cf
commit 32c32b6cc5
5 changed files with 27 additions and 0 deletions

View File

@ -139,6 +139,15 @@ class ACE_Settings {
isClientSettable = 1;
};
// Stamina Bar
class GVAR(staminaBar) {
category = CSTRING(Category);
displayName = CSTRING(StaminaBar);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
// Vehicle
class GVAR(vehicleName) {

View File

@ -115,6 +115,14 @@ class CfgVehicles {
defaultValue = 1;
};
// Stamina Bar
class staminaBar {
displayName = CSTRING(StaminaBar);
description = CSTRING(RequiresSoldierVehicleWeaponInfo);
typeName = "BOOL";
defaultValue = 1;
};
// Vehicle
class vehicleName {
displayName = CSTRING(VehicleName);

View File

@ -43,6 +43,7 @@ if (isArray (missionConfigFile >> "showHUD")) then {
[_logic, QGVAR(zeroing), "zeroing"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(weaponLowerInfoBackground), "weaponLowerInfoBackground"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(stance), "stance"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(staminaBar), "staminaBar"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleName), "vehicleName"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleNameBackground), "vehicleNameBackground"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(vehicleFuelBar), "vehicleFuelBar"] call EFUNC(common,readSettingFromModule);

View File

@ -32,6 +32,7 @@
[300, [151], QGVAR(throwableCount)], \
[300, [1202], QGVAR(weaponLowerInfoBackground)], \
[300, [168], QGVAR(zeroing)], \
[305, [193], QGVAR(staminaBar)], \
[303, [188, 1201], QGVAR(stance)], \
[300, [120], QGVAR(vehicleName)], \
[300, [1000, 1013], QGVAR(vehicleNameBackground)], \
@ -86,4 +87,9 @@ RscStanceInfo = 303
--------------------
188 (Stance)
+ 1201 (Stance Background)
RscStaminaBar = 305
--------------------
193 (Stamina Bar)
*/

View File

@ -64,6 +64,9 @@
<Key ID="STR_ACE_UI_Stance">
<English>Stance</English>
</Key>
<Key ID="STR_ACE_UI_StaminaBar">
<English>Stamina Bar</English>
</Key>
<Key ID="STR_ACE_UI_VehicleName">
<English>Vehicle Name</English>
</Key>