ACE3/TO_MERGE/ace/sys_maptools/fnc_DeSelectLine.sqf

20 lines
684 B
Plaintext
Raw Normal View History

//DeSelectLine.sqf
#include "script_component.hpp"
switch (GVAR(SelectedType)) do {
case 1: {
_line = GVAR(RulerLines) select GVAR(SelectedLine);
(_line select 1) setMarkerSizeLocal [0, (getMarkerSize (_line select 1)) select 1];
};
case 2: {
_line = GVAR(RulerLines) select GVAR(SelectedLine);
_lineCount = _line select 2;
if(!(isNil "_lineCount")) then {
for "_x" from 0 to _lineCount do {
_marker = format["%3_freehand_%1_%2", GVAR(SelectedLine), _x, QUOTE(ADDON)];
_marker setMarkerSizeLocal [0, (getMarkerSize _marker) select 1];
};
};
};
default {};
};