We'll add a button to the browser that allows a server to be added to the favourites list - easily and quickly. Along the way we'll also fix a bug in the source code. The server browser is accessed by selecting a Multiplayer game from the main menu. You can browse servers running on the Internet, MPlayer, locally, or from your list of favourites. Servers that have been queried are displayed in a listbox for selection.
Lets open it up and take a look.
It carries the data required for each control, intermediate data used while servers are being pinged, and the results that are to be displayed in the browser. Any previously cached data is used - there might have been changes to the configuration file from elsewhere. Lists and lists of servers We'll also need to know how the lists of server information are stored, and how they're built for display in the browser listbox. This means generic functions can be written that automatically access the correct data list. It also enables and disables controls when the server refresh is starting or has finished.