Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

GUI2K4.EditFavoritePage


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
//==============================================================================
//	Created on: 09/16/2003
//	Edit the IP and port of an existing favorite
//
//	Written by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//==============================================================================
class EditFavoritePage extends UT2k4Browser_OpenIP;

var automated GUILabel l_name;
var GameInfo.ServerResponseLine Server;

var localized string UnknownText;

function HandleParameters(string ServerIP, string ServerName)
{
    if (ServerIP != "")
        ed_Data.SetText(StripProtocol(ServerIP));

    if ( ServerName == "" )
        ServerName = UnknownText;

    l_Name.Caption = ServerName;
}

function ApplyURL( string URL )
{
    local string IP, port;

    if ( URL == "" )
        return;

    URL = StripProtocol(URL);
    if ( !Divide( URL, ":", IP, Port ) )
    {
        IP = URL;
        Port = "7777";
    }

    Server.IP = IP;
    Server.Port = int(Port);
    Server.QueryPort = Server.Port + 1;
    Server.ServerName = l_name.Caption;
    Controller.CloseMenu(False);
}

defaultproperties
{
     Begin Object Class=GUILabel Name=ServerName
         TextAlign=TXTA_Center
         StyleName="TextLabel"
         WinTop=0.299479
         WinLeft=0.070313
         WinWidth=0.854492
         WinHeight=0.050000
     End Object
     l_name=GUILabel'GUI2K4.EditFavoritePage.ServerName'

     UnknownText="Unknown Server"
     OKButtonHint="Close the page and save the new IP to your favorites list."
     CancelButtonHint="Close the page and discard any changes."
     EditBoxHint="Enter the URL for this favorite - separate IP and port with the   :   symbol"
     Begin Object Class=moEditBox Name=IpEntryBox
         ComponentJustification=TXTA_Left
         CaptionWidth=0.350000
         Caption="IP Address: "
         OnCreateComponent=IpEntryBox.InternalOnCreateComponent
         WinTop=0.487500
         WinLeft=0.192383
         WinWidth=0.590820
         TabOrder=0
     End Object
     ed_Data=moEditBox'GUI2K4.EditFavoritePage.IpEntryBox'

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:13:18.000 - Creation time: Wed 7/2/2007 19:16:37.937 - Created with UnCodeX