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

GUI2K4.UT2K4FilterSummaryPanel


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
//==============================================================================
//	Lists the active rules for the current filter.
//
//	Created by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//==============================================================================
class UT2K4FilterSummaryPanel extends GUIFilterPanel;

var automated UT2K4FilterSummaryListBox lb_FilterRules;
var UT2K4FilterSummaryList              li_FilterRules;

var(Menu) config array<float>           HeaderColumnPerc;

function Refresh()
{
    UpdateRules();
}

function UpdateRules()
{
    local int i;

    ClearRules();
    FilterRules = FilterMaster.GetFilterRules(p_Anchor.Index);
    for (i = 0; i < FilterRules.Length; i++)
        AddFilterRule(FilterRules[i]);

log("FilterSummaryPanel.LoadRules()---------------------");
    for (i = 0; i < li_FilterRules.Rules.Length; i++)
        log("Rules["$i$"]:"$li_FilterRules.Rules[i].ItemName);

    Super.UpdateRules();
}

function ClearRules()
{
    li_FilterRules.Clear();
    Super.ClearRules();
}

function AddFilterRule(CustomFilter.AFilterRule NewRule)
{
    li_FilterRules.AddFilterRule(NewRule);
}

function ListOnCreateComponent(GUIComponent NewComp, GUIComponent Sender)
{
    if (UT2K4FilterSummaryListBox(Sender) != None)
    {
        if (UT2K4FilterSummaryList(NewComp) != None)
        {
            li_FilterRules = UT2K4FilterSummaryList(NewComp);
            li_FilterRules.INIOption = "@Internal";
            li_FilterRules.p_Anchor = p_Anchor;
            li_FilterRules.ExpandLastColumn = True;
        }

        UT2K4FilterSummaryListBox(Sender).InternalOnCreateComponent(NewComp,Sender);
    }
}

function string InternalOnSaveINI(GUIComponent Sender)
{
    HeaderColumnPerc = lb_FilterRules.HeaderColumnPerc;
    SaveConfig();

    return Super.OnSaveINI(Sender);
}

defaultproperties
{
     Begin Object Class=UT2K4FilterSummaryListBox Name=RulesBox
         bVisibleWhenEmpty=Wahr
         OnCreateComponent=UT2K4FilterSummaryPanel.ListOnCreateComponent
         WinHeight=1.000000
     End Object
     lb_FilterRules=UT2K4FilterSummaryListBox'GUI2K4.UT2K4FilterSummaryPanel.RulesBox'

     HeaderColumnPerc(0)=0.400000
     HeaderColumnPerc(1)=0.400000
     HeaderColumnPerc(2)=0.200000
     Begin Object Class=GUIMultiOptionListBox Name=RulesLB
         bVisibleWhenEmpty=Wahr
         OnCreateComponent=RulesLB.InternalOnCreateComponent
     End Object
     lb_Rules=GUIMultiOptionListBox'GUI2K4.UT2K4FilterSummaryPanel.RulesLB'

     OnCreateComponent=UT2K4FilterSummaryPanel.InternalOnCreateComponent
     OnSaveINI=UT2K4FilterSummaryPanel.InternalOnSaveINI
}

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:55.812 - Created with UnCodeX