Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1.             GUI.Box(new Rect(Screen.width/2-251,49,502,502),"");
  2.             GUILayout.BeginArea(new Rect(Screen.width/2-250, 50, 500, 500));
  3.             scrollPosition = GUILayout.BeginScrollView(scrollPosition,GUILayout.Width(50),GUILayout.Height(500));
  4.             string[] ScoresArray = vk.GetComponent<WebData>().GlobalScores.Split(new char[] { '#' });
  5.             for(int i = 0; i < ScoresArray.Length; i++)
  6.             {
  7.                 string[] ScoresEntry = ScoresArray[i].Split(new char[] { '*' });
  8.                 GUILayout.BeginHorizontal();   
  9.                 //GUILayout.Button(avatarPicture, GUILayout.Width(50));
  10.                 GUILayout.Label(ScoresEntry[1], GUILayout.Width(250));
  11.                 GUILayout.Button(ScoresEntry[3], GUILayout.Width(150));        
  12.                 GUILayout.EndHorizontal();
  13.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement