mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
If the weight system is active all weights of the items will be displayed on the trader infos. Also update the trading files and replace switch with call and exitwith which is faster.
26 lines
610 B
Plaintext
26 lines
610 B
Plaintext
private ['_item', '_type'];
|
|
#include "defines.hpp"
|
|
|
|
_item = _this select 0;
|
|
_type = _item select 1;
|
|
|
|
call {
|
|
if (_type == "trade_items") exitwith
|
|
{
|
|
[_item] call Z_displayItemInfo;
|
|
};
|
|
if (_type == "trade_weapons") exitwith
|
|
{
|
|
[_item] call Z_displayWeaponInfo;
|
|
};
|
|
if (_type == "trade_backpacks") exitwith
|
|
{
|
|
[_item] call Z_displayBackpackInfo;
|
|
};
|
|
if (_type in DZE_tradeVehicle) exitwith
|
|
{
|
|
[_item] call Z_displayVehicleInfo;
|
|
};
|
|
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_ITEMINFO) ctrlSetStructuredText (parseText format["<t color='#ffffff'>%1</t>",localize "STR_EPOCH_TRADE_NO_INFO"]);
|
|
};
|