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.

50 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: baseclientstate.cpp: implementation of the CBaseClientState class.
  4. //
  5. //=============================================================================//
  6. //-----------------------------------------------------------------------------
  7. // Purpose: the plugin message handler
  8. //-----------------------------------------------------------------------------
  9. #include <vgui_controls/Panel.h>
  10. #include "engine/iserverplugin.h"
  11. #include "netmessages.h"
  12. class CPluginGameUIDialog;
  13. class CPluginHudMessage;
  14. class CPluginUIManager : public vgui::Panel
  15. {
  16. private:
  17. DECLARE_CLASS_SIMPLE( CPluginUIManager, vgui::Panel );
  18. public:
  19. CPluginUIManager();
  20. ~CPluginUIManager();
  21. void Show( DIALOG_TYPE type, KeyValues *kv );
  22. void OnPanelClosed();
  23. void Shutdown();
  24. void GetHudMessagePosition( int &x, int &y, int &wide, int &tall ); // Gets the position of the plugin HUD message. The askconnect dialog is placed here.
  25. protected:
  26. void OnTick();
  27. int m_iCurPriority;
  28. int m_iMessageDisplayUntil;
  29. int m_iHudDisplayUntil;
  30. bool m_bShutdown;
  31. CPluginGameUIDialog *m_pGameUIDialog;
  32. CPluginHudMessage *m_pHudMessage;
  33. };
  34. extern CPluginUIManager *g_PluginManager;
  35. void PluginHelpers_Menu( const CSVCMsg_Menu& msg );