mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-07-18 10:04:07 +00:00
charting editor head fix
This commit is contained in:
parent
be995f0702
commit
f9f711a179
|
@ -111,6 +111,9 @@ class ChartingState extends MusicBeatState
|
||||||
leftIcon.setGraphicSize(0, 45);
|
leftIcon.setGraphicSize(0, 45);
|
||||||
rightIcon.setGraphicSize(0, 45);
|
rightIcon.setGraphicSize(0, 45);
|
||||||
|
|
||||||
|
leftIcon.autoUpdate = false;
|
||||||
|
rightIcon.autoUpdate = false;
|
||||||
|
|
||||||
add(leftIcon);
|
add(leftIcon);
|
||||||
add(rightIcon);
|
add(rightIcon);
|
||||||
|
|
||||||
|
@ -1133,16 +1136,22 @@ class ChartingState extends MusicBeatState
|
||||||
leftIcon.characterId = (_song.player1);
|
leftIcon.characterId = (_song.player1);
|
||||||
rightIcon.characterId = (_song.player2);
|
rightIcon.characterId = (_song.player2);
|
||||||
|
|
||||||
leftIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
|
// leftIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
|
||||||
rightIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
|
// rightIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
|
||||||
|
|
||||||
|
leftIcon.playAnimation(p1Muted ? LOSING : IDLE);
|
||||||
|
rightIcon.playAnimation(p2Muted ? LOSING : IDLE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
leftIcon.characterId = (_song.player2);
|
leftIcon.characterId = (_song.player2);
|
||||||
rightIcon.characterId = (_song.player1);
|
rightIcon.characterId = (_song.player1);
|
||||||
|
|
||||||
leftIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
|
leftIcon.playAnimation(p2Muted ? LOSING : IDLE);
|
||||||
rightIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
|
rightIcon.playAnimation(p1Muted ? LOSING : IDLE);
|
||||||
|
|
||||||
|
// leftIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
|
||||||
|
// rightIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
|
||||||
}
|
}
|
||||||
leftIcon.setGraphicSize(0, 45);
|
leftIcon.setGraphicSize(0, 45);
|
||||||
rightIcon.setGraphicSize(0, 45);
|
rightIcon.setGraphicSize(0, 45);
|
||||||
|
|
Loading…
Reference in a new issue