mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Array return gets formatted as multi-line string
This commit is contained in:
parent
f4272f0e36
commit
56b150dbfb
@ -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));
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user