mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
510 B
Plaintext
28 lines
510 B
Plaintext
/*
|
|
* 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
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
disableSerialization;
|
|
params ["_filter", "_index"];
|
|
|
|
GVAR(selectedFilterIndex) = _index;
|
|
|
|
[{
|
|
disableSerialization;
|
|
params ["_display"];
|
|
|
|
[_display] call FUNC(forceItemListUpdate);
|
|
}, [ctrlParent _filter]] call CBA_fnc_execNextFrame;
|