/// <summary> /// Initializes a new menu in the middle /// </summary> /// <param name="titleValue">The title for the new menu.</param> /// <param name="initialLocation">The starting location of the menu.</param> public Menu(string titleValue, Vector2 initialLocation) { fontSize = 15; entryPadding = 5; titlePadding = 15; currentlySelectedEntry = 0; defaultEntryColor = Color.White; selectedEntryColor = Color.Yellow; stringManager = new GameStringManager(); location = initialLocation; defaultPosition = initialLocation; GameString titleGameString = new GameString(location, defaultEntryColor, titleValue); stringManager.Add(titleGameString); titleScaling = new Vector2(1.0f, 1.0f); entryScaling = new Vector2(1.0f, 1.0f); topScrollThreshold = 0.2; bottomScrollThreshold = 0.8; visible = true; }