mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add handling of multiline messages for now
Eventually dayz_rollingMessages will be updated to use cutRsc instead of titleText.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user