class Browser_Prefs extends Browser_Page; var GUITitleBar StatusBar; var localized string ViewStatsStrings[3]; var localized string MutatorModeStrings[4]; var localized string WeaponStayStrings[3]; var localized string TranslocatorStrings[3]; var bool bIsInitialised; var array MutatorRecords; function InitComponent(GUIController MyController, GUIComponent MyOwner) { local int i; Super.InitComponent(MyController, MyOwner); if(bIsInitialised) return; GUIButton(GUIPanel(Controls[0]).Controls[0]).OnClick=BackClick; // Set options for stats server viewing moComboBox(Controls[5]).AddItem(ViewStatsStrings[0]); moComboBox(Controls[5]).AddItem(ViewStatsStrings[1]); moComboBox(Controls[5]).AddItem(ViewStatsStrings[2]); moComboBox(Controls[5]).ReadOnly(true); // Load mutators into combobox class'xUtil'.static.GetMutatorList(MutatorRecords); moComboBox(Controls[9]).AddItem(MutatorModeStrings[0]); moComboBox(Controls[9]).AddItem(MutatorModeStrings[1]); moComboBox(Controls[9]).AddItem(MutatorModeStrings[2]); moComboBox(Controls[9]).AddItem(MutatorModeStrings[3]); moComboBox(Controls[9]).ReadOnly(true); moComboBox(Controls[13]).AddItem(MutatorModeStrings[0]); moComboBox(Controls[13]).AddItem(MutatorModeStrings[2]); moComboBox(Controls[13]).AddItem(MutatorModeStrings[3]); moComboBox(Controls[13]).ReadOnly(true); for(i=0; i 200 ) moNumericEdit(Controls[16]).SetValue( 200 ); Browser.MaxGamespeed = moNumericEdit(Controls[16]).GetValue(); } Browser.SaveConfig(); } defaultproperties { Begin Object Class=GUIButton Name=MyBackButton Caption="BACK" StyleName="SquareMenuButton" WinWidth=0.2 WinLeft=0 WinTop=0 WinHeight=0.5 End Object Begin Object class=GUITitleBar name=MyStatus WinWidth=1 WinHeight=0.5 WinLeft=0 WinTop=0.5 StyleName="SquareBar" Caption="" bUseTextHeight=false Justification=TXTA_Left End Object Begin Object Class=GUIButton Name=MyKeyButton Caption="ICON KEY" StyleName="SquareMenuButton" WinWidth=0.2 WinLeft=0.2 WinTop=0 WinHeight=0.5 End Object Begin Object Class=GUIPanel Name=FooterPanel Controls(0)=MyBackButton Controls(1)=MyStatus Controls(2)=MyKeyButton WinWidth=1 WinHeight=0.1 WinLeft=0 WinTop=0.9 End Object Controls(0)=GUIPanel'FooterPanel' Begin Object Class=GUILabel Name=FilterTitle WinWidth=0.720003 WinHeight=0.056250 WinLeft=0.1500000 WinTop=0.05 Caption="Server Filtering Options:" TextAlign=TXTA_Left TextColor=(R=230,G=200,B=0,A=255) TextFont="UT2HeaderFont" End Object Controls(1)=GUILabel'FilterTitle' Begin Object class=moCheckBox Name=NoPasswdCheckBox WinWidth=0.3400000 WinHeight=0.040000 WinLeft=0.05 WinTop=0.21 Caption="No Passworded Servers" INIOption="@Internal" CaptionWidth=0.9 bSquare=true ComponentJustification=TXTA_Left End Object Controls(2)=moCheckbox'NoPasswdCheckBox' Begin Object class=moCheckBox Name=NoFullCheckBox WinWidth=0.3400000 WinHeight=0.040000 WinLeft=0.05 WinTop=0.27 Caption="No Full Servers" INIOption="@Internal" CaptionWidth=0.9 bSquare=true ComponentJustification=TXTA_Left End Object Controls(3)=moCheckbox'NoFullCheckBox' Begin Object class=moCheckBox Name=NoEmptyCheckBox WinWidth=0.34 WinHeight=0.04 WinLeft=0.05 WinTop=0.33 Caption="No Empty Servers" INIOption="@Internal" CaptionWidth=0.9 bSquare=true ComponentJustification=TXTA_Left End Object Controls(4)=moCheckbox'NoEmptyCheckBox' Begin Object class=moComboBox Name=StatsViewCombo WinWidth=0.76 WinHeight=0.04 WinLeft=0.05 WinTop=0.39 Caption="Stats Servers" INIOption="@INTERNAL" CaptionWidth=0.4 ComponentJustification=TXTA_Left End Object Controls(5)=moComboBox'StatsViewCombo' Begin Object class=moComboBox Name=MutatorCombo WinWidth=0.308750 WinHeight=0.060000 WinLeft=0.675004 WinTop=0.45 Caption="" INIOption="@INTERNAL" CaptionWidth=0.0 ComponentJustification=TXTA_Left End Object Controls(6)=moComboBox'MutatorCombo' Begin Object class=moEditBox Name=CustomQuery WinWidth=0.76 WinHeight=0.04 WinLeft=0.05 WinTop=0.75 Caption="Custom Query" INIOption="@INTERNAL" CaptionWidth=0.4 End Object Controls(7)=moEditBox'CustomQuery' Begin Object class=moCheckBox Name=OnlyStandardCheckBox WinWidth=0.3400000 WinHeight=0.040000 WinLeft=0.05 WinTop=0.15 Caption="Only Standard Servers" INIOption="@Internal" CaptionWidth=0.9 bSquare=true ComponentJustification=TXTA_Left End Object Controls(8)=moCheckbox'OnlyStandardCheckBox' Begin Object class=moComboBox Name=MutatorModeCombo WinWidth=0.61 WinHeight=0.04 WinLeft=0.05 WinTop=0.45 Caption="Mutators" INIOption="@INTERNAL" CaptionWidth=0.5 ComponentJustification=TXTA_Left End Object Controls(9)=moComboBox'MutatorModeCombo' Begin Object class=moCheckBox Name=NoBotServersCheckBox WinWidth=0.34 WinHeight=0.04 WinLeft=0.05 WinTop=0.39 Caption="No Servers With Bots" INIOption="@Internal" CaptionWidth=0.9 bSquare=true ComponentJustification=TXTA_Left bVisible=false End Object Controls(10)=moCheckbox'NoBotServersCheckBox' Begin Object class=moComboBox Name=WeaponStayCombo WinWidth=0.76 WinHeight=0.04 WinLeft=0.05 WinTop=0.57 Caption="WeaponStay" INIOption="@INTERNAL" CaptionWidth=0.4 ComponentJustification=TXTA_Left End Object Controls(11)=moComboBox'WeaponStayCombo' Begin Object class=moComboBox Name=TranslocatorCombo WinWidth=0.76 WinHeight=0.04 WinLeft=0.05 WinTop=0.63 Caption="Translocator" INIOption="@INTERNAL" CaptionWidth=0.4 ComponentJustification=TXTA_Left End Object Controls(12)=moComboBox'TranslocatorCombo' Begin Object class=moComboBox Name=MutatorModeCombo2 WinWidth=0.61 WinHeight=0.04 WinLeft=0.05 WinTop=0.51 Caption="" INIOption="@INTERNAL" CaptionWidth=0.5 ComponentJustification=TXTA_Left End Object Controls(13)=moComboBox'MutatorModeCombo2' Begin Object class=moComboBox Name=MutatorCombo2 WinWidth=0.308750 WinHeight=0.060000 WinLeft=0.675004 WinTop=0.51 Caption="" INIOption="@INTERNAL" CaptionWidth=0.0 ComponentJustification=TXTA_Left End Object Controls(14)=moComboBox'MutatorCombo2' Begin Object class=moNumericEdit Name=MinGamespeed WinWidth=0.433750 WinHeight=0.060000 WinLeft=0.05 WinTop=0.69 Caption="Game Speed Min" CaptionWidth=0.7 MinValue=0 MaxValue=200 INIOption="@INTERNAL" ComponentJustification=TXTA_Left End Object Controls(15)=moNumericEdit'MinGamespeed' Begin Object class=moNumericEdit Name=MaxGamespeed WinWidth=0.235000 WinHeight=0.060000 WinLeft=0.557501 WinTop=0.69 Caption="Max" CaptionWidth=0.4 MinValue=0 MaxValue=200 INIOption="@INTERNAL" ComponentJustification=TXTA_Left End Object Controls(16)=moNumericEdit'MaxGamespeed' ViewStatsStrings(0)="Any Servers" ViewStatsStrings(1)="Only Stats Servers" ViewStatsStrings(2)="No Stats Servers" WeaponStayStrings(0)="Any Servers" WeaponStayStrings(1)="Only Weapon Stay Servers" WeaponStayStrings(2)="No Weapon Stay Servers" TranslocatorStrings(0)="Any Servers" TranslocatorStrings(1)="Only Translocator Servers" TranslocatorStrings(2)="No Translocator Servers" MutatorModeStrings(0)="Any Mutators" MutatorModeStrings(1)="No Mutators" MutatorModeStrings(2)="This Mutator" MutatorModeStrings(3)="Not This Mutator" }