Skip to content

Commit 647c708

Browse files
committed
Furo requested
1 parent 39237dd commit 647c708

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

source/funkin/game/HealthIcon.hx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ class HealthIcon extends FunkinSprite
178178

179179
loadGraphic(iconAsset, true, Std.int(Math.min(iconSize, assetW)), Std.int(Math.min(iconSize, assetH)));
180180

181-
setGraphicSize(150);
182-
updateHitbox();
183-
184181
animation.add(char, [for(i in 0...iconAmt) i], 0, false, isPlayer != iconIsPlayer);
185182
animation.play(char);
186183
}

source/funkin/menus/FreeplayState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class FreeplayState extends MusicBeatState
158158

159159
var icon:HealthIcon = new HealthIcon(songs[i].icon);
160160
icon.sprTracker = songText;
161+
if (Math.max(icon.width, icon.height) > 150) icon.setUnstretchedGraphicSize(150, 150);
161162

162163
// using a FlxGroup is too much fuss!
163164
iconArray.push(icon);

source/funkin/options/type/IconOption.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class IconOption extends TextOption {
1818
iconSpr.setPosition(90 - iconSpr.width, (__text.height - iconSpr.height) / 2);
1919
iconSpr.sprTracker = __text;
2020
iconSpr.sprTrackerAlignment = LEFT;
21+
if (Math.max(iconSpr.width, iconSpr.height) > 150) iconSpr.setUnstretchedGraphicSize(150, 150);
2122
add(iconSpr);
2223
}
2324
}

0 commit comments

Comments
 (0)