Counter Strike : Global Offensive Source Code
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.

73 lines
1.9 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef PORTAL_CLIENTMODE_H
  7. #define PORTAL_CLIENTMODE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "clientmode_shared.h"
  12. #include <vgui_controls/EditablePanel.h>
  13. #include <vgui/Cursor.h>
  14. class CHudViewport;
  15. class CRadialMenu;
  16. namespace vgui
  17. {
  18. typedef unsigned long HScheme;
  19. }
  20. class ClientModePortalNormal : public ClientModeShared
  21. {
  22. DECLARE_CLASS( ClientModePortalNormal, ClientModeShared );
  23. private:
  24. // IClientMode overrides.
  25. public:
  26. ClientModePortalNormal();
  27. virtual ~ClientModePortalNormal();
  28. virtual void Init();
  29. virtual void InitViewport();
  30. virtual void LevelInit( const char *newmap );
  31. virtual void LevelShutdown( void );
  32. virtual void SetBlurFade( float scale );
  33. virtual float GetBlurFade( void ) { return m_BlurFadeScale; }
  34. virtual void OnColorCorrectionWeightsReset( void );
  35. virtual float GetColorCorrectionScale( void ) const { return 1.0f; }
  36. virtual void InitWeaponSelectionHudElement( void ) { return; } // don't init this hud
  37. virtual bool ShouldDrawCrosshair( void );
  38. virtual void DoPostScreenSpaceEffects( const CViewSetup *pSetup );
  39. virtual int HudElementKeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding );
  40. void InitRadialMenuHudElement( void );
  41. virtual float GetViewModelFOV( void );
  42. void StartTransitionFade( float flFadeTime );
  43. private:
  44. // void UpdateSpectatorMode( void );
  45. // ClientCCHandle_t m_CCDeathHandle; // handle to death cc effect
  46. // float m_flDeathCCWeight; // for fading in cc effect
  47. CHandle<C_ColorCorrection> m_hCurrentColorCorrection;
  48. float m_BlurFadeScale;
  49. CRadialMenu *m_pRadialMenu;
  50. };
  51. extern IClientMode *GetClientModeNormal();
  52. extern ClientModePortalNormal* GetClientModePortalNormal();
  53. #endif // PORTAL_CLIENTMODE_H