Skip to content

Commit

Permalink
flixel 5.7.0 fix + update workflows haxe version
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed Apr 16, 2024
1 parent ff7f0dd commit 382e76e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install & Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.3
haxe-version: 4.3.4

- name: Install Libraries
run: |
Expand All @@ -33,7 +33,7 @@ jobs:
haxelib set hxcpp git
- name: Build
run: haxelib run lime build windows -D analyzer-optimize
run: haxelib run lime build windows -D analyzer-optimize no-deprecation-warnings

- name: Upload Artifact
uses: actions/upload-artifact@main
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Install & Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.3
haxe-version: 4.3.4

- name: Install Libraries
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
haxelib set hxcpp git
- name: Build
run: haxelib run lime build linux -D analyzer-optimize
run: haxelib run lime build linux -D analyzer-optimize no-deprecation-warnings

- name: Upload Artifact
uses: actions/upload-artifact@main
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Install & Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.3
haxe-version: 4.3.4

- name: Setup Android NDK
id: setup-ndk
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build
run: haxelib run lime build android -D analyzer-optimize
run: haxelib run lime build android -D analyzer-optimize no-deprecation-warnings

- name: Upload Artifact
uses: actions/upload-artifact@main
Expand Down
2 changes: 2 additions & 0 deletions source/funkin/graphics/TypedGroup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class TypedSpriteGroup<T:FlxSprite> extends FlxTypedSpriteGroup<T>
group.destroy();

group = new TypedGroup<T>(maxSize);
#if (flixel < "5.7.0")
_sprites = cast group.members;
#end
}
}

Expand Down
7 changes: 4 additions & 3 deletions source/funkin/objects/alphabet/Alphabet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum abstract AlphabetAlign(String) {
var RIGHT = 'right';
}

// TODO: rewrite Alphabet to extend FlxBitmapText
class Alphabet extends TypedSpriteGroup<AlphabetCharacter> {
public static var spaceWidth:Float = 50;
public static var spaceHeight:Float = 70;
Expand Down Expand Up @@ -133,10 +134,10 @@ class Alphabet extends TypedSpriteGroup<AlphabetCharacter> {
return text.split("");
}

override function findMaxXHelper()
override function findMaxXHelper()
{
var value = Math.NEGATIVE_INFINITY;
for (member in _sprites)
for (member in group.members)
{
if (member == null || !member.alive)
continue;
Expand All @@ -156,7 +157,7 @@ class Alphabet extends TypedSpriteGroup<AlphabetCharacter> {
override function findMinXHelper()
{
var value = Math.POSITIVE_INFINITY;
for (member in _sprites)
for (member in group.members)
{
if (member == null || !member.alive)
continue;
Expand Down

0 comments on commit 382e76e

Please sign in to comment.