SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-14-25, 01:28 PM   #1
Bartholomew Roberts
Electrician's Mate
 
Join Date: Sep 2021
Posts: 138
Downloads: 210
Uploads: 6
Default Need help How to edit button function in menu_1024_768.ini

Below are two buttons from ksd menu_1024_768.ini UZO part

[G28 I9]
Name=Button_R
Type=1032;Button
ItemID=0x28040002
ParentID=0x28040000
Pos=131,0,32,32
Zone= 563 141 32 32 0 1 0x28040000 1 -0.5 0x28040002 -1 0.5 0 0
Materials=4
Display=2;Linear
Mat 0=data/menu/ksd_optics/periscope_parts.tga
Crop 0=0.425,0.264323,0.0727273,0.0416667
Mat 1=data/menu/ksd_optics/periscope_parts.tga
Crop 1=0.425,0.264323,0.0727273,0.0416667
Mat 2=data/menu/ksd_optics/periscope_parts.tga
Crop 2=0.425,0.30599,0.0727273,0.0416667
Mat 3=data/menu/ksd_optics/periscope_parts.tga
Crop 3=0.425,0.30599,0.0727273,0.0416667
MatFlags=0x29
TexFmt=0x0
Font=1
Text=0
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=8000

[G28 I10]
Name=Button_L
Type=1032;Button
ItemID=0x28040001
ParentID=0x28040000
Pos=0,0,32,32
Zone= 432 141 32 32 0 1 0x28040000 0.0981595 -0.5 0x28040001 -0.5 0.5 0 0
Materials=4
Display=2;Linear
Mat 0=data/menu/ksd_optics/periscope_parts.tga
Crop 0=0.425,0.264323,0.0727273,0.0416667
Mat 1=data/menu/ksd_optics/periscope_parts.tga
Crop 1=0.425,0.264323,0.0727273,0.0416667
Mat 2=data/menu/ksd_optics/periscope_parts.tga
Crop 2=0.425,0.30599,0.0727273,0.0416667
Mat 3=data/menu/ksd_optics/periscope_parts.tga
Crop 3=0.425,0.30599,0.0727273,0.0416667
MatFlags=0x29
TexFmt=0x0
Font=1
Text=0
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=8000

My question is what defines the button function? they are not in Dials.cfg, nor are they in stock. their current function is to active Graticule, both the same.
Bartholomew Roberts is offline   Reply With Quote
Old 09-16-25, 03:04 AM   #2
mazzi
A-ganger
 
Join Date: Mar 2018
Posts: 79
Downloads: 608
Uploads: 0
Default

Quote:
Originally Posted by Bartholomew Roberts View Post
My question is what defines the button function? they are not in Dials.cfg, nor are they in stock. their current function is to active Graticule, both the same.
The left button calls RAOBF, the right button turns on and off the night filter (in the periscope, such a colored glass in the occular) in the game changes the entire screen at once.
These buttons only work in manual aiming mode, these buttons do not work in automatic aiming mode.
Some functions game are written directly in binary files(.exe .dll), they do not need dials.cfg.
mazzi is offline   Reply With Quote
Old 09-18-25, 08:45 PM   #3
Bartholomew Roberts
Electrician's Mate
 
Join Date: Sep 2021
Posts: 138
Downloads: 210
Uploads: 6
Default

Quote:
Originally Posted by mazzi View Post
The left button calls RAOBF, the right button turns on and off the night filter (in the periscope, such a colored glass in the occular) in the game changes the entire screen at once.
These buttons only work in manual aiming mode, these buttons do not work in automatic aiming mode.
Some functions game are written directly in binary files(.exe .dll), they do not need dials.cfg.
Raobf is in stock game in SH3? I once thought it was from mod . But now both buttons have no function but another button works to turn on graticule

[G28 I1]
Name=Page UZO
Type=1027;Menu page
ItemID=0x28000000
ParentID=0x0

[G28 I2]
Name=Additions
Type=1026;Menu group
ItemID=0x28040000
ParentID=0x28000000

[G28 I3]
Name=NoClickArea
Type=1031;Stat bmp array
ItemID=0x28040006
ParentID=0x28040000

[G28 I4]
Name=Lighter_zone
Type=1032;Button
ItemID=0x28040042
ParentID=0x28040000 (this button is what now works, the Button_L &Button_R only serve as visual background)

And the function menu group

[G28 I216]
Name=Grat_lighter
Type=1026;Menu group
ItemID=0x280B0000
ParentID=0x28000000

[G28 I217]
Name=Graticule
Type=1030;Static bmp
ItemID=0x280BF007
ParentID=0x280B0000

It's direct parented to the page item, and there are a whole bunch of torpedo control menu groups between them. So how it works? Any logic there?
Bartholomew Roberts is offline   Reply With Quote
Reply

Tags
tec


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.