Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FlxPieDial, add FlxRadialGauge #444

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Sep 24, 2024

FlxPieDial

  • Fixed issue where the background of the dial was black, instead of transparent. Fixes FlxPieDial black border #430
  • Moved drawing logic to util, so it can be used by FlxRadialGauge

FlxRadialWipeShader

  • Shader that masks sprite radially, can be applied to of any static sprite (doesn't work with animations, yet, but neither did FlxPieDial). Shaders only work on non-Flash targets

FlxRadialGauge

Meant to replace FlxPieDial on non-flash targets, better on all fronts.

  • Uses FlxRadialWipeShader via setOrientation(start, end)
  • FlxPieDialUtils to allow you to draw a radial gauge akin to FlxPieDial via makeShapeGraphic(shape, radius, innerRadius, color)
Screen.Recording.2024-09-25.at.5.05.42.PM.mov

@Geokureli Geokureli changed the title Refactor FlxPieDial, add FlxPieGauge Refactor FlxPieDial, add FlxRadialGauge Sep 26, 2024
@Vortex2Oblivion
Copy link
Contributor

Would be a cool addition!

@Geokureli Geokureli merged commit 3455321 into HaxeFlixel:dev Sep 30, 2024
10 checks passed
@Geokureli Geokureli added this to the 3.3.0 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FlxPieDial black border
2 participants