![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
08-10-25, 04:53 PM
|
#11 |
|
Engineer
![]() |
Hope this helps, though it's been a while since I really went over any of this in any detail. I need to refresh my memory since I'm still working on the RecMan, but here it goes as best I remember going in "cold", as it were:
[G4B I1] Name=Page Gramophone Type=1027;Menu page ItemID=0x4B000000 <-- This is the "child" serial number or specific ID. Notice the "0x4B...." serialization. The "page" is "G4B", so it's a hex number here. There are some good websites that can convert back and forth between "normal" and "hex" if you want to add more "children" items to existing pages. The "item" here is "I1" and the serial means it's the first item. If you wanted to add another "item" it would be "I2" and the next serial would be ItemID=0x4B000001, if I remember correctly. ParentID=0x0 <-- This is the "parent" serial number or specific ID. In this case, "0x0" means it's "parent" is the main page, which is normally "1024x768" regardless of the screen resolution. Pos=0,0,1024,768 <-- This tells the sim that the "origin" (top-left corner) is the top-left corner of the "child", and that the size of the "child" is "1024x768". In other words, it's basically the whole screen. Zone= 0 768 1024 768 2 1 0x0 0.1 0 0x4B000000 -0.5 0 0 0 <-- This "positions" the "child" window (gramaphone) ACTUALLY to the top of the "parent" since the "zone" (which is required) is the way SH4 allows the various resolutions. Unfortunately, it also has the "origin" at the BOTTOM of the screen instead of the TOP of the screen. As a result, you have to move the "child" up the entire length of the "parent" to get it to the top-left corner (0 768 in this case). The next two numbers are the size of the "child" in relation to the "parent" (same in this case). The number "2" in this case may well be changed to "1" and it may actually get things to "fit" in your resolution since I THINK/REMEMBER that "1" is "vertical", "2" is "horizontal", and "5" is "proportional" (think "round" stuff) for display. LoadingMode=1 <-- Can't remember off the top of my head. Just don't touch for now. The numbers just before serial in the "Zone" line are where to position the "child" in relation to the "parent" expressed in "percentage" -- in this case, 0.1 0 means moving the "child" 10% to the right and no movement in the vertical. The "parent" is just to the left of the movement commands, so in this case it's "0x0". The numbers just after the "Zone" line are "fine tuning" numbers where you now use the size of the "child" to position it even further. In this case, you are moving the child "left" by 50% (negative numbers are left/down; positive are right/up) and no vertical movement. The last two numbers (0 0) are actually pixels that you would be moving for even finer tuning of the position. The main issue using these two numbers is that different resolutions would mean different values, so mostly these are left at "0 0" by most mods. So basically, the gramaphone in this case is moved 10% to the right using the main page for reference, then left by half the gramaphone page's size. No vertical movement is done and it should be flush with the top of the screen. There are some really good tutorials on here, but it DOES take a while to wrap your head around the way SH4 deals with windows compared to SH3. Also, you can't really "add" windows or "images" like you could in SH3 either. You can modify existing stuff to your heart's content by adding and subtracting content of one form or another from existing (i.e. stock) windows, but not really ADD a window or just drop an image into the thing like before. No more "tools" that you could just place on the edge of the nav-map and drag all over the place. That's why the nomometers are now part of the overlay or image with the map sliding underneath. On the other hand, you can make some really nice changes and mods with the "Zone" line as long as you keep to the "system" they came up with at the devs, but that's another issue. ![]() I really wish I had more time to spend working on things, but as it is I've spent most of the time I have today just trying to explain this. I REALLY need a vacation. ![]() ElCid97 |
|
|
|
|
