2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2023-07-28 07:05:12 +00:00
|
|
|
/*
|
|
|
|
* Author: Dedmen, johnb43, LinkIsGrim
|
|
|
|
* Text statement for the binocular/NVG vision mode stat.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Not used
|
|
|
|
* 1: Item config path <CONFIG>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Stat Text <STRING>
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["", "_config"];
|
|
|
|
TRACE_1("statTextStatement_binoVisionMode",_config);
|
|
|
|
|
|
|
|
private _text = [];
|
2024-03-07 21:08:13 +00:00
|
|
|
private _visionModes = getArray (_config >> "visionMode") apply {toLowerANSI _x};
|
2023-07-28 07:05:12 +00:00
|
|
|
{
|
|
|
|
if (_x in _visionModes) then {
|
|
|
|
_text pushBack (localize ([LSTRING(VisionNormal), LSTRING(VisionNight), LSTRING(VisionThermal)] select _forEachIndex));
|
|
|
|
};
|
|
|
|
} forEach ["normal", "nvg", "ti"];
|
|
|
|
|
|
|
|
_text joinString ", "
|