diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/tf_textwindow.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/vgui/tf_textwindow.h')
| -rw-r--r-- | game/client/tf/vgui/tf_textwindow.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_textwindow.h b/game/client/tf/vgui/tf_textwindow.h new file mode 100644 index 0000000..abb2958 --- /dev/null +++ b/game/client/tf/vgui/tf_textwindow.h @@ -0,0 +1,62 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TFTEXTWINDOW_H +#define TFTEXTWINDOW_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Panel.h> +#include "vguitextwindow.h" +#include "tf_controls.h" +#include "IconPanel.h" + +using namespace vgui; + +//----------------------------------------------------------------------------- +// Purpose: displays the MOTD +//----------------------------------------------------------------------------- + +class CTFTextWindow : public CTextWindow +{ +private: + DECLARE_CLASS_SIMPLE( CTFTextWindow, CTextWindow ); + +public: + CTFTextWindow( IViewPort *pViewPort ); + virtual ~CTFTextWindow(); + + virtual void SetData(KeyValues *data); + virtual void Update(); + virtual void Reset(); + virtual void SetVisible(bool state); + virtual void ShowPanel( bool bShow ); + virtual void OnKeyCodePressed( vgui::KeyCode code ); + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); + virtual void ShowFile( const char *filename ); + virtual void ShowURL( const char *URL, bool bAllowUserToDisable = true ); + virtual void ShowText( const char *text ); + void ShowTitleLabel( bool show ); + virtual void OnThink(); + + virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_IN_GAME_HUD; } + +public: + virtual void PaintBackground(); + +protected: + // vgui overrides + virtual void OnCommand( const char *command ); + +private: + CExRichText *m_pTFTextMessage; + bool m_bCustomSvrPage; +}; + + +#endif // TFTEXTWINDOW_H |