View Single Post
Old 10-29-20, 01:49 AM   #1
SeniorChiefChef
Swabbie
 
Join Date: Apr 2017
Location: Virginia
Posts: 13
Downloads: 41
Uploads: 0
Icon14 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:


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?
__________________
Defendi rempublicam adulescens, non deseram senex.


Last edited by SeniorChiefChef; 11-02-20 at 01:19 AM. Reason: Spelling.
SeniorChiefChef is offline   Reply With Quote