ACE3/addons/inventory/functions/fnc_onLBSelChanged.sqf

31 lines
579 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-12-11 12:14:58 +00:00
/*
* Author: commy2
* Executed when the filter list box is changed.
* Sets new filter list index.
*
* Arguments:
* 0: Filter list box <CONTROL>
* 1: Filter list index <NUMBER>
*
* Return Value:
* None
*
* Example:
* [CONTROL, 5] call ACE_inventory_fnc_onLBSelChanged
*
2015-12-11 12:14:58 +00:00
* Public: No
*/
2015-12-11 00:02:15 +00:00
disableSerialization;
params ["_filter", "_index"];
GVAR(selectedFilterIndex) = _index;
[{
disableSerialization;
params ["_display"];
[_display] call FUNC(forceItemListUpdate);
}, [ctrlParent _filter]] call CBA_fnc_execNextFrame;