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