Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 |
//==================================================================== // // Base class for all browser pages that must communicate with the // master server. Only shown once CD-key has been verified by Epic. // // Updated by Ron Prestenback // (c) 2003, Epic Games, Inc. All Rights Reserved // ==================================================================== class UT2K4Browser_ServerListPageMS extends UT2K4Browser_ServerListPageBase; function ShowPanel( bool bShow ) { Super.ShowPanel(bShow); if ( bShow && !bInit ) BindQueryClient(Browser.Uplink()); } function Refresh() { if (UT2K4ServerBrowser(PageOwner).Verified) UT2K4ServerBrowser(PageOwner).ClearServerCache(); Super.Refresh(); ResetQueryClient(Browser.Uplink()); } function ResetQueryClient( ServerQueryClient Client ) { Super.ResetQueryClient(Client); if ( MasterServerClient(Client) != None ) MasterServerClient(Client).Query.Length = 0; } function BindQueryClient( ServerQueryClient Client ) { Super.BindQueryClient(Client); if ( MasterServerClient(Client) != None ) { MasterServerClient(Client).OnQueryFinished = QueryComplete; MasterServerClient(Client).OnReceivedServer = li_Server.MyOnReceivedServer; } } // We have list of servers from master server and are going to start pinging function QueryComplete( MasterServerClient.EResponseInfo ResponseInfo, int Info ) { li_Server.MyQueryFinished(ResponseInfo, Info); switch( ResponseInfo ) { case RI_Success: SetFooterCaption( Repl(QueryCompleteString, "%NumServers%", Browser.Uplink().ResultCount) ); break; case RI_AuthenticationFailed: SetFooterCaption(AuthFailString); break; case RI_ConnectionFailed: UT2K4ServerBrowser(PageOwner).GetFromServerCache(li_Server); li_Server.FakeFinished(); SetFooterCaption(ConnFailString); break; case RI_ConnectionTimeout: UT2K4ServerBrowser(PageOwner).GetFromServerCache(li_Server); li_Server.FakeFinished(); SetFooterCaption(ConnTimeoutString); break; case RI_MustUpgrade: SetFooterCaption(MustUpgradeString); break; } } function ReceivedPingInfo( int ServerID, ServerQueryClient.EPingCause PingCause, GameInfo.ServerResponseLine s ) { Super.ReceivedPingInfo(ServerID, PingCause, S); li_Server.MyReceivedPingInfo(ServerID, PingCause, s); // If we are still pinging the list received from the master server if (PingCause == PC_AutoPing) UpdateStatusPingCount(); } function ReceivedPingTimeout( int listid, ServerQueryClient.EPingCause PingCause ) { Super.ReceivedPingTimeout(listid,PingCause); li_Server.MyPingTimeout(listid, PingCause); // If we are still pinging the list received from the master server if (PingCause == PC_AutoPing) UpdateStatusPingCount(); } defaultproperties { PanelCaption="Server Browser : Internet" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |