mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
b30f023c04
* Adds Icon option for Low blood volume at Medical Feedback - Adds setting to switch Low blood volume effect with 3 options: Color fading, Icon, Color fading + Icon - Adds icon to UI on low blood - Adds icon PAA files * Review fixes - Added ACE tags to added controls - Added defines for GUI position/size - Added missing newline at EOF - Updated fnc_effectBloodVolumeIcon (removed usage of uiNamespace and minor changes) - CBA_fnc_addSetting is now used to init settings - Icon path macro updated to return formatted path * Review fixes vol.2 - Removed `disableSerialization` and added default value for indicator control and not null checks to effectBVI function - Removed defines from RscInGameUI and used a3 defines instead - Changed formatting of macroses * Review fixes vol.3 - Fixed exec code of BV setting - Removed ctrlCommit from eBVI function - Changed initEffects function to be able to update pain and BV effects only - Changed control name from `BloodVolumeInfoIndicator` to `bloodVolumeIndicator` - Various formatting tweaks (spaces/lines/uppercase/periods) * Review fixed vol.4 - Remove extra checks from eBVI func - Restores contol's onLoad script using ARR_2(QQGVAR())
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
[
|
|
QGVAR(painEffectType),
|
|
"LIST",
|
|
[LSTRING(PainEffectType_DisplayName), LSTRING(PainEffectType_Description)],
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
[
|
|
[FX_PAIN_WHITE_FLASH, FX_PAIN_PULSATING_BLUR, FX_PAIN_CHROMATIC_ABERRATION, FX_PAIN_ONLY_BASE],
|
|
[LSTRING(painEffectType_whiteFlashing), LSTRING(painEffectType_pulsingBlur), LSTRING(painEffectType_chromAberration), LSTRING(painEffectType_onlyBase)],
|
|
0
|
|
],
|
|
false,
|
|
{
|
|
if (isNil QGVAR(ppPain)) exitWith {
|
|
TRACE_1("painEffectType setting - before postInit",_this);
|
|
};
|
|
|
|
TRACE_1("painEffectType setting - resetting effect",_this);
|
|
[true] call FUNC(initEffects);
|
|
}
|
|
] call CBA_fnc_addSetting;
|
|
|
|
[
|
|
QGVAR(bloodVolumeEffectType),
|
|
"LIST",
|
|
[LSTRING(BloodVolumeEffectType_DisplayName), LSTRING(BloodVolumeEffectType_Description)],
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
[
|
|
[FX_BLOODVOLUME_COLOR_CORRECTION, FX_BLOODVOLUME_ICON, FX_BLOODVOLUME_BOTH],
|
|
[LSTRING(BloodVolumeEffectType_colorCorrection), LSTRING(BloodVolumeEffectType_icon), LSTRING(BloodVolumeEffectType_both)],
|
|
0
|
|
],
|
|
false,
|
|
{
|
|
if (isNil QGVAR(showBloodVolumeIcon)) exitWith {
|
|
TRACE_1("bloodVolumeEffect setting - before postInit",_this);
|
|
};
|
|
|
|
TRACE_1("bloodVolumeEffect setting - resetting effect",_this);
|
|
[true] call FUNC(initEffects);
|
|
}
|
|
] call CBA_fnc_addSetting;
|