aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/vgui_entityimagepanel.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/vgui_entityimagepanel.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/vgui_entityimagepanel.h')
-rw-r--r--mp/src/game/client/vgui_entityimagepanel.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/mp/src/game/client/vgui_entityimagepanel.h b/mp/src/game/client/vgui_entityimagepanel.h
index eb4aeaa2..bb545256 100644
--- a/mp/src/game/client/vgui_entityimagepanel.h
+++ b/mp/src/game/client/vgui_entityimagepanel.h
@@ -1,79 +1,79 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: This is a panel which is rendered image on top of an entity
-//
-// $Revision: $
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef VGUI_ENTITYIMAGEPANEL_H
-#define VGUI_ENTITYIMAGEPANEL_H
-
-#include "vgui_EntityPanel.h"
-#include "shareddefs.h"
-
-//-----------------------------------------------------------------------------
-// forward declarations
-//-----------------------------------------------------------------------------
-
-class C_BaseEntity;
-class KeyValues;
-class BitmapImage;
-
-//-----------------------------------------------------------------------------
-// This is a base class for a panel which always is rendered on top of an entity
-//-----------------------------------------------------------------------------
-
-class CEntityImagePanel : public CEntityPanel
-{
- DECLARE_CLASS( CEntityImagePanel, CEntityPanel );
-
-public:
- // constructor
- CEntityImagePanel( vgui::Panel* pParent, const char *panelName );
- ~CEntityImagePanel();
-
- // initialization
- virtual bool Init( KeyValues* pInitData, C_BaseEntity* pEntity );
-
- bool ShouldDraw();
-
- virtual void Paint( void );
- virtual void PaintBackground( void ) {}
-
-private:
- // The bitmap to render
- BitmapImage *m_pImage;
-
-protected:
- int m_r, m_g, m_b, m_a;
-};
-
-
-//-----------------------------------------------------------------------------
-// Purpose: Same as above, but understands how to parse color/material out of
-// Team1/Team2 sections
-//-----------------------------------------------------------------------------
-class CEntityTeamImagePanel : public CEntityImagePanel
-{
- DECLARE_CLASS( CEntityTeamImagePanel, CEntityImagePanel );
-
-public:
- CEntityTeamImagePanel( vgui::Panel* pParent, const char *panelName );
- ~CEntityTeamImagePanel( void );
- // initialization
- virtual bool Init( KeyValues* pInitData, C_BaseEntity* pEntity );
-
- virtual void Paint( void );
-
-private:
- struct TEAMIMAGE
- {
- BitmapImage *m_pImage;
- int m_r, m_g, m_b, m_a;
- };
-
- TEAMIMAGE m_Images[ MAX_TEAMS ];
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This is a panel which is rendered image on top of an entity
+//
+// $Revision: $
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef VGUI_ENTITYIMAGEPANEL_H
+#define VGUI_ENTITYIMAGEPANEL_H
+
+#include "vgui_EntityPanel.h"
+#include "shareddefs.h"
+
+//-----------------------------------------------------------------------------
+// forward declarations
+//-----------------------------------------------------------------------------
+
+class C_BaseEntity;
+class KeyValues;
+class BitmapImage;
+
+//-----------------------------------------------------------------------------
+// This is a base class for a panel which always is rendered on top of an entity
+//-----------------------------------------------------------------------------
+
+class CEntityImagePanel : public CEntityPanel
+{
+ DECLARE_CLASS( CEntityImagePanel, CEntityPanel );
+
+public:
+ // constructor
+ CEntityImagePanel( vgui::Panel* pParent, const char *panelName );
+ ~CEntityImagePanel();
+
+ // initialization
+ virtual bool Init( KeyValues* pInitData, C_BaseEntity* pEntity );
+
+ bool ShouldDraw();
+
+ virtual void Paint( void );
+ virtual void PaintBackground( void ) {}
+
+private:
+ // The bitmap to render
+ BitmapImage *m_pImage;
+
+protected:
+ int m_r, m_g, m_b, m_a;
+};
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Same as above, but understands how to parse color/material out of
+// Team1/Team2 sections
+//-----------------------------------------------------------------------------
+class CEntityTeamImagePanel : public CEntityImagePanel
+{
+ DECLARE_CLASS( CEntityTeamImagePanel, CEntityImagePanel );
+
+public:
+ CEntityTeamImagePanel( vgui::Panel* pParent, const char *panelName );
+ ~CEntityTeamImagePanel( void );
+ // initialization
+ virtual bool Init( KeyValues* pInitData, C_BaseEntity* pEntity );
+
+ virtual void Paint( void );
+
+private:
+ struct TEAMIMAGE
+ {
+ BitmapImage *m_pImage;
+ int m_r, m_g, m_b, m_a;
+ };
+
+ TEAMIMAGE m_Images[ MAX_TEAMS ];
+};
+
#endif // VGUI_ENTITYIMAGEPANEL_H \ No newline at end of file