Exemplo n.º 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.Manager.Font.MeasureString(Text).X);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Queries how wide the entry is, used for centering on the screen.
 /// </summary>
 public virtual int GetWidth(MenuScreen screen)
 {
     return (int)screen.Manager.Font.MeasureString(Text).X;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Queries how much space this menu entry requires.
 /// </summary>
 public virtual int GetHeight(MenuScreen screen)
 {
     return(screen.Manager.Font.LineSpacing);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Queries how much space this menu entry requires.
 /// </summary>
 public virtual int GetHeight(MenuScreen screen)
 {
     return screen.Manager.Font.LineSpacing;
 }