UBrowser
Class UBrowserNewFavoriteCW

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserNewFavoriteCW.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowClientWindow
            |
            +--UWindow.UWindowDialogClientWindow
               |
               +--UBrowser.UBrowserEditFavoriteCW
                  |
                  +--UBrowser.UBrowserNewFavoriteCW
Direct Known Subclasses:None

class UBrowserNewFavoriteCW
extends UBrowser.UBrowserEditFavoriteCW



Function Summary
 void LoadCurrentValues()
 void OKPressed()



Source Code


00001	class UBrowserNewFavoriteCW expands UBrowserEditFavoriteCW;
00002	
00003	function LoadCurrentValues()
00004	{
00005		GamePortEdit.SetValue("7777");
00006		QueryPortEdit.SetValue("7778");
00007	}
00008	
00009	function OKPressed()
00010	{
00011		local UBrowserServerListFactory F;
00012		local UBrowserServerList L;
00013		local UBrowserFavoriteServers W;
00014	
00015		W = UBrowserFavoriteServers(UBrowserRightClickMenu(ParentWindow.OwnerWindow).Grid.GetParent(class'UBrowserFavoriteServers'));
00016		F = W.Factories[0];
00017		
00018		L = UBrowserServerList(F.PingedList.CreateItem(F.PingedList.Class));
00019	
00020		L.HostName = DescriptionEdit.GetValue();
00021		L.IP = IPEdit.GetValue();
00022		L.Ping = 9999;
00023		L.QueryPort = Int(QueryPortEdit.GetValue()); 
00024		L.bKeepDescription = !UpdateDescriptionCheck.bChecked;
00025		L.GamePort = Int(GamePortEdit.GetValue());
00026	
00027		L = W.AddFavorite(L);
00028	
00029		if(L != None)
00030			L.PingServer(False, True, True);
00031	
00032		ParentWindow.Close();
00033	}
00034	
00035	defaultproperties
00036	{
00037	}

End Source Code