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 /serverbrowser/HistoryGames.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'serverbrowser/HistoryGames.h')
| -rw-r--r-- | serverbrowser/HistoryGames.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/serverbrowser/HistoryGames.h b/serverbrowser/HistoryGames.h new file mode 100644 index 0000000..6dbbf44 --- /dev/null +++ b/serverbrowser/HistoryGames.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef HISTORYGAMES_H +#define HISTORYGAMES_H +#ifdef _WIN32 +#pragma once +#endif + +//----------------------------------------------------------------------------- +// Purpose: History of all the servers joined +//----------------------------------------------------------------------------- +class CHistoryGames : public CBaseGamesPage +{ + DECLARE_CLASS_SIMPLE( CHistoryGames, CBaseGamesPage ); + +public: + CHistoryGames(vgui::Panel *parent); + ~CHistoryGames(); + + // favorites list, loads/saves into keyvalues + void LoadHistoryList(); + + + // IGameList handlers + // returns true if the game list supports the specified ui elements + virtual bool SupportsItem(InterfaceItem_e item); + + // called when the current refresh list is complete + virtual void RefreshComplete( HServerListRequest hReq, EMatchMakingServerResponse response ); + + void SetRefreshOnReload() { m_bRefreshOnListReload = true; } + +private: + // context menu message handlers + MESSAGE_FUNC_INT( OnOpenContextMenu, "OpenContextMenu", itemID ); + MESSAGE_FUNC( OnRemoveFromHistory, "RemoveFromHistory" ); + + bool m_bRefreshOnListReload; +}; + + +#endif // HISTORYGAMES_H |