mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Localize some Advanced Trading strings
This commit is contained in:
@@ -33,7 +33,7 @@ class AdvancedTrading
|
||||
class RscText_AT2: ZSC_RscText
|
||||
{
|
||||
idc = -1;
|
||||
text = "Advanced Trading";
|
||||
text = $STR_EPOCH_PLAYER_289;
|
||||
x = 0.20 * safezoneW + safezoneX;
|
||||
y = 0.15 * safezoneH + safezoneY;
|
||||
w = 0.60 * safezoneW;
|
||||
@@ -45,7 +45,7 @@ class AdvancedTrading
|
||||
class RscText_Zupa_1: ZSC_RscText
|
||||
{
|
||||
idc = 7408;
|
||||
text = "Selling from gear.";
|
||||
text = $STR_EPOCH_TRADE_SELLING_GEAR;
|
||||
x = 0.21 * safezoneW + safezoneX;
|
||||
y = 0.22 * safezoneH + safezoneY;
|
||||
w = 0.38 * safezoneW;
|
||||
@@ -55,7 +55,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_Z1: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = -1;
|
||||
text = "Gear";
|
||||
text = $STR_UI_GEAR;
|
||||
x = 0.21 * safezoneW + safezoneX;
|
||||
y = 0.26 * safezoneH + safezoneY;
|
||||
w = 0.08 * safezoneW;
|
||||
@@ -66,7 +66,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_Z2: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = -1;
|
||||
text = "Backpack";
|
||||
text = $STR_EPOCH_TRADE_BACKPACK;
|
||||
x = 0.31 * safezoneW + safezoneX;
|
||||
y = 0.26 * safezoneH + safezoneY;
|
||||
w = 0.08 * safezoneW;
|
||||
@@ -77,7 +77,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_Z3: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = -1;
|
||||
text = "Vehicle";
|
||||
text = $STR_EPOCH_TRADE_VEHICLE;
|
||||
x = 0.41 * safezoneW + safezoneX;
|
||||
y = 0.26 * safezoneH + safezoneY;
|
||||
w = 0.08 * safezoneW;
|
||||
@@ -88,7 +88,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_Z4: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = 7416;
|
||||
text = "Sell";
|
||||
text = $STR_EPOCH_PLAYER_292;
|
||||
x = 0.51 * safezoneW + safezoneX;
|
||||
y = 0.26 * safezoneH + safezoneY;
|
||||
w = 0.08 * safezoneW;
|
||||
@@ -119,7 +119,7 @@ class AdvancedTrading
|
||||
class RscText_AT8: ZSC_RscText
|
||||
{
|
||||
idc = -1;
|
||||
text = "Inventory";
|
||||
text = $STR_EPOCH_TRADE_INVENTORY;
|
||||
x = 0.21 * safezoneW + safezoneX;
|
||||
y = 0.38 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -129,7 +129,7 @@ class AdvancedTrading
|
||||
class RscText_AT9: ZSC_RscText
|
||||
{
|
||||
idc = 7409;
|
||||
text = "Selling";
|
||||
text = $STR_EPOCH_TRADE_SELLING;
|
||||
x = 0.46 * safezoneW + safezoneX;
|
||||
y = 0.38 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -281,7 +281,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_ATTFilter: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = -1;
|
||||
text = "Filter";
|
||||
text = $STR_UI_FILTER;
|
||||
x = 0.21 * safezoneW + safezoneX;
|
||||
y = 0.77 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -406,7 +406,7 @@ class AdvancedTrading
|
||||
class RscText_AT18: ZSC_RscText
|
||||
{
|
||||
idc = 7410;
|
||||
text = "Nothing";
|
||||
text = $STR_EPOCH_TRADE_NOTHING;
|
||||
x = 0.46 * safezoneW + safezoneX;
|
||||
y = 0.72 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -416,7 +416,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_AT16: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = 7435;
|
||||
text = "Sell";
|
||||
text = $STR_EPOCH_PLAYER_292;
|
||||
x = 0.46 * safezoneW + safezoneX;
|
||||
y = 0.77 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -427,7 +427,7 @@ class AdvancedTrading
|
||||
class ZSC_RscButtonMenu_AT27: AT_Zupa_BlueButton
|
||||
{
|
||||
idc = 7436;
|
||||
text = "Buy";
|
||||
text = $STR_EPOCH_PLAYER_291;
|
||||
x = 0.46 * safezoneW + safezoneX;
|
||||
y = 0.77 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
@@ -445,7 +445,7 @@ class AdvancedTrading
|
||||
onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 9000);";
|
||||
colorBackground[] = {1,1,1,1};
|
||||
color[] = {0,0,0,1};
|
||||
text = "Close";
|
||||
text = $STR_UI_CLOSE;
|
||||
};
|
||||
class RscStrText_AT_PriceInfo: ZSC_RscStructuredText // todo
|
||||
{
|
||||
@@ -460,7 +460,7 @@ class AdvancedTrading
|
||||
class RscText_AT_InfoLabel: ZSC_RscText
|
||||
{
|
||||
idc = -1;
|
||||
text = " Item info";
|
||||
text = $STR_EPOCH_TRADE_DETAILS;
|
||||
x = 0.60 * safezoneW + safezoneX;
|
||||
y = 0.38 * safezoneH + safezoneY;
|
||||
w = 0.20 * safezoneW;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
// Moved to dayz_code/configVariables.sqf
|
||||
/*
|
||||
Z_AT_FolderLocation = '\z\addons\dayz_code\actions\AdvancedTrading';
|
||||
Z_VehicleDistance = 30; // Distance that a vehicle needs to be to see it's content or to sell it.
|
||||
Z_SingleCurrency = false; // Does your server use a single currency system.
|
||||
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
|
||||
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
|
||||
Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this to whatever currency you are using.
|
||||
*/
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
Z_Selling = !Z_Selling;
|
||||
if(Z_Selling)then{
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_SELLBUYTOGGLE) ctrlSetText "Buy";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_RIGHTLISTTITLE) ctrlSetText "Selling";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_SELLBUYTOGGLE) ctrlSetText localize "STR_EPOCH_PLAYER_291";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_RIGHTLISTTITLE) ctrlSetText localize "STR_EPOCH_TRADE_SELLING";
|
||||
{ctrlShow [_x,true];} forEach [Z_AT_SELLABLELIST,Z_AT_SELLINGLIST,Z_AT_SELLBUTTON,Z_AT_ADDSELLITEMBUTTON,Z_AT_ADDALLSELLITEMBUTTON,Z_AT_REMOVESELLITEMBUTTON,Z_AT_REMOVEALLSELLITEMBUTTON]; // show
|
||||
{ctrlShow [_x,false];} forEach [Z_AT_BUYABLELIST,Z_AT_BUYINGLIST,Z_AT_BUYBUTTON,Z_AT_ADDBUYITEMBUTTON,Z_AT_BUYINGAMOUNT,Z_AT_REMOVEBUYITEMBUTTON,Z_AT_REMOVEALLBUYITEMBUTTON,Z_AT_SLOTSDISPLAY]; // hide
|
||||
}else{
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_SELLBUYTOGGLE) ctrlSetText "Sell";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_RIGHTLISTTITLE) ctrlSetText "Buying";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_SELLBUYTOGGLE) ctrlSetText localize "STR_EPOCH_PLAYER_292";
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_RIGHTLISTTITLE) ctrlSetText localize "STR_EPOCH_TRADE_BUYING";
|
||||
{ctrlShow [_x,true];} forEach [Z_AT_BUYABLELIST,Z_AT_BUYINGLIST,Z_AT_BUYBUTTON,Z_AT_ADDBUYITEMBUTTON,Z_AT_BUYINGAMOUNT,Z_AT_REMOVEBUYITEMBUTTON,Z_AT_REMOVEALLBUYITEMBUTTON,Z_AT_SLOTSDISPLAY]; // show
|
||||
{ctrlShow [_x,false];} forEach [Z_AT_SELLABLELIST,Z_AT_SELLINGLIST,Z_AT_SELLBUTTON,Z_AT_ADDSELLITEMBUTTON,Z_AT_ADDALLSELLITEMBUTTON,Z_AT_REMOVESELLITEMBUTTON,Z_AT_REMOVEALLSELLITEMBUTTON]; // hide
|
||||
call Z_calcBuyableList;
|
||||
|
||||
@@ -117,13 +117,13 @@ if(_total > 0)then{
|
||||
};
|
||||
|
||||
if (Z_SingleCurrency) then {
|
||||
_ctrltext = format["I would offer %1 %2.", _totalPrice,CurrencyName];
|
||||
_ctrltext = format[localize "STR_EPOCH_TRADE_OFFER", _totalPrice,CurrencyName];
|
||||
ctrlSetText [Z_AT_TRADERLINE2, _ctrltext];
|
||||
} else {
|
||||
ctrlSetText [Z_AT_TRADERLINE2, ''];
|
||||
};
|
||||
|
||||
_ctrltext = format["I accept %1 items from %2.", count(Z_SellableArray) , _extraText];
|
||||
_ctrltext = format[localize "STR_EPOCH_TRADE_ACCEPT", count(Z_SellableArray) , _extraText];
|
||||
ctrlSetText [Z_AT_TRADERLINE1, _ctrltext];
|
||||
|
||||
call Z_fillSellList;
|
||||
|
||||
@@ -42,13 +42,13 @@ if ( Z_SingleCurrency ) then {
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 %4</t><br />" +
|
||||
"<t color='#33BFFF'>%10: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%12: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%13: </t><t color='#ffffff'>%6 %4</t><br />" +
|
||||
"<t color='#33BFFF'>Mags: </t><t color='#ffffff'>%8</t><br />" +
|
||||
"<t color='#33BFFF'>Weaps:</t><t color='#ffffff'>%9</t><br />"
|
||||
, _picture, _display, _class, _buyCurrency , _sellPrice, _buyPrice, _sellCurrency, _transportMaxWeapons,_transportMaxMagazines
|
||||
, _picture, _display, _class, _buyCurrency , _sellPrice, _buyPrice, _sellCurrency, _transportMaxWeapons,_transportMaxMagazines, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_ITEMINFO) ctrlSetStructuredText parseText _formattedText;
|
||||
|
||||
@@ -21,11 +21,11 @@ if (Z_Selling) then {
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 %7</t><br />"
|
||||
, _picture, _display, _class, 'lazy', _sellPrice, _buyPrice, CurrencyName
|
||||
"<t color='#33BFFF'>%8: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%9: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%10: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%6 %7</t><br />"
|
||||
, _picture, _display, _class, 'lazy', _sellPrice, _buyPrice, CurrencyName, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
} else {
|
||||
_picSell = getText (configFile >> 'CfgMagazines' >> _sellCurrency >> 'picture');
|
||||
@@ -34,11 +34,11 @@ if (Z_SingleCurrency) then {
|
||||
_buyCurrency = getText (configFile >> 'CfgMagazines' >> _buyCurrency >> 'displayName');
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 <img image='%8' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 <img image='%10' /> %9</t><br />"
|
||||
, _picture, _display, _class, 'lazy', _sellPrice, _buyPrice, _sellCurrency , _picSell , _buyCurrency, _picBuy
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%12: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%13: </t><t color='#ffffff'>%5 <img image='%8' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>%14: </t><t color='#ffffff'>%6 <img image='%10' /> %9</t><br />"
|
||||
, _picture, _display, _class, 'lazy', _sellPrice, _buyPrice, _sellCurrency , _picSell , _buyCurrency, _picBuy, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
};
|
||||
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_ITEMINFO) ctrlSetStructuredText parseText _formattedText;
|
||||
|
||||
@@ -50,14 +50,14 @@ if ( isNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxBackpacks')
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' /><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%10: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%12: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%13: </t><t color='#ffffff'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Mags: </t><t color='#ffffff'>%9</t><br />" +
|
||||
"<t color='#33BFFF'>Weaps: </t><t color='#ffffff'>%8</t><br />" +
|
||||
"<t color='#33BFFF'>Backs: </t><t color='#ffffff'>%4</t><br />"
|
||||
, _picture, _display, _class, _transportmaxBackpacks, _sellPrice, _buyPrice, CurrencyName, _transportMaxWeapons,_transportMaxMagazines
|
||||
, _picture, _display, _class, _transportmaxBackpacks, _sellPrice, _buyPrice, CurrencyName, _transportMaxWeapons,_transportMaxMagazines, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
|
||||
|
||||
@@ -69,14 +69,14 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' /><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 <img image='%11' /> %10</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 <img image='%12' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>%13: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%14: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%15: </t><t color='#ffffff'>%5 <img image='%11' /> %10</t><br />" +
|
||||
"<t color='#33BFFF'>%16: </t><t color='#ffffff'>%6 <img image='%12' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>Mags: </t><t color='#ffffff'>%8</t><br />" +
|
||||
"<t color='#33BFFF'>Weaps: </t><t color='#ffffff'>%9</t><br />" +
|
||||
"<t color='#33BFFF'>Backs: </t><t color='#ffffff'>%4</t><br />"
|
||||
, _picture, _display, _class, _transportmaxBackpacks, _sellPrice, _buyPrice, _buyCurrency, _transportMaxWeapons,_transportMaxMagazines, _sellCurrency, _picSell,_picBuy
|
||||
, _picture, _display, _class, _transportmaxBackpacks, _sellPrice, _buyPrice, _buyCurrency, _transportMaxWeapons,_transportMaxMagazines, _sellCurrency, _picSell,_picBuy, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ _magText = "";
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center' /><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%8: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%9: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%10: </t><t color='#ffffff'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF'>Mags: </t><br /><t color='#ffffff' size='0.5'>%4</t>"
|
||||
, _picture, _display, _class, _magText, _sellPrice, _buyPrice, CurrencyName
|
||||
, _picture, _display, _class, _magText, _sellPrice, _buyPrice, CurrencyName, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
}else {
|
||||
_picSell = getText (configFile >> 'CfgMagazines' >> _sellCurrency >> 'picture');
|
||||
@@ -55,12 +55,12 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center' /><br />" +
|
||||
"<t color='#33BFFF'>Name: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>Class: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>Sell: </t><t color='#ffffff'>%5 <img image='%9' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>Buy: </t><t color='#ffffff'>%6 <img image='%10' /> %8</t><br />" +
|
||||
"<t color='#33BFFF'>%11: </t><t color='#ffffff'>%2</t><br />" +
|
||||
"<t color='#33BFFF'>%12: </t><t color='#ffffff'>%3</t><br />" +
|
||||
"<t color='#33BFFF'>%13: </t><t color='#ffffff'>%5 <img image='%9' /> %7</t><br />" +
|
||||
"<t color='#33BFFF'>%14: </t><t color='#ffffff'>%6 <img image='%10' /> %8</t><br />" +
|
||||
"<t color='#33BFFF'>Mags: </t><br /><t color='#ffffff' size='0.5'>%4</t>"
|
||||
, _picture, _display, _class, _magText, _sellPrice, _buyPrice, _sellCurrency, _buyCurrency, _picSell, _picBuy
|
||||
, _picture, _display, _class, _magText, _sellPrice, _buyPrice, _sellCurrency, _buyCurrency, _picSell, _picBuy, localize "STR_EPOCH_NAME", localize "STR_EPOCH_CLASS", localize "STR_EPOCH_PLAYER_292", localize "STR_EPOCH_PLAYER_291"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -45,9 +45,9 @@ if (!isNull _backpack) then {
|
||||
|
||||
[_normalMags,_normalWeaps, typeOf _backpack] call Z_checkArrayInConfig;
|
||||
}else{
|
||||
_ctrltext = format["I'm not stupid."];
|
||||
_ctrltext = localize "STR_EPOCH_TRADE_STUPID";
|
||||
ctrlSetText [Z_AT_TRADERLINE2, _ctrltext];
|
||||
|
||||
_ctrltext = format["You are not wearing a backpack."];
|
||||
_ctrltext = localize "STR_EPOCH_TRADE_NO_BACKPACK";
|
||||
ctrlSetText [Z_AT_TRADERLINE1, _ctrltext];
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -121,7 +121,7 @@ if(_index > -1)then{
|
||||
_vehCheckArray set [count(_vehCheckArray),[_x select 2, _x select 11]];
|
||||
};
|
||||
} else {
|
||||
systemChat format["Get in the driver seat to be able to trade to your vehicle."];
|
||||
systemChat localize "STR_EPOCH_PLAYER_245";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ if(DZE_ActionInProgress) exitWith { localize "str_player_actionslimit" call dayz
|
||||
|
||||
if(isNil "Z_AdvancedTradingInit")then{
|
||||
|
||||
//#include "config.sqf";
|
||||
//#include "config.sqf"; // Moved to dayz_code/configVariables.sqf
|
||||
#include "\z\addons\dayz_code\actions\AdvancedTrading\functions\defines.sqf";
|
||||
|
||||
/* Configs that needs to be defined but not changed in config file */
|
||||
|
||||
@@ -6,7 +6,8 @@ _item = _this select 1;
|
||||
_toolCheck = _this select 2;
|
||||
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
|
||||
_requireplot = DZE_requireplot;
|
||||
if(!canbuild) exitWith {DZE_ActionInProgress = false; "Cannot build in a trader city." call dayz_rollingMessages; [false, false];};
|
||||
// "Unable to build trader nearby."
|
||||
if (!canbuild) exitWith {DZE_ActionInProgress = false; format[localize "STR_EPOCH_PLAYER_136",localize "STR_EPOCH_TRADER"] call dayz_rollingMessages; [false, false];};
|
||||
|
||||
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then {
|
||||
_requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot");
|
||||
|
||||
@@ -948,7 +948,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
||||
s_player_parts set [count s_player_parts,_buy];
|
||||
} count (_traderMenu select 1);
|
||||
if (DZE_advancedTrading && DZE_ConfigTrader) then {
|
||||
_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
|
||||
_buyV = player addAction [format["<t color='#0059FF'>%1</t>",localize "STR_EPOCH_PLAYER_289"], "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false];
|
||||
s_player_parts set [count s_player_parts,_buyV];
|
||||
} else {
|
||||
// Database menu
|
||||
|
||||
@@ -15411,5 +15411,173 @@
|
||||
<French>Briefcase (Contains: 10 x 10oz Silver Bar)</French>
|
||||
<Czech>Briefcase (Contains: 10 x 10oz Silver Bar)</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_VEHICLE">
|
||||
<English>Vehicle</English>
|
||||
<German>Fahrzeug</German>
|
||||
<Russian>Средство передвижения</Russian>
|
||||
<Spanish>Vehículo</Spanish>
|
||||
<French>Véhicule</French>
|
||||
<Czech>Vozidlo</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_BACKPACK">
|
||||
<English>Backpack</English>
|
||||
<German>Rucksack</German>
|
||||
<Russian>Рюкзак</Russian>
|
||||
<Spanish>Mochila</Spanish>
|
||||
<French>Sac à dos</French>
|
||||
<Czech>Batoh</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_INVENTORY">
|
||||
<English>Inventory</English>
|
||||
<German>Inventar</German>
|
||||
<Russian>инвентарь</Russian>
|
||||
<Spanish>Inventario</Spanish>
|
||||
<French>Inventaire</French>
|
||||
<Czech>Inventář</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_BUYING">
|
||||
<English>Buying</English>
|
||||
<German>Kauf</German>
|
||||
<Russian>покупка</Russian>
|
||||
<Spanish>Compra</Spanish>
|
||||
<French>Achat</French>
|
||||
<Czech>Nákupy</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_SELLING">
|
||||
<English>Selling</English>
|
||||
<German>Verkauf</German>
|
||||
<Russian>продажа</Russian>
|
||||
<Spanish>De venta</Spanish>
|
||||
<French>Vente</French>
|
||||
<Czech>Prodejní</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_SELLING_GEAR">
|
||||
<English>Selling from gear.</English>
|
||||
<German>Selling from gear.</German>
|
||||
<Russian>Selling from gear.</Russian>
|
||||
<Spanish>Selling from gear.</Spanish>
|
||||
<French>Selling from gear.</French>
|
||||
<Czech>Selling from gear.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_SELLING_VEHICLE">
|
||||
<English>Selling from vehicle.</English>
|
||||
<German>Selling from vehicle.</German>
|
||||
<Russian>Selling from vehicle.</Russian>
|
||||
<Spanish>Selling from vehicle.</Spanish>
|
||||
<French>Selling from vehicle.</French>
|
||||
<Czech>Selling from vehicle.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_SELLING_BACKPACK">
|
||||
<English>Selling from backpack.</English>
|
||||
<German>Selling from backpack.</German>
|
||||
<Russian>Selling from backpack.</Russian>
|
||||
<Spanish>Selling from backpack.</Spanish>
|
||||
<French>Selling from backpack.</French>
|
||||
<Czech>Selling from backpack.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_SELLING_ALL">
|
||||
<English>These are all the items I'm selling.</English>
|
||||
<German>These are all the items I'm selling.</German>
|
||||
<Russian>These are all the items I'm selling.</Russian>
|
||||
<Spanish>These are all the items I'm selling.</Spanish>
|
||||
<French>These are all the items I'm selling.</French>
|
||||
<Czech>These are all the items I'm selling.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_BUYING_VEHICLE">
|
||||
<English>Buying in vehicle.</English>
|
||||
<German>Buying in vehicle.</German>
|
||||
<Russian>Buying in vehicle.</Russian>
|
||||
<Spanish>Buying in vehicle.</Spanish>
|
||||
<French>Buying in vehicle.</French>
|
||||
<Czech>Buying in vehicle.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_BUYING_BACKPACK">
|
||||
<English>Buying in backpack.</English>
|
||||
<German>Buying in backpack.</German>
|
||||
<Russian>Buying in backpack.</Russian>
|
||||
<Spanish>Buying in backpack.</Spanish>
|
||||
<French>Buying in backpack.</French>
|
||||
<Czech>Buying in backpack.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_BUYING_GEAR">
|
||||
<English>Buying in gear.</English>
|
||||
<German>Buying in gear.</German>
|
||||
<Russian>Buying in gear.</Russian>
|
||||
<Spanish>Buying in gear.</Spanish>
|
||||
<French>Buying in gear.</French>
|
||||
<Czech>Buying in gear.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_NOTHING">
|
||||
<English>Nothing</English>
|
||||
<German>Nichts</German>
|
||||
<Russian>Ничего</Russian>
|
||||
<Spanish>Nada</Spanish>
|
||||
<French>Rien</French>
|
||||
<Czech>Nic</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_DETAILS">
|
||||
<English> Details</English>
|
||||
<German> Einzelheiten</German>
|
||||
<Russian> Детали</Russian>
|
||||
<Spanish> Detalles</Spanish>
|
||||
<French> Détails</French>
|
||||
<Czech> Podrobnosti</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_STUPID">
|
||||
<English>I'm not stupid.</English>
|
||||
<German>I'm not stupid.</German>
|
||||
<Russian>I'm not stupid.</Russian>
|
||||
<Spanish>I'm not stupid.</Spanish>
|
||||
<French>I'm not stupid.</French>
|
||||
<Czech>I'm not stupid.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_NO_BACKPACK">
|
||||
<English>You are not wearing a backpack.</English>
|
||||
<German>You are not wearing a backpack.</German>
|
||||
<Russian>You are not wearing a backpack.</Russian>
|
||||
<Spanish>You are not wearing a backpack.</Spanish>
|
||||
<French>You are not wearing a backpack.</French>
|
||||
<Czech>You are not wearing a backpack.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_OFFER">
|
||||
<English>I would offer %1 %2.</English>
|
||||
<German>I would offer %1 %2.</German>
|
||||
<Russian>I would offer %1 %2.</Russian>
|
||||
<Spanish>I would offer %1 %2.</Spanish>
|
||||
<French>I would offer %1 %2.</French>
|
||||
<Czech>I would offer %1 %2.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_ACCEPT">
|
||||
<English>I accept %1 items from %2.</English>
|
||||
<German>I accept %1 items from %2.</German>
|
||||
<Russian>I accept %1 items from %2.</Russian>
|
||||
<Spanish>I accept %1 items from %2.</Spanish>
|
||||
<French>I accept %1 items from %2.</French>
|
||||
<Czech>I accept %1 items from %2.</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADER">
|
||||
<English>Trader</English>
|
||||
<German>Händler</German>
|
||||
<Russian>трейдер</Russian>
|
||||
<Spanish>Comerciante</Spanish>
|
||||
<French>Commerçant</French>
|
||||
<Czech>Obchodník</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_NAME">
|
||||
<English>Name</English>
|
||||
<German>Name</German>
|
||||
<Russian>имя</Russian>
|
||||
<Spanish>Nombre</Spanish>
|
||||
<French>Prénom</French>
|
||||
<Czech>Jméno</Czech>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_CLASS">
|
||||
<English>Class</English>
|
||||
<German>Klasse</German>
|
||||
<Russian>Класс</Russian>
|
||||
<Spanish>Clase</Spanish>
|
||||
<French>Classe</French>
|
||||
<Czech>Třída</Czech>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user