Pictures above is the closest I've come so far, which involves modifying the alpha under the red bar in gui_boxes_ingame.tga, which is fairly easy to spot. However, when you see that red line you're only looking at 2 pixels of a 4 pixel-wide image. At least when you're looking at the alpha channel, you see a two pixel wide column, but one column on either side also "counts" So you only see pixels 2 & 3, but when you modify the alpha it seems to take the cue from pixel 1's column. So if you want the rest of it to be transparent, the first column will definitely have to black, I believe. Problem is, even if you make the bar transparent...there portrait isn't displayed behind it.
Yeah, I've been testing almost the same thing, but I didn't know about the 1-pixel border on each side - that's really interesting!
The poison and disease use a completely different 3D model overlayed on top of the portrait, so the colour changing doesn't affect the bar, no. I'm afraid I cut those out of the model I sent because I didn't want to have to attach external files (I figured you could test it simply with the 2 mdls, rather than having to use these other textures!
'>)
I haven't tried the TXI editing and it's something I should really give an attempt to, whenever I get a tiny bit of time.
'>
I gave an attempt at trying to find out how NWN collects its portraits, but it uses a temporary texture file (replace01, or something?), so I'm not completely sure how workable it is.
Thanks a lot for taking a look, though. Much appreciated!
It seems it would work best as a damage bar, meaning that as the
character is more injured the bar covers more of the portrait. That way
most of the time there is no issue about obscuring the portrait.
You're right, the bar gradually fills up as you take damage, rather than being a red health bar to begin with.
'>
I think Rubies is trying to create a new override to allow the health
status to be displayed overlaying the portrait rather than to the side
of it, but is hitting a snag trying to make the portrait show through
the health color. That's wasn't clear in the initial post. '>
Absolutely right, thanks for the clarification! It's a complete GUI re-do and this is the last snag I've encountered when everything else is done! :<
EDIT: Quick video to help explain how it works!
http://www.xfire.com/video/42a1a8/
Modifié par Rubies, 09 mars 2011 - 10:48 .