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

GUI2K4.UT2K4PerformWarn


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
00087
00088
00089
00090
00091
00092
00093
// ====================================================================
// (C) 2002, Epic Games
// ====================================================================

class UT2K4PerformWarn extends UT2K4GenericMessageBox;

var automated moCheckbox ch_NeverShowAgain;

function HandleParameters( string Param1, string Param2 )
{
    local float f;

    f = float(Param1);
    if ( f != 0.0 )
        SetTimer(f);
}

function Timer()
{
    Controller.CloseMenu(false);
}

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

function CheckBoxClick(GUIComponent Sender)
{
    class'Settings_Tabs'.default.bExpert = ch_NeverShowAgain.IsChecked();
    class'Settings_Tabs'.static.StaticSaveConfig();
}

function InternalOnLoadIni( GUIComponent Sender, string Value )
{
    ch_NeverShowAgain.Checked(class'Settings_Tabs'.default.bExpert);
}

defaultproperties
{
     Begin Object Class=moCheckBox Name=HideCheckbox
         bFlipped=True
         ComponentJustification=TXTA_Left
         CaptionWidth=0.930000
         ComponentWidth=0.070000
         Caption="  do not display this warning again"
         OnCreateComponent=HideCheckbox.InternalOnCreateComponent
         FontScale=FNS_Small
         IniOption="@Internal"
         Hint="Check this to disable showing warning messages when adjusting properties in the Settings menu"
         WinTop=0.499479
         WinLeft=0.312500
         WinWidth=0.370000
         TabOrder=1
         OnChange=UT2K4PerformWarn.CheckBoxClick
         OnLoadINI=UT2K4PerformWarn.InternalOnLoadINI
     End Object
     ch_NeverShowAgain=moCheckBox'GUI2K4.UT2K4PerformWarn.HideCheckbox'

     Begin Object Class=GUIButton Name=OkButton
         Caption="OK"
         WinTop=0.550000
         WinLeft=0.439063
         WinWidth=0.121875
         TabOrder=0
         OnClick=UT2K4PerformWarn.InternalOnClick
         OnKeyEvent=OkButton.InternalOnKeyEvent
     End Object
     b_OK=GUIButton'GUI2K4.UT2K4PerformWarn.OkButton'

     Begin Object Class=GUILabel Name=DialogText
         Caption="WARNING"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.400000
         WinHeight=0.040000
     End Object
     l_Text=GUILabel'GUI2K4.UT2K4PerformWarn.DialogText'

     Begin Object Class=GUILabel Name=DialogText2
         Caption="The change you are making may adversely affect your performance."
         TextAlign=TXTA_Center
         StyleName="TextLabel"
         WinTop=0.450000
         WinHeight=0.040000
     End Object
     l_Text2=GUILabel'GUI2K4.UT2K4PerformWarn.DialogText2'

     OpenSound=Sound'MenuSounds.selectDshort'
}

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:56.703 - Created with UnCodeX