summaryrefslogtreecommitdiff
path: root/serverbrowser/FriendsGames.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /serverbrowser/FriendsGames.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'serverbrowser/FriendsGames.h')
-rw-r--r--serverbrowser/FriendsGames.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/serverbrowser/FriendsGames.h b/serverbrowser/FriendsGames.h
new file mode 100644
index 0000000..84c383d
--- /dev/null
+++ b/serverbrowser/FriendsGames.h
@@ -0,0 +1,39 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef FRIENDSGAMES_H
+#define FRIENDSGAMES_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//-----------------------------------------------------------------------------
+// Purpose: Favorite games list
+//-----------------------------------------------------------------------------
+class CFriendsGames : public CBaseGamesPage
+{
+ DECLARE_CLASS_SIMPLE( CFriendsGames, CBaseGamesPage );
+
+public:
+ CFriendsGames(vgui::Panel *parent);
+ ~CFriendsGames();
+
+ // 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 );
+
+private:
+ // context menu message handlers
+ MESSAGE_FUNC_INT( OnOpenContextMenu, "OpenContextMenu", itemID );
+
+ int m_iServerRefreshCount; // number of servers refreshed
+};
+
+#endif // FRIENDSGAMES_H