summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_chat.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/tf/tf_hud_chat.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/tf_hud_chat.h')
-rw-r--r--game/client/tf/tf_hud_chat.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_chat.h b/game/client/tf/tf_hud_chat.h
new file mode 100644
index 0000000..7588b84
--- /dev/null
+++ b/game/client/tf/tf_hud_chat.h
@@ -0,0 +1,75 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CS_HUD_CHAT_H
+#define CS_HUD_CHAT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <hud_basechat.h>
+
+
+class CHudChatLine : public CBaseHudChatLine
+{
+ DECLARE_CLASS_SIMPLE( CHudChatLine, CBaseHudChatLine );
+
+public:
+
+ CHudChatLine( vgui::Panel *parent, const char *panelName );
+
+ virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
+private:
+ CHudChatLine( const CHudChatLine & ); // not defined, not accessible
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: The prompt and text entry area for chat messages
+//-----------------------------------------------------------------------------
+class CHudChatInputLine : public CBaseHudChatInputLine
+{
+ DECLARE_CLASS_SIMPLE( CHudChatInputLine, CBaseHudChatInputLine );
+
+public:
+ CHudChatInputLine( CBaseHudChat *parent, char const *panelName ) : CBaseHudChatInputLine( parent, panelName ) {}
+
+ virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
+};
+
+class CHudChat : public CBaseHudChat
+{
+ DECLARE_CLASS_SIMPLE( CHudChat, CBaseHudChat );
+
+public:
+ CHudChat( const char *pElementName );
+
+ virtual void CreateChatInputLine( void );
+
+ virtual void Init( void );
+ virtual void Reset( void );
+ int GetChatInputOffset( void );
+ void CreateChatLines( void );
+
+ virtual bool ShouldDraw( void );
+
+ virtual Color GetTextColorForClient( TextColor colorNum, int clientIndex );
+ virtual Color GetClientColor( int clientIndex );
+
+ virtual int GetFilterForString( const char *pString );
+
+ virtual const char *GetDisplayedSubtitlePlayerName( int clientIndex );
+ virtual bool IsVisible();
+
+ virtual int GetFilterFlags( void );
+
+#if defined( _X360 )
+ // hide behind other panels ( stats , build menu ) in 360
+ virtual int GetRenderGroupPriority( void ) { return 35; } // less than statpanel
+#endif
+};
+
+#endif //CS_HUD_CHAT_H \ No newline at end of file