source-engine/game/client/hl1/hl1_hud_numbers.h

36 lines
713 B
C
Raw Normal View History

2022-04-16 09:05:19 +00:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef HL1_HUD_NUMBERS_H
#define HL1_HUD_NUMBERS_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Panel.h>
class CHL1HudNumbers : public vgui::Panel
{
DECLARE_CLASS_SIMPLE( CHL1HudNumbers, vgui::Panel );
public:
CHL1HudNumbers( vgui::Panel *parent, const char *name );
void VidInit( void );
protected:
int DrawHudNumber( int x, int y, int iNumber, Color &clrDraw );
int GetNumberFontHeight( void );
int GetNumberFontWidth( void );
private:
CHudTexture *icon_digits[ 10 ];
};
#endif // HL1_HUD_NUMBERS_H