home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
GUI
/
Classes
/
MyNetworkStatusMsg.uc
< prev
next >
Wrap
Text File
|
2003-06-30
|
2KB
|
97 lines
// ====================================================================
// (c) 2003, Epic Games, Inc. All Rights Reserved
// ====================================================================
class MyNetworkStatusMsg extends GUIPage;
var automated GUIButton NetStatBackground;
var automated GUIButton NetStatOk;
var automated GUILabel NetStatLabel;
var bool bIgnoreEsc;
var localized string LeaveMPButtonText;
var localized string LeaveSPButtonText;
var float ButtonWidth;
var float ButtonHeight;
var float ButtonHGap;
var float ButtonVGap;
var float BarHeight;
var float BarVPos;
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
Super.InitComponent(Mycontroller, MyOwner);
PlayerOwner().ClearProgressMessages();
}
function bool InternalOnClick(GUIComponent Sender)
{
if(Sender==NetStatOk) // OK
{
Controller.ReplaceMenu("GUI.MyMainMenu");
}
return true;
}
event HandleParameters(string Param1, string Param2)
{
NetStatLabel.Caption = Param1$"|"$Param2;
PlayerOwner().ClearProgressMessages();
}
defaultproperties
{
Begin Object Class=GUIButton name=cNetStatBackground
bAcceptsInput=false
bNeverFocus=true
StyleName="SquareBar"
WinHeight=0.25
WinWidth=1
WinLeft=0
WinTop=0.375
End Object
Begin Object Class=GUIButton Name=cNetStatOk
Caption="OK"
OnClick=InternalOnClick
bBoundToParent=true
WinWidth=0.250000
WinHeight=0.050000
WinLeft=0.375000
WinTop=0.675000
End Object
Begin Object Class=GUILabel Name=cNetStatLabel
Caption=""
TextFont="HeaderFont"
TextALign=TXTA_Center
TextColor=(R=255,G=255,B=255,A=255)
WinWidth=1
WinHeight=0.5
WinLeft=0
WinTop=0.125
bMultiLine=true
bBoundToParent=true
End Object
NetStatBackground=cNetStatBackground
NetStatOk=cNetStatOk
NetStatLabel=cNetStatLabel
bIgnoreEsc=true
bRequire640x480=false
WinTop=0.375;
WinHeight=0.25;
WinWidth=1.0;
WinLeft=0.0;
}