[ETSDK] Editing The HUD


(NewName) #1

I have been developing ET:Zombies with a team of people/players for the past month or so, and have come to a point where I am designing the HUD.

I am wanting it simple and clean, and this is my current outcome:

  • nvm the angle, it’s the only screenshot I could find without loading ET.

I am wanting it to have an image/background behind the HP & Points.

Need a background image behind the text, which obviously disapears whilst in spectator mod and appears when you join the team and spawn.

No idea if it’s possible, but I’m assuming it is.

I’m using ETMAIN ETSDK.

Hope someone can explain to me.

Cheers


(Indloon) #2

Look at CG_DrawPic function.

However,not sure if the text will be shown :stuck_out_tongue:

If not,then use alpha layers to make space for letters.


(NewName) #3

[QUOTE=Indloon;395146]Look at CG_DrawPic function.

However,not sure if the text will be shown :stuck_out_tongue:

If not,then use alpha layers to make space for letters.[/QUOTE]

And where would this need to go, inside cg_draw.c, alongside the HP drawing etc?? above or below these?

Also, bit of a stupid question, but what’s the easiest way to work out the co-ordinates of the screen and where it will end up? I understand it’s all done using 640 resolution and stretched to the clients resolution. I think it would be a lot easier to work have an application or grid where I can work out where things are going to be placed upon editing where it’s drawn on screen.

Thanks a lot :wink:


(Indloon) #4

[QUOTE=iDan;395147]
Also, bit of a stupid question, but what’s the easiest way to work out the co-ordinates of the screen and where it will end up? I understand it’s all done using 640 resolution and stretched to the clients resolution. I think it would be a lot easier to work have an application or grid where I can work out where things are going to be placed upon editing where it’s drawn on screen.

Thanks a lot ;)[/QUOTE]

Yeah,about that 480x640 one.

Give me a week :smiley:

I will work out something on WinAPI

E: Sorry for my previous lack of comment

Just image of X/Y:

Heh,you really should learn C first before asking this:

And where would this need to go, inside cg_draw.c, alongside the HP drawing etc?? above or below these?

It’s the function,you can but it everywhere in a code,ofc after header and into a function.

Just make a function or what ever :smiley:


static void Draw( void ) { CG_DrawPic( .... ); }

And put it into some function! Ofcurse that function(Draw) must be before the function where you put it,since I used static!

The following explanation epic meter is over 9000.


(NewName) #5

I wrote a little app for letting me know the co-ords now, will release it if it’s of any use.