Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //_map = _this select 0;
- {
- _mapScale = ctrlMapScale (_this select 0);
- _layer = _x select 0;
- _mrkTxt = _x select 1;
- _mrkIcon = _x select 2;
- _mrkRGB = + _x select 3;
- _mrkPos = _x select 4;
- _mrkW = _x select 5;
- _mrkH = _x select 6;
- _mrkTxtSize = _x select 7;
- _mrkFont = _x select 8;
- _align = _x select 9;
- _shadow = _x select 10;
- _mrkA = switch (_layer) do {
- case "NONE": { 1 };
- case "TOP": { 1 - (_mapScale -1.45 ) ^30 };
- case "MID": { 1 - (_mapScale *18 ) ^10 };
- case "LOW": { 1 - (_mapScale *4 -115 ) ^40 };
- };
- _mrkRGB pushBack _mrkA;
- _mrkTxtSize2 = _mrkTxtSize/ctrlMapScale (_this select 0);
- if (_mrkA > 0) then
- {
- _this select 0 drawIcon [
- _mrkIcon, // icon
- _mrkRGB, // color: [RGBA]
- _mrkPos, // position [X, Y]
- _mrkW, // width
- _mrkH, // height
- 0, // angle
- _mrkTxt, // text
- _shadow, // shadow
- _mrkTxtSize,// textSize
- _mrkFont, // font
- _align // align
- ];
- };
- } forEach JSD_Drawmapicons_Icons;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement