Skip to content

Commit

Permalink
throw error for incompatible flixel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed May 20, 2023
1 parent c8706cf commit 0a129dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flixel/addons/ui/FlxUIGroup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import flixel.group.FlxSpriteGroup;
import flixel.math.FlxRect;
import flixel.addons.ui.interfaces.IFlxUIWidget;

#if (flixel < "5.4.0" && FLX_NO_POINT_POOL)
/* This is a weird haxe bug I haven't figured out, fixed in 5.4.0
* via https://github.com/HaxeFlixel/flixel/pull/2808
* Note: this is only the case when FLX_NO_POINT_POOL is defined.
*/
#error "This version of flixel is not compatile with flixel-ui versions 2.6.0 or higher. Update to flixel 5.4.0 or later";
#end

typedef FlxUIGroup = FlxTypedUIGroup<FlxSprite>;
/**
* A cheap extension of FlxSpriteGroup that lets you move all the children around
Expand Down

0 comments on commit 0a129dd

Please sign in to comment.