public static void DrawHalfCrossedCircle(IBatchRenderer sbatch, Color color, FPoint pos, float radius, float thickness = 1) { sbatch.DrawCircle(pos, radius, 32, color, thickness); var offset = radius * FloatMath.SQRT_ONE_HALF; sbatch.DrawLine(pos.X - offset, pos.Y + offset, pos.X + offset, pos.Y - offset, color, thickness); }
protected override void DrawDebugBorders(IBatchRenderer sbatch) { base.DrawDebugBorders(sbatch); if (Config.ParticleSpawnAngleIsTotal) sbatch.DrawCircle(Position, DrawingBoundingBox.Width / 2, 32, Color.LightGreen, 1); else if (Config.ParticleSpawnAngleIsRandom) sbatch.DrawCirclePiece(Position, DrawingBoundingBox.Width / 2, Config.ParticleSpawnAngleMin, Config.ParticleSpawnAngleMax, 32, Color.LightGreen, 1); }
protected override void DrawDebugBorders(IBatchRenderer sbatch) { base.DrawDebugBorders(sbatch); if (Config.ParticleSpawnAngleIsTotal) { sbatch.DrawCircle(Position, DrawingBoundingBox.Width / 2, 32, Color.LightGreen, 1); } else if (Config.ParticleSpawnAngleIsRandom) { sbatch.DrawPiePiece(Position, DrawingBoundingBox.Width / 2, Config.ParticleSpawnAngleMin, Config.ParticleSpawnAngleMax, 32, Color.LightGreen, 1); } }
protected override void OnDraw(IBatchRenderer sbatch) { sbatch.DrawCentered( Textures.TexBullet, BulletPosition, Scale * BulletExtraScale * BULLET_DIAMETER, Scale * BulletExtraScale * BULLET_DIAMETER, Fraction.Color * BulletAlpha, BulletRotation); #if DEBUG if (DebugSettings.Get("DebugMultiplayer")) { sbatch.DrawCircle(LastRemotePosition, Scale * BulletExtraScale * BULLET_DIAMETER / 2f, 6, ClientPredictionMiss ? Color.Crimson : Color.DeepSkyBlue, 2 * Owner.PixelWidth); sbatch.DrawLine(LastRemotePosition, BulletPosition, Color.DeepSkyBlue, Owner.PixelWidth); } #endif }