Localize some Advanced Trading strings

This commit is contained in:
ebaydayz
2016-05-01 15:45:00 -04:00
parent d25ad694d8
commit 2806d6a00d
15 changed files with 241 additions and 69 deletions

View File

@@ -23,17 +23,17 @@ call Z_calcPrice;
if(Z_Selling)then{
switch (_lbIndex) do {
case 0: {
["Selling from backpack."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_SELLING_BACKPACK"] call Z_filleTradeTitle;
Z_SellingFrom = 0;
call Z_getBackpackItems;
};
case 1: {
["Selling from vehicle."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_SELLING_VEHICLE"] call Z_filleTradeTitle;
Z_SellingFrom = 1;
call Z_getVehicleItems;
};
case 2: {
["Selling from gear."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_SELLING_GEAR"] call Z_filleTradeTitle;
Z_SellingFrom = 2;
call Z_getGearItems;
};
@@ -42,29 +42,29 @@ if(Z_Selling)then{
_ctrltext = format[" "];
ctrlSetText [Z_AT_TRADERLINE2, _ctrltext];
_ctrltext = format["These are all the items I'm selling."];
_ctrltext = localize "STR_EPOCH_TRADE_SELLING_ALL";
ctrlSetText [Z_AT_TRADERLINE1, _ctrltext];
switch (_lbIndex) do {
case 0: {
Z_SellingFrom = 0;
["Buying in backpack."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_BUYING_BACKPACK"] call Z_filleTradeTitle;
[0] call Z_calculateFreeSpace;
};
case 1: {
Z_SellingFrom = 1;
["Buying in vehicle."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_BUYING_VEHICLE"] call Z_filleTradeTitle;
_canBuyInVehicle = call Z_checkCloseVehicle;
if(_canBuyInVehicle)then{
[1] call Z_calculateFreeSpace;
}else{
systemChat format["Get in the driver seat to be able to trade to your vehicle."];
systemChat localize "STR_EPOCH_PLAYER_245";
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_SLOTSDISPLAY) ctrlSetText format["%1 / %2 / %3",0,0,0];
};
};
case 2: {
Z_SellingFrom = 2;
["Buying in gear."] call Z_filleTradeTitle;
[localize "STR_EPOCH_TRADE_BUYING_GEAR"] call Z_filleTradeTitle;
[2] call Z_calculateFreeSpace;
};
};