SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-27-10, 09:42 AM   #1
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by TheDarkWraith View Post
the MapControl controller controls this. Haven't found a way to make it change the zoom level at which it switches (set at second to last and appears hard coded)
Quote:
Originally Posted by Sonarman View Post
If the compass is not scalling properly maybe it would be possible to scale it manually to the correct size in Photoshop and use a different image for each level of zoom? That might actually produce better results anyway as it maybe better/sharper than the games inbuilt scaling engine?
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)
reaper7 is offline   Reply With Quote
Old 04-27-10, 09:53 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
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
Old 04-27-10, 09:57 AM   #3
Defiance
Grey Wolf
 
Join Date: Apr 2005
Location: UK
Posts: 906
Downloads: 673
Uploads: 0
Default

It just gets better n better

Cheers
__________________
Have Fun

Bye

Def
Defiance is offline   Reply With Quote
Old 04-27-10, 10:04 AM   #4
Sonarman
The Old Man
 
Join Date: Mar 2002
Location: Ayr,Scotland,UK
Posts: 1,396
Downloads: 79
Uploads: 0
Default

Reaper wrote: "After all the TAI Map gives us a distance scale, just need to create the bearing to that scale for each level"

Another snag is that the distance scale on the TAI is currently incorrect measure it with the ruler tool to check and you'll see what I mean. can the distance scale be corrected or is it hardcoded into the map controller?
__________________
"The action is simulated...the excitement is real!"
Microprose Simulation Software.
Sonarman is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.