UBrowser
Class UBrowserIRCTextArea

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserIRCTextArea.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowDialogControl
            |
            +--UWindow.UWindowDynamicTextArea
               |
               +--UWindow.UWindowURLTextArea
                  |
                  +--UBrowser.UBrowserIRCTextArea
Direct Known Subclasses:None

class UBrowserIRCTextArea
extends UWindow.UWindowURLTextArea



Function Summary
 UWindowDynamicTextRow AddText(string Text)
 void LaunchUnrealURL(string URL)
 void RMouseUp(float X, float Y)



Source Code


00001	class UBrowserIRCTextArea expands UWindowURLTextArea;
00002	
00003	function UWindowDynamicTextRow AddText(string Text)
00004	{
00005		local UWindowDynamicTextRow R;
00006		local int i, j;
00007	
00008		ReplaceText(Text, Chr(2), "");
00009		ReplaceText(Text, Chr(15), "");
00010		ReplaceText(Text, Chr(22), "");
00011		ReplaceText(Text, Chr(31), "");
00012	
00013		i = InStr(Text, Chr(3));
00014		while(i != -1)
00015		{
00016			j = 1;
00017			While(i+j < Len(Text) && InStr("0123456789,", Mid(Text, i+j, 1)) != -1)
00018				j++;
00019	
00020			Text = Left(Text, i) $ Mid(Text, i+j);
00021	
00022			i = InStr(Text, Chr(3));
00023		}
00024				
00025		R = Super.AddText(Text);
00026		UBrowserIRCPageBase(OwnerWindow).AddedText();
00027		return R;
00028	}
00029	
00030	function LaunchUnrealURL(string URL)
00031	{
00032		Super.LaunchUnrealURL(URL);
00033	
00034		GetParent(class'UWindowFramedWindow').Close();
00035		Root.Console.CloseUWindow();
00036	}
00037	
00038	function RMouseUp(float X, float Y)
00039	{
00040		local UBrowserIRCPageBase P;
00041		local float GX, GY;
00042	
00043		P = UBrowserIRCPageBase(GetParent(class'UBrowserIRCPageBase'));
00044		WindowToGlobal(X, Y, GX, GY);
00045		P.GlobalToWindow(GX, GY, X, Y);
00046		P.RMouseUp(X, Y);
00047	}
00048	
00049	defaultproperties
00050	{
00051	     MaxLines=500
00052	}

End Source Code