From 56b150dbfb7eb287487926bd93039dde0c0a4f47 Mon Sep 17 00:00:00 2001 From: DartRuffian Date: Wed, 13 Mar 2024 21:13:33 -0500 Subject: [PATCH] Array return gets formatted as multi-line string --- addons/arsenal/functions/fnc_handleStats.sqf | 8 ++++++-- addons/arsenal/ui/RscAttributes.hpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/arsenal/functions/fnc_handleStats.sqf b/addons/arsenal/functions/fnc_handleStats.sqf index b5d435a101..0411ac759e 100644 --- a/addons/arsenal/functions/fnc_handleStats.sqf +++ b/addons/arsenal/functions/fnc_handleStats.sqf @@ -141,8 +141,12 @@ private _fnc_handleStats = { if (_showText) then { _textStatementResult = [_configEntry, _itemCfg] call _textStatement; - if !(_textStatementResult isEqualtype "") then { - _textStatementResult = str _textStatementResult; + if (_textStatementResult isEqualType []) then { + _textStatementResult = _textStatementResult joinString endl; + } else { + if !(_textStatementResult isEqualtype "") then { + _textStatementResult = str _textStatementResult; + }; }; _statsTextCtrl ctrlSetText _textStatementResult; diff --git a/addons/arsenal/ui/RscAttributes.hpp b/addons/arsenal/ui/RscAttributes.hpp index dc70caa0c2..00de09f699 100644 --- a/addons/arsenal/ui/RscAttributes.hpp +++ b/addons/arsenal/ui/RscAttributes.hpp @@ -331,7 +331,7 @@ class GVAR(display) { w = QUOTE(45 * GRID_W); h = QUOTE(4 * GRID_H); }; - class statsText1: RscText { + class statsText1: RscTextMulti { idc = IDC_statsText1; shadow = 0; fade = 1;