function OnGUI()
{
// set up scaling
var rx : float = Screen.width / native_width;
var ry : float = Screen.height / native_height;
GUI.matrix = Matrix4x4.TRS (Vector3(0, 0, 0), Quaternion.identity, Vector3 (rx, ry, 1));
// if(GUI.Button(RefreshR, "refresh",Buttonzs)){
// Debug.Log("Requesting Masterserver list from: " + ServerName);
// MasterServer.RequestHostList(ServerName);
// }
GUI.skin = mySkin;
GUIUtility.RotateAroundPivot (rotAngle, pivotPoint);
scrollPosition = GUI.BeginScrollView (ScrollR,scrollPosition, ScrollW);
//GUI.BeginGroup (GroupArea);
//GUILayout.BeginArea(AreaR,"", "");
//GUILayout.Label("available servers",Lay);
for (var match : HostData in MasterServer.PollHostList())
{
GUILayout.BeginHorizontal("Box");
GUILayout.Label (match.gameName,Lay);
GUILayout.Space(5);
GUILayout.Label (curMapName,Lay);
Debug.Log(match.ToString());
if(GUILayout.Button ("Connect",Buttonzs))
{
Network.Connect(match);
}
GUILayout.EndHorizontal();
}
//GUILayout.EndArea();
//GUI.EndGroup();
GUI.EndScrollView ();
}