public override void Draw(SpriteBatch spriteBatch) { Rectangle?sourceRectangle = null; spriteBatch.Draw(this.ToolDisplayTexture, this.ToolDisplayPosition, sourceRectangle, this.ButtonDrawingColor, 0f, Vector2.Zero, SpriteEffects.None, 0.099f); spriteBatch.Draw(this.Tool1DisplayTexture, this.Tool1DisplayPosition, sourceRectangle, this.ButtonDrawingColor, 0f, Vector2.Zero, SpriteEffects.None, 0.099f); if (this.IsRecordShowing) { spriteBatch.Draw(this.RecordBackgroundTexture, this.RecordDisplayPosition, null, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.102f); this.Record.Draw(spriteBatch, 0.101f); } if (this.IsRecord1Showing) { Record.DisplayOffset = new Point(500, 100); spriteBatch.Draw(this.RecordBackgroundTexture, new Rectangle(500, 100, 500, 600), null, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.1f); Record.Draw(spriteBatch, 0.0999f); } }
public override void Draw() { Rectangle?sourceRectangle = null; CacheManager.Draw(this.ToolDisplayTexture, this.ToolDisplayPosition, sourceRectangle, this.ButtonDrawingColor, 0f, Vector2.Zero, SpriteEffects.None, 0.099f); if (Platform.PlatFormType == PlatFormType.Win || Platform.PlatFormType == PlatFormType.Desktop) { CacheManager.Draw(this.Tool1DisplayTexture, this.Tool1DisplayPosition, sourceRectangle, this.ButtonDrawingColor, 0f, Vector2.Zero, SpriteEffects.None, 0.099f); } if (this.IsRecordShowing) { CacheManager.Draw(this.RecordBackgroundTexture, this.RecordDisplayPosition, null, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.102f); this.Record.Draw(0.101f); } if (this.IsRecord1Showing) { Record.DisplayOffset = new Point(500, 100); CacheManager.Draw(this.RecordBackgroundTexture, new Rectangle(500, 100, 500, 600), null, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.1f); Record.Draw(0.0999f); } }