RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
It sounds like your HUD element may have the wrong parent (in VGUI2 your visibility depends on your parents visibility unless you are a popup (a Frame) ). Make sure your HUD elements construct has a SetParent() call, something like this: SetParent( g_pClientMode-GetViewport() ); - Alfred

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
/hud_ammo_image.h Thanks --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 10 August 2005 18:58 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem It sounds like

RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
PROTECTED] On Behalf Of Chris Adams Sent: Wednesday, August 10, 2005 11:39 AM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem Hi, Thanks for the reply - parent call appears to be present and correct. Here are links to the various files. I've used ImagePanel as well

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem You should call BaseClass::OnThink() in your think functions (in general always chain back calls when you override a virtual function). Could the problem be that the element is hidden because of the hiddenbits you set? - Alfred

Re: [hlcoders] HUD element problem

2005-08-10 Thread Kamran
/ scoreboard goes. Thanks, --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 10 August 2005 19:51 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem You

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
2005 20:36 To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HUD element problem Let me show you my HUD element code, it works fine: By the way, for HUD elements you don't need a header file... (if all you want is to make a HUD element) You also need to add it's appropriate entry

RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
What are the VMT settings for the texture you are rendering? - Alfred Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Adams Sent: Wednesday, August 10, 2005 12:02 PM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
2005 20:53 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem What are the VMT settings for the texture you are rendering? - Alfred Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Adams Sent: Wednesday, August 10, 2005 12

RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
] On Behalf Of Alfred Reynolds Sent: 10 August 2005 20:53 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem What are the VMT settings for the texture you are rendering? - Alfred Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
You're a legend. :-) --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 10 August 2005 21:06 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem Call

Re: [hlcoders] HUD element problem

2005-08-10 Thread Kamran
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 10 August 2005 21:06 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem Call: surface()-DrawSetColor( Color( 255,255,255,255) ) before the surface

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamran Sent: 10 August 2005 21:27 To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HUD element problem By your code, are you basically trying to draw one image on the HUD if it's specified? And otherwise draw a specified color

Re: [hlcoders] HUD element problem

2005-08-10 Thread Kamran
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamran Sent: 10 August 2005 21:27 To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HUD element problem By your code, are you basically trying to draw one image on the HUD if it's specified? And otherwise draw

RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
*cough*copyright*cough*. - Alfred Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Adams Sent: Wednesday, August 10, 2005 4:25 PM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem Hi, These might show a bit more

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
, --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 11 August 2005 00:36 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem *cough*copyright*cough*. - Alfred

RE: [hlcoders] HUD element problem

2005-08-10 Thread Chris Adams
already have this I suppose --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamran Sent: 11 August 2005 00:34 To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HUD element problem Ah I see

RE: [hlcoders] HUD element problem

2005-08-10 Thread Alfred Reynolds
) Thanks, --- Chris Adams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 11 August 2005 00:36 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] HUD element problem *cough

Re: [hlcoders] HUD element problem

2005-08-10 Thread Kamran
To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HUD element problem Ah I see. For my HUD I use BG images (health bar, enemy health, etc.) and I just use an ImagePanel to display an image, lol, only a few lines of code (like, 5). Though, for some reason, if up close to a wall, the image gets