mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
The menu already says "Buying in" or "Selling from" Gear in the top left so having it again in the top right is redundant. It was my mistake adding it there originally.
27 lines
767 B
Plaintext
27 lines
767 B
Plaintext
/**
|
|
* call Z_getBackpackItems
|
|
*
|
|
* Gets all your items stored in your gear and innitiates the selling list.
|
|
**/
|
|
private ["_mags","_weaps","_skin","_formattedText","_bag","_bags"];
|
|
#include "defines.hpp"
|
|
call Z_clearLists;
|
|
Z_SellArray = [];
|
|
Z_SellableArray = [];
|
|
_mags = magazines player;
|
|
_weaps = weapons player;
|
|
_bag = unitBackpack player;
|
|
_bags = if (isNull _bag) then {[]} else {[typeOf _bag]};
|
|
|
|
_skin = typeOf player;
|
|
_pic = getText (configFile >> 'CfgVehicles' >> _skin >> 'portrait');
|
|
|
|
_formattedText = format [
|
|
"<img image='%1' size='3' align='center'/>"
|
|
, _pic
|
|
];
|
|
|
|
(findDisplay Z_AT_DIALOGWINDOW displayCtrl Z_AT_CONTAINERINFO) ctrlSetStructuredText parseText _formattedText;
|
|
|
|
[_weaps,_mags,localize "STR_EPOCH_YOUR_GEAR",_bags] call Z_checkArrayInConfig;
|