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

@@ -25,7 +25,7 @@ class ItemActions
*/
private ["_tradeComplete","_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_textMissing","_selectedRecipeInput","_selectedRecipeInputStrict","_num_removed","_removed_total","_temp_removed_array","_abort","_waterLevel","_waterLevel_lowest","_reason","_isNear","_missingTools","_hastoolweapon","_selectedRecipeTools","_distance","_crafting","_needNear","_item","_baseClass","_num_removed_weapons","_outputWeapons","_inputWeapons","_randomOutput","_craft_doLoop","_selectedWeapon","_selectedMag","_sfx"];
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_63","PLAIN DOWN"];};
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_63" call dayz_rollingMessages;};
DZE_ActionInProgress = true;
// This is used to find correct recipe based what itemaction was click allows multiple recipes per item.
@@ -63,7 +63,7 @@ if("workshop" in _needNear) then {
};
};
if(_abort) exitWith {
cutText [format[(localize "str_epoch_player_149"),_reason,_distance], "PLAIN DOWN"];
format[localize "str_epoch_player_149",_reason,_distance] call dayz_rollingMessages;
DZE_ActionInProgress = false;
};
@@ -122,7 +122,7 @@ if (_canDo) then {
// If all parts proceed
if (_proceed) then {
cutText [localize "str_epoch_player_62","PLAIN DOWN"];
localize "str_epoch_player_62" call dayz_rollingMessages;
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
player playActionNow "Medic";
@@ -245,7 +245,7 @@ if (_canDo) then {
};
_textCreate = getText(configFile >> "CfgMagazines" >> _itemOut >> "displayName");
// Add crafted item
cutText [format[(localize "str_epoch_player_150"),_textCreate,_countOut], "PLAIN DOWN"];
format[localize "str_epoch_player_150",_textCreate,_countOut] call dayz_rollingMessages;
// sleep here
uiSleep 1;
} forEach _selectedRecipeOutput;
@@ -256,7 +256,7 @@ if (_canDo) then {
} else {
// Refund parts since we failed
{player addMagazine _x; } forEach _temp_removed_array;
cutText [format[(localize "STR_EPOCH_PLAYER_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
format[localize "STR_EPOCH_PLAYER_145",_removed_total,_tobe_removed_total] call dayz_rollingMessages;
};
} else {
@@ -265,22 +265,22 @@ if (_canDo) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [localize "str_epoch_player_64","PLAIN DOWN"];
localize "str_epoch_player_64" call dayz_rollingMessages;
_craft_doLoop = false;
};
} else {
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
cutText [format[(localize "str_epoch_player_152"),_missingQty, _textMissing,_tradeComplete], "PLAIN DOWN"];
format[localize "str_epoch_player_152",_missingQty, _textMissing,_tradeComplete] call dayz_rollingMessages;
_craft_doLoop = false;
};
} else {
_textMissing = getText(configFile >> "CfgWeapons" >> _missing >> "displayName");
cutText [format[(localize "STR_EPOCH_PLAYER_137"),_textMissing], "PLAIN DOWN"];
format[localize "STR_EPOCH_PLAYER_137",_textMissing] call dayz_rollingMessages;
_craft_doLoop = false;
};
};
} else {
cutText [localize "str_epoch_player_64","PLAIN DOWN"];
localize "str_epoch_player_64" call dayz_rollingMessages;
};
DZE_ActionInProgress = false;