Array return gets formatted as multi-line string

This commit is contained in:
DartRuffian 2024-03-13 21:13:33 -05:00
parent f4272f0e36
commit 56b150dbfb
2 changed files with 7 additions and 3 deletions

View File

@ -141,9 +141,13 @@ private _fnc_handleStats = {
if (_showText) then { if (_showText) then {
_textStatementResult = [_configEntry, _itemCfg] call _textStatement; _textStatementResult = [_configEntry, _itemCfg] call _textStatement;
if (_textStatementResult isEqualType []) then {
_textStatementResult = _textStatementResult joinString endl;
} else {
if !(_textStatementResult isEqualtype "") then { if !(_textStatementResult isEqualtype "") then {
_textStatementResult = str _textStatementResult; _textStatementResult = str _textStatementResult;
}; };
};
_statsTextCtrl ctrlSetText _textStatementResult; _statsTextCtrl ctrlSetText _textStatementResult;
_statsTextCtrl ctrlSetTextColor ([[1, 1, 1, 1], [0, 0, 0, 1]] select (_showBar)); _statsTextCtrl ctrlSetTextColor ([[1, 1, 1, 1], [0, 0, 0, 1]] select (_showBar));

View File

@ -331,7 +331,7 @@ class GVAR(display) {
w = QUOTE(45 * GRID_W); w = QUOTE(45 * GRID_W);
h = QUOTE(4 * GRID_H); h = QUOTE(4 * GRID_H);
}; };
class statsText1: RscText { class statsText1: RscTextMulti {
idc = IDC_statsText1; idc = IDC_statsText1;
shadow = 0; shadow = 0;
fade = 1; fade = 1;