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

BonusPack.Tab_IAMutant


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
// ====================================================================
//  Class: BonusPack.Tab_IAMutant
//
//  Mutant game type config page.
//
//  Written by James Golding

//	Rollback
//  (c) 2002, Epic Games, Inc.  All Rights Reserved
// ====================================================================

class Tab_IAMutant extends Tab_IADeathMatch;

var localized string	TargetScoreString;

var config bool 	LastBottomFeeders;

var moCheckBox		MyBottomFeeders;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
	Super.Initcomponent(MyController, MyOwner);

	MyBottomFeeders = moCheckBox(Controls[16]);

	// Make the boxes a bit bigger.
	Controls[1].WinHeight = 0.538638;
	Controls[2].WinHeight = 0.538638;
	Controls[14].WinTop = 0.800430;

	MyBottomFeeders.Checked(LastBottomFeeders);

	//MyGoalScore.MyLabel.Caption = TargetScoreString;
	//MyGoalScore.SetValue(LastGoalScore);
}

// Add extra options to URL
function string Play()
{
	local string url;

	LastBottomFeeders = MyBottomFeeders.IsChecked();
	SaveConfig();

	url = Super.Play();
	url = url$"?BottomFeeder="$LastBottomFeeders;

	return url;
}

function BottomFeedersChange(GUIComponent Sender)
{
	LastBottomFeeders = MyBottomFeeders.IsChecked();
	SaveConfig();
}

defaultproperties
{
	Begin Object class=moCheckBox Name=IARulesBottomFeeders
		WinWidth=0.400000
		WinHeight=0.040000
		WinLeft=0.050000
		WinTop=0.714166
		Caption="Bottom Feeder"
		Hint="When selected, bottom ranked player(s) can kill anyone."
		bSquare=true
		ComponentJustification=TXTA_Left
		CaptionWidth=0.9
        OnChange=BottomFeedersChange
	End Object
	Controls(16)=moCheckBox'IARulesBottomFeeders'

	TargetScoreString="Score Limit"
	LastGoalScore=20
	LastBottomFeeders=true
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:27:06.000 - Creation time: Do 14.8.2014 09:58:51.460 - Created with UnCodeX