summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_viewport.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/vgui/tf_viewport.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/vgui/tf_viewport.h')
-rw-r--r--game/client/tf/vgui/tf_viewport.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_viewport.h b/game/client/tf/vgui/tf_viewport.h
new file mode 100644
index 0000000..f851cbe
--- /dev/null
+++ b/game/client/tf/vgui/tf_viewport.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_VIEWPORT_H
+#define TF_VIEWPORT_H
+
+
+#include "tf_shareddefs.h"
+#include "baseviewport.h"
+
+
+using namespace vgui;
+
+namespace vgui
+{
+ class Panel;
+ class Label;
+ class CBitmapImagePanel;
+}
+
+//==============================================================================
+class TFViewport : public CBaseViewport
+{
+
+private:
+ DECLARE_CLASS_SIMPLE( TFViewport, CBaseViewport );
+
+public:
+ TFViewport();
+ ~TFViewport();
+
+ IViewPortPanel* CreatePanelByName(const char *szPanelName);
+ void CreateDefaultPanels( void );
+
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager );
+
+ int GetDeathMessageStartHeight( void );
+
+ virtual void OnScreenSizeChanged( int iOldWide, int iOldTall );
+
+ virtual void OnTick() OVERRIDE;
+
+private:
+ void CenterWindow( vgui::Frame *win );
+
+};
+
+
+#endif // TF_Viewport_H