[DoN] El Toro [dk]

Map Legend

3 posts in this topic

Well most of us, are making custom trades, and some are even making hole Trader towns...

But, is there a way to make a Legend for those Icons we are all posting on our maps, to show what is what... DMS has a small one in the left corner of the map... but something like that.... but with all those crazy "unit types"...

Spoiler

if (DMS_ShowDifficultyColorLegend) then
    {
        private "_title";
        _title = createmarker ["DMS_MissionMarker_DifficultyColorLegend",[-500,-200]];
        _title setMarkerColor "ColorRed";
        _title setmarkertext "DMS Mission Difficulties Color Legend";
        _title setMarkerType "mil_dot";
        _title setMarkerAlpha 0.5;
        {
            private ["_difficulty", "_color", "_num", "_pos", "_circle", "_dot"];

            _difficulty = _x;
            switch (_difficulty) do
            {
                case "easy":         {_color = "ColorGreen";};
                case "moderate":     {_color = "ColorYellow";};
                case "difficult":     {_color = "ColorRed";};
                case "hardcore" :     {_color = "ColorBlack";};
            };

            _num = -200 * (_forEachIndex - 0.5);
            _pos = [100,_num];

            _circle = createMarker [format ["DMS_MissionMarker_DifficultyColor_%1",_color], _pos];
            _circle setMarkerColor _color;
            _circle setMarkerShape "ELLIPSE";
            _circle setMarkerBrush "Solid";
            _circle setMarkerSize [100,100];

            _dot = createMarker [format ["DMS_MissionMarker_Difficulty_%1",_difficulty],_pos];
            _dot setMarkerColor "ColorWhite";
            _dot setMarkerType "mil_dot";
            _dot setMarkerAlpha 0.5;
            _dot setMarkerText _difficulty;
        } forEach ["hardcore","difficult","moderate","easy"];
    };

https://community.bistudio.com/wiki/cfgMarkers

Edited by [DoN] El Toro [dk]

Share this post


Link to post
Share on other sites

I have always just made markers via mission.sqm

Spoiler

                class Item1
		{
			dataType="Marker";
			position[]={5000.2788,4.3537265e+009,1059.774};
			name="GroupDetails";
			text="Community:  URL";
			type="loc_BusStop";
			id=13;
			atlOffset=4.3537265e+009;
		};
		class Item2
		{
			dataType="Marker";
			position[]={5000.2871,4.3537265e+009,759.77399};
			name="TS3Details";
			text="TeamSpeak3:  URL";
			type="loc_Transmitter";
			id=14;
			atlOffset=4.3537265e+009;
		};
		class Item3
		{
			dataType="Marker";
			position[]={5000.3281,4.3956695e+009,459.61099};
			name="adminDetails";
			text="Admins:  Name | Name | Name";
			type="o_hq";
			colorName="ColorWhite";
			a=0.80000001;
			b=0.80000001;
			id=15;
			atlOffset=4.3956695e+009;
		};
		class Item4
		{
			dataType="Marker";
			position[]={5000.2568,712196.75,1359.7629};
			name="ServerDetails";
			text="Server: Server Name";
			type="n_recon";
			colorName="ColorWhite";
			a=0.94999999;
			b=0.94999999;
			id=16;
			atlOffset=712227.88;
		};

 

these positions are what i use for chernarus map, but you can easily add via eden and then drag them to where you want them to appear.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.