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.

41 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "OptionsSubGame.h"
  7. #include "BasePanel.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. //-----------------------------------------------------------------------------
  11. // Purpose: Constructor
  12. //-----------------------------------------------------------------------------
  13. COptionsSubGame::COptionsSubGame( vgui::Panel *parent, const char *name ) : BaseClass( parent, name )
  14. {
  15. SetDeleteSelfOnClose( true );
  16. LoadControlSettings( "Resource/OptionsSubGame.res" );
  17. }
  18. //-----------------------------------------------------------------------------
  19. // Purpose: Destructor
  20. //-----------------------------------------------------------------------------
  21. COptionsSubGame::~COptionsSubGame()
  22. {
  23. }
  24. void COptionsSubGame::OnClose( void )
  25. {
  26. BasePanel()->RunCloseAnimation( "CloseOptionsSubGame" );
  27. BaseClass::OnClose();
  28. }
  29. //-----------------------------------------------------------------------------
  30. // Purpose:
  31. //-----------------------------------------------------------------------------
  32. void COptionsSubGame::OnCommand( const char *command )
  33. {
  34. BaseClass::OnCommand( command );
  35. }