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.

33 lines
967 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef SERVERCONTEXTMENU_H
  8. #define SERVERCONTEXTMENU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <VGUI_Menu.h>
  13. #include "serverpage.h"
  14. //-----------------------------------------------------------------------------
  15. // Purpose: Basic right-click context menu for servers
  16. //-----------------------------------------------------------------------------
  17. class CServerContextMenu : public vgui::Menu
  18. {
  19. public:
  20. CServerContextMenu(CServerPage /*vgui::Panel*/ *parent);
  21. ~CServerContextMenu();
  22. // call this to activate the menu
  23. void ShowMenu(vgui::Panel *target, unsigned int serverID, bool showConnect, bool showRefresh, bool showAddToFavorites,bool manage);
  24. private:
  25. CServerPage /*vgui::Panel*/ *parent; // so we can send it messages
  26. };
  27. #endif // SERVERCONTEXTMENU_H