123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- private ["_pos","_markerIcon","_texture1","_markerSize","_texture2","_markerDir","_dir","_text","_align"];
- _pos = _this select 0;
- _color = cTabColorRed;
- _markerIcon = _this select 1;
- _texture1 = call {
- if (_markerIcon == 0) exitWith {"\A3\ui_f\data\map\markers\nato\o_inf.paa"};
- if (_markerIcon == 1) exitWith {"\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"};
- if (_markerIcon == 2) exitWith {"\A3\ui_f\data\map\markers\nato\o_motor_inf.paa"};
- if (_markerIcon == 3) exitWith {"\A3\ui_f\data\map\markers\nato\o_armor.paa"};
- if (_markerIcon == 4) exitWith {"\A3\ui_f\data\map\markers\nato\o_air.paa";};
- if (_markerIcon == 5) exitWith {"\A3\ui_f\data\map\markers\nato\o_plane.paa"};
- if (_markerIcon == 6) exitWith {"\A3\ui_f\data\map\markers\nato\o_unknown.paa"};
- if (_markerIcon == 7) exitWith {"\ClonecTab\img\o_inf_rifle.paa"};
- if (_markerIcon == 8) exitWith {"\ClonecTab\img\o_inf_mg.paa"};
- if (_markerIcon == 9) exitWith {"\ClonecTab\img\o_inf_at.paa"};
- if (_markerIcon == 10) exitWith {"\ClonecTab\img\o_inf_mmg.paa"};
- if (_markerIcon == 11) exitWith {"\ClonecTab\img\o_inf_mat.paa"};
- if (_markerIcon == 12) exitWith {"\ClonecTab\img\o_inf_mmortar.paa"};
- if (_markerIcon == 13) exitWith {"\ClonecTab\img\o_inf_aa.paa"};
- _color = cTabColorGreen;
- if (_markerIcon == 20) exitWith {"\A3\ui_f\data\map\markers\military\join_CA.paa"};
- if (_markerIcon == 21) exitWith {"\A3\ui_f\data\map\markers\military\circle_CA.paa"};
- if (_markerIcon == 22) exitWith {"\A3\ui_f\data\map\mapcontrol\Hospital_CA.paa"};
- if (_markerIcon == 23) exitWith {"\A3\ui_f\data\map\markers\military\warning_CA.paa"};
- _color = cTabColorBlue;
- if (_markerIcon == 30) exitWith {"\A3\ui_f\data\map\markers\nato\b_hq.paa"};
- if (_markerIcon == 31) exitWith {"\A3\ui_f\data\map\markers\military\end_CA.paa"};
- ""
- };
- _markerSize = _this select 2;
- _texture2 = call {
- if (_markerSize == 0) exitWith {""};
- if (_markerSize == 1) exitWith {"\A3\ui_f\data\map\markers\nato\group_0.paa"};
- if (_markerSize == 2) exitWith {"\A3\ui_f\data\map\markers\nato\group_1.paa"};
- if (_markerSize == 3) exitWith {"\A3\ui_f\data\map\markers\nato\group_2.paa"};
- if (_markerSize == 4) exitWith {"\A3\ui_f\data\map\markers\nato\group_3.paa"};
- ""
- };
- _markerDir = _this select 3;
- _dir = call {
- if (_markerDir == 0) exitWith {400};
- if (_markerDir == 1) exitWith {0};
- if (_markerDir == 2) exitWith {45};
- if (_markerDir == 3) exitWith {90};
- if (_markerDir == 4) exitWith {135};
- if (_markerDir == 5) exitWith {180};
- if (_markerDir == 6) exitWith {225};
- if (_markerDir == 7) exitWith {270};
- if (_markerDir == 8) exitWith {315};
- 700
- };
- _text = _this select 4;
- _align = if ((_dir > 0) && (_dir < 180)) then {"left"} else {"right"};
- [_pos,_texture1,_texture2,_dir,_color,_text,_align]
|