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

GUI2K4.MapListBox


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
//==============================================================================
//	Container for maplists
//
//	Written by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//==============================================================================
class MapListBox extends GUIListBox;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    Super.InitComponent(MyController, MyOwner);

    // TODO Assiging delegate in default properties here causes crash, for some reason
    ContextMenu.OnOpen = MyOpen;
    ContextMenu.OnClose = MyClose;
    ContextMenu.OnSelect = ContextClick;
}

function ContextClick(GUIContextMenu Sender, int Index)
{
    NotifyContextSelect(Sender, Index);
}

function bool MyRealOpen(GUIComponent MenuOwner)
{
    return false;
}

function bool MyOpen(GUIContextMenu Menu)
{
    return HandleContextMenuOpen(List, Menu, Menu.MenuOwner);
}

function bool MyClose(GUIContextMenu Sender)
{
    return HandleContextMenuClose(Sender);
}

defaultproperties
{
     Begin Object Class=GUIContextMenu Name=RCMenu
         ContextItems(0)="Play This Map"
         ContextItems(1)="Spectate This Map"
         ContextItems(2)="-"
         ContextItems(3)="Add To Maplist"
         ContextItems(4)="Remove From Maplist"
         ContextItems(5)="Filter Maplist"
         StyleName="ServerListContextMenu"
     End Object
     ContextMenu=GUIContextMenu'GUI2K4.MapListBox.RCMenu'

}

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