Fix pixel icons in CharterStrumline

This commit is contained in:
Ralty
2025-08-09 14:55:11 +07:00
parent 66c1cd9dde
commit 5acabccd9a
@@ -127,7 +127,7 @@ class CharterStrumline extends UISprite {
var maxRow = Math.floor((icons.length-1) / 4) + 1;
for (i=>icon in icons) {
var healthIcon = new HealthIcon(Character.getIconFromCharName(icon));
healthIcon.scale.x = healthIcon.scale.y = Math.max((0.6 - (icons.length / 20)), 0.35);
healthIcon.scale.x = healthIcon.scale.y = Math.max((0.6 - (icons.length / 20)), 0.35) * healthIcon.defaultScale;
healthIcon.updateHitbox();
healthIcon.x = FlxMath.lerp(0, Math.min(icons.length * 20, 120), (maxCol-1 != 0 ? (i % 4) / (maxCol-1) : 0));
healthIcon.y = (draggable ? 14 : 7) + FlxMath.lerp(0, Math.min(maxRow * 15, 60), (maxRow-1 != 0 ? Math.floor(i / 4) / (maxRow-1) : 0));