public TextureManager() { Field = new FieldTexture(); Block = new BlockTexture(); AnnounceBox = new AnnouncementBox(); Font = new MyFont(); }
public Vector2 Destination(string v, MyFont font, HorizontalAlign align) { Vector2 result = new Vector2(0, 250); if (align == HorizontalAlign.Center) { result.X = (Window.Width - font.SpriteFont.MeasureString(v).X) / 2; } else if (align == HorizontalAlign.Left) { } else if (align == HorizontalAlign.Right) { result.X = (Window.Width - font.SpriteFont.MeasureString(v).X); } return(result); }