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.

46 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Present a list of sessions from which the player can choose a game to join.
  4. //
  5. //=====================================================================================//
  6. #ifndef SESSIONBROWSERDIALOG_H
  7. #define SESSIONBROWSERDIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "basedialog.h"
  12. class CSessionBrowserDialog : public CBaseDialog
  13. {
  14. DECLARE_CLASS_SIMPLE( CSessionBrowserDialog, CBaseDialog );
  15. public:
  16. CSessionBrowserDialog( vgui::Panel *parent, KeyValues *pDialogKeys );
  17. ~CSessionBrowserDialog();
  18. virtual void PerformLayout();
  19. virtual void ApplySettings( KeyValues *inResourceData );
  20. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  21. virtual void OnKeyCodePressed( vgui::KeyCode code );
  22. virtual void OnCommand( const char *pCommand );
  23. virtual void OnThink();
  24. virtual void SwapMenuItems( int iOne, int iTwo );
  25. void UpdateScenarioDisplay( void );
  26. void SessionSearchResult( int searchIdx, void *pHostData, XSESSION_SEARCHRESULT *pResult, int ping );
  27. KeyValues *m_pDialogKeys;
  28. CUtlVector< CScenarioInfoPanel* > m_pScenarioInfos;
  29. CUtlVector< int > m_ScenarioIndices;
  30. CUtlVector< int > m_SearchIndices;
  31. CUtlVector< int > m_GameStates;
  32. CUtlVector< int > m_GameTimes;
  33. CUtlVector< XUID > m_XUIDs;
  34. };
  35. #endif // SESSIONBROWSERDIALOG_H