WIP: Begin rewriting serverbrowser

This commit is contained in:
nillerusr
2023-01-29 19:26:04 +03:00
parent 548be38a0b
commit 41aa50e66e
27 changed files with 265 additions and 333 deletions

View File

@@ -50,26 +50,22 @@ public:
// Adds a server to the list of favorites
void AddServerToFavorites(gameserveritem_t &server);
// Adds a server to our list of blacklisted servers
void AddServerToBlacklist(gameserveritem_t &server);
bool IsServerBlacklisted(gameserveritem_t &server);
// begins the process of joining a server from a game list
// the game info dialog it opens will also update the game list
CDialogGameInfo *JoinGame(IGameList *gameList, unsigned int serverIndex);
CDialogGameInfo *JoinGame(IGameList *gameList, newgameserver_t *pServer);
// joins a game by a specified IP, not attached to any game list
CDialogGameInfo *JoinGame(int serverIP, int serverPort, const char *pszConnectCode);
// opens a game info dialog from a game list
CDialogGameInfo *OpenGameInfoDialog(IGameList *gameList, unsigned int serverIndex);
CDialogGameInfo *OpenGameInfoDialog(IGameList *gameList, newgameserver_t *pServer);
// opens a game info dialog by a specified IP, not attached to any game list
CDialogGameInfo *OpenGameInfoDialog( int serverIP, uint16 connPort, uint16 queryPort, const char *pszConnectCode );
// closes all the game info dialogs
void CloseAllGameInfoDialogs();
CDialogGameInfo *GetDialogGameInfoForFriend( uint64 ulSteamIDFriend );
// accessor to the filter save data
KeyValues *GetFilterSaveData(const char *filterSet);
@@ -91,9 +87,6 @@ public:
return &m_CurrentConnection;
}
void BlacklistsChanged();
CBlacklistedServers *GetBlacklistPage( void ) { return m_pBlacklist; }
private:
// current game list change
@@ -126,12 +119,10 @@ private:
// property sheet
vgui::PropertySheet *m_pTabPanel;
CFavoriteGames *m_pFavorites;
CBlacklistedServers *m_pBlacklist;
CHistoryGames *m_pHistory;
CInternetGames *m_pInternetGames;
CSpectateGames *m_pSpectateGames;
//CSpectateGames *m_pSpectateGames;
CLanGames *m_pLanGames;
CFriendsGames *m_pFriendsGames;
KeyValues *m_pSavedData;
KeyValues *m_pFilterData;