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

GUI2K4.UT2K4SPTab_ExtraLadder


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
//==============================================================================
// Page for the additional custom ladder pages
//
// Written by Michiel Hendriks
// (c) 2003, Epic Games, Inc. All Rights Reserved
//==============================================================================

class UT2K4SPTab_ExtraLadder extends UT2K4SPTab_Base;

var automated GUITabControl tcTabs;
var string CustomLadderTab;

function InitComponent(GUIController pMyController, GUIComponent MyOwner)
{
    Super.Initcomponent(pMyController, MyOwner);
    bInit = true;
}

function ShowPanel(bool bShow)
{
    local int i;
    local UT2K4SPTab_CustomLadder tsl;
    if (bShow && bInit)
    {
        bInit = false;
        for (i = 0; i < GP.UT2K4GameLadder.default.AdditionalLadders.length; i++)
        {
            Log("Custom Ladder:"@string(GP.UT2K4GameLadder.default.AdditionalLadders[i]));
            GP.RegisterCustomLadder(string(GP.UT2K4GameLadder.default.AdditionalLadders[i]));
            tsl = UT2K4SPTab_CustomLadder(tcTabs.AddTab(GP.UT2K4GameLadder.default.AdditionalLadders[i].default.LadderName, CustomLadderTab,,,false));
            tsl.CustomLadderClass = string(GP.UT2K4GameLadder.default.AdditionalLadders[i]);
            tsl.LadderId = 10+i;
            tsl.EntryLabels = GP.UT2K4GameLadder.default.AdditionalLadders[i].default.EntryLabels;
            tsl.InitCustom();
        }
    }
    Super.ShowPanel(bShow);
}

function InternalOnChange(GUIComponent Sender);

function bool onPlayClick()
{
    if (UT2K4SPTab_Base(tcTabs.ActiveTab.MyPanel) != none)
    {
        return UT2K4SPTab_Base(tcTabs.ActiveTab.MyPanel).onPlayClick();
    }
    return false;
}

defaultproperties
{
     Begin Object Class=GUITabControl Name=PageTabs
         bDockPanels=Wahr
         TabHeight=0.036000
         BackgroundStyleName="TabBackground"
         WinHeight=0.040000
         RenderWeight=0.490000
         TabOrder=3
         bBoundToParent=Wahr
         bAcceptsInput=Wahr
         OnActivate=PageTabs.InternalOnActivate
         OnChange=UT2K4SPTab_ExtraLadder.InternalOnChange
     End Object
     tcTabs=GUITabControl'GUI2K4.UT2K4SPTab_ExtraLadder.PageTabs'

     CustomLadderTab="GUI2K4.UT2K4SPTab_CustomLadder"
     PanelCaption="Additional"
}

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