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.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef HISTORYGAMES_H
  7. #define HISTORYGAMES_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Purpose: History of all the servers joined
  13. //-----------------------------------------------------------------------------
  14. class CHistoryGames : public CBaseGamesPage
  15. {
  16. DECLARE_CLASS_SIMPLE( CHistoryGames, CBaseGamesPage );
  17. public:
  18. CHistoryGames(vgui::Panel *parent);
  19. ~CHistoryGames();
  20. // favorites list, loads/saves into keyvalues
  21. void LoadHistoryList();
  22. // IGameList handlers
  23. // returns true if the game list supports the specified ui elements
  24. virtual bool SupportsItem(InterfaceItem_e item);
  25. // called when the current refresh list is complete
  26. virtual void RefreshComplete( HServerListRequest hReq, EMatchMakingServerResponse response );
  27. void SetRefreshOnReload() { m_bRefreshOnListReload = true; }
  28. private:
  29. // context menu message handlers
  30. MESSAGE_FUNC_INT( OnOpenContextMenu, "OpenContextMenu", itemID );
  31. MESSAGE_FUNC( OnRemoveFromHistory, "RemoveFromHistory" );
  32. bool m_bRefreshOnListReload;
  33. };
  34. #endif // HISTORYGAMES_H