mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
The buying list now acts like a shopping cart. It is no longer cleared when switching between categories or containers. Closing the dialog or switching to sell mode still clears it. Also fixed: - Filter button in sell mode - Bug where filtering sellable list readded items already moved to selling list - Visual price display not clearing when remove all button is used on buying list - Gear container picture showing rank instead of portrait in buy mode - Dialog is no longer closed when trying to sell zero items - LbCurSel is now reset when the buyable list is cleared - Category is no longer opened onLbSelChanged. Instead you need to double click or use the "View" button, so the arrow keys can be used for selecting too.
28 lines
759 B
Plaintext
28 lines
759 B
Plaintext
|
|
#include "defines.hpp"
|
|
private ['_item', '_type'];
|
|
_item = _this select 0;
|
|
_type = _item select 1;
|
|
|
|
switch (true) do {
|
|
case (_type == "trade_items") :
|
|
{
|
|
[_item] call Z_displayItemInfo;
|
|
};
|
|
case (_type == "trade_weapons") :
|
|
{
|
|
[_item] call Z_displayWeaponInfo;
|
|
};
|
|
case (_type == "trade_backpacks") :
|
|
{
|
|
[_item] call Z_displayBackpackInfo;
|
|
};
|
|
case (_type in ["trade_any_vehicle", "trade_any_vehicle_free", "trade_any_vehicle_old", "trade_any_bicycle", "trade_any_bicycle_old", "trade_any_boat", "trade_any_boat_old"]) :
|
|
{
|
|
[_item] call Z_displayVehicleInfo;
|
|
};
|
|
default {
|
|
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_ITEMINFO) ctrlSetStructuredText (parseText format["<t color='#ffffff'>%1</t>",localize "STR_EPOCH_TRADE_NO_INFO"]);
|
|
}
|
|
};
|