mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Sync Zupa dialog colors
Heights on the trader menu filter search box and amount box have also been fixed. Old: https://imgur.com/a/ld4XF New: https://imgur.com/a/9T8VP
This commit is contained in:
@@ -35,11 +35,11 @@ if (isNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxMagazines'))
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 %4</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%16: </t><t color='#ffffff' size='0.7'><img image='%14'/> %8 <img image='%15'/> %9</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 %4</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%16: </t><t color='#ffffff' size='0.7'><img image='%14'/> %8 <img image='%15'/> %9</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -71,11 +71,11 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 <img image='%17' /> %4</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 <img image='%16' /> %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%18: </t><t color='#ffffff' size='0.7'><img image='%14'/> %8 <img image='%15'/> %9</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 <img image='%17' /> %4</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 <img image='%16' /> %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%18: </t><t color='#ffffff' size='0.7'><img image='%14'/> %8 <img image='%15'/> %9</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
|
||||
@@ -55,10 +55,10 @@ _displayText = getText(configFile >> "CfgMagazines" >> _class >> "descriptionSho
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%8: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%9: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%8: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%9: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -84,10 +84,10 @@ if (Z_SingleCurrency) then {
|
||||
};
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%6 <img image='%10' /> %9</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%5 <img image='%8' /> %7</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%6 <img image='%10' /> %9</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%5 <img image='%8' /> %7</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -107,14 +107,14 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
if (count _compatible > 0) then {
|
||||
_formattedText = _formattedText + format [
|
||||
"<t color='#33BFFF' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />"
|
||||
"<t color='#bcbcbc' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />"
|
||||
,localize "STR_EPOCH_COMPATIBLE",_compatibleText
|
||||
];
|
||||
};
|
||||
|
||||
if (_displayText != "") then {
|
||||
_formattedText = _formattedText + format [
|
||||
"<t color='#33BFFF' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t>"
|
||||
"<t color='#bcbcbc' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t>"
|
||||
,localize "STR_EPOCH_DESCRIPTION",_displayText
|
||||
];
|
||||
};
|
||||
|
||||
@@ -115,13 +115,13 @@ _wepText = "";
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' /><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%14: </t><t color='#ffffff' size='0.7'><img image='%15'/> %8 <img image='%16'/> %9 <img image='%26'/> %4</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%17: </t><t color='#ffffff' size='0.7'>%18 </t><t color='#33BFFF' size='0.7'>%24: </t><t color='#ffffff' size='0.7'>%25</t><br />" + // Armor / Seats
|
||||
"<t color='#33BFFF' size='0.7'>%21 %22: </t><t color='#ffffff' size='0.7'>%23 </t><t color='#33BFFF' size='0.7'>%19: </t><t color='#ffffff' size='0.7'>%20</t><br />", // MaxSpeed / Fuel
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%14: </t><t color='#ffffff' size='0.7'><img image='%15'/> %8 <img image='%16'/> %9 <img image='%26'/> %4</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%17: </t><t color='#ffffff' size='0.7'>%18 </t><t color='#bcbcbc' size='0.7'>%24: </t><t color='#ffffff' size='0.7'>%25</t><br />" + // Armor / Seats
|
||||
"<t color='#bcbcbc' size='0.7'>%21 %22: </t><t color='#ffffff' size='0.7'>%23 </t><t color='#bcbcbc' size='0.7'>%19: </t><t color='#ffffff' size='0.7'>%20</t><br />", // MaxSpeed / Fuel
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -163,13 +163,13 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' /><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%16: </t><t color='#ffffff' size='0.7'>%6 <img image='%12' /> %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%15: </t><t color='#ffffff' size='0.7'>%5 <img image='%11' /> %10</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%17: </t><t color='#ffffff' size='0.7'><img image='%18'/> %8 <img image='%19'/> %9 <img image='%29'/> %4</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%20: </t><t color='#ffffff' size='0.7'>%21 </t><t color='#33BFFF' size='0.7'>%27: </t><t color='#ffffff' size='0.7'>%28</t><br />" + // Armor / Seats
|
||||
"<t color='#33BFFF' size='0.7'>%24 %25: </t><t color='#ffffff' size='0.7'>%26 </t><t color='#33BFFF' size='0.7'>%22: </t><t color='#ffffff' size='0.7'>%23</t><br />", // MaxSpeed / Fuel
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%16: </t><t color='#ffffff' size='0.7'>%6 <img image='%12' /> %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%15: </t><t color='#ffffff' size='0.7'>%5 <img image='%11' /> %10</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%17: </t><t color='#ffffff' size='0.7'><img image='%18'/> %8 <img image='%19'/> %9 <img image='%29'/> %4</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%20: </t><t color='#ffffff' size='0.7'>%21 </t><t color='#bcbcbc' size='0.7'>%27: </t><t color='#ffffff' size='0.7'>%28</t><br />" + // Armor / Seats
|
||||
"<t color='#bcbcbc' size='0.7'>%24 %25: </t><t color='#ffffff' size='0.7'>%26 </t><t color='#bcbcbc' size='0.7'>%22: </t><t color='#ffffff' size='0.7'>%23</t><br />", // MaxSpeed / Fuel
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -204,7 +204,7 @@ if (Z_SingleCurrency) then {
|
||||
|
||||
if (count _weapons2 > 0) then {
|
||||
_formattedText = _formattedText + format [
|
||||
"<t color='#33BFFF' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />",
|
||||
localize "STR_EPOCH_WEAPONS",_wepText
|
||||
];
|
||||
};
|
||||
|
||||
@@ -64,10 +64,10 @@ _magText = "";
|
||||
if (Z_SingleCurrency) then {
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center' /><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%8: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%9: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%8: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%9: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -93,10 +93,10 @@ if (Z_SingleCurrency) then {
|
||||
};
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center' /><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%6 <img image='%10' /> %8</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%5 <img image='%9' /> %7</t><br />",
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%12: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%14: </t><t color='#ffffff' size='0.7'>%6 <img image='%10' /> %8</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%13: </t><t color='#ffffff' size='0.7'>%5 <img image='%9' /> %7</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
@@ -118,8 +118,8 @@ _parentClasses = [(configFile >> "CfgWeapons" >> _class),true] call BIS_fnc_retu
|
||||
|
||||
if !("ItemCore" in _parentClasses or "Binocular" in _parentClasses) then {
|
||||
_formattedText = _formattedText + format [
|
||||
"<t color='#33BFFF' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#33BFFF' size='0.7'>%3: </t><t color='#ffffff' size='0.7'>%4</t><br />"
|
||||
"<t color='#bcbcbc' size='0.7'>%1: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%3: </t><t color='#ffffff' size='0.7'>%4</t><br />"
|
||||
,localize "STR_EPOCH_ATTACHMENTS",_attachText,localize "STR_EPOCH_MAGS",_magText
|
||||
];
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ _typeOf = typeOf (unitBackPack player);
|
||||
if (_type == "trade_items") then {
|
||||
{
|
||||
if (isText(configFile >> "CfgWeapons" >> _x >> "Attachments" >> _name) or _name in getArray (configFile >> "CfgWeapons" >> _x >> "magazines")) then {
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [0.2,0.75,1,1]];
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [0, 1, 0, 0.8]]; //green
|
||||
};
|
||||
} count _weapons;
|
||||
_count = {_x == _name} count magazines player;
|
||||
@@ -31,10 +31,10 @@ _typeOf = typeOf (unitBackPack player);
|
||||
};
|
||||
|
||||
if (_count > 0) then {
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [0, 1, 0, 1]];
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [1, 0.8, 0, 1]]; //yellow
|
||||
} else {
|
||||
if ((_x select 6) < 0) then { //color items only allowed to either be sold or purchased
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [0, 0.57, 1, 1]];
|
||||
lbSetColor [Z_AT_BUYABLELIST, _index, [1, 0, 0, 1]]; //red
|
||||
};
|
||||
};
|
||||
} count Z_BuyableArray;
|
||||
|
||||
@@ -10,6 +10,6 @@ private "_index";
|
||||
_index = lbAdd [Z_AT_SELLABLELIST, _x select 3];
|
||||
lbSetPicture [Z_AT_SELLABLELIST, _index, _x select 4 ];
|
||||
if ((_x select 6) < 0) then { //color items only allowed to either be sold or purchased
|
||||
lbSetColor [Z_AT_SELLABLELIST, _index, [0, 0.57, 1, 1]];
|
||||
lbSetColor [Z_AT_SELLABLELIST, _index, [1, 0, 0, 1]]; //red
|
||||
};
|
||||
} count Z_SellableArray;
|
||||
|
||||
Reference in New Issue
Block a user