27 lines
477 B
C++
27 lines
477 B
C++
#ifndef FGUI_LABEL_H
|
|
#define FGUI_LABEL_H
|
|
#include "widget.h"
|
|
#include "tier1/utlstring.h"
|
|
#include "rendering.h"
|
|
|
|
class CFGUI_Label: public CFGUI_Widget
|
|
{
|
|
public:
|
|
CFGUI_Label();
|
|
~CFGUI_Label();
|
|
|
|
CUtlString m_szText;
|
|
float m_fLabelColor[3];
|
|
|
|
void SetFont( CUtlString font );
|
|
void SetLabel( CUtlString text );
|
|
void SetLabelSize( uint32_t nSize );
|
|
|
|
virtual void Event( FGUI_Event_t event ) override;
|
|
virtual void Draw() override;
|
|
|
|
uint32_t m_fGlyphSize[2];
|
|
};
|
|
|
|
#endif
|