ACE3/addons/markers/functions/fnc_onLBSelChangedChannel.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

25 lines
466 B
Plaintext

/*
* Author: commy2
* 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
*/
#include "script_component.hpp"
params ["_ctrl", "_index"];
TRACE_2("params",_ctrl,_index);
private _channelName = _ctrl lbText _index;
setCurrentChannel (CHANNEL_NAMES find _channelName);