Member
66 posts
Registered:
Jan 2006
Is it possible to make the hud_gunX elements square instead of rectangular? I've been trying for hours, but I'm coming up short.
I have modified the gfx.wad and made the inv_weapon elements square. Software ezquake recognizes this and shows the resized icons I've made.
The wads for gunX have been so they are also square.
This is the result anyway (with gunX_frames enabled to show difference, guns are in the middle bottom) :
Is there something else in gfx.wad which ezquake measures before drawing the new_hud items?
Member
355 posts
Registered:
Jun 2006
Just curious, but why do you need the squares? Couldn't you just edit the inv_*.tga files in textures\wad so there is blank space to a side? You'll still have a recantangular image but there will be blank space. Then just change the pos_x of those other guns to go over the blank space and look like they are squares.
Member
66 posts
Registered:
Jan 2006
The reason is because I'd like to have i.e. a grey iammo icon, and than it gets replaced by the gun-image when I get that specific weapon. It's a little difficult to make the replacing rectangular gun icons to look good "on top" of the iammo icons when they are transparent. It's probably possible with some tweaking, but it annoys me that it should have to be done that way.
Now it's more a little obsession, I really want to make sure that it's not possible to change the shape of the gun-icons before I go with the "easier"(/uglier) solution
Now I'm off to browse some sourcecode.
Member
66 posts
Registered:
Jan 2006
Blocked in code if I'm not totally lost :<
SCR_HUD_DrawGunByNum in hud_common.c
case 1: // text
width = 16 * scale;
height = 8 * scale;
Member
66 posts
Registered:
Jan 2006
Hm. I must be lost. The retangles are more of 1,25 * 1 in scale. I don't have a clue what I'm searching for, but what the hell
Somebody may be able to help me?
Member
66 posts
Registered:
Jan 2006
Hey nevermind. It actually did work with changing the palette. Although the frames aren't working properly (see picture), but that doesn't matter
Member
1435 posts
Registered:
Jan 2006
Changing a palette resolved your issue? Sounds pretty weird
Nice trick would be to assign a group background to some group element which would contain this gray version of gun icons.
Member
66 posts
Registered:
Jan 2006
Oh. Typing error. I've changed gfx.wad, not the palette
Member
62 posts
Registered:
Jan 2006
siik e full