PaintBackgroundType type 0 simply draws a filled rect of BgColor(), type 1 draws a background texture filling the entire background (drawn from m_nBgTextureId1), type 2 draws a filled in rect of BgColor() with rounded corners (4 textures, one on each corner). See vgui2\controls\Panel.cpp for details.
- Alfred -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabe Volker Sent: Tuesday, March 01, 2005 3:59 PM To: [email protected] Subject: [hlcoders] new HuD element problems 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 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

