public void Draw(SpriteBatch batch) { if (!Visible) { return; } backlogpos.Y = LogYPosition; bgpanel.Draw(batch, DrawDestination); batch.DrawString(DefaultFont, backlog, backlogpos, fgcolor, 0f, Vector2.UnitY, 1f, SpriteEffects.None, 0f); commandline.Draw(batch); }
public override void Draw(SpriteBatch sb) { if (!Active) { return; } base.Draw(sb); lbName.Draw(sb); ibName.Draw(sb); btOk.Draw(sb); btClose.Draw(sb); }
public override void Draw(SpriteBatch sb) { base.Draw(sb); int i = 0; foreach (var f in frames) { var spacing = 8; int y = (int)GHelper.Center(Rectangle, SpriteFrame.frameSize).Y; int x = (int)Position.X + spacing + (i * (int)SpriteFrame.frameSize.X) + (i * 16); var pos = new Vector2(x, y); if (!f.IsDragging) { f.position = pos; if (f.Rectangle.Contains(Input.MousePos)) { hoverBox.Position = f.position; hoverBox.Draw(sb); } } f.Draw(sb, SelectedSheet); f.DrawInfo(sb); sb.DrawString(GameContent.font, $"{i + 1}", pos - new Vector2(10), Color.White); i++; } if (frame != null) { selectBox.Position = frame.position; selectBox.Draw(sb); } btReset.Draw(sb); ibSpeed.Draw(sb); lbSpeed.Draw(sb); }