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
{
     TargetScoreString="Score Limit"
     LastBottomFeeders=Wahr
     LastGoalScore=20
     Begin Object Class=moCheckBox Name=IARulesBottomFeeders
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Bottom Feeder"
         OnCreateComponent=IARulesBottomFeeders.InternalOnCreateComponent
         Hint="When selected, bottom ranked player(s) can kill anyone."
         WinTop=0.714166
         WinLeft=0.050000
         WinWidth=0.400000
         WinHeight=0.040000
         OnChange=Tab_IAMutant.BottomFeedersChange
     End Object
     Controls(16)=moCheckBox'BonusPack.Tab_IAMutant.IARulesBottomFeeders'

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:50.000 - Creation time: Mo 16.4.2007 11:20:54.375 - Created with UnCodeX