mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
7f998c3234
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
28 lines
524 B
Plaintext
28 lines
524 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
disableSerialization;
|
|
|
|
params ["_filter", "_index"];
|
|
|
|
GVAR(selectedFilterIndex) = _index;
|
|
|
|
// Force update
|
|
[LINKFUNC(forceItemListUpdate), ctrlParent _filter] call CBA_fnc_execNextFrame;
|