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 02-24-23, 06:07 PM   #1
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,744
Downloads: 303
Uploads: 0


Default

Another great mod!! Hi Jimimadrid, you are like a scarecrow - outstanding in your field. A question that has nothing to do with this previous work but you are very good at interfaces - do you know how to increase the size of the crew special abilities icons? Like the green "MASTER ENGINEER" symbol in the picture below....I would like them to be maybe 2x - 2.5x bigger than they are now.... enlarged from 28 x 28 to 56 x 56 pixels ?

I understand where the images are (in data\menu\skins\[nationality]\gui\layout but I don't understand how cropping/enlarging works with menu1024.ini or your editing tools. Thank you!!


iambecomelife is offline   Reply With Quote
Old 02-24-23, 07:23 PM   #2
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,711
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by iambecomelife View Post
Another great mod!! Hi Jimimadrid, you are like a scarecrow - outstanding in your field. A question that has nothing to do with this previous work but you are very good at interfaces - do you know how to increase the size of the crew special abilities icons? Like the green "MASTER ENGINEER" symbol in the picture below....I would like them to be maybe 2x - 2.5x bigger than they are now.... enlarged from 28 x 28 to 56 x 56 pixels ?

I understand where the images are (in data\menu\skins\[nationality]\gui\layout but I don't understand how cropping/enlarging works with menu1024.ini or your editing tools. Thank you!!

did he just call jimi a "scarecrow"?
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 02-25-23, 07:45 AM   #3
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 388
Downloads: 123
Uploads: 19


Default

Quote:
Originally Posted by KaleunMarco View Post
did he just call jimi a "scarecrow"?

Yes, that's how I always look in the morning before I dress up and put on make-up
jimimadrid is offline   Reply With Quote
Old 02-25-23, 07:57 AM   #4
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,744
Downloads: 303
Uploads: 0


Default

OK I found this stuff in menu1024.ini

[G61 I53]
Name=Abilities Icons2
Type=1031;Stat bmp array
ItemID=0x61030012
ParentID=0x61030000
Pos=372,-16,26,26
Zone= 602 330 26 26 0 1 0x61030011 1 -0.5 0x61030012 0 0.5 10 0
Color=0xFFFFFFFF
Materials=21
Display=2;Linear
Mat 0=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 0=0.205566,0.453125,0.0126953,0.0507813
Mat 1=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 1=0.22168,0.453125,0.0126953,0.0507813
Mat 2=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 2=0.237793,0.453125,0.0126953,0.0507813
Mat 3=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 3=0.253906,0.453125,0.0126953,0.0507813
Mat 4=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 4=0.27002,0.453125,0.0126953,0.0507813
Mat 5=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 5=0.286133,0.453125,0.0126953,0.0507813
Mat 6=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 6=0.302246,0.453125,0.0126953,0.0507813
Mat 7=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 7=0.318359,0.453125,0.0126953,0.0507813
Mat 8=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 8=0.334473,0.453125,0.0126953,0.0507813
Mat 9=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 9=0.350586,0.453125,0.0126953,0.0507813
Mat 10=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 10=0.366699,0.453125,0.0126953,0.0507813
Mat 11=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 11=0.382813,0.453125,0.0126953,0.0507813
Mat 12=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 12=0.205566,0.517578,0.0126953,0.0507813
Mat 13=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 13=0.22168,0.517578,0.0126953,0.0507813
Mat 14=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 14=0.237793,0.517578,0.0126953,0.0507813
Mat 15=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 15=0.253906,0.517578,0.0126953,0.0507813
Mat 16=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 16=0.27002,0.517578,0.0126953,0.0507813
Mat 17=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 17=0.286133,0.517578,0.0126953,0.0507813
Mat 18=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 18=0.302246,0.517578,0.0126953,0.0507813
Mat 19=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 19=0.318359,0.517578,0.0126953,0.0507813
Mat 20=data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga
Crop 20=0.334473,0.517578,0.0126953,0.0507813
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=0
NeedFocus=false
SelOne=false
IdGroup=0

I'm wondering if maybe I could replace the material data/menu/Skins/American/gui/layout/JM-CrewSystemsManagement.tga with my own tga file?? Still not sure how cropping numerical values are generated (I understand basic principle...it tells where the pixels for a certain button, etc are located?)
iambecomelife is offline   Reply With Quote
Old 02-25-23, 10:47 AM   #5
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,711
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by jimimadrid View Post
Yes, that's how I always look in the morning before I dress up and put on make-up
i'm glad you laughed......you were supposed to laugh!
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 02-25-23, 11:05 AM   #6
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,744
Downloads: 303
Uploads: 0


Default

Excellent; thank you! I will look over your instructions carefully and try again (after I get more ship and sub modeling done). You have been a big help again.
iambecomelife is offline   Reply With Quote
Old 12-15-24, 12:59 AM   #7
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,744
Downloads: 303
Uploads: 0


Default

I wanted to know: can you use SH4 menu maker to add new special abilities Icons? I have been adding new abilities for the sailors, and the text for the new abilities shows up ... but the only problem is that there are no icons for the new abilities. It seems like you are hard coded to about 20 or 21 different icon pictures, I would love to find out how to add new ones.
iambecomelife is offline   Reply With Quote
Old 12-15-24, 07:57 AM   #8
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 388
Downloads: 123
Uploads: 19


Default

Sorry,


you will see the symbols in the data\menu\skins\american\gui\layout\CrewSystemsMan agement.tga


But i will not see any entry in the menu_124_768.ini cropping the location of this icons.


You can use my menu1024_editor to search for the entry.

How its work.




When switching to crop line you will see an red border on the image where the position of the graphic is.



Regards
jimi
jimimadrid is offline   Reply With Quote
Old 02-25-23, 08:09 AM   #9
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 388
Downloads: 123
Uploads: 19


Default

Quote:
Originally Posted by iambecomelife View Post

I understand where the images are (in data\menu\skins\[nationality]\gui\layout but I don't understand how cropping/enlarging works with menu1024.ini or your editing tools.

You can use the SH_MenuEditor.




You have to change this settings: (This changes the icon size on the noticeboard.)



[G61 I55]
Display= 2;linear
Zone= 538 326 40 40 0 1 0x61030004 1 -0.5 0x6103000A 0 0.5 10 0

[G61 I56]
Display= 2;linear
Zone= 510 326 40 40 0 1 0x6103000E 1 -0.5 0x61030004 0 0.5 10 0

[G61 I57]
Display=2;linear
Zone= 482 326 40 40 0 1 0x61030003 1 -0.5 0x6103000E 0 0.5 10 0

[G61 I58]
Display= 2;linear
Zone= 454 326 40 40 0 1 0x61030010 1 -0.5 0x61030003 0 0.5 10 0


This changes the iconsize on the Photo

[G61 I99]
Zone= 507 659 40 40 0 1 0x61050000 1 -1 0x61050003 -1 0.5 0 0





Here a little Demo with 40x40 pixel






PS:


Display= 0;No stretch = The graphic use the same pixel in the zoneline as in the Cropline.


Display= 2;linear = the graphics from the cropline will be enlarged/minimized to the setting of the Zoneline.


Take this everytime in mind










Hope this helps

Last edited by jimimadrid; 02-25-23 at 08:18 AM.
jimimadrid is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 10:51 AM.


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.