Counter Strike : Global Offensive Source Code
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.

56 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CREATEMULTIPLAYERGAMESERVERPAGE_H
  8. #define CREATEMULTIPLAYERGAMESERVERPAGE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyPage.h>
  13. #include "cvartogglecheckbutton.h"
  14. //-----------------------------------------------------------------------------
  15. // Purpose: server options page of the create game server dialog
  16. //-----------------------------------------------------------------------------
  17. class CCreateMultiplayerGameServerPage : public vgui::PropertyPage
  18. {
  19. DECLARE_CLASS_SIMPLE( CCreateMultiplayerGameServerPage, vgui::PropertyPage );
  20. public:
  21. CCreateMultiplayerGameServerPage(vgui::Panel *parent, const char *name);
  22. ~CCreateMultiplayerGameServerPage();
  23. // returns currently entered information about the server
  24. void SetMap(const char *name);
  25. bool IsRandomMapSelected();
  26. const char *GetMapName();
  27. // CS Bots
  28. void EnableBots( KeyValues *data );
  29. int GetBotQuota( void );
  30. bool GetBotsEnabled( void );
  31. protected:
  32. virtual void OnApplyChanges();
  33. MESSAGE_FUNC( OnCheckButtonChecked, "CheckButtonChecked" );
  34. private:
  35. void LoadMapList();
  36. void LoadMaps( const char *pszPathID );
  37. vgui::ComboBox *m_pMapList;
  38. vgui::CheckButton *m_pEnableBotsCheck;
  39. CCvarToggleCheckButton *m_pEnableTutorCheck;
  40. KeyValues *m_pSavedData;
  41. enum { DATA_STR_LENGTH = 64 };
  42. char m_szMapName[DATA_STR_LENGTH];
  43. };
  44. #endif // CREATEMULTIPLAYERGAMESERVERPAGE_H