UTMenu
Class ObjectiveBrowser

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

class ObjectiveBrowser
extends UTMenu.NotifyWindow


Variables
 Texture BG1[4]
 Texture BG2[4]
 Texture BG3[4]
 string BGName1[4]
 string BGName2[4]
 string BGName3[4]
 NotifyButton BackButton
 string BrowserName
 NotifyButton Descscrolldown
 NotifyButton Descscrollup
 string EmptyText
 string GameType
 bool Initialized
 Class Ladder
 UTLadder LadderWindow
 Texture MapShot
 StaticArea MapStatic
 int Match
 class MatchInfo
 LadderButton Names[8]
 NotifyButton NextButton
 SelectedO, NumNames
 UTFadeTextArea ObjDescArea
 string ObjectiveString
 string OrdersTransmissionText
 string StandByText
 float StaticScale
 Texture StaticTex
 NotifyButton Title1
 bool bMapStatic


Function Summary
 void AddObjDesc()
 void BackPressed()
 void BeforePaint(Canvas C, float X, float Y)
 void CloseUp()
 void Created()
 void EscClose()
 void HideWindow()
 void Initialize()
 void NameSelected(int i)
 void NextPressed()
 void Notify(UWindowWindow B, byte E)
 void Paint(Canvas C, float X, float Y)
 void SetMapShot(Texture NewShot)
 void StartMap(string StartMap, int Rung, string GameType)
 void Tick(float Delta)



Source Code


