home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
GUI
/
Classes
/
MyQuitPage.uc
< prev
next >
Wrap
Text File
|
2003-06-30
|
2KB
|
85 lines
// ====================================================================
// (c) 2003, Epic Games, Inc. All Rights Reserved
// ====================================================================
class MyQuitPage extends GUIPage;
var automated GUIButton QuitBackground;
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("GUI.UT2DemoQuitPage");
else
PlayerOwner().ConsoleCommand("exit");
}
else
Controller.CloseMenu(false);
return true;
}
defaultproperties
{
Begin Object Class=GUIButton name=cQuitBackground
WinWidth=1.0
WinHeight=1.0
WinTop=0
WinLeft=0
bAcceptsInput=false
bNeverFocus=true
StyleName="SquareBar"
bBoundToParent=true
bScaleToParent=true
End Object
Begin Object Class=GUIButton Name=cYesButton
Caption="YES"
WinWidth=0.2
WinHeight=0.04
WinLeft=0.125
WinTop=0.75
bBoundToParent=true
OnClick=InternalOnClick
TabOrder=0
End Object
Begin Object Class=GUIButton Name=cNoButton
Caption="NO"
WinWidth=0.2
WinHeight=0.04
WinLeft=0.65
WinTop=0.75
bBoundToParent=true
OnClick=InternalOnClick
TabOrder=1
End Object
Begin Object class=GUILabel Name=cQuitDesc
Caption="Are you sure you wish to quit?"
TextALign=TXTA_Center
TextColor=(R=220,G=180,B=0,A=255)
TextFont="HeaderFont"
WinWidth=1
WinLeft=0
WinTop=0.4
WinHeight=32
End Object
QuitBackground=cQuitBackground
YesButton=cYesButton
NoButton=cNoButton
QuitDesc=cQuitDesc
WinLeft=0
WinTop=0.375
WinWidth=1
WinHeight=0.25
bRequire640x480=false
}