User panel stuff on forum
  9 posts on 1 page  1
Graphics Discussion
2007-04-28, 17:35
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) :
http://twig.nemen.nu/siikah/files/pics/forum/2007-04-28_qw.nu_ezquake_hud_gun_icons_not_square.jpg


Is there something else in gfx.wad which ezquake measures before drawing the new_hud items?
2007-04-28, 18:14
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.
2007-04-29, 00:25
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.
2007-04-29, 01:11
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;
2007-04-29, 01:18
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?
2007-04-29, 17:41
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
2007-04-29, 21:58
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.
2007-04-30, 09:22
Member
66 posts

Registered:
Jan 2006
Oh. Typing error. I've changed gfx.wad, not the palette
2007-04-30, 10:55
Member
62 posts

Registered:
Jan 2006
siik e full
  9 posts on 1 page  1