ACE3/addons/zeus/functions/fnc_ui_attributeCargo.sqf

34 lines
707 B
Plaintext
Raw Normal View History

/*
* Author: PabstMirror
* 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:
* None <NIL>
*
* Example:
* onSetFocus = "_this call ace_zeus_fnc_ui_vehCargo"
*
* Public: No
*/
2016-02-26 07:37:00 +00:00
#include "script_component.hpp"
params ["_control"];
TRACE_1("params",_control);
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);
_control ctrlRemoveAllEventHandlers "setFocus";
2016-02-26 07:37:00 +00:00
{
(_control controlsGroupCtrl 80086) lbAdd (str _x);
2016-02-26 07:37:00 +00:00
} forEach _loaded;