public void Draw(SpriteBatch sb) { int x = 0; foreach (var line in lines) { sb.DrawString(DebugFont, line.Value, Position + new Vector2(0, DebugFont.MeasureString(line.Value).Y *x), line.Colour); x++; } }
public void Draw(SpriteBatch sb) { cursor.Draw(sb); if (mode != Player_Modes.MainMenu && mode != Player_Modes.ES_Death && mode != Player_Modes.ES_God && mode != Player_Modes.ES_Passive && mode != Player_Modes.End_Screen) { status_bar.Draw(sb, null); text.Draw(sb); populationDisplay.Key.Draw(sb, new Vector2(1675, 900)); populationDisplay.Value.Draw(sb, new Vector2(1675 + DebugFont.MeasureString(populationDisplay.Key.Value).X, 900)); } }
public void Draw(SpriteBatch sb) { if (picture != null) { sb.Draw(picture, new Rectangle((int)Position.X, (int)Position.Y, 64, 64), new Rectangle(0, 0, 64, 64), Color.White); } fullString.Draw(sb, fullString.Position); int i = 0; Text prevkey; foreach (var deets in details) { prevkey = deets.Key; deets.Key.Draw(sb, fullString.Position + new Vector2(0, (i * DebugFont.MeasureString(prevkey.Value).Y))); deets.Value.Draw(sb, fullString.Position + new Vector2(DebugFont.MeasureString(deets.Key.Value).X, (i * DebugFont.MeasureString(prevkey.Value).Y))); i++; } }
public void Draw(SpriteBatch sb) { back.Draw(sb, (Position - new Vector2(DebugFont.MeasureString(back.Value).X, 0)) + new Vector2(1, 1)); text.Draw(sb, Position - new Vector2(DebugFont.MeasureString(back.Value).X, 0)); }
new public void Draw(SpriteBatch sb) { base.Draw(sb); text.Draw(sb, new Vector2(Box.X + (Box.Width / 2) - (DebugFont.MeasureString(text.Value).X / 2), Box.Y + (Box.Height / 2) - (DebugFont.MeasureString(text.Value).Y / 2))); }