Skip to content

Commit

Permalink
add FlxPieGuageShape, rename makePieDialGraphic
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Sep 24, 2024
1 parent 236ed75 commit 22862f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flixel/addons/display/FlxPieGuage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FlxPieGuage extends FlxSprite
this.amount = 1;
}

public function createPieDialGraphic(shape:FlxPieDialShape, radius:Int, innerRadius = 0, color = FlxColor.WHITE)
public function makePieDialGraphic(shape:FlxPieGuageShape, radius:Int, innerRadius = 0, color = FlxColor.WHITE)
{
final graphic = FlxPieDialUtils.getPieGuageGraphic(shape, radius, innerRadius, color);
loadGraphic(graphic, true, radius * 2, radius * 2);
Expand All @@ -69,6 +69,8 @@ class FlxPieGuage extends FlxSprite
}
}

typedef FlxPieGuageShape = FlxPieDialShape;

class FlxPieGuageShader extends flixel.graphics.tile.FlxGraphicsShader
{
/** The current fill amount, where `0.0` is empty and `1.0` is full */
Expand Down

0 comments on commit 22862f2

Please sign in to comment.