mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -16,7 +16,7 @@ if ((isNil "_cursorTarget") or {(isNull _cursorTarget)}) then {
|
||||
};
|
||||
|
||||
if(isNull _cursorTarget) exitWith {
|
||||
cutText ["No maintenance options", "PLAIN DOWN"];
|
||||
"No maintenance options" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
//Remove action Menu
|
||||
@@ -46,13 +46,13 @@ _upgradeParts = [];
|
||||
_startMaintenance = true;
|
||||
|
||||
if(_isWater or _onLadder) exitWith {
|
||||
cutText ["Unable to proceed", "PLAIN DOWN"];
|
||||
"Unable to proceed" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
// lets check player has requiredTools for upgrade
|
||||
{
|
||||
if (!(_x IN items player)) exitWith {
|
||||
cutText[ format[ localize "str_maintenanceMissingTool",_x], "PLAIN DOWN"]; //"Missing %1 to do maintenance %2."
|
||||
format[localize "str_maintenanceMissingTool",_x] call dayz_rollingMessages; //"Missing %1 to do maintenance %2."
|
||||
_startMaintenance = false;
|
||||
};
|
||||
} count _requiredTools;
|
||||
@@ -60,7 +60,7 @@ if(_isWater or _onLadder) exitWith {
|
||||
// lets check player has requiredParts for upgrade
|
||||
{
|
||||
if (!(_x IN magazines player)) exitWith {
|
||||
cutText[ format[ localize "str_maintenanceMissingPart",_x,_displayname], "PLAIN DOWN"]; //"Missing %1 to maintenance %2."
|
||||
format[localize "str_maintenanceMissingPart",_x,_displayname] call dayz_rollingMessages; //"Missing %1 to maintenance %2."
|
||||
_startMaintenance = false;
|
||||
};
|
||||
} count _requiredParts;
|
||||
@@ -107,6 +107,6 @@ if (_startMaintenance) then {
|
||||
PVDZ_object_replace = [_cursorTarget];
|
||||
publicVariableServer "PVDZ_object_replace";
|
||||
};
|
||||
cutText [localize "str_maintenanceDone", "PLAIN DOWN"];
|
||||
localize "str_maintenanceDone" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user