Пример #1
0
 public void Draw(SpriteBatch sp)
 {
     sp.DrawString(Game.GameContent.Load <SpriteFont>(TextureHelper.Fonts.Default),
                   "Chosen Class: " + (targetClass != null ? targetClass.GetType().Name : "None"), new Vector2(LeftStart + 10, (int)(0.2 * Game.ScreenSize.Y)), Color.White);
     sp.DrawString(Game.GameContent.Load <SpriteFont>(TextureHelper.Fonts.Default), Errors,
                   new Vector2(LeftStart + (int)(0.13 * Game.ScreenSize.X) + 10, (int)(0.7 * Game.ScreenSize.Y)), Color.Wheat);
     foreach (MenuItem i in menuItems)
     {
         i.Draw(sp);
     }
 }