UBrowser
Class UBrowserIRCPrivPage

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserIRCPrivPage.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowClientWindow
            |
            +--UWindow.UWindowDialogClientWindow
               |
               +--UWindow.UWindowPageWindow
                  |
                  +--UBrowser.UBrowserIRCPageBase
                     |
                     +--UBrowser.UBrowserIRCPrivPage
Direct Known Subclasses:None

class UBrowserIRCPrivPage
extends UBrowser.UBrowserIRCPageBase


Variables
 string PrivNick
 UBrowserIRCSystemPage SystemPage


Function Summary
 void ChangedNick(string OldNick, string NewNick)
 void ClosePage()
 void IsAway(string Nick, string Message)
 void PrivateAction(string Nick, string Text)
 void PrivateText(string Nick, string Text)
 void ProcessInput(string Text)
 void UserNotice(string Nick, string Text)
 void UserQuit(string Nick, string Reason)



Source Code


00001	class UBrowserIRCPrivPage expands UBrowserIRCPageBase;
00002	
00003	var string PrivNick;
00004	var UBrowserIRCSystemPage SystemPage;
00005	
00006	function ClosePage()
00007	{
00008		SystemPage.PageParent.DeletePage(OwnerTab);
00009	}
00010	
00011	function ProcessInput(string Text)
00012	{
00013		if(Left(Text, 4) ~= "/me ")
00014		{
00015			PrivateAction(SystemPage.NickName, Mid(Text, 4));
00016			SystemPage.Link.SendChannelAction(PrivNick, Mid(Text, 4));
00017		}
00018		else
00019		if(Left(Text, 1) == "/")
00020			SystemPage.ProcessInput(Text);
00021		else
00022		{
00023			if(Text != "")
00024			{
00025				PrivateText(SystemPage.NickName, Text);
00026				SystemPage.Link.SendChannelText(PrivNick, Text);
00027			}
00028		}
00029	}
00030	
00031	function ChangedNick(string OldNick, string NewNick)
00032	{
00033		TextArea.AddText("*** "$OldNick@NowKnownAsText@NewNick$".");
00034		PrivNick = NewNick;
00035	}
00036	
00037	function UserQuit(string Nick, string Reason)
00038	{
00039		TextArea.AddText("*** "$Nick@QuitText@"("$Reason$").");
00040	}
00041	
00042	function PrivateText(string Nick, string Text)
00043	{
00044		TextArea.AddText("<"$Nick$"> "$Text);
00045		if(!GetParent(class'UWindowFramedWindow').bWindowVisible && Nick != SystemPage.NickName)
00046			GetPlayerOwner().ClientMessage("IRC: <"$Nick$"> "$Text);
00047	}
00048	
00049	function PrivateAction(string Nick, string Text)
00050	{
00051		TextArea.AddText("* "$Nick$" "$Text);
00052		if(!GetParent(class'UWindowFramedWindow').bWindowVisible && Nick != SystemPage.NickName)
00053			GetPlayerOwner().ClientMessage("IRC: * "$Nick$" "$Text);
00054	}
00055	
00056	function UserNotice(string Nick, string Text)
00057	{
00058		TextArea.AddText("-"$Nick$"- "$Text);
00059	}
00060	
00061	function IsAway(string Nick, string Message)
00062	{
00063		TextArea.AddText(Nick@SystemPage.IsAwayText$": "$Message);
00064	}
00065	
00066	defaultproperties
00067	{
00068	     RightClickMenuClass=Class'UBrowser.UBrowserIRCPrivateMenu'
00069	}

End Source Code