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

GUI2K4.MyTestPage


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
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
// ====================================================================
// (C) 2002, Epic Games
// ====================================================================

class MyTestPage extends TestPageBase;

#exec OBJ LOAD FILE=InterfaceContent.utx

var Automated GUIHeader TabHeader;
var Automated GUITabControl TabC;
var Automated GUITitleBar TabFooter;
var Automated GUIButton BackButton;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{

    Super.Initcomponent(MyController, MyOwner);

    TabHeader.DockedTabs = TabC;
    TabC.AddTab("Component Test","GUI2K4.MyTestPanelA",,"Test of many non-list components");
    TabC.AddTab("List Tests","GUI2K4.MyTestPanelB",,"Test of list components");
    TabC.AddTab("Splitter","GUI2K4.MyTestPanelC",,"Test of the Splitter component");

}

function TabChange(GUIComponent Sender)
{
    if (GUITabButton(Sender)==none)
        return;

    TabHeader.SetCaption("Testing : "$GUITabButton(Sender).Caption);
}

event ChangeHint(string NewHint)
{
    TabFooter.SetCaption(NewHint);
}


function bool ButtonClicked(GUIComponent Sender)
{
    local CacheManager.MapRecord Record;

    Record = class'CacheManager'.static.getMapRecord("CTF-Maul");
    return true;
}

event bool NotifyLevelChange()
{
    Controller.CloseMenu(true);
    return Super.NotifyLevelChange();
}

defaultproperties
{
     Begin Object Class=GUIHeader Name=MyHeader
         Effect=FinalBlend'InterfaceContent.Menu.CO_Final'
         Caption="Settings"
         WinTop=0.005414
         WinHeight=36.000000
     End Object
     TabHeader=GUIHeader'GUI2K4.MyTestPage.MyHeader'

     Begin Object Class=GUITabControl Name=MyTabs
         bDockPanels=Wahr
         TabHeight=0.040000
         WinTop=0.250000
         WinHeight=48.000000
         bAcceptsInput=Wahr
         OnActivate=MyTabs.InternalOnActivate
         OnChange=MyTestPage.TabChange
     End Object
     TabC=GUITabControl'GUI2K4.MyTestPage.MyTabs'

     Begin Object Class=GUITitleBar Name=MyFooter
         bUseTextHeight=Falsch
         StyleName="Footer"
         WinTop=0.942397
         WinLeft=0.120000
         WinWidth=0.880000
         WinHeight=0.055000
     End Object
     TabFooter=GUITitleBar'GUI2K4.MyTestPage.MyFooter'

     Begin Object Class=GUIButton Name=MyBackButton
         Caption="BACK"
         StyleName="SquareMenuButton"
         Hint="Return to Previous Menu"
         WinTop=0.942397
         WinWidth=0.120000
         WinHeight=0.055000
         OnClick=MyTestPage.ButtonClicked
         OnKeyEvent=MyBackButton.InternalOnKeyEvent
     End Object
     BackButton=GUIButton'GUI2K4.MyTestPage.MyBackButton'

     Background=Texture'InterfaceContent.Backgrounds.bg11'
     WinHeight=1.000000
}

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