public void Draw(SpriteBatch sb) { switch (Irbis.Irbis.debug) { case 5: goto case 4; case 4: goto case 3; case 3: goto case 2; case 2: animationFrame.Update(currentFrame.ToString(), true); animationFrame.Draw(sb, (position * Irbis.Irbis.screenScale).ToPoint()); if (attackCollider != Rectangle.Empty) { RectangleBorder.Draw(sb, attackCollider, Color.Magenta, depth + 0.001f); } RectangleBorder.Draw(sb, collider, Color.Magenta, true); goto case 1; case 1: goto default; default: sb.Draw(tex, position * Irbis.Irbis.screenScale, animationSourceRect, Color.White, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, depth); break; } }
public void Draw(SpriteBatch sb) { switch (Irbis.Irbis.debug) { case 5: goto case 4; case 4: goto case 3; case 3: RectangleBorder.Draw(sb, bossArena, Color.Red, true); if (currentAnimation == 1) { Vector2 left = Irbis.Irbis.Lerp(previousHands[0], castingHands[currentFrame][0], timeSinceLastFrame / animationSpeed[currentAnimation]); Vector2 right = Irbis.Irbis.Lerp(previousHands[1], castingHands[currentFrame][1], timeSinceLastFrame / animationSpeed[currentAnimation]); sb.Draw(Irbis.Irbis.nullTex, (left + position) * Irbis.Irbis.screenScale, null, Color.DeepSkyBlue, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, 0.8f); sb.Draw(Irbis.Irbis.nullTex, (right + position) * Irbis.Irbis.screenScale, null, Color.DeepSkyBlue, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, 0.8f); } if (attackCollider != Rectangle.Empty) { RectangleBorder.Draw(sb, attackCollider, Color.Red, true); } goto case 2; case 2: animationFrame.Update(currentFrame.ToString(), true); animationFrame.Draw(sb, ((position + (standardCollider.Location - new Point(24)).ToVector2()) * Irbis.Irbis.screenScale).ToPoint()); RectangleBorder.Draw(sb, collider, Color.Magenta, true); goto case 1; case 1: goto default; default: for (int i = firenovas.Count - 1; i >= 0; i--) { firenovas[i].Draw(sb); } for (int i = fireballs.Count - 1; i >= 0; i--) { fireballs[i].Draw(sb); } for (int i = bolts.Count - 1; i >= 0; i--) { bolts[i].Draw(sb); } foreach (Lazor l in lazers) { l.Draw(sb); } if (exploding) { sb.Draw(Irbis.Irbis.explosiontex, explosionLocation * Irbis.Irbis.screenScale, explosionSourceRect, Color.SteelBlue, 0f, new Vector2(64f), Irbis.Irbis.screenScale, SpriteEffects.None, depth); } sb.Draw(tex, position * Irbis.Irbis.screenScale, animationSourceRect, Color.White, 0f, origin, Irbis.Irbis.screenScale, SpriteEffects.None, depth); break; } }
public void Draw(SpriteBatch sb) { text.Draw(sb); if (drawBorder) { RectangleBorder.Draw(sb, bounds, buttonBorderColor, false); } }
public void Draw(SpriteBatch sb) { if (Irbis.Irbis.debug > 1) { RectangleBorder.Draw(sb, area, Color.Green, true); RectangleBorder.Draw(sb, new Rectangle(position.ToPoint(), renderTarget1.Bounds.Size), Color.Green, true); } sb.Draw(renderTarget1, position * Irbis.Irbis.screenScale, null, Color.White, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, depth1); sb.Draw(renderTarget2, position * Irbis.Irbis.screenScale, null, Color.White, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, depth2); }
public void Draw(SpriteBatch sb) { if (Irbis.Irbis.debug > 1) { RectangleBorder.Draw(sb, Collider, Color.SaddleBrown, true); } if (draw) { sb.Draw(texture, position * scale, null, color, rotation, origin, scale, SpriteEffects.None, depth); } }
public void Draw(SpriteBatch sb) { if (Irbis.Irbis.debug > 1) { RectangleBorder.Draw(sb, area, Color.Green, true); } foreach (GrassBlade g in bladeList) { g.Draw(sb); } }
public void Draw(SpriteBatch sb) { if (Irbis.Irbis.debug > 1) // notice that this is drawing Area and not area { RectangleBorder.Draw(sb, Area, Color.Green, true); } foreach (GrassBlade g in bladeList) { g.Draw(sb); } }
public void Draw(SpriteBatch sb) { sb.Draw(mainBackground, mainBackgroundVector, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.3f); //sb.Draw(itemWindow, itemWindowVector, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.3f); //sb.Draw(itemInfo, itemInfoVector, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.3f); //sb.Draw(pointsWindow, pointsWindowVector, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.3f); pointsPrint.statement = "Points: " + Irbis.Irbis.onslaughtSpawner.Points.ToString(); pointsPrint.Draw(sb); infoTitlePrint.Draw(sb); infoPrint.Draw(sb); pricePrint.Draw(sb); RectangleBorder.Draw(sb, currentSelectionRect, Color.White, 0.5f); for (int i = 0; i < icons.Length; i++) { sb.Draw(icons[i], iconPositions[i], icons[i].Bounds, Color.White, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, 0.4f); //prints[i].Draw(sb); } }
public void Draw(SpriteBatch sb) { if (screenScale) { if (drawOverlay) { sb.Draw(overlayTexture, origin, overlaySourceRect, overlayColor, 0f, Vector2.Zero, Irbis.Irbis.screenScale, SpriteEffects.None, overlayDepth); } sb.Draw(fillTexture, valueLocation, valueRect, fillColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, fillDepth); if (drawText) { printValue.Draw(sb, (printLocation * Irbis.Irbis.screenScale).ToPoint()); } if (drawBorder) { RectangleBorder.Draw(sb, bounds, borderColor, true); } if (drawBackground) /* draw background */ } { }
protected virtual void OnDrawBorder(GraphicsCache graphics, RectangleF area) { mBorder.Draw(graphics, area); }
protected virtual void DebugDraw(SpriteBatch sb) { RectangleBorder.Draw(sb, spawnArea, Color.Magenta, true); }
protected virtual void OnDrawBorder(GraphicsCache graphics, RectangleF area) { //[email protected]: as the IBorder Draw method was changed to add the //part of border which needs to be drawn. Change needs to be reflected here as well mBorder.Draw(graphics, area, BorderPartType.All); }
public void Draw(SpriteBatch sb) { //ff7f00 // Color(255, 127, 0) RectangleBorder.Draw(sb, collider, Color.Cyan, true); }
private void OnDrawBorder(GraphicsCache graphics, RectangleF area) { _border.Draw(graphics, area); }