Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUI.BeginScrollView(scrollViewSize, inputScrollPos, scrollAreaSize);
- for (int i = 0; i < keys.Count; i++)
- {
- string key = keys[i].InputName;
- GUI.Label(new Rect(16, (i * 32) + (i * 16), 256, 32), key, GameHandler.instance.GetStyle("MenuDefault_Label"));
- if (GUI.Button(new Rect(256+16, (i * 32) + (i * 16), 96, 32), keys[i].InputKey.ToString(), GameHandler.instance.GetStyle("MenuDefault_Button")))
- {
- //stuff
- }
- }
- GUI.EndScrollView();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement