ACE3/addons/markers/functions/fnc_onLBSelChangedShape.sqf

18 lines
406 B
Plaintext
Raw Normal View History

// by commy2
2015-01-18 16:17:06 +00:00
#include "script_component.hpp"
private ["_ctrl", "_data", "_config", "_icon"];
_ctrl = _this select 0;
_data = _ctrl lbValue (_this select 1);
2015-01-18 16:17:06 +00:00
GVAR(curSelMarkerShape) = _this select 1;
_config = (configfile >> "CfgMarkers") select _data;
_icon = getText (_config >> "icon");
((ctrlParent _ctrl) displayCtrl 102) ctrlSetText _icon;
GVAR(currentMarkerConfigName) = (configName _config);