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

GUI2K4.UT2K4ArenaConfig


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
class UT2K4ArenaConfig extends BlackoutWindow;

var automated moComboBox    co_Weapon;
var automated GUIButton     b_OK;
var automated GUILabel      l_Title;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    local array<CacheManager.WeaponRecord> Recs;
    local int i;

    Super.InitComponent(MyController, MyOwner);

    class'CacheManager'.static.GetWeaponList(Recs);
    for (i = 0; i < Recs.Length; i++)
        co_Weapon.AddItem(Recs[i].FriendlyName, None, Recs[i].ClassName);

    co_Weapon.ReadOnly(True);
    i = co_Weapon.FindExtra(class'MutArena'.default.ArenaWeaponClassName);
    if (i != -1)
        co_Weapon.SetIndex(i);
}

function bool InternalOnClick(GUIComponent Sender)
{
    class'MutArena'.default.ArenaWeaponClassName = co_Weapon.GetExtra();
    class'MutArena'.static.StaticSaveConfig();

    Controller.CloseMenu(false);

    return true;
}

defaultproperties
{
     Begin Object Class=moComboBox Name=WeaponSelect
         bReadOnly=True
         bVerticalLayout=True
         LabelJustification=TXTA_Center
         ComponentJustification=TXTA_Center
         ComponentWidth=0.250000
         Caption="Choose the weapon to populate your Arena."
         OnCreateComponent=WeaponSelect.InternalOnCreateComponent
         WinTop=0.442760
         WinLeft=0.255078
         WinWidth=0.500782
         WinHeight=0.126563
         TabOrder=0
         bStandardized=False
     End Object
     co_Weapon=moComboBox'GUI2K4.UT2K4ArenaConfig.WeaponSelect'

     Begin Object Class=GUIButton Name=OkButton
         Caption="OK"
         WinTop=0.563333
         WinLeft=0.400000
         WinWidth=0.200000
         TabOrder=1
         OnClick=UT2K4ArenaConfig.InternalOnClick
         OnKeyEvent=OkButton.InternalOnKeyEvent
     End Object
     b_OK=GUIButton'GUI2K4.UT2K4ArenaConfig.OkButton'

     Begin Object Class=GUILabel Name=DialogText
         Caption="Weapon Arena"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.391667
         WinHeight=0.058750
     End Object
     l_Title=GUILabel'GUI2K4.UT2K4ArenaConfig.DialogText'

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:13:14.000 - Creation time: Wed 7/2/2007 19:16:55.656 - Created with UnCodeX