blob: 6dbbf447623782b3b0f64e292742ff67c6d760c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
|