mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
bca8b01860
* Add search to teleport players UI * Change group side icons to look better * Improve teleport UI and add stringtable entries * Add Assign Repair Vehicle module * Add Assign Repair Facility module * Add Assign Engineer module * Add Full Heal module * Add Suicide Bomber module * Make heal module work without ace_medical * Add suicide bomber module translations * Improve attribute cargo to use displayName * Improve set engineer ui * ACE_Curator for repair modules + author array * Add angle param to getModuleDestination * Prevent multiple suicide bomber modules on same target * Heal module: support BI scripted revive system * Requested changes
37 lines
903 B
Plaintext
37 lines
903 B
Plaintext
/*
|
|
* Author: PabstMirror, mharis001
|
|
* 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";
|
|
|
|
private _listbox = _control controlsGroupCtrl 80086;
|
|
|
|
{
|
|
private _class = if (_x isEqualType "") then {_x} else {typeOf _x};
|
|
private _displayName = getText (configFile >> "CfgVehicles" >> _class >> "displayName");
|
|
_listbox lbAdd _displayName;
|
|
} forEach _loaded;
|