diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/OptionsSubGame.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'gameui/OptionsSubGame.cpp')
| -rw-r--r-- | gameui/OptionsSubGame.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gameui/OptionsSubGame.cpp b/gameui/OptionsSubGame.cpp new file mode 100644 index 0000000..3092ea1 --- /dev/null +++ b/gameui/OptionsSubGame.cpp @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "OptionsSubGame.h" +#include "BasePanel.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//----------------------------------------------------------------------------- +// Purpose: Constructor +//----------------------------------------------------------------------------- +COptionsSubGame::COptionsSubGame( vgui::Panel *parent, const char *name ) : BaseClass( parent, name ) +{ + SetDeleteSelfOnClose( true ); + LoadControlSettings( "Resource/OptionsSubGame.res" ); +} + +//----------------------------------------------------------------------------- +// Purpose: Destructor +//----------------------------------------------------------------------------- +COptionsSubGame::~COptionsSubGame() +{ +} + +void COptionsSubGame::OnClose( void ) +{ + BasePanel()->RunCloseAnimation( "CloseOptionsSubGame" ); + BaseClass::OnClose(); +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +void COptionsSubGame::OnCommand( const char *command ) +{ + BaseClass::OnCommand( command ); +} |