View Single Post
Old 04-27-10, 09:53 AM   #1167
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by reaper7 View Post
Looks like that may be our only option so. If we create an DDS to correspond to each zoom level, then as we zoom in/out make all the images bar the one we want hidden. Don't see why that wouldn't work.
After all the TAI Map gives us a distance scale, just need to create the bearing to that scale for each level.

Edit: Only snag may be centering it on the sub (Circle/Tails) icon when the map is scrolled around. (Sure its poss)
yes that snag is a valid one. It's doable but it won't be pretty. You'd have to hook into the AnimationStopped of Page Default Hud and tell it to draw the overlay where the sub is located every update. This would be happening every 0.06 second......highly inefficient. We need to find a better way.

just looked into the Page Default Hud.py file to see if there was a way to hook into the zooming/unzooming of the map and there is:

def ZoomInButton_Clicked( sender ):
PageDefaultHud_MapGroup_Mapcontrol.ZoomIn()

def ZoomOutButton_Clicked( sender ):
PageDefaultHud_MapGroup_Mapcontrol.ZoomOut()

As you can see the Mapcontrol controller takes care of everything.......
TheDarkWraith is offline   Reply With Quote