Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MiniMapGenerator.MinimapImage

Featured Replies

I'm wondering if I can create my own instance of the Map that's built into WRobot. I want to manually be able to focus it to a place but I'm not sure how to add it into a window. @Droidz 
When playing around I did something like this:

MiniMapGenerator.MinimapImage map = new MiniMapGenerator.MinimapImage("Eastern Kingdoms", 200, 200, (int)npc.PositionX - 100, (int)npc.PositionX + 100, (int)npc.PositionY - 100, (int)npc.PositionY + 100);
MiniMapGenerator.LandmarkMiniMap b = new MiniMapGenerator.LandmarkMiniMap(new robotManager.Helpful.Vector3(npc.PositionX, npc.PositionY, npc.PositionZ), "1234", System.Drawing.Color.Purple);
MiniMapGenerator.LandmarksMiniMap c = new MiniMapGenerator.LandmarksMiniMap();
c.Add(b);
map.Generate();

Any ideas?

Edited by Marsbar

Hello, I think it is more easy to use " MiniMapGenerator.PathImage", sample:

        void RefreshMap(object objs)
        {
            try
            {
                var prm =(List<double>) objs;
                double zoom = prm[0];
                double actualWidth = prm[1];
                double actualHeight = prm[2];

                lock (_lockShowMap)
                {
                    var landmarksMiniMapCache = GenerateLandmarks(zoom);

                    var image = new MiniMapGenerator.PathImage(Usefuls.ContinentNameMpq, ObjectManager.ObjectManager.Me.Position, landmarksMiniMapCache, (float)zoom);
                    image.Generate(actualWidth, actualHeight);
                    if (image.Result != null)
                    {
                        // Save img:
                        if (!string.IsNullOrWhiteSpace(_saveTo))
                        {
                            try
                            {
                                image.Result.Save(_saveTo, ImageFormat.Jpeg);

                            }
                            catch { }
                            _saveTo = "";
                        }
                        // Show img:
                        var hbmp = image.Result.GetHbitmap();
                        try
                        {
                            var ret = Imaging.CreateBitmapSourceFromHBitmap(hbmp, IntPtr.Zero, Int32Rect.Empty,
                                                                            BitmapSizeOptions.FromEmptyOptions());
                            ret.Freeze();
                            Dispatcher.Invoke(DispatcherPriority.Background, new Action(() => MapImage.Source = ret));
                            //Dispatcher.BeginInvoke(
                            //                       DispatcherPriority.Send,
                            //                       new Action(() =>  MapImage.Source = null));
                            //Dispatcher.BeginInvoke(
                            //                        DispatcherPriority.Send,
                           //                         new Action(() => MapImage.Source = ret));
                        }
                        finally
                        {
                            DeleteObject(hbmp);
                        }
                    }
                    image.Dispose();
                }
            }
            catch
            {
            }
        }

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.