2015-03-28 01:51:30 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* When the shape list box is changed.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Shape ListBox (idc 1210) <CONTROL>
|
|
|
|
* 1: Selected Index <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [ColorLB, 5] call ace_markers_fnc_onLBSelChangedShape;
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-18 16:17:06 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-03-28 04:24:11 +00:00
|
|
|
private ["_data", "_config"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-03-28 01:51:30 +00:00
|
|
|
PARAMS_2(_ctrl,_index);
|
|
|
|
_data = _ctrl lbValue _index;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-03-28 01:51:30 +00:00
|
|
|
GVAR(curSelMarkerShape) = _index;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_config = (configfile >> "CfgMarkers") select _data;
|
|
|
|
|
2015-01-20 04:49:28 +00:00
|
|
|
GVAR(currentMarkerConfigName) = (configName _config);
|