2016-05-18 15:16:35 +00:00
|
|
|
/*
|
2018-02-24 17:44:57 +00:00
|
|
|
* Author: PabstMirror, mharis001
|
2016-05-18 15:16:35 +00:00
|
|
|
* Initalises the ace_cargo attribute of the zeus vehicle attributes display
|
|
|
|
* (the display shown on double click)
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: ace_cargo controls group <CONTROL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2016-11-15 12:07:48 +00:00
|
|
|
* None
|
2016-05-18 15:16:35 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [CONTROL] call ace_zeus_fnc_ui_attributeCargo
|
|
|
|
*
|
2016-05-18 15:16:35 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2016-02-26 07:37:00 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_control"];
|
|
|
|
TRACE_1("params",_control);
|
|
|
|
|
2016-11-15 12:07:48 +00:00
|
|
|
private _veh = GETMVAR(BIS_fnc_initCuratorAttributes_target,objNull);
|
2016-02-26 07:37:00 +00:00
|
|
|
TRACE_1("",_veh);
|
|
|
|
|
|
|
|
private _loaded = _veh getVariable [QEGVAR(cargo,loaded), []];
|
|
|
|
TRACE_1("",_loaded);
|
|
|
|
|
2016-05-18 15:16:35 +00:00
|
|
|
_control ctrlRemoveAllEventHandlers "setFocus";
|
2016-05-17 11:10:52 +00:00
|
|
|
|
2018-02-24 17:44:57 +00:00
|
|
|
private _listbox = _control controlsGroupCtrl 80086;
|
|
|
|
|
2016-02-26 07:37:00 +00:00
|
|
|
{
|
2018-02-24 17:44:57 +00:00
|
|
|
private _class = if (_x isEqualType "") then {_x} else {typeOf _x};
|
|
|
|
private _displayName = getText (configFile >> "CfgVehicles" >> _class >> "displayName");
|
|
|
|
_listbox lbAdd _displayName;
|
2016-02-26 07:37:00 +00:00
|
|
|
} forEach _loaded;
|