private void SelectOptionsMenu() { const string LONG_BUTTON_BACKGROUND_PATH = "Sprites/UI/Menu/longButtonBackground"; buttonTexture = GameResources.Content.Load<Texture2D>(LONG_BUTTON_BACKGROUND_PATH); isInMenuRoot = false; MenuButton soundMenuEntry = new MenuButton("sound", new Vector2(55, -2), 0, 0, this); soundMenuEntry.AttachProperty((int)SystemSettings.Sound, "on", "off"); MenuButton vibrationMenuEntry = new MenuButton("vibration", new Vector2(5, -2), 1, 0, this); vibrationMenuEntry.AttachProperty((int)SystemSettings.Vibration, "on", "off"); MenuButton backMenuEntry = new MenuButton("back", new Vector2(90, -2), 2, 0, this); backMenuEntry.Selected += BackMenuEntrySelected; // Add entries to the menu. menuEntries.Clear(); menuEntries.Add(soundMenuEntry); menuEntries.Add(vibrationMenuEntry); menuEntries.Add(backMenuEntry); }