aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/hud_basetimer.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 /sp/src/game/client/hud_basetimer.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 'sp/src/game/client/hud_basetimer.h')
-rw-r--r--sp/src/game/client/hud_basetimer.h124
1 files changed, 62 insertions, 62 deletions
diff --git a/sp/src/game/client/hud_basetimer.h b/sp/src/game/client/hud_basetimer.h
index 747d5c52..f407b131 100644
--- a/sp/src/game/client/hud_basetimer.h
+++ b/sp/src/game/client/hud_basetimer.h
@@ -1,62 +1,62 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef HUD_BASETIMER_H
-#define HUD_BASETIMER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "hud_numericdisplay.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Base class for all the hud elements that are just a numeric display
-// with some options for text and icons
-//-----------------------------------------------------------------------------
-class CHudBaseTimer : public CHudNumericDisplay
-{
- DECLARE_CLASS_SIMPLE( CHudBaseTimer, CHudNumericDisplay );
-
-public:
- CHudBaseTimer(vgui::Panel *parent, const char *name);
-
- void SetMinutes( int minutes );
- void SetSeconds( int seconds );
-
-protected:
- // vgui overrides
- virtual void Paint();
-
- void SetToPrimaryColor();
- void SetToSecondaryColor();
-
-private:
- void PaintTime(vgui::HFont font, int xpos, int ypos, int mins, int secs);
-
- int m_iMinutes;
- int m_iSeconds;
- wchar_t m_LabelText[32];
-
- CPanelAnimationVar( float, m_flBlur, "Blur", "0" );
- CPanelAnimationVar( float, m_flAlphaOverride, "Alpha", "255" );
- CPanelAnimationVar( Color, m_TextColor, "TextColor", "FgColor" );
- CPanelAnimationVar( Color, m_FlashColor, "SecondaryColor", "FgColor" );
-
- CPanelAnimationVar( vgui::HFont, m_hNumberFont, "NumberFont", "HudNumbers" );
- CPanelAnimationVar( vgui::HFont, m_hNumberGlowFont, "NumberGlowFont", "HudNumbersGlow" );
- CPanelAnimationVar( vgui::HFont, m_hSmallNumberFont, "SmallNumberFont", "HudNumbersSmall" );
- 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, digit_xpos, "digit_xpos", "50", "proportional_float" );
- CPanelAnimationVarAliasType( float, digit_ypos, "digit_ypos", "2", "proportional_float" );
- CPanelAnimationVarAliasType( float, digit2_xpos, "digit2_xpos", "98", "proportional_float" );
- CPanelAnimationVarAliasType( float, digit2_ypos, "digit2_ypos", "16", "proportional_float" );
-};
-
-
-#endif // HUD_BASETIMER_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef HUD_BASETIMER_H
+#define HUD_BASETIMER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "hud_numericdisplay.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Base class for all the hud elements that are just a numeric display
+// with some options for text and icons
+//-----------------------------------------------------------------------------
+class CHudBaseTimer : public CHudNumericDisplay
+{
+ DECLARE_CLASS_SIMPLE( CHudBaseTimer, CHudNumericDisplay );
+
+public:
+ CHudBaseTimer(vgui::Panel *parent, const char *name);
+
+ void SetMinutes( int minutes );
+ void SetSeconds( int seconds );
+
+protected:
+ // vgui overrides
+ virtual void Paint();
+
+ void SetToPrimaryColor();
+ void SetToSecondaryColor();
+
+private:
+ void PaintTime(vgui::HFont font, int xpos, int ypos, int mins, int secs);
+
+ int m_iMinutes;
+ int m_iSeconds;
+ wchar_t m_LabelText[32];
+
+ CPanelAnimationVar( float, m_flBlur, "Blur", "0" );
+ CPanelAnimationVar( float, m_flAlphaOverride, "Alpha", "255" );
+ CPanelAnimationVar( Color, m_TextColor, "TextColor", "FgColor" );
+ CPanelAnimationVar( Color, m_FlashColor, "SecondaryColor", "FgColor" );
+
+ CPanelAnimationVar( vgui::HFont, m_hNumberFont, "NumberFont", "HudNumbers" );
+ CPanelAnimationVar( vgui::HFont, m_hNumberGlowFont, "NumberGlowFont", "HudNumbersGlow" );
+ CPanelAnimationVar( vgui::HFont, m_hSmallNumberFont, "SmallNumberFont", "HudNumbersSmall" );
+ 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, digit_xpos, "digit_xpos", "50", "proportional_float" );
+ CPanelAnimationVarAliasType( float, digit_ypos, "digit_ypos", "2", "proportional_float" );
+ CPanelAnimationVarAliasType( float, digit2_xpos, "digit2_xpos", "98", "proportional_float" );
+ CPanelAnimationVarAliasType( float, digit2_ypos, "digit2_ypos", "16", "proportional_float" );
+};
+
+
+#endif // HUD_BASETIMER_H