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

KFGui.KFFirewallWarn


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
00094
00095
00096
00097
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class KFFirewallWarn extends UT2K4GenericMessageBox;

var automated moCheckbox ch_NeverShowAgain;
var localized string WarnString;

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

	l_Text2.Caption = WarnString;

	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'KFGamePageMP'.default.bExpert = ch_NeverShowAgain.IsChecked();
	class'KFGamePageMP'.static.StaticSaveConfig();
}

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

defaultproperties
{
     Begin Object Class=moCheckBox Name=HideCheckbox
         bFlipped=True
         CaptionWidth=0.990000
         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"
         WinTop=0.500000
         WinLeft=0.375000
         WinWidth=0.250000
         TabOrder=1
         OnChange=KFFirewallWarn.CheckBoxClick
         OnLoadINI=KFFirewallWarn.InternalOnLoadINI
     End Object
     ch_NeverShowAgain=moCheckBox'KFGui.KFFirewallWarn.HideCheckbox'

     WarnString="Please make sure Universal Plug and Play is enabled, or the ports 7707 UDP, 7708 UDP, 7717 UDP, 28852 TCP & UDP, 8075 TCP and 20560 TCP & UDP are opened on your router/firewall."
     Begin Object Class=GUIButton Name=OkButton
         Caption="OK"
         WinTop=0.620000
         WinLeft=0.439063
         WinWidth=0.121875
         TabOrder=0
         OnClick=KFFirewallWarn.InternalOnClick
         OnKeyEvent=OkButton.InternalOnKeyEvent
     End Object
     b_OK=GUIButton'KFGui.KFFirewallWarn.OkButton'

     Begin Object Class=GUILabel Name=DialogText
         Caption="WARNING"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.340000
         WinHeight=0.040000
     End Object
     l_Text=GUILabel'KFGui.KFFirewallWarn.DialogText'

     Begin Object Class=GUILabel Name=DialogText2
         TextAlign=TXTA_Center
         bMultiLine=True
         StyleName="TextLabel"
         WinTop=0.400000
         WinLeft=0.200000
         WinWidth=0.650000
         WinHeight=0.300000
     End Object
     l_Text2=GUILabel'KFGui.KFFirewallWarn.DialogText2'

     OpenSound=Sound'KF_MenuSnd.Generic.msfxEdit'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 13-10-2023 03:17:26.000 - Creation time: Fri 13-10-2023 03:19:03.319 - Created with UnCodeX