Cargo - Limit text length (#8915)

This commit is contained in:
PabstMirror 2022-05-17 02:37:26 -05:00 committed by GitHub
parent 0df5320879
commit fa45e8b7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ private _display = uiNamespace getVariable QGVAR(menuDisplay);
if (isNil "_display") exitWith {}; if (isNil "_display") exitWith {};
private _ctrlEditText = ctrlText 100; private _ctrlEditText = ctrlText 100;
_ctrlEditText = _ctrlEditText select [0,32];
if (_ctrlEditText isEqualTo "") then { // custom name has been removed if (_ctrlEditText isEqualTo "") then { // custom name has been removed
[LSTRING(clearedCustomName), 3] call EFUNC(common,displayTextStructured); [LSTRING(clearedCustomName), 3] call EFUNC(common,displayTextStructured);
} else { } else {