mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
684 B
Plaintext
20 lines
684 B
Plaintext
|
//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 {};
|
||
|
};
|