예제 #1
0
        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;
        }
예제 #2
0
 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);
 }