Standard camera mode.
Moderator: Moderators
Re: Standard camera mode.
Well, if you gave the orders off the mini-map, it'd draw the final commands correctly. On the mini-map, you'd have to alter that Widget to perform the same way. I have no doubt other mini-map Widgets would be screwed up as well, because they assume things that would no longer be true... but you can't make an omelet without breaking a few eggs.
Re: Standard camera mode.
The widgets just issue commands to pointed ground coordinates, which is what would have to be recreated for the minimap. That is the biggest problem I see with making a minimap currently.Argh wrote:Well, if you gave the orders off the mini-map, it'd draw the final commands correctly. On the mini-map, you'd have to alter that Widget to perform the same way. I have no doubt other mini-map Widgets would be screwed up as well, because they assume things that would no longer be true... but you can't make an omelet without breaking a few eggs.
Re: Standard camera mode.
Anyhow, it's basically just doing some offset stuff before you'd send the commands.
If the mouse click occurs within box XZ (i.e., IsAbove(x,y) > blah and < blah2), then offset and return the command.
That's probably the easiest part of doing it, it's just simple rotation of coordinates. You don't need to "redo" it... if you send the command correctly, then it'll show up on the real minimap correctly, and ergo, will show up on your rotated version correctly. You keep thinking that you're going to be drawing a lot. You aren't. What you need to do is intercept commands and rotate them, if issued in the X,Y of the minimap. That is all.
If the mouse click occurs within box XZ (i.e., IsAbove(x,y) > blah and < blah2), then offset and return the command.
That's probably the easiest part of doing it, it's just simple rotation of coordinates. You don't need to "redo" it... if you send the command correctly, then it'll show up on the real minimap correctly, and ergo, will show up on your rotated version correctly. You keep thinking that you're going to be drawing a lot. You aren't. What you need to do is intercept commands and rotate them, if issued in the X,Y of the minimap. That is all.
Re: Standard camera mode.
Yeaaa and other countless hack-arounds, go do it when you think it's so easy.Argh wrote:Anyhow, it's basically just doing some offset stuff before you'd send the commands.
If the mouse click occurs within box XZ (i.e., IsAbove(x,y) > blah and < blah2), then offset and return the command.
That's probably the easiest part of doing it, it's just simple rotation of coordinates. You don't need to "redo" it... if you send the command correctly, then it'll show up on the real minimap correctly, and ergo, will show up on your rotated version correctly. You keep thinking that you're going to be drawing a lot. You aren't. What you need to do is intercept commands and rotate them, if issued in the X,Y of the minimap. That is all.