View Single Post
Old 02-08-10, 12:51 PM   #8
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
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 Item-Id 0x67xxxxxx (exact number will follow) 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 TextFmt=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
This is great. I also already have looked to this issue some years ago but didn't achieve any good result.

Your solution is very good, it will be enough as a mid range option (much better than the actual nothing or all) and please make it also GWX 3.0 compatible.
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote