aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/vgui_entitypanel.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_entitypanel.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_entitypanel.h')
-rw-r--r--mp/src/game/client/vgui_entitypanel.h166
1 files changed, 83 insertions, 83 deletions
diff --git a/mp/src/game/client/vgui_entitypanel.h b/mp/src/game/client/vgui_entitypanel.h
index f881b3ef..69cfbb3f 100644
--- a/mp/src/game/client/vgui_entitypanel.h
+++ b/mp/src/game/client/vgui_entitypanel.h
@@ -1,84 +1,84 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: This is a panel which is rendered on top of an entity
-//
-// $Revision: $
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef VGUI_ENTITYPANEL_H
-#define VGUI_ENTITYPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "c_baseentity.h"
-#include <vgui/MouseCode.h>
-#include "vgui_basepanel.h"
-
-// forward declarations
-class KeyValues;
-
-
-//-----------------------------------------------------------------------------
-// This is a base class for a panel which always is rendered on top of an entity
-//-----------------------------------------------------------------------------
-class CEntityPanel : public CBasePanel
-{
-public:
- DECLARE_CLASS( CEntityPanel, CBasePanel );
-
- // constructor
- CEntityPanel( vgui::Panel *pParent, const char *panelName );
-
- virtual void ComputeParent( void );
- virtual void ComputeAndSetSize( void );
-
- // Initialize from key values
- bool Init( KeyValues* pKeyValues, C_BaseEntity* pEntity );
-
- // Determine where our entity is in screen space.
- void GetEntityPosition( int& sx, int& sy );
-
- // Base implementation of ShouldDraw
- bool ShouldDraw();
-
- // called when we're ticked (updates our position)...
- virtual void OnTick( void );
-
- virtual void OnCursorEntered();
- virtual void OnCursorExited();
-
- const char *GetMouseOverText( void );
-
- C_BaseEntity* GetEntity() { return (C_BaseEntity*)m_pBaseEntity; }
-
- // Attach to a new entity
- void SetEntity( C_BaseEntity* pEntity );
-
-public:
- enum
- {
- MAX_ENTITY_MOUSEOVER = 256
- };
-
- // Offset from entity that we should draw
- int m_OffsetX, m_OffsetY;
-
- char m_szMouseOverText[ MAX_ENTITY_MOUSEOVER ];
-
- bool m_bShowInNormal;
-
- int m_iOrgWidth;
- int m_iOrgHeight;
- int m_iOrgOffsetX;
- int m_iOrgOffsetY;
- float m_flScale;
-
-private:
- // This is the entity to which we're attached
- EHANDLE m_pBaseEntity;
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This is a panel which is rendered on top of an entity
+//
+// $Revision: $
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef VGUI_ENTITYPANEL_H
+#define VGUI_ENTITYPANEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "c_baseentity.h"
+#include <vgui/MouseCode.h>
+#include "vgui_basepanel.h"
+
+// forward declarations
+class KeyValues;
+
+
+//-----------------------------------------------------------------------------
+// This is a base class for a panel which always is rendered on top of an entity
+//-----------------------------------------------------------------------------
+class CEntityPanel : public CBasePanel
+{
+public:
+ DECLARE_CLASS( CEntityPanel, CBasePanel );
+
+ // constructor
+ CEntityPanel( vgui::Panel *pParent, const char *panelName );
+
+ virtual void ComputeParent( void );
+ virtual void ComputeAndSetSize( void );
+
+ // Initialize from key values
+ bool Init( KeyValues* pKeyValues, C_BaseEntity* pEntity );
+
+ // Determine where our entity is in screen space.
+ void GetEntityPosition( int& sx, int& sy );
+
+ // Base implementation of ShouldDraw
+ bool ShouldDraw();
+
+ // called when we're ticked (updates our position)...
+ virtual void OnTick( void );
+
+ virtual void OnCursorEntered();
+ virtual void OnCursorExited();
+
+ const char *GetMouseOverText( void );
+
+ C_BaseEntity* GetEntity() { return (C_BaseEntity*)m_pBaseEntity; }
+
+ // Attach to a new entity
+ void SetEntity( C_BaseEntity* pEntity );
+
+public:
+ enum
+ {
+ MAX_ENTITY_MOUSEOVER = 256
+ };
+
+ // Offset from entity that we should draw
+ int m_OffsetX, m_OffsetY;
+
+ char m_szMouseOverText[ MAX_ENTITY_MOUSEOVER ];
+
+ bool m_bShowInNormal;
+
+ int m_iOrgWidth;
+ int m_iOrgHeight;
+ int m_iOrgOffsetX;
+ int m_iOrgOffsetY;
+ float m_flScale;
+
+private:
+ // This is the entity to which we're attached
+ EHANDLE m_pBaseEntity;
+};
+
#endif // VGUI_ENTITYPANEL_H \ No newline at end of file