예제 #1
0
        /// <summary>
        /// Queries how wide the entry is, used for centering on the screen.
        /// </summary>

        public virtual int GetWidth(MenuScreen screen)
        {
            return((int)screen.ScreenManager.Font.MeasureString(Text).X);
        }
예제 #2
0
 /// <summary>
 /// Updates the menu entry.
 /// </summary>
 public virtual void Update(MenuScreen screen, bool isSelected, GameTime gameTime)
 {
 }
예제 #3
0
        /// <summary>
        /// Queries how much space this menu entry requires.
        /// </summary>

        public virtual int GetHeight(MenuScreen screen)
        {
            return(screen.ScreenManager.Font.LineSpacing);
        }