-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Enhancement: Remove 0.5sec of input ignoring when entering pause menu #3709
Comments
I think disabling pause spamming prevents some bugs from occurring, but I'm open to hearing out why you want it back. |
@Hundrec I want to fast restart the song by pressing enter, ↓, enter, but I cant bc ↓ didnt register and instead im pressing "resume". And overall, just qol improvement. For navigating in pause menu instantly, without waiting. |
I see, that's a pretty good purpose! Maybe they can find a compromise between disabling inputs and allowing quick restarts. |
i remember asking for it but i think they denied it and instead send me a script that i use to today |
Be a G and pass the script around to the class. |
|
Thank you fr. |
import funkin.modding.module.Module;
import funkin.play.PlayState;
import funkin.play.PauseSubState;
import funkin.play.PauseMode;
import funkin.ui.freeplay.FreeplayState;
import flixel.FlxG;
import funkin.audio.FunkinSound;
class QuickReset extends Module {
function new() {
super('QuickReset');
}
function onUpdate(event) {
if (PlayState.instance != null) {
if (FlxG.keys.pressed.CONTROL) {
if (FlxG.keys.justPressed.R) {
PlayState.instance.needsReset = true;
// is paused
if (PlayState.instance.subState != null) {
PlayState.instance.closeSubState();
}
}
}
}
}
} i modified it so it also works if the game is paused |
if you want to change the key just replace the FlxG.keys.justPressed.R with the key you want |
where do I add the code to make it work? |
you have to make a .hxc file and place it in a folder in mods so like funkin/mods/quickreset/reset.hxc |
very nice suggestion, when this is issue gets closed, it means it's merged internally, thanks! |
Sorry @ninjamuffin99, I messed something up! |
hundrec you devil |
Bahaha, looks like my actions system needs some more work! I'll make a couple labels suggestions in a new issue for you and Eric to look over. It's ready! #3920 |
Issue Checklist
What is your suggestion, and why should it be implemented?
That wasnt a thing before weekend 1 update :(
The text was updated successfully, but these errors were encountered: