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 /sp/src/game/client/hud_bitmapnumericdisplay.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 'sp/src/game/client/hud_bitmapnumericdisplay.h')
| -rw-r--r-- | sp/src/game/client/hud_bitmapnumericdisplay.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/sp/src/game/client/hud_bitmapnumericdisplay.h b/sp/src/game/client/hud_bitmapnumericdisplay.h index 7318b02e..f35d7538 100644 --- a/sp/src/game/client/hud_bitmapnumericdisplay.h +++ b/sp/src/game/client/hud_bitmapnumericdisplay.h @@ -1,51 +1,51 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef HUD_BITMAPNUMERICDISPLAY_H
-#define HUD_BITMAPNUMERICDISPLAY_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "hud_numericdisplay.h"
-
-class CHudBitmapNumericDisplay : public vgui::Panel
-{
- DECLARE_CLASS_SIMPLE( CHudBitmapNumericDisplay, vgui::Panel );
-
-public:
- CHudBitmapNumericDisplay(vgui::Panel *parent, const char *name);
-
- void SetDisplayValue(int value);
- void SetShouldDisplayValue(bool state);
-
-protected:
- // vgui overrides
- virtual void PaintBackground( void );
- virtual void Paint();
- void PaintNumbers(int xpos, int ypos, int value, Color col, int numSigDigits);
- virtual void PaintNumbers(int xpos, int ypos, int value, Color col)
- {
- PaintNumbers(xpos, ypos, value, col, 1);
- }
-
- CPanelAnimationVar( float, m_flAlphaOverride, "Alpha", "255" );
- CPanelAnimationVar( Color, m_TextColor, "TextColor", "FgColor" );
- CPanelAnimationVar( float, m_flBlur, "Blur", "0" );
-
- CPanelAnimationVarAliasType( float, digit_xpos, "digit_xpos", "0", "proportional_float" );
- CPanelAnimationVarAliasType( float, digit_ypos, "digit_ypos", "0", "proportional_float" );
- CPanelAnimationVarAliasType( float, digit_height, "digit_height", "16", "proportional_float" );
-
-private:
-
- CHudTexture *m_pNumbers[10];
-
- int m_iValue;
- bool m_bDisplayValue;
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef HUD_BITMAPNUMERICDISPLAY_H +#define HUD_BITMAPNUMERICDISPLAY_H +#ifdef _WIN32 +#pragma once +#endif + +#include "hud_numericdisplay.h" + +class CHudBitmapNumericDisplay : public vgui::Panel +{ + DECLARE_CLASS_SIMPLE( CHudBitmapNumericDisplay, vgui::Panel ); + +public: + CHudBitmapNumericDisplay(vgui::Panel *parent, const char *name); + + void SetDisplayValue(int value); + void SetShouldDisplayValue(bool state); + +protected: + // vgui overrides + virtual void PaintBackground( void ); + virtual void Paint(); + void PaintNumbers(int xpos, int ypos, int value, Color col, int numSigDigits); + virtual void PaintNumbers(int xpos, int ypos, int value, Color col) + { + PaintNumbers(xpos, ypos, value, col, 1); + } + + CPanelAnimationVar( float, m_flAlphaOverride, "Alpha", "255" ); + CPanelAnimationVar( Color, m_TextColor, "TextColor", "FgColor" ); + CPanelAnimationVar( float, m_flBlur, "Blur", "0" ); + + CPanelAnimationVarAliasType( float, digit_xpos, "digit_xpos", "0", "proportional_float" ); + CPanelAnimationVarAliasType( float, digit_ypos, "digit_ypos", "0", "proportional_float" ); + CPanelAnimationVarAliasType( float, digit_height, "digit_height", "16", "proportional_float" ); + +private: + + CHudTexture *m_pNumbers[10]; + + int m_iValue; + bool m_bDisplayValue; +}; + #endif //HUD_BITMAPNUMERICDISPLAY_H
\ No newline at end of file |