ACE3/addons/zeus/functions/fnc_ui_attributeCargo.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

34 lines
696 B
Plaintext

/*
* 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
*
* Example:
* [CONTROL] call ace_zeus_fnc_ui_attributeCargo
*
* Public: No
*/
#include "script_component.hpp"
params ["_control"];
TRACE_1("params",_control);
private _veh = GETMVAR(BIS_fnc_initCuratorAttributes_target,objNull);
TRACE_1("",_veh);
private _loaded = _veh getVariable [QEGVAR(cargo,loaded), []];
TRACE_1("",_loaded);
_control ctrlRemoveAllEventHandlers "setFocus";
{
(_control controlsGroupCtrl 80086) lbAdd (str _x);
} forEach _loaded;