Jump to content

Recommended Posts

How to draw the circle using method from wManager Radar drawcircle ( I know how to draw a circle on the screen) but I have problem to make it permanent ( wanna make a permanent trail on the map for creating the best gathering route ). So how to make that circle permanent like when the 3d radar is on? ( orange circles and lines ). Is there an easy solution to do that? If I use the method once it will only blink and if I use it in loop after some time wrbot will crash ^^.

Link to comment
https://wrobot.eu/forums/topic/5471-directx-draw/
Share on other sites

3 minutes ago, forerun said:

How to draw the circle using method from wManager Radar drawcircle ( I know how to draw a circle on the screen) but I have problem to make it permanent ( wanna make a permanent trail on the map for creating the best gathering route ). So how to make that circle permanent like when the 3d radar is on? ( orange circles and lines ). Is there an easy solution to do that? If I use the method once it will only blink and if I use it in loop after some time wrbot will crash ^^.

Do you have any exception? Maybe a threading issue? Normaly you need to call the method for each frame (loop)

Link to comment
https://wrobot.eu/forums/topic/5471-directx-draw/#findComment-25112
Share on other sites

Hello,

        // remove all landmarks by ID
        wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Remove("MyCircleId");
        // Add landmarks
        wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Add(new MiniMapGenerator.LandmarkMiniMap(new Vector3(1, 2, 3), "MyCircleId", Color.Red));
        wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Add(new MiniMapGenerator.LandmarkMiniMap(new Vector3(1, 2, 3), "MyCircleId", Color.Red));

You don't need to run this code on all frame, by only one time (or when you want to change/add/remove position)

Link to comment
https://wrobot.eu/forums/topic/5471-directx-draw/#findComment-25236
Share on other sites

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
×
×
  • Create New...