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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-02-20, 06:15 PM   #1
klh
Ensign
 
klh's Avatar
 
Join Date: Jan 2002
Location: Indiana, USA
Posts: 221
Downloads: 200
Uploads: 0
Default How to use smaller Type=1032 button target for a pull lever?

What started as a simple edit to the ARB 1920x1080 GUI to fix a couple of dials on the TDC (the AOB and target bearing) has turned into a bigger project as I keep finding things to play with.

The latest distraction is trying to replace the FIRE button with a Lever. U-boats had a rounded lever (Abfeuerschalter) to fire the selected torpedoes, not push-buttons. So I built one using two .tga images (one of the lever handle up, the other with the lever down). When the user clicks the button, it shows the second image, making it appear as if I pulled the lever.

My problem is that the button size encompasses the entire 56x214 pixel space. So if I click the empty space below the lever, the torpedo fires. I would like the firing to be initiated when only the top half of that space is clicked. Is there a clever way to make the target zone for the mouse click to only be 56x107 (or something like that) while the attached .tga images are 56x214?





Here is the menu.ini entry:

[G26 I82]
Name=Torp launch; Fire lever
Type=1032;Button
ItemID=0x26080005
ParentID=0x26080000
Pos=-101,-328,56,214
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/layout/FireLever.tga
Crop 0=0,0,0.5,1
Mat 1=data/menu/gui/layout/FireLever.tga
Crop 1=0,0,0.5,1
Mat 2=data/menu/gui/layout/FireLever.tga
Crop 2=0,0,0.5,1
Mat 3=data/menu/gui/layout/FireLever.tga
Crop 3=0.508929,0,1,1
MatFlags=0x21
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
Attached Images
File Type: jpg 2020.07.30-17.49_cr.jpg (91.6 KB, 5 views)
File Type: jpg 2020.07.30-17.49_01_cr.jpg (93.1 KB, 2 views)
klh is offline   Reply With Quote
Old 08-02-20, 07:34 PM   #2
CapZap1970
Sea Lord
 
Join Date: Mar 2007
Location: La Paz, Bolivia
Posts: 1,956
Downloads: 259
Uploads: 51
Default

WOW!!!! It looks fantastic.....
no idea how to fix your problem but it's really great!!
For sure someone with the knowledge will show up soon...

Congrats!


CapZap
__________________
CapZap1970 is offline   Reply With Quote
Old 08-02-20, 07:50 PM   #3
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,270
Downloads: 439
Uploads: 0
Default

Wow ... that is really cool.

Hope you get it worked out.

Goodhunting,
FUBAR295
__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment.


FUBAR295 is offline   Reply With Quote
Old 08-02-20, 08:48 PM   #4
klh
Ensign
 
klh's Avatar
 
Join Date: Jan 2002
Location: Indiana, USA
Posts: 221
Downloads: 200
Uploads: 0
Default

Thanks. It is still a work in progress. I have only messed with the Attack Scope so far. I still want to add a FAT/LUT settings slide-in if I can.
klh is offline   Reply With Quote
Reply


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 12:35 AM.


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