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

GUI2K4.UT2K4BadCDKeyMsg


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
//==============================================================================
//	Created on: 08/15/2003
//	Menu that appears when user has invalid CD-key or CD-key is already used.
//
//	Written by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//==============================================================================
class UT2K4BadCDKeyMsg extends BlackoutWindow;

var automated GUIButton b_OK;
var automated GUILabel l_Title;

function bool InternalOnClick(GUIComponent Sender)
{
    if ( Sender == b_OK ) // OK
        Controller.ReplaceMenu(class'GameEngine'.default.MainMenuClass);

    return true;
}

function bool InternalOnKeyEvent(out byte Key, out byte State, float delta)
{
    if ( State == 3 && (Key == 0x0D || Key == 0x0B) )   // Enter / Escape
        return InternalOnClick(b_OK);

    return false;
}

defaultproperties
{
     Begin Object Class=GUIButton Name=OkButton
         Caption="OK"
         WinTop=0.550000
         WinLeft=0.400000
         WinWidth=0.200000
         OnClick=UT2K4BadCDKeyMsg.InternalOnClick
         OnKeyEvent=OkButton.InternalOnKeyEvent
     End Object
     b_OK=GUIButton'GUI2K4.UT2K4BadCDKeyMsg.OkButton'

     Begin Object Class=GUILabel Name=BadCDLabel
         Caption="Your CD key is invalid or in use by another player"
         TextAlign=TXTA_Center
         bMultiLine=True
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.383333
         WinHeight=0.231250
         bBoundToParent=True
     End Object
     l_Title=GUILabel'GUI2K4.UT2K4BadCDKeyMsg.BadCDLabel'

     OnKeyEvent=UT2K4BadCDKeyMsg.InternalOnKeyEvent
}

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