summaryrefslogtreecommitdiff
path: root/gameui/CreateMultiplayerGameDialog.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/CreateMultiplayerGameDialog.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'gameui/CreateMultiplayerGameDialog.h')
-rw-r--r--gameui/CreateMultiplayerGameDialog.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/gameui/CreateMultiplayerGameDialog.h b/gameui/CreateMultiplayerGameDialog.h
new file mode 100644
index 0000000..4507f5f
--- /dev/null
+++ b/gameui/CreateMultiplayerGameDialog.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CREATEMULTIPLAYERGAMEDIALOG_H
+#define CREATEMULTIPLAYERGAMEDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/PropertyDialog.h>
+
+class CCreateMultiplayerGameServerPage;
+class CCreateMultiplayerGameGameplayPage;
+class CCreateMultiplayerGameBotPage;
+
+//-----------------------------------------------------------------------------
+// Purpose: dialog for launching a listenserver
+//-----------------------------------------------------------------------------
+class CCreateMultiplayerGameDialog : public vgui::PropertyDialog
+{
+ DECLARE_CLASS_SIMPLE( CCreateMultiplayerGameDialog, vgui::PropertyDialog );
+
+public:
+ CCreateMultiplayerGameDialog(vgui::Panel *parent);
+ ~CCreateMultiplayerGameDialog();
+
+protected:
+ virtual bool OnOK(bool applyOnly);
+ virtual void OnKeyCodePressed( vgui::KeyCode code );
+
+private:
+ CCreateMultiplayerGameServerPage *m_pServerPage;
+ CCreateMultiplayerGameGameplayPage *m_pGameplayPage;
+ CCreateMultiplayerGameBotPage *m_pBotPage;
+
+ bool m_bBotsEnabled;
+
+ // for loading/saving game config
+ KeyValues *m_pSavedData;
+};
+
+
+#endif // CREATEMULTIPLAYERGAMEDIALOG_H