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.

39 lines
905 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Base class menus should all inherit from
  4. //
  5. // $Revision: $
  6. // $NoKeywords: $
  7. //===========================================================================//
  8. #ifndef BASEMENU_H
  9. #define BASEMENU_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "vgui_controls/frame.h"
  14. #include "vgui/keycode.h"
  15. //-----------------------------------------------------------------------------
  16. // Constructor, destructor
  17. //-----------------------------------------------------------------------------
  18. class CBaseMenu : public vgui::Frame
  19. {
  20. DECLARE_CLASS_SIMPLE( CBaseMenu, vgui::Frame );
  21. public:
  22. CBaseMenu( vgui::Panel *pParent, const char *pPanelName );
  23. virtual ~CBaseMenu();
  24. // Commands
  25. virtual void OnCommand( const char *pCommand );
  26. virtual void OnKeyCodeTyped( vgui::KeyCode code );
  27. private:
  28. };
  29. #endif // BASEMENU_H