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
/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
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
@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
/ 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
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
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
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
] 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
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
-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
-
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
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
*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
,
---
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
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
)
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
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
18 matches
Mail list logo