Icon bop toggle (#320)

* Icon bop toggle

* Disabled Icon lerping too

* fixin the format n shit

---------

Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
This commit is contained in:
~ Care
2024-06-17 19:35:11 +02:00
committed by GitHub
co-authored by ⍚~Nex
parent 823c1a7f6b
commit 7b5d975072
+18 -10
View File
@@ -211,9 +211,13 @@ class PlayState extends MusicBeatState
*/
public var canAccessDebugMenus:Bool = true;
/**
* Wether or not to show the secret gitaroo pause.
* Whether or not to show the secret gitaroo pause.
*/
public var allowGitaroo:Bool = true;
/**
* Whether or not to bop the icons on beat.
*/
public var doIconBop:Bool = true;
/**
* Whenever cam zooming is enabled, enables on a note hit if not cancelled.
@@ -1231,12 +1235,13 @@ class PlayState extends MusicBeatState
}
}
iconP1.scale.set(lerp(iconP1.scale.x, 1, 0.33), lerp(iconP1.scale.y, 1, 0.33));
iconP2.scale.set(lerp(iconP2.scale.x, 1, 0.33), lerp(iconP2.scale.y, 1, 0.33));
iconP1.updateHitbox();
iconP2.updateHitbox();
if (doIconBop) {
iconP1.scale.set(lerp(iconP1.scale.x, 1, 0.33), lerp(iconP1.scale.y, 1, 0.33));
iconP2.scale.set(lerp(iconP2.scale.x, 1, 0.33), lerp(iconP2.scale.y, 1, 0.33));
iconP1.updateHitbox();
iconP2.updateHitbox();
}
updateIconPositions();
if (startingSong)
@@ -1784,11 +1789,14 @@ class PlayState extends MusicBeatState
camHUD.zoom += 0.03 * camZoomingStrength;
}
iconP1.scale.set(1.2, 1.2);
iconP2.scale.set(1.2, 1.2);
if (doIconBop)
{
iconP1.scale.set(1.2, 1.2);
iconP2.scale.set(1.2, 1.2);
iconP1.updateHitbox();
iconP2.updateHitbox();
iconP1.updateHitbox();
iconP2.updateHitbox();
}
scripts.call("beatHit", [curBeat]);
}