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.

32 lines
826 B

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