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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-14-13, 08:07 AM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Silent Steel View Post
When I open the .cfg files of a certain set of tools up there are several values for multiple objects like Square, Compass, Course, Eraser, Highlight and so on.
Then I open the various .tga files of each set of tools just to find most of them look the same...
Sorry Silent Steel, I should have mentioned that most of the 'extended' map tools are identical. To fully understand their texture files you should enable their alpha channel, which contains all the detail: markings, crosshair, etc.

Quote:
Originally Posted by Silent Steel View Post
So - how to know which one of them values in the .cfg I should adjust to get the e.g. compass to move to a certain place where I want a it to sit on the map...?
Think of the XO/YO values in the cfg file as the horizontal/vertical offset of each tool's origin (from where lines start being drawn), respective to top left corner of its own texture. Let's say that we have a 512 x 512 pixels texture. Setting its offsets to 0,0, would mean that the origin will be located at the top left corner; 512,512, on turn, means "start drawing from the bottom right corner"; finally, 256,256 places the origin at the center of the texture (note that this is not necessarily the exact crosshair's center, but it should get close)
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
 


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 08:49 PM.


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.