Skip to content

Conversation

rifxii
Copy link
Contributor

@rifxii rifxii commented Aug 30, 2025

FlxGraphicSource from my understanding serves the same purpose as FlxGraphicAsset, so I merged FlxGraphicSource's resolveBitmapData function and BitmapData class support into FlxGraphicAsset, deprecated it, and updated any usage of it inside flixel.

My main issue with FlxGraphicSource is the lack of support for FlxGraphic. When using FlxAtlas, one of the very few classes that support it, having to write FlxAtlas.addNode(graphic.bitmap); instead of FlxAtlas.addNode(graphic); feels like an unnecessary workaround.

@rifxii rifxii marked this pull request as draft August 30, 2025 00:53
@rifxii
Copy link
Contributor Author

rifxii commented Aug 30, 2025

Builds are failing due to flixel-ui, whoops! I'll mark this a draft for now until I can look in to it more.

@rifxii rifxii force-pushed the deprecate-graphic-source branch from c5be7de to 39a838f Compare August 30, 2025 06:37
@rifxii rifxii force-pushed the deprecate-graphic-source branch from 39a838f to 8fff935 Compare August 30, 2025 06:55
@rifxii rifxii marked this pull request as ready for review August 30, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant