ACE3/addons/markers/functions/fnc_onLBSelChangedShape.sqf
PabstMirror cb52ac18c9 Send marker configNames instead of index
Upstream fix from AGM
If CfgMarkers don't match, will throw warning:
22:46:53
[3896,74.535,0,"z\ace\addons\markers\functions\fnc_setMarkerNetwork.sqf:11","WARNING:
CfgMarker not found changed to milDot"]
2015-01-19 22:49:39 -06:00

18 lines
406 B
Plaintext

// by commy2
#include "script_component.hpp"
private ["_ctrl", "_data", "_config", "_icon"];
_ctrl = _this select 0;
_data = _ctrl lbValue (_this select 1);
GVAR(curSelMarkerShape) = _this select 1;
_config = (configfile >> "CfgMarkers") select _data;
_icon = getText (_config >> "icon");
((ctrlParent _ctrl) displayCtrl 102) ctrlSetText _icon;
GVAR(currentMarkerConfigName) = (configName _config);