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.

48 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H
  8. #define CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyPage.h>
  13. class CPanelListPanel;
  14. class CDescription;
  15. class mpcontrol_t;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: server options page of the create game server dialog
  18. //-----------------------------------------------------------------------------
  19. class CCreateMultiplayerGameGameplayPage : public vgui::PropertyPage
  20. {
  21. public:
  22. CCreateMultiplayerGameGameplayPage(vgui::Panel *parent, const char *name);
  23. ~CCreateMultiplayerGameGameplayPage();
  24. // returns currently entered information about the server
  25. int GetMaxPlayers();
  26. const char *GetPassword();
  27. const char *GetHostName();
  28. protected:
  29. virtual void OnApplyChanges();
  30. private:
  31. const char *GetValue(const char *cvarName, const char *defaultValue);
  32. void LoadGameOptionsList();
  33. void GatherCurrentValues();
  34. CDescription *m_pDescription;
  35. mpcontrol_t *m_pList;
  36. CPanelListPanel *m_pOptionsList;
  37. };
  38. #endif // CREATEMULTIPLAYERGAMEGAMEPLAYPAGE_H