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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-08-10, 03:25 AM   #2
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

In the meantime, while working on my edition of ACM-GUI-Reloaded, I found a solution to restrict the hull integrity information to only six values:

100%, 80%, 50%, 30%, 10% and 0%.

For me that's a good compromise between the present solutions: fully show or hide the hull integrity percentage.

It's not hard to do.

1) First you have to create a new font by copying an existing one. Then you have to edit the .off file of your new font (using S3D) in order to make the numbers (0 to 9) have a FIXED WIDTH.

2) Use the new font for ItemID=0x67000404 in menu.ini. Don't forget to register the new font in the beginning of menu.ini.

3) Make the hull percentage output string right-aligned by setting TextFlags=0x1A for the above-mentioned Item.

Because of step 2) and 3) the last digit of the hull percentage now has a fixed position regardless of the percentage number shown.

4) Create an intransparent tga-image and paint a "0 %" on it and hide the last digit of the percentage number by that image. Now only 10%-steps are shown: 100%, 90%, ... 10%, 0%.

5) Edit the .tga file of the new font and overwrite the 9 and 7 by an 8. Then overwrite the 6 by a 5 and the 4 by a 3 and the 2 by a 1.

Now only the values 100%, 80%, 50%, 30%, 10% and 0% can be shown.

I'll include this in my next version of ACM-Reloaded-h.sie's Edition.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-08-10 at 01:46 PM.
h.sie is offline   Reply With Quote
 


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 11:41 PM.


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