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 |
//============================================================================== // Confirmation page for quitting the game. Brings the user to an advertisement // page if this is the demo version of the game. // // Created by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4QuitPage extends BlackoutWindow; var automated GUIButton YesButton; var automated GUIButton NoButton; var automated GUILabel QuitDesc; function bool InternalOnClick(GUIComponent Sender) { if (Sender==YesButton) { if(PlayerOwner().Level.IsDemoBuild()) Controller.ReplaceMenu("XInterface.UT2DemoQuitPage"); else PlayerOwner().ConsoleCommand("exit"); } else Controller.CloseMenu(false); return true; } function bool InternalOnKeyEvent( out byte Key, out byte State, float Delta ) { if ( State == 3 ) { if ( Key == 0x0B ) // Cancel InternalOnClick(NoButton); else if ( Key == 0x0D ) InternalOnClick(YesButton); } return false; } defaultproperties { OnKeyEvent=InternalOnKeyEvent Begin Object Class=GUIButton Name=cYesButton Caption="YES" WinWidth=0.200000 WinHeight=0.040000 WinLeft=0.164063 WinTop=0.515625 OnClick=InternalOnClick TabOrder=0 StyleName="SquareButton" End Object Begin Object Class=GUIButton Name=cNoButton Caption="NO" WinWidth=0.200000 WinHeight=0.040000 WinLeft=0.610937 WinTop=0.515625 OnClick=InternalOnClick TabOrder=1 StyleName="SquareButton" End Object Begin Object class=GUILabel Name=cQuitDesc Caption="Are you sure you wish to quit?" TextALign=TXTA_Center TextColor=(R=253,G=237,B=244,A=255) TextFont="UT2HeaderFont" WinWidth=1 WinLeft=0 WinTop=0.426042 WinHeight=32 RenderWeight=4 End Object YesButton=cYesButton NoButton=cNoButton QuitDesc=cQuitDesc } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |