Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_VIEWPORT_H
  8. #define TF_VIEWPORT_H
  9. #include "tf_shareddefs.h"
  10. #include "baseviewport.h"
  11. using namespace vgui;
  12. namespace vgui
  13. {
  14. class Panel;
  15. class Label;
  16. class CBitmapImagePanel;
  17. }
  18. //==============================================================================
  19. class TFViewport : public CBaseViewport
  20. {
  21. private:
  22. DECLARE_CLASS_SIMPLE( TFViewport, CBaseViewport );
  23. public:
  24. TFViewport();
  25. ~TFViewport();
  26. IViewPortPanel* CreatePanelByName(const char *szPanelName);
  27. void CreateDefaultPanels( void );
  28. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  29. virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager );
  30. int GetDeathMessageStartHeight( void );
  31. virtual void OnScreenSizeChanged( int iOldWide, int iOldTall );
  32. virtual void OnTick() OVERRIDE;
  33. private:
  34. void CenterWindow( vgui::Frame *win );
  35. };
  36. #endif // TF_Viewport_H