public MainMenuScreen() { play = new MenuEntry(this, "Play Game"); help = new MenuEntry(this, "Help"); quit = new MenuEntry(this, "Quit game"); Removed += new EventHandler(MainMenuRemove); Selected = Color.Red; NonSelected = Color.Black; }
public void SetRelativePosition(Vector2 relativePosition, MenuEntry entry, bool initialPosition) { Vector2 position = new Vector2(entry.position.X, entry.position.Y); if (entry.entryTexture != null) position.Y += entry.entryTexture.Height; SetPosition(Vector2.Add(position, relativePosition), initialPosition); }