2023-09-12 18:58:10 +00:00
|
|
|
#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
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2024-01-06 21:26:46 +00:00
|
|
|
* [CONTROL, 5] call ace_inventory_fnc_onLBSelChanged
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
2015-12-11 12:14:58 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2015-12-11 00:02:15 +00:00
|
|
|
|
|
|
|
disableSerialization;
|
2024-01-06 21:26:46 +00:00
|
|
|
|
2015-12-11 00:02:15 +00:00
|
|
|
params ["_filter", "_index"];
|
|
|
|
|
|
|
|
GVAR(selectedFilterIndex) = _index;
|
|
|
|
|
2024-01-06 21:26:46 +00:00
|
|
|
// Force update
|
|
|
|
[LINKFUNC(forceItemListUpdate), ctrlParent _filter] call CBA_fnc_execNextFrame;
|