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.5 KiB
56 lines
1.5 KiB
5 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef FAVORITEGAMES_H
|
||
|
#define FAVORITEGAMES_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose: Favorite games list
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CFavoriteGames : public CBaseGamesPage
|
||
|
{
|
||
|
DECLARE_CLASS_SIMPLE( CFavoriteGames, CBaseGamesPage );
|
||
|
|
||
|
public:
|
||
|
CFavoriteGames(vgui::Panel *parent);
|
||
|
~CFavoriteGames();
|
||
|
|
||
|
// favorites list, loads/saves into keyvalues
|
||
|
void LoadFavoritesList();
|
||
|
|
||
|
// 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 );
|
||
|
|
||
|
// passed from main server browser window instead of messages
|
||
|
void OnConnectToGame();
|
||
|
void OnDisconnectFromGame( void );
|
||
|
|
||
|
void SetRefreshOnReload() { m_bRefreshOnListReload = true; }
|
||
|
|
||
|
private:
|
||
|
// context menu message handlers
|
||
|
MESSAGE_FUNC_INT( OnOpenContextMenu, "OpenContextMenu", itemID );
|
||
|
MESSAGE_FUNC( OnRemoveFromFavorites, "RemoveFromFavorites" );
|
||
|
MESSAGE_FUNC( OnAddServerByName, "AddServerByName" );
|
||
|
|
||
|
void OnAddCurrentServer( void );
|
||
|
|
||
|
void OnCommand(const char *command);
|
||
|
|
||
|
bool m_bRefreshOnListReload;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // FAVORITEGAMES_H
|