From 7b5d975072690071824d21034485bf47c4396e8c Mon Sep 17 00:00:00 2001 From: ~ Care <126361810+usb-port-2@users.noreply.github.com> Date: Mon, 17 Jun 2024 18:35:11 +0100 Subject: [PATCH] Icon bop toggle (#320) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Icon bop toggle * Disabled Icon lerping too * fixin the format n shit --------- Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com> --- source/funkin/game/PlayState.hx | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index f585e89f7..039d9d33a 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -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]); }