Skip to content

Commit 513b98f

Browse files
committed
fix version checks
1 parent 0abcd75 commit 513b98f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

flixel/addons/ui/FlxInputText.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ class FlxInputText extends FlxText
745745
r.x = r.y = 0;
746746
caret.pixels.fillRect(r, caretC); // draw caret
747747
caret.offset.x = caret.offset.y = 0;
748-
#if (flixel > "5.8.0")
748+
#if (flixel > version("5.8.0"))
749749
case SHADOW_XY(shadowX, shadowY):
750750
// Shadow offset to the lower-right
751751
cw += Std.int(Math.abs(shadowX));

flixel/addons/ui/FlxUIGroup.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import flixel.FlxSprite;
44
import flixel.group.FlxSpriteGroup;
55
import flixel.math.FlxRect;
66
import flixel.addons.ui.interfaces.IFlxUIWidget;
7-
#if (flixel >= "5.7.0")
7+
#if (flixel >= version("5.7.0"))
88
import flixel.group.FlxSpriteContainer;
99
#end
1010

11-
#if (flixel < "5.4.0" && FLX_NO_POINT_POOL)
11+
#if (flixel < version("5.4.0") && FLX_NO_POINT_POOL)
1212
/* This is a weird haxe bug I haven't figured out, fixed in 5.4.0
1313
* via https://github.com/HaxeFlixel/flixel/pull/2808
1414
* Note: this is only the case when FLX_NO_POINT_POOL is defined.

flixel/addons/ui/FontDef.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import flixel.text.FlxText;
77
import flixel.util.FlxColor;
88
import openfl.Assets;
99
import openfl.text.TextFormatAlign;
10-
#if (openfl >= "4.0.0")
10+
#if (openfl >= version("4.0.0"))
1111
import openfl.utils.AssetType;
1212
#end
1313

flixel/addons/ui/FontFixer.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package flixel.addons.ui;
22

33
import openfl.Assets;
4-
#if (openfl >= "4.0.0")
4+
#if (openfl >= version("4.0.0"))
55
import openfl.utils.AssetType;
66
#end
77

flixel/addons/ui/U.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import sys.FileSystem;
2727
import sys.io.File;
2828
import sys.io.FileOutput;
2929
#end
30-
#if (openfl >= "4.0.0")
30+
#if (openfl >= version("4.0.0"))
3131
import openfl.utils.AssetType;
3232
#end
3333
#if haxe4

0 commit comments

Comments
 (0)