mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cb52ac18c9
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"]
18 lines
406 B
Plaintext
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);
|