summaryrefslogtreecommitdiff
path: root/game/client/vguicenterprint.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/vguicenterprint.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/vguicenterprint.h')
-rw-r--r--game/client/vguicenterprint.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/game/client/vguicenterprint.h b/game/client/vguicenterprint.h
new file mode 100644
index 0000000..f1a83a7
--- /dev/null
+++ b/game/client/vguicenterprint.h
@@ -0,0 +1,48 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( VGUICENTERPRINT_H )
+#define VGUICENTERPRINT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "ivguicenterprint.h"
+#include <vgui/VGUI.h>
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+namespace vgui
+{
+class Panel;
+}
+
+class CCenterStringLabel;
+class CCenterPrint : public ICenterPrint
+{
+private:
+ CCenterStringLabel *vguiCenterString;
+
+public:
+ CCenterPrint( void );
+
+ virtual void Create( vgui::VPANEL parent );
+ virtual void Destroy( void );
+
+ virtual void SetTextColor( int r, int g, int b, int a );
+ virtual void Print( char *text );
+ virtual void Print( wchar_t *text );
+ virtual void ColorPrint( int r, int g, int b, int a, char *text );
+ virtual void ColorPrint( int r, int g, int b, int a, wchar_t *text );
+ virtual void Clear( void );
+};
+
+extern CCenterPrint *internalCenterPrint;
+
+#endif // VGUICENTERPRINT_H \ No newline at end of file