// called from milsim_fnc_processFBCB2RadioFrequencies params [ ["_elementCfg", configNull, [configNull]], ["_shouldProcessChildCfgs", true] ]; if (isNull _elementCfg) exitWith { ["_elementCfg parameter is NULL"] call BIS_fnc_error; }; private _battalionElement = _elementCfg; private _recordTitle = format[ "%1 (%2)", getText(_battalionElement >> "callsign"), getText(_battalionElement >> "shortDescription") ]; // systemChat _recordTitle; private _headers = [ format[ "%4

", milsim_fbcb2_recordTitleSize, milsim_fbcb2_recordTitleColor, milsim_fbcb2_recordTitleFont, _recordTitle ], format[ "%1- %5%6%7

", _freqLeadingSpace, _ELEMENT_FREQ_SIZE, _ELEMENT_FREQ_FONT, _FREQ_TEXT_COLOR, ["ROLE", "right", " ", _FREQ_PAD_LENGTH] call milsim_fnc_padString, ["SR", "right", " ", _FREQ_PAD_LENGTH] call milsim_fnc_padString, "LR" ] ]; private _allText = []; // get all child elements recursively and format them if (_shouldProcessChildCfgs) then { [_battalionElement, { params ["_cfg", "_recurseCounter"]; // add config private _lines = [_cfg, _recurseCounter+1] call milsim_fnc_formatRadioElementForDiary; // private _lines = [_cfg, _indentCount] call t; _allText pushBack (_lines joinString "
"); }] call milsim_fnc_recurseSubclasses; } else { private _lines = [_battalionElement, 1] call milsim_fnc_formatRadioElementForDiary; // private _lines = [_cfg, _indentCount] call t; _allText pushBack (_lines joinString "
"); }; _allText = format["%1%2", _headers joinString "
", _allText joinString "
"]; [_recordTitle, _allText];