UBrowser
Class UBrowserIRCChannelMenu

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserIRCChannelMenu.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowDialogControl
            |
            +--UWindow.UWindowListControl
               |
               +--UWindow.UWindowPulldownMenu
                  |
                  +--UWindow.UWindowRightClickMenu
                     |
                     +--UBrowser.UBrowserIRCChannelMenu
Direct Known Subclasses:None

class UBrowserIRCChannelMenu
extends UWindow.UWindowRightClickMenu


Variables
 UWindowPulldownMenuItem Join
 string JoinText
 UWindowPulldownMenuItem Part
 string PartText


Function Summary
 void Created()
 void ExecuteItem(UWindowPulldownMenuItem I)
 void ShowWindow()



Source Code


00001	class UBrowserIRCChannelMenu expands UWindowRightClickMenu;
00002	
00003	var UWindowPulldownMenuItem Part;
00004	var UWindowPulldownMenuItem Join;
00005	var localized string PartText;
00006	var localized string JoinText;
00007	
00008	function Created()
00009	{
00010		Super.Created();
00011		
00012		Join = AddMenuItem(JoinText, None);
00013		Join.CreateSubMenu(class'UBrowserIRCJoinMenu', UBrowserIRCChannelPage(OwnerWindow).SystemPage);
00014		Part = AddMenuItem(PartText, None);
00015	}
00016	
00017	function ExecuteItem(UWindowPulldownMenuItem I) 
00018	{
00019		switch(I)
00020		{
00021		case Part:
00022			UBrowserIRCChannelPage(OwnerWindow).ClosePage();
00023			break;
00024		}
00025		Super.ExecuteItem(I);
00026	}
00027	
00028	function ShowWindow()
00029	{
00030		Super.ShowWindow();
00031		Part.Caption = PartText@UBrowserIRCChannelPage(OwnerWindow).ChannelName;
00032	}
00033	
00034	defaultproperties
00035	{
00036	     PartText="&Leave"
00037	     JoinText="&Join"
00038	}

End Source Code