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.

46 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: List of game systems to update
  4. //
  5. // $Revision: $
  6. // $NoKeywords: $
  7. //===========================================================================//
  8. #include "menumanager.h"
  9. #include "basemenu.h"
  10. //-----------------------------------------------------------------------------
  11. // Constructor, destructor
  12. //-----------------------------------------------------------------------------
  13. class CMainMenu : public CBaseMenu
  14. {
  15. DECLARE_CLASS_SIMPLE( CMainMenu, CBaseMenu );
  16. public:
  17. CMainMenu( vgui::Panel *pParent, const char *pPanelName );
  18. virtual ~CMainMenu();
  19. private:
  20. };
  21. //-----------------------------------------------------------------------------
  22. // Hooks the menu into the menu manager
  23. //-----------------------------------------------------------------------------
  24. REGISTER_MENU( "MainMenu", CMainMenu );
  25. //-----------------------------------------------------------------------------
  26. // Constructor, destructor
  27. //-----------------------------------------------------------------------------
  28. CMainMenu::CMainMenu( vgui::Panel *pParent, const char *pPanelName ) :
  29. BaseClass( pParent, pPanelName )
  30. {
  31. LoadControlSettings( "resource/mainmenu.res", "GAME" );
  32. }
  33. CMainMenu::~CMainMenu()
  34. {
  35. }