void TraitConfirmationWindow(int windowID) { GUILayout.BeginArea(new Rect(10, 30, windowWidth - 20, windowHeight - 40)); string changesList = "It sounded like you would like to change the following:\n"; foreach (KeyValuePair <string, string> category in propertiesToChange) { changesList += "\n - " + propertyTitles[category.Key]; if (!category.Key.Equals("next")) { changesList += " (" + category.Value + ")"; } } GUILayout.Label(changesList); GUILayout.Label("Would you like to apply these changes?"); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Apply", GUILayout.Width(typeWidth))) { //Apply the changes generator.ChangeElements(propertiesToChange); ClearPopups(); usingLatestConfig = false; } GUILayout.Space(20); if (GUILayout.Button("Cancel", GUILayout.Width(typeWidth))) { ClearPopups(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.EndArea(); }