ACE3/addons/markers/functions/fnc_onLBSelChangedChannel.sqf
Kentaro Hayashida c3f442ffa7
Markers - Use lbData for channel selection (#9693)
* Change channel based on lbData instead of index

* Add author
2023-12-30 23:17:22 -03:00

25 lines
539 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2, LinkIsGrim, Avokadomos
* When the channel list box is changed.
*
* Arguments:
* 0: Channel ListBox (idc 103) <CONTROL>
* 1: Selected Index <NUMBER>
*
* Return Value:
* None
*
* Example:
* [CONTROL, 5] call ACE_markers_fnc_onLBSelChangedChannel
*
* Public: No
*/
params ["_ctrl", "_index"];
TRACE_2("params",_ctrl,_index);
private _enabledChannels = false call FUNC(getEnabledChannels);
setCurrentChannel (_enabledChannels select parseNumber (_ctrl lbData _index));