Beispiel #1
0
 public Vector2 GetSize(MenuScreen screen)
 {
     return(screen.ScreenManager.Font.MeasureString(text));
 }
Beispiel #2
0
 /// <summary>
 /// Queries how much space this menu entry requires.
 /// </summary>
 public int GetHeight(MenuScreen screen)
 {
     return(screen.ScreenManager.Font.LineSpacing);
 }