Unfortunatly not all NHeat UI screens' layout is defined by a LYT file - Multiplayer Chat screen
doesn't have a correspondend LYT file; it's layout is hardcoded, so it cannot be edited
Neither is all items' definitions defined in the correspondend LYT file in any case. Garage screen
is the other "special" screen that is treated different than all the others. It has some items that
came in later on by patches and which's definitions are hardcoded (5th,6th gear for example).
These items cannot be moved, nor in any way changed. You'll have to work around this limit.
Actually Garage is very special. Seems like the developers had first worked out some
entirely different Garage screen layout, but skipped this - and some setup options all along.
First Garage screen layout was this:
You'll notice there's 8 tabulator functions instead of 6, and there's for example
some ride adjustment slider on springs tab. There's toe and
rear camber on alignment tab as well, btw.
Obviously there's more options than implemented in default Garage layout. Actually there's
- front toe (= f_toe) adjustment
- rear toe (= r_toe) adjustment
- rear left camber (= lr_camber) adjustment
- rear right camber (= rr_camber) adjustment
- front ride (= f_ride) adjustment
- rear ride (= r_ride) adjustment
- fuel load (=fuel_level) adjustment
that cannout be found with default Garage layout, though Heat handles those parameters. Now these
would be some options that we would like to add to the Garage layout
|
|
Let's show how to put in ride,toe and rear camber to GroupC Garage screen
as an example, as that mod screen's LYT file has not been edited up to now. It's the LYT that
comes shipped with original NHeat.
Load garage2.lyt to the hex editor. We want to add 6 screen items:
- front toe (= f_toe) to camber tab (= tab 04)
- rear toe (= r_toe) to camber tab (= tab 04)
- rear left camber (= lr_camber) to camber tab (= tab 04)
- rear right camber (= rr_camber) to camber tab (= tab 04)
- front ride (= f_ride) to springs tab (= tab 02)
- rear ride (= r_ride) to springs tab (= tab 02)
All of these additional items are type 09 (= adjustment spinners); every item's definitions
will require 100 additional bytes for GARAGE2.LYT. That's all information we need to have. First
we'll have to append 600 bytes to the file.
Once this is done, the end of garage layout definitions has to be moved to the new end of file.
Next we can add the new items' definitions according to description on previous page.
Start the mod to check if the new adjustment sliders show up how and where they are intended
to do so. Notice that the screen background had to be updated as well to make the new
items show up nicely.
Fuel Load Adjustment can be put in exactly the same way, as could be additional tabs, images,
text, etc.
Here's the advanced Garage2.lyt for download. Be aware this is
just a rather quick hack to get in the functions.
|
[ UI: Advanced Options ] |
|
|