Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
//============================================================================== // 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 WinWidth=1.0 WinLeft=0 WinTop=0.0 WinHeight=0.04 TabHeight=0.036 TabOrder=3 RenderWeight=0.49 bFillSpace=False bAcceptsInput=True bDockPanels=True OnChange=InternalOnChange BackgroundStyleName="TabBackground" bBoundToParent=true End Object tcTabs=PageTabs PanelCaption="Additional" CustomLadderTab="GUI2K4.UT2K4SPTab_CustomLadder" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |