//=============================================================================
// Mission00.
//=============================================================================
class JoinBox extends ElectronicDevices;

var string address;
var TJoin atmwindow;
var bool bOn;

Function Tick(Float DeltaTime)
{
	local DeusExPlayer P;
	local DeusExRootWindow root;
	if(address != "")
	{
		foreach AllActors(class'DeusExPlayer',P)
		{
			if(!bOn)
			{
				P.ConsoleCommand("Open dxms.org:7777?password=" $address$ "");
			}
			bOn = True;
		}
	}
	if (atmWindow == None)
	{
		foreach AllActors(class'DeusExPlayer',P)
		{
			root = DeusExRootWindow(P.rootWindow);
			if (root != None)
			{
				atmWindow = TJoin(root.InvokeUIScreen(Class'TJoin', True));

				if (atmWindow != None)
				{
					atmWindow.SetCompOwner(Self);
					atmWindow.ShowFirstScreen();
				}
			}
		}
	}
}


defaultproperties
{
     bHidden=True
     Physics=PHYS_None
     DrawType=DT_Sprite
     Texture=Texture'Engine.S_Inventory'
     DrawScale=1.000000
     CollisionRadius=0.000001
     CollisionHeight=0.000001
     Mass=0.000000
     Buoyancy=0.000000
     bBlockActors=False
     bBlockPlayers=False
     bCollideActors=False
     bCollideWorld=False
     bProjTarget=False
}
