diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/hl2/hud_suitpower.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/hl2/hud_suitpower.h')
| -rw-r--r-- | mp/src/game/client/hl2/hud_suitpower.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/mp/src/game/client/hl2/hud_suitpower.h b/mp/src/game/client/hl2/hud_suitpower.h index a7ea69cc..83af2be1 100644 --- a/mp/src/game/client/hl2/hud_suitpower.h +++ b/mp/src/game/client/hl2/hud_suitpower.h @@ -1,57 +1,57 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-#if !defined( HUD_SUITPOWER_H )
-#define HUD_SUITPOWER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "hudelement.h"
-#include "hud_numericdisplay.h"
-#include <vgui_controls/Panel.h>
-
-//-----------------------------------------------------------------------------
-// Purpose: Shows the sprint power bar
-//-----------------------------------------------------------------------------
-class CHudSuitPower : public CHudElement, public vgui::Panel
-{
- DECLARE_CLASS_SIMPLE( CHudSuitPower, vgui::Panel );
-
-public:
- CHudSuitPower( const char *pElementName );
- virtual void Init( void );
- virtual void Reset( void );
- virtual void OnThink( void );
- bool ShouldDraw( void );
-
-protected:
- virtual void Paint();
-
-private:
- CPanelAnimationVar( Color, m_AuxPowerColor, "AuxPowerColor", "255 0 0 255" );
- CPanelAnimationVar( int, m_iAuxPowerDisabledAlpha, "AuxPowerDisabledAlpha", "70" );
-
- CPanelAnimationVarAliasType( float, m_flBarInsetX, "BarInsetX", "8", "proportional_float" );
- CPanelAnimationVarAliasType( float, m_flBarInsetY, "BarInsetY", "8", "proportional_float" );
- CPanelAnimationVarAliasType( float, m_flBarWidth, "BarWidth", "80", "proportional_float" );
- CPanelAnimationVarAliasType( float, m_flBarHeight, "BarHeight", "10", "proportional_float" );
- CPanelAnimationVarAliasType( float, m_flBarChunkWidth, "BarChunkWidth", "10", "proportional_float" );
- CPanelAnimationVarAliasType( float, m_flBarChunkGap, "BarChunkGap", "2", "proportional_float" );
-
- CPanelAnimationVar( vgui::HFont, m_hTextFont, "TextFont", "Default" );
- CPanelAnimationVarAliasType( float, text_xpos, "text_xpos", "8", "proportional_float" );
- CPanelAnimationVarAliasType( float, text_ypos, "text_ypos", "20", "proportional_float" );
- CPanelAnimationVarAliasType( float, text2_xpos, "text2_xpos", "8", "proportional_float" );
- CPanelAnimationVarAliasType( float, text2_ypos, "text2_ypos", "40", "proportional_float" );
- CPanelAnimationVarAliasType( float, text2_gap, "text2_gap", "10", "proportional_float" );
-
- float m_flSuitPower;
- int m_nSuitPowerLow;
- int m_iActiveSuitDevices;
-};
-
-#endif // HUD_SUITPOWER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// +#if !defined( HUD_SUITPOWER_H ) +#define HUD_SUITPOWER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "hudelement.h" +#include "hud_numericdisplay.h" +#include <vgui_controls/Panel.h> + +//----------------------------------------------------------------------------- +// Purpose: Shows the sprint power bar +//----------------------------------------------------------------------------- +class CHudSuitPower : public CHudElement, public vgui::Panel +{ + DECLARE_CLASS_SIMPLE( CHudSuitPower, vgui::Panel ); + +public: + CHudSuitPower( const char *pElementName ); + virtual void Init( void ); + virtual void Reset( void ); + virtual void OnThink( void ); + bool ShouldDraw( void ); + +protected: + virtual void Paint(); + +private: + CPanelAnimationVar( Color, m_AuxPowerColor, "AuxPowerColor", "255 0 0 255" ); + CPanelAnimationVar( int, m_iAuxPowerDisabledAlpha, "AuxPowerDisabledAlpha", "70" ); + + CPanelAnimationVarAliasType( float, m_flBarInsetX, "BarInsetX", "8", "proportional_float" ); + CPanelAnimationVarAliasType( float, m_flBarInsetY, "BarInsetY", "8", "proportional_float" ); + CPanelAnimationVarAliasType( float, m_flBarWidth, "BarWidth", "80", "proportional_float" ); + CPanelAnimationVarAliasType( float, m_flBarHeight, "BarHeight", "10", "proportional_float" ); + CPanelAnimationVarAliasType( float, m_flBarChunkWidth, "BarChunkWidth", "10", "proportional_float" ); + CPanelAnimationVarAliasType( float, m_flBarChunkGap, "BarChunkGap", "2", "proportional_float" ); + + CPanelAnimationVar( vgui::HFont, m_hTextFont, "TextFont", "Default" ); + CPanelAnimationVarAliasType( float, text_xpos, "text_xpos", "8", "proportional_float" ); + CPanelAnimationVarAliasType( float, text_ypos, "text_ypos", "20", "proportional_float" ); + CPanelAnimationVarAliasType( float, text2_xpos, "text2_xpos", "8", "proportional_float" ); + CPanelAnimationVarAliasType( float, text2_ypos, "text2_ypos", "40", "proportional_float" ); + CPanelAnimationVarAliasType( float, text2_gap, "text2_gap", "10", "proportional_float" ); + + float m_flSuitPower; + int m_nSuitPowerLow; + int m_iActiveSuitDevices; +}; + +#endif // HUD_SUITPOWER_H |