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.

47 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CREATEMULTIPLAYERGAMEDIALOG_H
  8. #define CREATEMULTIPLAYERGAMEDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyDialog.h>
  13. class CCreateMultiplayerGameServerPage;
  14. class CCreateMultiplayerGameGameplayPage;
  15. class CCreateMultiplayerGameBotPage;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: dialog for launching a listenserver
  18. //-----------------------------------------------------------------------------
  19. class CCreateMultiplayerGameDialog : public vgui::PropertyDialog
  20. {
  21. DECLARE_CLASS_SIMPLE( CCreateMultiplayerGameDialog, vgui::PropertyDialog );
  22. public:
  23. CCreateMultiplayerGameDialog(vgui::Panel *parent);
  24. ~CCreateMultiplayerGameDialog();
  25. protected:
  26. virtual bool OnOK(bool applyOnly);
  27. virtual void OnKeyCodePressed( vgui::KeyCode code );
  28. private:
  29. CCreateMultiplayerGameServerPage *m_pServerPage;
  30. CCreateMultiplayerGameGameplayPage *m_pGameplayPage;
  31. CCreateMultiplayerGameBotPage *m_pBotPage;
  32. bool m_bBotsEnabled;
  33. // for loading/saving game config
  34. KeyValues *m_pSavedData;
  35. };
  36. #endif // CREATEMULTIPLAYERGAMEDIALOG_H