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

GUI2K4.UT2K4GenericMessageBox


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
// ====================================================================
// Generic message box. For any dialog box that has nothing but a caption,
// message, and OK button.
//
// Written by Matt Oelfke
// (C) 2003, Epic Games
// ====================================================================

class UT2K4GenericMessageBox extends MessageWindow;

var automated GUIButton b_OK;
var automated GUILabel  l_Text, l_Text2;

function bool InternalOnClick(GUIComponent Sender)
{
	Controller.CloseMenu(false);
	return true;
}

function HandleParameters(string Param1, string Param2)
{
	if ( Param1 != "" )
		l_Text.Caption = Param1;

	if ( Param2 != "" )
		l_Text2.Caption = Param2;
}

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

	return false;
}

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

     Begin Object Class=GUILabel Name=DialogText
         Caption="WARNING"
         TextAlign=TXTA_Center
         VertAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextButton"
         WinTop=0.389843
         WinLeft=0.056771
         WinWidth=0.884722
         WinHeight=0.042149
     End Object
     l_Text=GUILabel'GUI2K4.UT2K4GenericMessageBox.DialogText'

     Begin Object Class=GUILabel Name=DialogText2
         TextAlign=TXTA_Center
         bMultiLine=True
         StyleName="TextLabel"
         WinTop=0.431249
         WinLeft=0.043750
         WinWidth=0.912500
         WinHeight=0.126524
     End Object
     l_Text2=GUILabel'GUI2K4.UT2K4GenericMessageBox.DialogText2'

     OnKeyEvent=UT2K4GenericMessageBox.InternalOnKeyEvent
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: pr 5-2-2018 12:35:54.000 - Creation time: sk 18-3-2018 09:50:23.613 - Created with UnCodeX