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 /utils/vconfig/ManageGamesDialog.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/vconfig/ManageGamesDialog.h')
| -rw-r--r-- | utils/vconfig/ManageGamesDialog.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/utils/vconfig/ManageGamesDialog.h b/utils/vconfig/ManageGamesDialog.h new file mode 100644 index 0000000..d73121e --- /dev/null +++ b/utils/vconfig/ManageGamesDialog.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef MANAGEGAMESDIALOG_H +#define MANAGEGAMESDIALOG_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> +#include <vgui_controls/TextEntry.h> +#include <vgui_controls/PHandle.h> + +using namespace vgui; + +//----------------------------------------------------------------------------- +// Purpose: Main dialog for media browser +//----------------------------------------------------------------------------- +class CManageGamesDialog : public Frame +{ + DECLARE_CLASS_SIMPLE( CManageGamesDialog, Frame ); + +public: + + CManageGamesDialog( Panel *parent, const char *name, int configID ); + virtual ~CManageGamesDialog(); + + void SetGameDir( const char *szDir ); + void SetGameName( const char *szDir ); + +protected: + + virtual void OnCommand( const char *command ); + + bool IsGameNameUnique( const char *name ); + +private: + + int m_nConfigID; + + vgui::TextEntry *m_pGameNameEntry; + vgui::TextEntry *m_pGameDirEntry; + + MESSAGE_FUNC_CHARPTR( OnChooseDirectory, "DirectorySelected", dir ); +}; + + +extern CManageGamesDialog *g_pManageGamesDialog; + + +#endif // MANAGEGAMESDIALOG_H |