00001	class ObjectiveBrowser extends NotifyWindow;
00002	
00003	// Background
00004	var texture BG1[4];
00005	var texture BG2[4];
00006	var texture BG3[4];
00007	var string BGName1[4];
00008	var string BGName2[4];
00009	var string BGName3[4];
00010	
00011	var UTLadder LadderWindow;
00012	
00013	var string GameType;
00014	
00015	// Title
00016	var NotifyButton Title1;
00017	var localized string BrowserName;
00018	
00019	var NotifyButton BackButton;
00020	var NotifyButton NextButton;
00021	
00022	var UTFadeTextArea ObjDescArea;
00023	var NotifyButton Descscrollup;
00024	var NotifyButton Descscrolldown;
00025	
00026	// Names
00027	var LadderButton Names[8];
00028	var string ObjectiveString;
00029	var string EmptyText;
00030	var int SelectedO, NumNames;
00031	
00032	var bool Initialized;
00033	
00034	// Ladder
00035	var Class<Ladder> Ladder;
00036	var int Match;
00037	var class<RatedMatchInfo> MatchInfo;
00038	
00039	// Map Screen Shot
00040	var float StaticScale;
00041	var texture MapShot;
00042	var StaticArea MapStatic;
00043	var bool bMapStatic;
00044	var texture StaticTex;
00045	
00046	var localized string StandByText;
00047	var localized string OrdersTransmissionText;
00048	
00049	function Created()
00050	{
00051		Super.Created();
00052	}
00053	
00054	function Initialize()
00055	{
00056		local class<Bot> InitialMate;
00057		local int i;
00058		local int W, H;
00059		local float XWidth, YHeight, XMod, YMod, XPos, YPos, YOffset;
00060		local color TextColor;
00061		local AssaultInfo AI;
00062	
00063		GetPlayerOwner().ViewRotation.Pitch = 0;
00064		GetPlayerOwner().ViewRotation.Roll = 0;
00065	
00066		/*
00067		 * Setup window parameters.
00068		 */
00069	
00070		bLeaveOnScreen = True;
00071		bAlwaysOnTop = True;
00072		class'UTLadderStub'.Static.GetStubClass().Static.SetupWinParams(Self, Root, W, H);
00073	
00074		XMod = 4*W;
00075		YMod = 3*H;
00076	
00077		/*
00078		 * Load the background.
00079		 */
00080	
00081		BG1[0] = Texture(DynamicLoadObject(BGName1[0], Class'Texture'));
00082		BG1[1] = Texture(DynamicLoadObject(BGName1[1], Class'Texture'));
00083		BG1[2] = Texture(DynamicLoadObject(BGName1[2], Class'Texture'));
00084		BG1[3] = Texture(DynamicLoadObject(BGName1[3], Class'Texture'));
00085		BG2[0] = Texture(DynamicLoadObject(BGName2[0], Class'Texture'));
00086		BG2[1] = Texture(DynamicLoadObject(BGName2[1], Class'Texture'));
00087		BG2[2] = Texture(DynamicLoadObject(BGName2[2], Class'Texture'));
00088		BG2[3] = Texture(DynamicLoadObject(BGName2[3], Class'Texture'));
00089		BG3[0] = Texture(DynamicLoadObject(BGName3[0], Class'Texture'));
00090		BG3[1] = Texture(DynamicLoadObject(BGName3[1], Class'Texture'));
00091		BG3[2] = Texture(DynamicLoadObject(BGName3[2], Class'Texture'));
00092		BG3[3] = Texture(DynamicLoadObject(BGName3[3], Class'Texture'));
00093	
00094		/*
00095		 * Create components.
00096		 */
00097	
00098		// Title
00099		XPos = 74.0/1024 * XMod;
00100		YPos = 69.0/768 * YMod;
00101		XWidth = 352.0/1024 * XMod;
00102		YHeight = 41.0/768 * YMod;
00103		Title1 = NotifyButton(CreateWindow(class'NotifyButton', XPos, YPos, XWidth, YHeight));
00104		Title1.Text = BrowserName;
00105		TextColor.R = 255;
00106		TextColor.G = 255;
00107		TextColor.B = 0;
00108		Title1.NotifyWindow = Self;
00109		Title1.SetTextColor(TextColor);
00110		Title1.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetHugeFont(Root);
00111		Title1.bStretched = True;
00112		Title1.bDisabled = True;
00113		if (!Ladder.Default.bTeamGame)
00114			Title1.bDisabled = True;
00115	
00116		// Names
00117		TextColor.R = 0;
00118		TextColor.G = 128;
00119		TextColor.B = 255;
00120		XPos = 168.0/1024 * XMod;
00121		YPos = 255.0/768 * YMod;
00122		XWidth = 256.0/1024 * XMod;
00123		YHeight = 64.0/768 * YMod;
00124		YOffset = 48.0/768 * YMod;
00125		NumNames = class'LadderAS'.Static.GetObjectiveCount(Match, AI);
00126		for (i=0; i<NumNames; i++)
00127		{
00128			Names[i] = LadderButton(CreateWindow(class'LadderButton', XPos, YPos + i*YOffset, XWidth, YHeight));
00129			Names[i].MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetBigFont(Root);
00130			Names[i].NotifyWindow = Self;
00131			Names[i].SetTextColor(TextColor);
00132			Names[i].bStretched = True;
00133			Names[i].bDontSetLabel = True;
00134			Names[i].LabelWidth = 178.0/1024 * XMod;
00135			Names[i].LabelHeight = 49.0/768 * YMod;
00136			Names[i].OverSound = sound'LadderSounds.lcursorMove';
00137			Names[i].DownSound = sound'SpeechWindowClick';
00138			Names[i].Text = ObjectiveString@i+1;
00139		}
00140		Names[0].bBottom = True;
00141		Names[NumNames-1].bTop = True;
00142	
00143		// Back Button
00144		XPos = 192.0/1024 * XMod;
00145		YPos = 701.0/768 * YMod;
00146		XWidth = 64.0/1024 * XMod;
00147		YHeight = 64.0/768 * YMod;
00148		BackButton = NotifyButton(CreateWindow(class'NotifyButton', XPos, YPos, XWidth, YHeight));
00149		BackButton.DisabledTexture = Texture(DynamicLoadObject("UTMenu.LeftUp", Class'Texture'));
00150		BackButton.UpTexture = Texture(DynamicLoadObject("UTMenu.LeftUp", Class'Texture'));
00151		BackButton.DownTexture = Texture(DynamicLoadObject("UTMenu.LeftDown", Class'Texture'));
00152		BackButton.OverTexture = Texture(DynamicLoadObject("UTMenu.LeftOver", Class'Texture'));
00153		BackButton.NotifyWindow = Self;
00154		BackButton.Text = "";
00155		TextColor.R = 255;
00156		TextColor.G = 255;
00157		TextColor.B = 0;
00158		BackButton.SetTextColor(TextColor);
00159		BackButton.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetBigFont(Root);
00160		BackButton.bStretched = True;
00161		BackButton.OverSound = sound'LadderSounds.lcursorMove';
00162		BackButton.DownSound = sound'LadderSounds.ladvance';
00163	
00164		// Next Button
00165		XPos = 256.0/1024 * XMod;
00166		YPos = 701.0/768 * YMod;
00167		XWidth = 64.0/1024 * XMod;
00168		YHeight = 64.0/768 * YMod;
00169		NextButton = NotifyButton(CreateWindow(class'NotifyButton', XPos, YPos, XWidth, YHeight));
00170		NextButton.DisabledTexture = Texture(DynamicLoadObject("UTMenu.RightUp", Class'Texture'));
00171		NextButton.UpTexture = Texture(DynamicLoadObject("UTMenu.RightUp", Class'Texture'));
00172		NextButton.DownTexture = Texture(DynamicLoadObject("UTMenu.RightDown", Class'Texture'));
00173		NextButton.OverTexture = Texture(DynamicLoadObject("UTMenu.RightOver", Class'Texture'));
00174		NextButton.NotifyWindow = Self;
00175		NextButton.Text = "";
00176		TextColor.R = 255;
00177		TextColor.G = 255;
00178		TextColor.B = 0;
00179		NextButton.SetTextColor(TextColor);
00180		NextButton.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetBigFont(Root);
00181		NextButton.bStretched = True;
00182		NextButton.OverSound = sound'LadderSounds.lcursorMove';
00183		NextButton.DownSound = sound'LadderSounds.ladvance';
00184	
00185		// Obj Desc
00186		XPos = 529.0/1024 * XMod;
00187		YPos = 586.0/768 * YMod;
00188		XWidth = 385.0/1024 * XMod;
00189		YHeight = 113.0/768 * YMod;
00190		ObjDescArea = UTFadeTextArea(CreateWindow(Class<UWindowWindow>(DynamicLoadObject("UTMenu.UTFadeTextArea", Class'Class')), XPos, YPos, XWidth, YHeight));
00191		ObjDescArea.TextColor.R = 255;
00192		ObjDescArea.TextColor.G = 255;
00193		ObjDescArea.TextColor.B = 0;
00194		ObjDescArea.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetSmallFont(Root);
00195		ObjDescArea.bAlwaysOnTop = True;
00196		ObjDescArea.bAutoScrolling = True;
00197	
00198		// DescScrollup
00199		XPos = 923.0/1024 * XMod;
00200		YPos = 590.0/768 * YMod;
00201		XWidth = 32.0/1024 * XMod;
00202		YHeight = 16.0/768 * YMod;
00203		DescScrollup = NotifyButton(CreateWindow(class'NotifyButton', XPos, YPos, XWidth, YHeight));
00204		DescScrollup.NotifyWindow = Self;
00205		DescScrollup.Text = "";
00206		DescScrollup.bStretched = True;
00207		DescScrollup.UpTexture = Texture(DynamicLoadObject("UTMenu.AroUup", Class'Texture'));
00208		DescScrollup.OverTexture = Texture(DynamicLoadObject("UTMenu.AroUovr", Class'Texture'));
00209		DescScrollup.DownTexture = Texture(DynamicLoadObject("UTMenu.AroUdwn", Class'Texture'));
00210		DescScrollup.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetSmallFont(Root);
00211		DescScrollup.bAlwaysOnTop = True;
00212	
00213		// DescScrolldown
00214		XPos = 923.0/1024 * XMod;
00215		YPos = 683.0/768 * YMod;
00216		XWidth = 32.0/1024 * XMod;
00217		YHeight = 16.0/768 * YMod;
00218		DescScrolldown = NotifyButton(CreateWindow(class'NotifyButton', XPos, YPos, XWidth, YHeight));
00219		DescScrolldown.NotifyWindow = Self;
00220		DescScrolldown.Text = "";
00221		DescScrolldown.bStretched = True;
00222		DescScrolldown.UpTexture = Texture(DynamicLoadObject("UTMenu.AroDup", Class'Texture'));
00223		DescScrolldown.OverTexture = Texture(DynamicLoadObject("UTMenu.AroDovr", Class'Texture'));
00224		DescScrolldown.DownTexture = Texture(DynamicLoadObject("UTMenu.AroDdwn", Class'Texture'));
00225		DescScrolldown.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetSmallFont(Root);
00226		DescScrolldown.bAlwaysOnTop = True;
00227	
00228		// StaticArea
00229		XPos = 608.0/1024 * XMod;
00230		YPos = 90.0/768 * YMod;
00231		XWidth = 320.0/1024 * XMod;
00232		YHeight = 319.0/768 * YMod;
00233		MapStatic = StaticArea(CreateWindow(class'StaticArea', XPos, YPos, XWidth, YHeight));
00234		MapStatic.VStaticScale = 300.0;
00235	
00236		Initialized = True;
00237		Root.Console.bBlackout = True;
00238	
00239		SelectedO = 0;
00240		SetMapShot(class'LadderAS'.Static.GetObjectiveShot(Match, 0, AI));
00241		AddObjDesc();
00242		StaticScale = 1.0;
00243	}
00244	
00245	function BeforePaint(Canvas C, float X, float Y)
00246	{
00247		local int i;
00248		local int W, H;
00249		local float XWidth, YHeight, XMod, YMod, XPos, YPos, YOffset;
00250	
00251		Super.BeforePaint(C, X, Y);
00252	
00253		class'UTLadderStub'.Static.GetStubClass().Static.SetupWinParams(Self, Root, W, H);
00254	
00255		XMod = 4*W;
00256		YMod = 3*H;
00257	
00258		// Title
00259		XPos = 74.0/1024 * XMod;
00260		YPos = 69.0/768 * YMod;
00261		XWidth = 352.0/1024 * XMod;
00262		YHeight = 41.0/768 * YMod;
00263		Title1.WinLeft = XPos;
00264		Title1.WinTop = YPos;
00265		Title1.SetSize(XWidth, YHeight);
00266		Title1.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetHugeFont(Root);
00267	
00268		// Names
00269		XPos = 168.0/1024 * XMod;
00270		YPos = 595.0/768 * YMod;
00271		XWidth = 256.0/1024 * XMod;
00272		YHeight = 64.0/768 * YMod;
00273		YOffset = 47.0/768 * YMod;
00274		for (i=0; i<NumNames; i++)
00275		{
00276			Names[i].MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetBigFont(Root);
00277			Names[i].WinLeft = XPos;
00278			Names[i].WinTop = YPos - (i * YOffset);
00279			Names[i].SetSize(XWidth, YHeight);
00280			Names[i].LabelWidth = 178/1024 * XMod;
00281			Names[i].LabelHeight = 49/768 * YMod;
00282			if (i == SelectedO)
00283				Names[i].bSelected = True;
00284			else
00285				Names[i].bSelected = False;
00286		}
00287	
00288		// Back Button
00289		XPos = 192.0/1024 * XMod;
00290		YPos = 701.0/768 * YMod;
00291		XWidth = 64.0/1024 * XMod;
00292		YHeight = 64.0/768 * YMod;
00293		BackButton.SetSize(XWidth, YHeight);
00294		BackButton.WinLeft = XPos;
00295		BackButton.WinTop = YPos;
00296	
00297		// Next Button
00298		XPos = 256.0/1024 * XMod;
00299		YPos = 701.0/768 * YMod;
00300		XWidth = 64.0/1024 * XMod;
00301		YHeight = 64.0/768 * YMod;
00302		NextButton.SetSize(XWidth, YHeight);
00303		NextButton.WinLeft = XPos;
00304		NextButton.WinTop = YPos;
00305	
00306		// Obj Desc
00307		XPos = 529.0/1024 * XMod;
00308		YPos = 586.0/768 * YMod;
00309		XWidth = 385.0/1024 * XMod;
00310		YHeight = 113.0/768 * YMod;
00311		ObjDescArea.SetSize(XWidth, YHeight);
00312		ObjDescArea.WinLeft = XPos;
00313		ObjDescArea.WinTop = YPos;
00314		ObjDescArea.MyFont = class'UTLadderStub'.Static.GetStubClass().Static.GetSmallFont(Root);
00315	
00316		// DescScrollup
00317		XPos = 923.0/1024 * XMod;
00318		YPos = 590.0/768 * YMod;
00319		XWidth = 32.0/1024 * XMod;
00320		YHeight = 16.0/768 * YMod;
00321		DescScrollup.WinLeft = XPos;
00322		DescScrollup.WinTop = YPos;
00323		DescScrollup.SetSize(XWidth, YHeight);
00324	
00325		// DescScrolldown
00326		XPos = 923.0/1024 * XMod;
00327		YPos = 683.0/768 * YMod;
00328		XWidth = 32.0/1024 * XMod;
00329		YHeight = 16.0/768 * YMod;
00330		DescScrolldown.WinLeft = XPos;
00331		DescScrolldown.WinTop = YPos;
00332		DescScrolldown.SetSize(XWidth, YHeight);
00333	
00334		// StaticArea
00335		XPos = 608.0/1024 * XMod;
00336		YPos = 90.0/768 * YMod;
00337		XWidth = 320.0/1024 * XMod;
00338		YHeight = 319.0/768 * YMod;
00339		MapStatic.WinLeft = XPos;
00340		MapStatic.WinTop = YPos;
00341		MapStatic.SetSize(XWidth, YHeight);
00342	}
00343	
00344	function Paint(Canvas C, float X, float Y)
00345	{
00346		local int XOffset, YOffset;
00347		local int W, H;
00348		local float XWidth, YHeight, XMod, YMod, XPos, YPos;
00349		local bool bOldSmooth;
00350	
00351		class'UTLadderStub'.Static.GetStubClass().Static.SetupWinParams(Self, Root, W, H);
00352	
00353		XMod = 4*W;
00354		YMod = 3*H;
00355	
00356		// Background
00357		DrawStretchedTexture(C, XOffset + (0 * W), YOffset + (0 * H), W+1, H+1, BG1[0]);
00358		DrawStretchedTexture(C, XOffset + (1 * W), YOffset + (0 * H), W+1, H+1, BG1[1]);
00359		DrawStretchedTexture(C, XOffset + (2 * W), YOffset + (0 * H), W+1, H+1, BG1[2]);
00360		DrawStretchedTexture(C, XOffset + (3 * W), YOffset + (0 * H), W+1, H+1, BG1[3]);
00361	
00362		DrawStretchedTexture(C, XOffset + (0 * W), YOffset + (1 * H), W+1, H+1, BG2[0]);
00363		DrawStretchedTexture(C, XOffset + (1 * W), YOffset + (1 * H), W+1, H+1, BG2[1]);
00364		DrawStretchedTexture(C, XOffset + (2 * W), YOffset + (1 * H), W+1, H+1, BG2[2]);
00365		DrawStretchedTexture(C, XOffset + (3 * W), YOffset + (1 * H), W+1, H+1, BG2[3]);
00366	
00367		DrawStretchedTexture(C, XOffset + (0 * W), YOffset + (2 * H), W+1, H+1, BG3[0]);
00368		DrawStretchedTexture(C, XOffset + (1 * W), YOffset + (2 * H), W+1, H+1, BG3[1]);
00369		DrawStretchedTexture(C, XOffset + (2 * W), YOffset + (2 * H), W+1, H+1, BG3[2]);
00370		DrawStretchedTexture(C, XOffset + (3 * W), YOffset + (2 * H), W+1, H+1, BG3[3]);
00371	
00372		// MapShot
00373		bOldSmooth = C.bNoSmooth;
00374		C.bNoSmooth = False;
00375		XPos = 608.0/1024 * XMod;
00376		YPos = 90.0/768 * YMod;
00377		XWidth = 320.0/1024 * XMod;
00378		YHeight = 319.0/768 * YMod;
00379	 	DrawStretchedTexture(C, XPos, YPos, XWidth, YHeight, MapShot);
00380		C.bNoSmooth = bOldSmooth;
00381	
00382		// Static
00383		XPos = 608.0/1024 * XMod;
00384		YPos = 90.0/768 * YMod;
00385		XWidth = 320.0/1024 * XMod;
00386		YHeight = 319.0/768 * YMod;
00387		C.DrawColor.R = 255 * StaticScale;
00388		C.DrawColor.G = 255 * StaticScale;
00389		C.DrawColor.B = 255 * StaticScale;
00390		C.Style = GetPlayerOwner().ERenderStyle.STY_Translucent;
00391	 	DrawStretchedTexture(C, XPos, YPos, XWidth, YHeight, StaticTex);
00392		C.Style = GetPlayerOwner().ERenderStyle.STY_Normal;
00393		C.DrawColor.R = 255;
00394		C.DrawColor.G = 255;
00395		C.DrawColor.B = 255;
00396	}
00397	
00398	function Notify(UWindowWindow B, byte E)
00399	{
00400		local int i;
00401		local string MapName;
00402	
00403		switch (E)
00404		{
00405			case DE_Click:
00406				for (i=0; i<8; i++)
00407				{
00408					if (B == Names[i])
00409					{
00410						if (!Names[i].bDisabled)
00411							NameSelected(i);
00412						return;
00413					}
00414				}
00415				switch (B)
00416				{
00417					case NextButton:
00418						if (Match == 0)
00419						{
00420							MapName = Ladder.Default.MapPrefix$Ladder.Static.GetMap(0);
00421							CloseUp();
00422							StartMap(MapName, 0, "Botpack.TrainingAS");
00423						} else
00424							NextPressed();
00425						break;
00426					case BackButton:
00427						BackPressed();
00428						break;
00429					case DescScrollup:
00430						ObjDescArea.ScrollingOffset--;
00431						if (ObjDescArea.ScrollingOffset < 0)
00432							ObjDescArea.ScrollingOffset = 0;
00433						break;
00434					case DescScrolldown:
00435						ObjDescArea.ScrollingOffset++;
00436						if (ObjDescArea.ScrollingOffset > 10)
00437							ObjDescArea.ScrollingOffset = 10;
00438						break;
00439				}
00440				break;
00441		}
00442	}
00443	
00444	function EscClose()
00445	{
00446		BackPressed();
00447	}
00448	
00449	function BackPressed()
00450	{
00451		LadderWindow.ShowWindow();
00452	
00453		Close();
00454	}
00455	
00456	function NextPressed()
00457	{
00458		local TeamBrowser TB;
00459	
00460		HideWindow();
00461		TB = TeamBrowser(Root.CreateWindow(class'TeamBrowser', 100, 100, 200, 200, Root, True));
00462		TB.LadderWindow = LadderWindow;
00463		TB.ObjectiveWindow = Self;
00464		TB.LadderWindow = LadderWindow;
00465		TB.Ladder = Ladder;
00466		TB.Match = Match;
00467		TB.GameType = GameType;
00468		TB.Initialize();
00469	}
00470	
00471	function NameSelected(int i)
00472	{
00473		local AssaultInfo AI;
00474	
00475		SelectedO = i;
00476		SetMapShot(class'LadderAS'.Static.GetObjectiveShot(Match, i, AI));
00477		AddObjDesc();
00478	}
00479	
00480	function CloseUp()
00481	{
00482		Root.Console.bLocked = False;
00483		Root.Console.bNoDrawWorld = Root.Console.ShowDesktop;
00484		UMenuRootWindow(Root).MenuBar.ShowWindow();
00485		Close();
00486	}
00487	
00488	function HideWindow()
00489	{
00490		Root.Console.bBlackOut = False;
00491	
00492		Super.HideWindow();
00493	}
00494	
00495	function StartMap(string StartMap, int Rung, string GameType)
00496	{
00497		local Class<GameInfo> GameClass;
00498	
00499		GameClass = Class<GameInfo>(DynamicLoadObject(GameType, Class'Class'));
00500		GameClass.Static.ResetGame();
00501	
00502		StartMap = StartMap
00503					$"?Game="$GameType
00504					$"?Mutator="
00505					$"?Tournament="$Rung
00506					$"?Name="$GetPlayerOwner().PlayerReplicationInfo.PlayerName
00507					$"?Team=0";
00508	
00509		Root.SetMousePos((Root.WinWidth*Root.GUIScale)/2, (Root.WinHeight*Root.GUIScale)/2);
00510		Root.Console.CloseUWindow();
00511		GetPlayerOwner().ClientTravel(StartMap, TRAVEL_Absolute, True);
00512	}
00513	
00514	function AddObjDesc()
00515	{
00516		local AssaultInfo AI;
00517	
00518		ObjDescArea.Clear();
00519		ObjDescArea.AddText(OrdersTransmissionText);
00520		ObjDescArea.AddText("---");
00521		ObjDescArea.AddText(class'LadderAS'.Static.GetObjectiveString(Match, SelectedO, AI));
00522	}
00523	
00524	function Tick(float Delta)
00525	{
00526		if (StaticScale > 0)
00527			StaticScale -= Delta;
00528		if (StaticScale < 0)
00529		{
00530			if (bMapStatic)
00531			{
00532				MapStatic.bVPanStatic = True;
00533				bMapStatic = False;
00534			}
00535			StaticScale = 0.0;
00536		}
00537	}
00538	
00539	function SetMapShot(texture NewShot)
00540	{
00541		StaticScale = 1.0;
00542		MapShot = NewShot;
00543		bMapStatic = True;
00544	}
00545	
00546	defaultproperties
00547	{
00548	     BGName1(0)="UTMenu.Ladr11"
00549	     BGName1(1)="UTMenu.Ladr12"
00550	     BGName1(2)="UTMenu.Ladr13"
00551	     BGName1(3)="UTMenu.Ladr14"
00552	     BGName2(0)="UTMenu.Ladr21"
00553	     BGName2(1)="UTMenu.Ladr22"
00554	     BGName2(2)="UTMenu.Ladr23"
00555	     BGName2(3)="UTMenu.Ladr24"
00556	     BGName3(0)="UTMenu.Ladr31"
00557	     BGName3(1)="UTMenu.Ladr32"
00558	     BGName3(2)="UTMenu.Ladr33"
00559	     BGName3(3)="UTMenu.Ladr34"
00560	     BrowserName="Mission Objectives"
00561	     ObjectiveString="Objective"
00562	     StaticTex=Texture'Botpack.LadrStatic.Static.Static_A00'
00563	     OrdersTransmissionText="Orders Transmission Follows"
00564	}

End Source Code