Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
713 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef HL1_HUD_NUMBERS_H
  7. #define HL1_HUD_NUMBERS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Panel.h>
  12. class CHL1HudNumbers : public vgui::Panel
  13. {
  14. DECLARE_CLASS_SIMPLE( CHL1HudNumbers, vgui::Panel );
  15. public:
  16. CHL1HudNumbers( vgui::Panel *parent, const char *name );
  17. void VidInit( void );
  18. protected:
  19. int DrawHudNumber( int x, int y, int iNumber, Color &clrDraw );
  20. int GetNumberFontHeight( void );
  21. int GetNumberFontWidth( void );
  22. private:
  23. CHudTexture *icon_digits[ 10 ];
  24. };
  25. #endif // HL1_HUD_NUMBERS_H