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/CreateMultiplayerGameGameplayPage.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'gameui/CreateMultiplayerGameGameplayPage.h')
| -rw-r--r-- | gameui/CreateMultiplayerGameGameplayPage.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gameui/CreateMultiplayerGameGameplayPage.h b/gameui/CreateMultiplayerGameGameplayPage.h new file mode 100644 index 0000000..e0cc788 --- /dev/null +++ b/gameui/CreateMultiplayerGameGameplayPage.h @@ -0,0 +1,48 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H +#define CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/PropertyPage.h> + +class CPanelListPanel; +class CDescription; +class mpcontrol_t; + +//----------------------------------------------------------------------------- +// Purpose: server options page of the create game server dialog +//----------------------------------------------------------------------------- +class CCreateMultiplayerGameGameplayPage : public vgui::PropertyPage +{ +public: + CCreateMultiplayerGameGameplayPage(vgui::Panel *parent, const char *name); + ~CCreateMultiplayerGameGameplayPage(); + + // returns currently entered information about the server + int GetMaxPlayers(); + const char *GetPassword(); + const char *GetHostName(); + +protected: + virtual void OnApplyChanges(); + +private: + const char *GetValue(const char *cvarName, const char *defaultValue); + void LoadGameOptionsList(); + void GatherCurrentValues(); + + CDescription *m_pDescription; + mpcontrol_t *m_pList; + CPanelListPanel *m_pOptionsList; +}; + + +#endif // CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H |