Hey there I have been trying to figure out an issue with a plugin and have had no luck. I think it might be something simple but I don't know javascript myself so it's just been a lot of trying things so far. Since I would be editing the plugin to work with my game I am not sure what the rules would be so I figured I would just keep the name of the plugin out of it for the moment.
The issue is that plugin opens a window up but the only way to leave that window is by pressing the escape key. I was hoping to change that to work with the cancel or right click key. I have looked through the code and found the part that addresses escaping the window scene and I'll post that here. If there is some simple way to fix this code line or make it cancel the window I would love to hear it. If there isn't I am sorry to trouble you all with this. Here is the code.
if(Input.isTriggered("escape"))
{
SoundManager.playCancel();
SceneManager.pop();
}
Scene_Base.prototype.update.call(this);
}
Thanks for taking a look.🙂
The issue is that plugin opens a window up but the only way to leave that window is by pressing the escape key. I was hoping to change that to work with the cancel or right click key. I have looked through the code and found the part that addresses escaping the window scene and I'll post that here. If there is some simple way to fix this code line or make it cancel the window I would love to hear it. If there isn't I am sorry to trouble you all with this. Here is the code.
if(Input.isTriggered("escape"))
{
SoundManager.playCancel();
SceneManager.pop();
}
Scene_Base.prototype.update.call(this);
}
Thanks for taking a look.🙂