mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
1
This commit is contained in:
46
serverbrowser/HistoryGames.h
Normal file
46
serverbrowser/HistoryGames.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user