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
830 B

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