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.

54 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef MANAGEGAMESDIALOG_H
  7. #define MANAGEGAMESDIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Frame.h>
  12. #include <vgui_controls/TextEntry.h>
  13. #include <vgui_controls/PHandle.h>
  14. using namespace vgui;
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Main dialog for media browser
  17. //-----------------------------------------------------------------------------
  18. class CManageGamesDialog : public Frame
  19. {
  20. DECLARE_CLASS_SIMPLE( CManageGamesDialog, Frame );
  21. public:
  22. CManageGamesDialog( Panel *parent, const char *name, int configID );
  23. virtual ~CManageGamesDialog();
  24. void SetGameDir( const char *szDir );
  25. void SetGameName( const char *szDir );
  26. protected:
  27. virtual void OnCommand( const char *command );
  28. bool IsGameNameUnique( const char *name );
  29. private:
  30. int m_nConfigID;
  31. vgui::TextEntry *m_pGameNameEntry;
  32. vgui::TextEntry *m_pGameDirEntry;
  33. MESSAGE_FUNC_CHARPTR( OnChooseDirectory, "DirectorySelected", dir );
  34. };
  35. extern CManageGamesDialog *g_pManageGamesDialog;
  36. #endif // MANAGEGAMESDIALOG_H