-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[BUGFIX] Fix Two Issues With Song Text on Freeplay Capsules #5036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
[BUGFIX] Fix Two Issues With Song Text on Freeplay Capsules #5036
Conversation
unintentionally fixes song text squishing
Could it really be? The one to fix the squashed text? |
Would be funny since it wasn't the issue I was originally trying to fix. |
Now we just have to figure out why the capsules started sometimes getting that weird y offset in 0.6 Also, I find it funny that's despite the squashed text being unintentionally fixed, we still don't know how exactly it's caused in the first place |
Hundrec. I Need A Compiled Build. I Need To Test This. Yeah I Can't Be Bothered To Waste 20GB On My Storage Space For Funkin' |
If you want a compiled build for Windows, I can zip the one I have. You can download it here if you want to try it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats it? just 2 lines? thats all it takes to fix 2 of my annoyances of the freeplay menu?
We've been foiled again by the squashed text |
Are you able to get this consistently? Did you do anything before entering Stress? Because I can't seem to get this to occur. |
My worst enemy.... just like The Lich from Adventure Time, this stupid thing just wont go away no matter what |
With this PR, I have found a way to reliably reproduce the squashed text on one of the capsules. I can try to figure out how it happens through debugging later. |
I left a comment under the squashed text issue outlining how to reproduce the bug by switching variations. Hopefully that's helpful! |
Using debugging, I have found the problematic function. Whenever a capsule has squashed text, its x scale has a value of 0.4 and its y scale has a value of 1.4. The function that sets the text's scale values to this is The purpose of Considering |
It was that simple?? |
I mean, at first I tried to call the song text's |
Thanks for investigating! It's time to stress test this to the max! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you've done it!
You've finally freed us from this curse...
The cursed function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
peak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this PR immediately! 🗣️ 🔥
Thought I'd try making the timers a variable and only allow it to be set if it's null or finished to see if it'd fix it and nope! It seems to do it the first time you letter switch, so yeah, just disable it entirely, I've had enough. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very good, will be merged in the next update.
Linked Issues
Fixes #4876. Fixes #2659.
Description
When switching song lists (changing filters or difficulties) from a song not in the new list, its text would remain highlighted when you switched back to the list it is in. This PR fixes the issue by setting the
selected
value of the capsule tofalse
before the song list might change.I also made an adjustment in
SongMenuItem.hx
to fix the squashed text. A detailed description of the change is in a comment below.Screenshots/Videos
Video of song text not being highlighted:
song-text-not-highlighted.mp4
After the 0.6.4 update, there were three scenarios I found that would always result in a capsule having squished text which is shown below:
song-text-squish.mp4
Here, you can see these same scenarios no longer produce squished text:
no-text-squish.mp4