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 00106 00107 00108 00109 00110 00111 00112 |
//============================================================================== // Created on: 08/29/2003 // This page pops up when attempting to enter a chatroom which has a password. // // Written by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4ChatPassword extends UT2K4GetDataMenu; var string ChatRoomTitle; var localized string IncorrectPassword; function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(Mycontroller, MyOwner); PlayerOwner().ClearProgressMessages(); ed_Data.MyEditBox.bConvertSpaces = true; ed_Data.MaskText(True); } function HandleParameters(string Title, string FailCode) { ChatRoomTitle = Title; if ( FailCode ~= "WRONGPW" ) l_Text.Caption = Repl(IncorrectPassword, "%ChatRoom%", ChatRoomTitle); } function bool InternalOnClick(GUIComponent Sender) { if ( Sender == b_OK ) // Retry RetryPassword(); else if ( Sender == b_Cancel ) // Fail Controller.CloseMenu(True); return true; } function RetryPassword() { local string Password; local PlayerController PC; Password = GetDataString(); PC = PlayerOwner(); if ( Password == "" || PC == None ) return; Controller.CloseAll(false,True); PC.Join(ChatRoomTitle,Password); } defaultproperties { IncorrectPassword="Incorrect password specified for channel '%ChatRoom%' ." Begin Object Class=GUIButton Name=GetPassFail Caption="CANCEL" WinTop=0.561667 WinLeft=0.586523 WinWidth=0.147500 WinHeight=0.045000 TabOrder=2 bBoundToParent=Wahr OnClick=UT2K4ChatPassword.InternalOnClick OnKeyEvent=GetPassFail.InternalOnKeyEvent End Object b_Cancel=GUIButton'GUI2K4.UT2K4ChatPassword.GetPassFail' Begin Object Class=moEditBox Name=GetPassPW CaptionWidth=0.400000 Caption="Chat Room Password" OnCreateComponent=GetPassPW.InternalOnCreateComponent WinTop=0.497450 WinLeft=0.212500 WinWidth=0.643751 WinHeight=0.047305 TabOrder=0 End Object ed_Data=moEditBox'GUI2K4.UT2K4ChatPassword.GetPassPW' Begin Object Class=GUIButton Name=GetPassRetry Caption="RETRY" WinTop=0.561667 WinLeft=0.346289 WinWidth=0.131641 TabOrder=1 bBoundToParent=Wahr OnClick=UT2K4ChatPassword.InternalOnClick OnKeyEvent=GetPassRetry.InternalOnKeyEvent End Object b_OK=GUIButton'GUI2K4.UT2K4ChatPassword.GetPassRetry' Begin Object Class=GUILabel Name=GetPassLabel Caption="A password is required to join this chat room" TextAlign=TXTA_Center bMultiLine=Wahr FontScale=FNS_Large StyleName="TextLabel" WinTop=0.318897 WinLeft=0.010742 WinWidth=0.995117 WinHeight=0.054688 bBoundToParent=Wahr End Object l_Text=GUILabel'GUI2K4.UT2K4ChatPassword.GetPassLabel' bAllowedAsLast=Wahr OpenSound=Sound'MenuSounds.selectDshort' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |