View Single Post
Old 03-20-10, 07:05 PM   #108
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

Quote:
Originally Posted by karamazovnew View Post
This is simply amazing.... It's quite surprising that 5 years on, someone still comes with a breakthrough regarding SH3. Well, a word about what to do now.

As you all know, all SH games have their interface limited to a 1024*768 space. SH4 and SH5 allow to scale up items in different modes. This thread explains how they do it: http://www.subsim.com/radioroom/showthread.php?t=163118

SH3 however, with this mod, will always scale the interface in a constantAspectRatioVertical style. The left side of the screen, a box in 4:3 format will always look ok, but you'll get "empty usable" space to the right of the screen. The amount of usable space depends on the aspect ratio of the monitor. In other words, 16:10 (1920x1200) resolutions will have less space than 16:9 resolutions (1920x1080).

UI modders will now have the following spaces to work with:

- 4:3 resolutions 1024*768 box, just as before (1024=768*4/3)
- 16:10 resolutions 1228*768 (1228=768*16/10)
- 16:9 resolutions 1365*768 (1365=768*16/9)

Making one interface for all aspect types is IMPOSSIBLE. However, it's easy to convert a 16:9 interface to a 16:10 because the difference is small.

How to do a quick and fast centering on the screen? First of all, all vertical positions are the same as before, nothing has changed.
Here's one example of a page:

[G01 I1]
Name=Page shell
Type=1027;Menu page
ItemID=0x1000000
ParentID=0x0
Pos=0,0,0,0
LoadingMode=2

It starts from the left side of the screen and we want to move it in the center. The "old" center had X=512 (or 1024/2). The new center depends on the aspect ratio, for 16:10 resolutions, X=614 (or 1228/2). This means that you only need to move each page 102 pixels to the right:

[G01 I1]
Name=Page shell
Type=1027;Menu page
ItemID=0x1000000
ParentID=0x0
Pos=102,0,0,0
LoadingMode=2

Of course, you'll now end up with empty bands on both sides of the screen.
Thus, we need to think ahead, leave all pages as they currently are. What we DO need is this:
Divide all items into 3 categories:
- glued to the left of the screen (X position will not change)
- glued to the right of the screen (X position should change by 204 pixels for 16:10 res)
- glued to the center (X position should change by 102 pixels for 16:10 res)

So...
1. We must create MASTER (left, center, right) groups inside each page and place each item inside. Luckily the entire interface has already been carved up in big groups so most of the interface will only require you to reparent just a few groups.
2. We can now make multiple interfaces for all aspect ratios just by moving the left and right master groups.
3. "SOME" items will require multiple TGA versions. I'm talking of course about all backgrounds. These are actually glued to the Left of the screen.

Sounds easy actually. But we DO have 4-5 major interfaces for sh3.. so which one should we start with first? I opt for ACM
Hi mate,

Well, after some days working on this new mod I can say that things are a bit more complicated - unless we just work with a 1360x768 for example. Any resolution above this one (768 is the magic number here) will need to also adjust all things on the menu_1024 (and also some tgas) in itīs vertical too. And we also have that "hardcoded" pages as exposed in the post above.

The first formed group (well ,yet in formation - itīs openned for any one that have some knowledge on menu_1024) that is already working on this mod have a basic goal to make a quick release of a basic WS adapted interface - probably stock GWX3.0 - to be presented to the community, also with a "make it your self" guide, this way anyone will be able to adapt it to his own menu_1024/cameras.dat (these two files are just basic ones to adjust this mod correctly and obviously we have infinite versions here in this community). The resolutions shall be probably 1360x768, just because itīs the major one that uses that magic "768" making things a lot easier and quick. All monitors can just rescale it automatically then. The idea is that we will provide our basic finds/tricks on the work, to make things easier for anyone after that to adapt it to any GUI, etc (or even for new resolutions).

What do you think?
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote