class UMenuFavoritesMenu expands UMenuPulldownMenu;

var config string[128] Favorites[9];
var config string[128] Aliases[9];

function Created()
{
	local int i;

	Super.Created();

	for (i=0; i<9; i++)
		AddMenuItem(Aliases[i], None);
}


function ExecuteItem(UWindowPulldownMenuItem I) 
{
	local int c;

	for (c=0; c<9; c++)
	{
		if (I.Caption == Aliases[c])
		{
			// Spawn mesh menu dialog with Favorites[c] as startmap.
			Log(Favorites[c]);
		}
	}

	Super.ExecuteItem(I);
}

defaultproperties
{
     Favorites(0)="unreal://unreal.mplayer.com"
     Favorites(1)="unreal://unreal.heat.net"
     Favorites(2)="unreal://unreal.won.net"
     Favorites(3)="unreal://unreal.gamespy.com"
     Favorites(4)="unreal://unreal.gamehub.net"
     Favorites(5)="unreal://unreal.vrgn.com"
     Favorites(6)="unreal://nali.unrealserver.net"
     Favorites(7)="unreal://krall.unreal.org"
     Favorites(8)="unreal://server.unreal.com"
     Aliases(0)="MPlayer.com"
     Aliases(1)="Heat.net"
     Aliases(2)="World Opponent Network"
     Aliases(3)="GameSpy"
     Aliases(4)="AT&&T Worldnet"
     Aliases(5)="VRGN Game Network"
     Aliases(6)="Now OnLine"
     Aliases(7)="The Unreal Org"
     Aliases(8)="Epic MegaGames"
}