SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter III (https://www.subsim.com/radioroom/forumdisplay.php?f=182)
-   -   menu_1024_768 Math: Navigation Map-Tools Placement (https://www.subsim.com/radioroom/showthread.php?t=247159)

SeniorChiefChef 10-29-20 01:49 AM

menu_1024_768 Math: Navigation Map-Tools Placement
 
Hi, guys.

So I'm very close to getting a handle on how the tools on the Navigation Map (Group/Page [G31 I20]) are placed, but the the "math" is just throwing me off.

NB: I'm using the ARBWideGUI1920x1080 mod.

Code:

[G31 I20]
Name=Buttons
Type=1026;Menu group
ItemID=0x311A0000
ParentID=0x31000000
Pos=630,1137,414,42

So, according to the Pos parameter, the location on screen of the 414x42px Menu Group (the group containing the map tools) is 630px right, and 1137px down, so right 630px and down 57px (1137 - 1080 = 57), off screen.

After many many screenshots of the map in-game, using GIMP, and playing with the numbers .... I zeroed out the Menu Group in the vertical ...

Code:

Pos=140,0,414,42;                  That's 140px right, and 0px up/down.
... and moved each of the tools to a vertical (X?) pos of 100, e.g.:

Code:

[G31 I21];                  the "sharpener", i.e. the Tool Helper
Name=Help
Type=1033;Check box
ItemID=0x311A000A
ParentID=0x311A0000
Pos=212,100,160,80;          212px right, and 100px up/down(?).

... And here's what I ended up with in-game:
https://i.ibb.co/QnW0Dn8/map-tool-zero-vert-pos.jpg

The guide shows that all of the maps tools are at 980px from the top.

So, the long and the short of it is, if the vertical pos of the Group is zero (0) how is 100 placing the tools at 980px and not 100px? :hmmm:

klh 10-29-20 07:54 AM

The y coordinates are from the bottom. You placed the menu group reference point at y=0 (the bottom of the screen). Then you set the items at y=100px (also from the bottom). So the items' top right corner is at 980px from the top (assuming you have a 1080p monitor).

The coordinate system in SH3 is a little screwy sometimes, but you'll get used to it.

SeniorChiefChef 11-01-20 01:45 PM

Thank You.
 
Thanks, klh.

Here's what I've done with that knowledge: :up:

My Nav Map layout:

https://i.ibb.co/S5hgsLr/sh3-my-nav-map-layout.png

My Attack Map layout:

https://i.ibb.co/vzXqZvF/sh3-my-attack-map-layout.png

John Pancoast 11-02-20 06:44 AM

Quote:

Originally Posted by SeniorChiefChef (Post 2704230)
Thanks, klh.

Here's what I've done with that knowledge: :up:

My Nav Map layout:



My Attack Map layout:




That WW2 history you have in your signature is great !! :haha::haha::haha:

klh 11-02-20 10:47 AM

Quote:

Originally Posted by SeniorChiefChef (Post 2704230)
Thanks, klh.

Here's what I've done with that knowledge: :up:

My Nav Map layout:

https://i.ibb.co/S5hgsLr/sh3-my-nav-map-layout.png

My Attack Map layout:

https://i.ibb.co/vzXqZvF/sh3-my-attack-map-layout.png

Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!

Pisces 11-02-20 12:16 PM

Quote:

Originally Posted by John Pancoast (Post 2704353)
That WW2 history you have in your signature is great !! :haha::haha::haha:

I call your "Great" and raise it to "Awesome!" :Kaleun_Applaud:

SeniorChiefChef 11-03-20 09:12 AM

Quote:

Originally Posted by Pisces (Post 2704447)
I call your "Great" and raise it to "Awesome!" :Kaleun_Applaud:

I forget from where I stole it. :haha:

SeniorChiefChef 11-03-20 09:19 AM

It's True!
 
Quote:

Originally Posted by klh (Post 2704413)
Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!

Quote:

Originally Posted by klh (Post 2704413)
Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!

LOL. It's true--I've spent more time modding than playing!

I just finished adding a red highlight to the 1500m mark on the Range Dial.

I've figured out where to re-activate the Torpedo Tube numbers on the Attack Scope Tube Selector.

I see that on the Attack Map, the numbers on Tube Selector alternate between single and multiple tubes depending on if in single or salvo mode, as expected. And the Selector animates!

Next up is figuring out how to get the Tube Selector on the Attack Scope TDC to do the same thing. Any chance you can point me toward the right file?

diego_gut 11-03-20 02:10 PM

I don't think that is possible but if you find out how to do it please share it.

klh 11-03-20 10:13 PM

Quote:

Originally Posted by SeniorChiefChef (Post 2704629)
I see that on the Attack Map, the numbers on Tube Selector alternate between single and multiple tubes depending on if in single or salvo mode, as expected. And the Selector animates!

Next up is figuring out how to get the Tube Selector on the Attack Scope TDC to do the same thing. Any chance you can point me toward the right file?

I've tried as have many others, but it appears that the attack map selectors behavior is hard-coded into the game engine. If you figure out a way, please let everyone know.

What I have done in my GUI is to separate the single and salvo selectors into two dials. This is historical, although it does take up more space.


All times are GMT -5. The time now is 08:00 PM.

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