Skip to content

Commit cffc320

Browse files
Update PlayState.hx
1 parent d773c7b commit cffc320

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/funkin/game/PlayState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,12 +1416,16 @@ class PlayState extends MusicBeatState
14161416
var strLine = strumLines.members[event.params[2]];
14171417
if (strLine != null) {
14181418
strLine.altAnim = cast event.params[0];
1419+
var pickedIcon = (strLine.data.type == 2) ? ((strLine.data.type == 0) ? iconP2 : iconP1) : null;
14191420

14201421
if (strLine.characters != null) // Alt anim Idle
14211422
for (character in strLine.characters) {
14221423
if (character == null) continue;
14231424
character.idleSuffix = event.params[1] ? "-alt" : "";
14241425
}
1426+
1427+
if (pickedIcon != null)
1428+
pickedIcon.setIcon(pickedIcon.curCharacter, pickedIcon.isPlayer, event.params[3] ? "-alt" : "");
14251429
}
14261430
case "Play Animation":
14271431
if (strumLines.members[event.params[0]] != null && strumLines.members[event.params[0]].characters != null)

0 commit comments

Comments
 (0)