Skip to content

Chart Editor - Fix notelay sound playing when not in grid#4157

Merged
Hundrec merged 3 commits into
FunkinCrew:dummy/develop-v0.7.5from
amyspark-ng:fix-editor-note-lay-sound
Nov 26, 2025
Merged

Chart Editor - Fix notelay sound playing when not in grid#4157
Hundrec merged 3 commits into
FunkinCrew:dummy/develop-v0.7.5from
amyspark-ng:fix-editor-note-lay-sound

Conversation

@amyspark-ng
Copy link
Copy Markdown
Contributor

@amyspark-ng amyspark-ng commented Feb 16, 2025

Does this PR close any issues? If so, link them below.

Fixes #4153

Briefly describe the issue(s) fixed.

The editor would play notelay even when the cursor was outside the grid

Include any relevant screenshots or videos.

I just realized there's an issue with this LOL, so will keep it as draft for now

@github-actions github-actions Bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. and removed status: pending triage Awaiting review. labels Feb 16, 2025
@AbnormalPoof AbnormalPoof added type: minor bug Involves a minor bug or issue. topic: chart editor Related to the operation of the Chart Editor. status: needs revision Cannot be approved because it is awaiting some work by the contributor. labels Feb 17, 2025
Comment thread source/funkin/ui/debug/charting/ChartEditorState.hx Outdated
@amyspark-ng amyspark-ng marked this pull request as ready for review February 17, 2025 18:34
@amyspark-ng
Copy link
Copy Markdown
Contributor Author

amyspark-ng commented Feb 17, 2025

it does seem to work now!, the logic might be a little "faulty" in the sense that i have to "recheck" the change in steps but it works

https://github.com/amyspark-ng/Funkin/blob/4a19dcb9958a3f3087eaec89b81d21cc6f79681f/source/funkin/ui/debug/charting/ChartEditorState.hx#L4568

2025-02-17_13-37-18.mp4

@AbnormalPoof AbnormalPoof added status: pending triage Awaiting review. and removed status: needs revision Cannot be approved because it is awaiting some work by the contributor. labels Feb 17, 2025
@Lasercar
Copy link
Copy Markdown
Contributor

it does seem to work now!, the logic might be a little "faulty" in the sense that i have to "recheck" the change in steps but it works

2025-02-17_13-37-18.mp4

Oh, uh, you don’t have to rerun the check like that. Skipping setting the stuff entirely makes more sense, does the same thing and makes the code look much cleaner.

@amyspark-ng
Copy link
Copy Markdown
Contributor Author

you mean like if (!overlarpsGrid) return? that changes completely the behavior!

@Lasercar
Copy link
Copy Markdown
Contributor

Lasercar commented Feb 17, 2025

Nooo, just this if ((dragTargetCurrentColumn != dragDistanceColumns && overlapsGrid) || dragTargetCurrentStep != dragDistanceSteps)change at 4565, that’s it, rather than where it is now.

Basically, don’t run the note moving stuff if the mouse is outside the grid and the y position isn’t changing.

@amyspark-ng
Copy link
Copy Markdown
Contributor Author

amyspark-ng commented Feb 17, 2025

ohhh i see what you mean! i will change it right now

nvm, editing code in phone is really hard, give me like an hour

@amyspark-ng
Copy link
Copy Markdown
Contributor Author

amyspark-ng commented Feb 18, 2025

while checking if the fix worked, i noticed there was a different bug where an event selected won't move properly if it's not the "leader" item selected

this is a whole different issue that i will report rn
the video shows before and after of the issue i fixed, also shows the bug im mentioning

2025-02-17_22-03-04.mp4

@Lasercar
Copy link
Copy Markdown
Contributor

Lasercar commented Feb 19, 2025

comment moved to: #4186 (comment)

@amyspark-ng
Copy link
Copy Markdown
Contributor Author

amyspark-ng commented Feb 19, 2025

i'd like to help on this issue but moving items is actually very hard! i had to do something like this recently and struggled a lot, in fact, if you do understand how it works i'd appreciate an explanation

What i did was when you're selecting a bunch of notes and you click one, that note is now a "leader note" and for every selected note i store the difference to that "leader note", then the leader note will move to the hovered step and every other selected note will move to the same step, but adding the difference, so they keep the respective offset

the issue has been opened #4186

@amyspark-ng amyspark-ng changed the title fix notelay sound when not in grid Chart Editor - Fix notelay sound playing when not in grid Feb 19, 2025
@amyspark-ng
Copy link
Copy Markdown
Contributor Author

is this good? can it be merged pretty please

@EliteMasterEric EliteMasterEric added size: tiny A tiny pull request with 4 or fewer changes. and removed size: small A small pull request with 10 or fewer changes. labels May 14, 2025
Copy link
Copy Markdown
Member

@EliteMasterEric EliteMasterEric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good change

@Hundrec Hundrec changed the base branch from develop to dummy/develop-v0.7.5 November 26, 2025 05:04
@Hundrec Hundrec added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: pending triage Awaiting review. labels Nov 26, 2025
@Hundrec Hundrec added this to the 0.7.6 milestone Nov 26, 2025
@Hundrec Hundrec merged commit 1b4aeb8 into FunkinCrew:dummy/develop-v0.7.5 Nov 26, 2025
4 checks passed
@amyspark-ng
Copy link
Copy Markdown
Contributor Author

im just seeing this now lol, yippee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: tiny A tiny pull request with 4 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. topic: chart editor Related to the operation of the Chart Editor. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: In the editor, when moving notes and having the cursor outside of the lanes, the note move sound will play

5 participants