From e05f0e6f3a742768fdc99a2654765e07dc7541d4 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:21:54 -0700 Subject: [PATCH] i can NOT spell --- source/funkin/editors/charter/CharterNote.hx | 26 +++++++++---------- .../editors/charter/CharterNoteHoverer.hx | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/source/funkin/editors/charter/CharterNote.hx b/source/funkin/editors/charter/CharterNote.hx index 0939c202..588a1584 100644 --- a/source/funkin/editors/charter/CharterNote.hx +++ b/source/funkin/editors/charter/CharterNote.hx @@ -20,7 +20,7 @@ class CharterNote extends UISprite implements ICharterSelectable { ]; public var sustainSpr:UISprite; - public var sustainHtibox:UISprite; + public var sustainHitbox:UISprite; public var tempSusLength:Float = 0; public var sustainDraggable:Bool = false; @@ -43,16 +43,16 @@ class CharterNote extends UISprite implements ICharterSelectable { sustainSpr.scale.set(10, 0); members.push(sustainSpr); - sustainHtibox = new UISprite(20, 40); - sustainHtibox.makeSolid(1, 1, -1); - sustainHtibox.scale.set(20, 20); - sustainHtibox.updateHitbox(); - members.push(sustainHtibox); - sustainHtibox.alpha = 0; + sustainHitbox = new UISprite(20, 40); + sustainHitbox.makeSolid(1, 1, -1); + sustainHitbox.scale.set(20, 20); + sustainHitbox.updateHitbox(); + members.push(sustainHitbox); + sustainHitbox.alpha = 0; typeText = new UIText(x, y, 0, Std.string(type)); - cursor = sustainSpr.cursor = sustainHtibox.cursor = BUTTON; + cursor = sustainSpr.cursor = sustainHitbox.cursor = BUTTON; moves = false; } @@ -93,7 +93,7 @@ class CharterNote extends UISprite implements ICharterSelectable { y = step * 40; - sustainHtibox.exists = susLength == 0; + sustainHitbox.exists = susLength == 0; if (angleTween != null) angleTween.cancel(); @@ -143,11 +143,11 @@ class CharterNote extends UISprite implements ICharterSelectable { super.update(elapsed); sustainDraggable = false; - if (sustainHtibox.exists) { - sustainHtibox.follow(this, 10, height-10); + if (sustainHitbox.exists) { + sustainHitbox.follow(this, 10, height-10); - UIState.state.updateSpriteRect(sustainHtibox); - sustainDraggable = UIState.state.isOverlapping(sustainHtibox, @:privateAccess sustainHtibox.__rect); + UIState.state.updateSpriteRect(sustainHitbox); + sustainDraggable = UIState.state.isOverlapping(sustainHitbox, @:privateAccess sustainHitbox.__rect); } sustainSpr.scale.set(10, CoolUtil.fpsLerp(sustainSpr.scale.y, (40 * (susLength+tempSusLength)) + ((susLength+tempSusLength) != 0 ? (height/2) : 0), 1/2)); diff --git a/source/funkin/editors/charter/CharterNoteHoverer.hx b/source/funkin/editors/charter/CharterNoteHoverer.hx index c3baf50b..52f5fff8 100644 --- a/source/funkin/editors/charter/CharterNoteHoverer.hx +++ b/source/funkin/editors/charter/CharterNoteHoverer.hx @@ -7,7 +7,7 @@ class CharterNoteHoverer extends CharterNote { super(); snappedToStrumline = selectable = autoAlpha = false; visible = sustainSpr.visible = false; - @:privateAccess __animSpeed = 1.25; typeText.visible = false; alpha = 0.4; sustainHtibox.exists = false; + @:privateAccess __animSpeed = 1.25; typeText.visible = false; alpha = 0.4; sustainHitbox.exists = false; } @:noCompletion var __mousePos:FlxPoint = FlxPoint.get();