UBrowser
Class UBrowserBannerAd

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

class UBrowserBannerAd
extends UWindow.UWindowWindow

//============================================================================= // UBrowserBannerAd //=============================================================================
Variables
 string URL


Function Summary
 void Click(float X, float Y)
 void Created()
 void MouseEnter()
 void MouseLeave()
 void Paint(Canvas C, float X, float Y)



Source Code


00001	//=============================================================================
00002	// UBrowserBannerAd
00003	//=============================================================================
00004	class UBrowserBannerAd extends UWindowWindow;
00005	
00006	#exec TEXTURE IMPORT NAME=BannerAd FILE=Textures\logo3.pcx GROUP="Icons" FLAGS=2 MIPS=OFF
00007	
00008	var string URL;
00009	
00010	function Created()
00011	{
00012		URL = "http://www.unreal.com";
00013		Cursor = Root.HandCursor;
00014	}
00015	
00016	function Paint(Canvas C, float X, float Y)
00017	{
00018		DrawClippedTexture(C, 0, 0, Texture'BannerAd');
00019	}
00020	
00021	function Click(float X, float Y)
00022	{
00023		Root.Console.ViewPort.Actor.ConsoleCommand("start "$URL);
00024	}
00025	
00026	function MouseLeave()
00027	{
00028		Super.MouseLeave();
00029		ToolTip("");
00030	}
00031	
00032	function MouseEnter()
00033	{
00034		Super.MouseLeave();
00035		ToolTip(URL);
00036	}
00037	
00038	defaultproperties
00039	{
00040	}

End Source Code