Add handling of multiline messages for now

Eventually dayz_rollingMessages will be updated to use cutRsc instead of
titleText.
This commit is contained in:
ebaydayz
2016-04-16 19:33:29 -04:00
parent 5157228e67
commit 3c4e1fa5a2
4 changed files with 265 additions and 262 deletions

View File

@@ -476,6 +476,8 @@ if (!isDedicated) then {
};
dayz_rollingMessages = {
//title and cutText are in the same layer, so both simultaneously on the same line overlaps and is unreadable
if (typeName _this == "ARRAY") exitWith {titleText [_this select 0,"PLAIN DOWN"];}; //Multi-line
if ((diag_ticktime - Message_1_time) < 5) then {
if ((time - Message_2_time) < 5) then {
Message_3 = Message_2;
@@ -493,7 +495,8 @@ if (!isDedicated) then {
Message_1 = _this;
Message_1_time = diag_ticktime;
cutText [format ["%1\n%2\n%3", Message_1, Message_2, Message_3], "PLAIN DOWN"];
//"PLAIN DOWN" fits a maximum of 3 lines on screen at once
titleText [format ["%1\n%2\n%3", Message_1, Message_2, Message_3], "PLAIN DOWN"];
};
dayz_originalPlayer = player;