PDA

View Full Version : Help with the Station Slide-out Buttons


warlimont
02-05-08, 02:57 PM
Could someone tell me:

1. Can the order of the top-2-bottom station slide-out buttons be re-arranged
from top to bottom?
2. what file i need to hack?
3. what i need to change and how?

the order i want is;

free view
flak gun
deck gun
bridge
attack periscope
command room
navigation map
tdc
radio & sonar
crew
mission objectives

i'm running
gwx2 with few options added, sh3 cdr, and sh3gen.

Turm
02-07-08, 04:44 AM
I'm not a modder by any stretch of the imagination, but I would take a best guess at the following:

1) Yes, they can

2) menu_1024_768.ini in the "SH3\data\Menu folder" + Shortcuts.tga in the "SH3\data\Menu\Layout" folder

3) Although the image for the buttons appears in one TGA file (which you would need to edit in a graphics app to your desired order), the entries to change in menu_1024_768.ini appear to be this range (taken from the SH3 v1.4b file, as my default GWX file is rather modified by OLC's GUI and my own changes):

[G3F I21]
Name=Group shortcuts
Type=1026;Menu group
ItemID=0x3F020000
ParentID=0x3F000000
Pos=-1,761,56,474
Color=0xFFFFFFFF
HorizSlide=-30

[G3F I22]
Name=&Free camera
Type=1032;Button
ItemID=0x3F02000B
ParentID=0x3F020000
Pos=1,-431,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.841797,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.841797,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.841797,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.841797,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2720

[G3F I23]
Name=&Cycle flak cameras
Type=1032;Button
ItemID=0x3F020006
ParentID=0x3F020000
Pos=1,-388,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.421875,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.421875,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.421875,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.421875,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2715

[G3F I24]
Name=&Deckgun camera
Type=1032;Button
ItemID=0x3F020005
ParentID=0x3F020000
Pos=1,-345,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.337891,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.337891,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.337891,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.337891,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2714

[G3F I25]
Name=&Radio room
Type=1032;Button
ItemID=0x3F020007
ParentID=0x3F020000
Pos=1,-302,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.505859,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.505859,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.505859,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.505859,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2716

[G3F I26]
Name=&Mission orders
Type=1032;Button
ItemID=0x3F02000A
ParentID=0x3F020000
Pos=1,-259,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.757813,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.757813,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.757813,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.757813,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2719

[G3F I27]
Name=&Crew control
Type=1032;Button
ItemID=0x3F020008
ParentID=0x3F020000
Pos=1,-216,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.589844,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.589844,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.589844,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.589844,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2717

[G3F I28]
Name=&TDC
Type=1032;Button
ItemID=0x3F020009
ParentID=0x3F020000
Pos=1,-173,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.673828,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.673828,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.673828,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.673828,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2718

[G3F I29]
Name=&Navigation map
Type=1032;Button
ItemID=0x3F020002
ParentID=0x3F020000
Pos=1,-130,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.0859375,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.0859375,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.0859375,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.0859375,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2711

[G3F I30]
Name=&Bridge
Type=1032;Button
ItemID=0x3F020004
ParentID=0x3F020000
Pos=1,-87,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.253906,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.253906,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.253906,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.253906,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2713

[G3F I31]
Name=&Periscope
Type=1032;Button
ItemID=0x3F020003
ParentID=0x3F020000
Pos=1,-44,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.169922,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.169922,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.169922,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.169922,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2712

[G3F I32]
Name=&Command room
Type=1032;Button
ItemID=0x3F020001
ParentID=0x3F020000
Pos=1,-1,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.00195313,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.00195313,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.00195313,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.00195313,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2710
Taking one as an example, the first one (free cam), you'll need to change this number, for the vertical position of the button - I reckon all other numbers can remain the same:

[G3F I22]
Name=&Free camera
Type=1032;Button
ItemID=0x3F02000B
ParentID=0x3F020000
Pos=1,-431,40,41
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/Shortcuts.tga
Crop 0=0.0078125,0.841797,1,1
Mat 1=data/menu/gui/layout/Shortcuts.tga
Crop 1=0.0078125,0.841797,1,1
Mat 2=data/menu/gui/layout/Shortcuts.tga
Crop 2=0.0078125,0.841797,1,1
Mat 3=data/menu/gui/layout/Shortcuts.tga
Crop 3=0.0078125,0.841797,1,1
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2720

I'm not sure what you should change them to exactly, though :D

However, with a little care it shouldn't be too hard. If you want the free cam at the top, enter the position information from the section describing what's currently at the top (Command Room I think).

Take a little time noting all the positions for each station then change them as necessary, and edit the TGA file to match, and that should be all there is to it to the best of my understanding.

This might not work, but it should be enough to get you started.

Anybody with experience please jump in with further info if I am sending this poor fellow off in completely the wrong direction :rotfl:

Good luck :up:

warlimont
02-07-08, 09:56 AM
Turm,
Thanks for your reply and the info. i'll have a look in the above.

"poor fellow"?
how do you know my financial situation? ;)

warlimont
02-07-08, 01:19 PM
Turm,
your quite right regarding the "-" number in the pos line.
the upper-most button is listed as "-1", the lower-most "-431".
Changing the button positions is merely a matter of re-
shuffling these position settings among the eleven buttons.

thanks

latemail
02-07-08, 01:33 PM
Could someone tell me:

1. Can the order of the top-2-bottom station slide-out buttons be re-arranged
from top to bottom?
2. what file i need to hack?
3. what i need to change and how?


1) Yes, they can

2) menu_1024_768.ini in the "SH3\data\Menu folder" + Shortcuts.tga in the "SH3\data\Menu\Layout" folder

3) Although the image for the buttons appears in one TGA file (which you would need to edit in a graphics app to your desired order), the entries to change in menu_1024_768.ini appear to be this range (taken from the SH3 v1.4b file, as my default GWX file is rather modified by OLC's GUI and my own changes)


1) right, you can
2) menu.ini is right, but there is no need for touching the tga!!
SH3 "cuts" the Shortcuts.tga into pieces and use them for the shortcutbar (with the Crop 1=0.0078125,0.841797,1,1)
3) just have to adjust the row Pos=1,-388,40,41 The blue value is the y-posotion on the screen. for details look at the link in my sig ........

warlimont
02-07-08, 02:10 PM
latemail,

love your big dials shown at the following thread:
http://www.subsim.com/radioroom/showthread.php?t=130470

you dont happen to have them for GWX, do you?

thanks

latemail
02-07-08, 04:12 PM
latemail,

love your big dials shown at the following thread:
http://www.subsim.com/radioroom/showthread.php?t=130470

you dont happen to have them for GWX, do you?

thanks


I just updated the thread:

ready for Stock and OLC-GUI 1.1.4
ready for Stock and OLC-GUI 1.2.1

now working on the version for GWX2.0 .............