Hello again, I just wanted to throw this out because I haven't been able to
find a solution yet searching around in forums.

I created a new class to display a background texture basically.

I have done everything properly, that I can see in creating the new class
and added it to the project.

I have the DECLARE_HUDELEMENT( MyHuDElement ) call, as well as
DECLARE_CLASS_SIMPLE( MyHudElement, vgui::Panel).

This file compiles fine. However, if I try to create a new instance of that
object in another file, i get errors saying that MyHudElement is undeclared.
I am confused because this is what DECLARE_HUDELEMENT should be taking care
of. Am I missing something about implementing a new class?

Maybe I'm calling it from the wrong place, but where is the best place then
to create/initialize new hud elements? (the
gHUD.AddHudElement(m_pMyHudElement);  call)

Also, on a complete tangent, I am trying to correlate all the background
stuff with res files with the code. Does someone know a simple explanation
of what the difference between PaintBackGroundType 0, 1, and 2 is?

Thanks,
-Gabe


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to