Skip to content

Commit c865854

Browse files
committed
Fix: Fixed DrawSectorLine calls in Examples.
1 parent a43a32f commit c865854

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Examples/GameloopExamples.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ private void DrawRoundedCursor(Vector2 tip, float size, ColorRgba colorRgba)
534534
SegmentDrawing.DrawSegment(tip, left, 1f, colorRgba, LineCapType.CappedExtended, 3);
535535
SegmentDrawing.DrawSegment(tip, top, 1f, colorRgba, LineCapType.CappedExtended, 3);
536536
var circle = new Circle(circleCenter, size);
537-
circle.DrawSectorLines(180, 270, 1f, colorRgba, 0.65f);
537+
circle.DrawSectorLines(180, 270, 0f, 1f, colorRgba, 0.65f);
538538
}
539539

540540
protected override void Update(GameTime time, ScreenInfo game, ScreenInfo gameUi, ScreenInfo ui)

Examples/Scenes/ExampleScenes/EndlessSpaceCollision.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,14 @@ protected override void OnDrawGameExample(ScreenInfo game)
790790

791791
var sectorLineInfo = new LineDrawingInfo(12f, Colors.PcDark.ColorRgba);
792792
var circle = new Circle(ship.Transform.Position, 250f);
793-
circle.DrawSectorLines(-80f, -10f, sectorLineInfo, 0.75f);
794-
circle.DrawSectorLines(-100f, -170f, sectorLineInfo, 0.75f);
795-
circle.DrawSectorLines(170f, 10f, sectorLineInfo, 0.75f);
793+
circle.DrawSectorLines(-80f, -10f, 0f, sectorLineInfo, 0.75f);
794+
circle.DrawSectorLines(-100f, -170f, 0f, sectorLineInfo, 0.75f);
795+
circle.DrawSectorLines(170f, 10f, 0f, sectorLineInfo, 0.75f);
796796

797797
sectorLineInfo = new LineDrawingInfo(4f, Colors.PcWarm.ColorRgba);
798-
circle.DrawSectorLines(-80, ShapeMath.LerpFloat(-80, -10, minigun.ReloadF > 0f ? minigun.ReloadF : 1f - minigun.ClipSizeF), sectorLineInfo, 0.75f);
799-
circle.DrawSectorLines(-100, ShapeMath.LerpFloat(-100, -170, cannon.ReloadF > 0f ? cannon.ReloadF : 1f - cannon.ClipSizeF), sectorLineInfo, 0.75f);
800-
circle.DrawSectorLines(170, ShapeMath.LerpFloat(170, 10, ship.HealthF), sectorLineInfo, 0.75f);
798+
circle.DrawSectorLines(-80, ShapeMath.LerpFloat(-80, -10, minigun.ReloadF > 0f ? minigun.ReloadF : 1f - minigun.ClipSizeF), 0f, sectorLineInfo, 0.75f);
799+
circle.DrawSectorLines(-100, ShapeMath.LerpFloat(-100, -170, cannon.ReloadF > 0f ? cannon.ReloadF : 1f - cannon.ClipSizeF), 0f, sectorLineInfo, 0.75f);
800+
circle.DrawSectorLines(170, ShapeMath.LerpFloat(170, 10, ship.HealthF), 0f, sectorLineInfo, 0.75f);
801801
}
802802
protected override void OnDrawGameUIExample(ScreenInfo gameUi)
803803
{

Examples/Scenes/ExampleScenes/EndlessSpaceExampleSource/PayloadMarkerSimple.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public override void Draw()
2626
}
2727

2828
circle = circle.SetRadius(25f);
29-
circle.DrawSectorLines(0, 359 * TravelF, new LineDrawingInfo(4f, Colors.Cold), 0.2f);
29+
circle.DrawSectorLines(0, 359 * TravelF, 0f, new LineDrawingInfo(4f, Colors.Cold), 0.2f);
3030
}
3131
else
3232
{

ShapeEngine/Geometry/UIDrawing.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static void DrawOutlineBar(this Rect rect, Vector2 pivot, float angleDeg,
147147
/// </remarks>
148148
public static void DrawOutlineBar(this Circle c, float thickness, float f, ColorRgba color, float smoothness = 0.5f)
149149
{
150-
c.DrawSectorLines(0, 360 * f, thickness, color, smoothness);
150+
c.DrawSectorLines(0, 360 * f, 0f, thickness, color, smoothness);
151151
}
152152

153153
/// <summary>

0 commit comments

Comments
 (0)