MZ [SOLVED] Assistance with Luna_GamePause

Hey everyone,

I'm hoping this is a quick fix! I'm using the Luna Game Pause plugin. It's great. My only issue with it is using the assign pause button does not unpause the game. You press cancel instead. I tried a couple things out, but no luck making the assigned pause button do both pause and unpause. Line 134 looks to be where the unpausing happens, and there's an event listener on line 174 which I think checks if the assigned pause button has been pressed.

Any help is appreciated! Thanks!
the line 174 checks the button inside the parameter that you set.
the line 134 cancel out the pause.

so if you use P for pause and you have a to redirect it to cancel
for the input, touchinput (default) + add the param there as well.

to make it work is try to alter it like this if it works:
JavaScript:
if(Input.isPressed("cancel") || Input.isPressed(LunaGamePause.LGParams.pauseButton.toUpperCase()) || TouchInput.isCancelled())

I don't have time to check, but that use the same button.
if it works you may remove input is canceled (but keep touch) just in case.
the line 174 checks the button inside the parameter that you set.
the line 134 cancel out the pause.

so if you use P for pause and you have a to redirect it to cancel
for the input, touchinput (default) + add the param there as well.

to make it work is try to alter it like this if it works:
JavaScript:
if(Input.isPressed("cancel") || Input.isPressed(LunaGamePause.LGParams.pauseButton.toUpperCase()) || TouchInput.isCancelled())

I don't have time to check, but that use the same button.
if it works you may remove input is canceled (but keep touch) just in case.

Hmm yeah, that looks like it should work, but as I tested it out, it doesn't. Very strange! I'll keep on it though!
you can hardcode it otherwise, but I don't know how the parameters exactly are targetted.
eliaquim has one too that work with your own image, does that not work out?

or remove to uppercase
JavaScript:
Input.isPressed(LunaGamePause.LGParams.pauseButton)

otherwise, I don't know either.
you can hardcode it otherwise, but I don't know how the parameters exactly are targetted.
eliaquim has one too that work with your own image, does that not work out?

or remove to uppercase
JavaScript:
Input.isPressed(LunaGamePause.LGParams.pauseButton)

otherwise, I don't know either.
I do! I tried it and it didn't seem to work. But your suggestion made me go back to it. Looks like I just needed to delete the plugin from my list and add it again since I must have had something set in a way that clashed.

Well with that we can consider this thread closed, lol. Thanks for the help @ShadowDragon !

Original thread: https://forums.rpgmakerweb.com/threads/solved-assistance-with-luna_gamepause.174841/