From c9f31226e695790fb00c592abf586ecd3db0f5b4 Mon Sep 17 00:00:00 2001 From: MtH Date: Fri, 16 Jul 2021 04:30:19 +0200 Subject: [PATCH] fix HealthIcon issues (expand for details) explicitly enable antialiasing (for switching to & from bf-old) consistently apply scaling (for ChartingState) --- source/ChartingState.hx | 2 ++ source/HealthIcon.hx | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 30147d3b3..dd22f1f71 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -818,6 +818,8 @@ class ChartingState extends MusicBeatState leftIcon.changeIcon(_song.player2); rightIcon.changeIcon(_song.player1); } + leftIcon.setGraphicSize(0, 45); + rightIcon.setGraphicSize(0, 45); } function updateNoteUI():Void diff --git a/source/HealthIcon.hx b/source/HealthIcon.hx index 3e0d2e425..d56c3fbc0 100644 --- a/source/HealthIcon.hx +++ b/source/HealthIcon.hx @@ -61,11 +61,11 @@ class HealthIcon extends FlxSprite char = newChar; if (newChar.endsWith('pixel') || pixelArrayFunny.contains(newChar)) - { - setGraphicSize(150); - updateHitbox(); antialiasing = false; - } + else + antialiasing = true; + setGraphicSize(150); + updateHitbox(); } }