Update all cutText to dayz_rollingMessages

This commit is contained in:
ebaydayz
2016-04-16 15:47:49 -04:00
parent 993ce14da6
commit 5157228e67
137 changed files with 604 additions and 621 deletions

View File

@@ -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;
};