Some time ago I posted my plugin to use cheats in MV game. It would be at least strange to ask for help with plugin I wrote by myself, but I noticed strange bug, glitch, I don't know how to call it... Anyway, the problem is, when I call window.prompt() method game is going from full screen to window mode and that kind of error is unacceptable if my game will be commercial...
So... I wrote simple function thinking it will solve the problem, but I was wrong...
I've added that function for each cheat I implemented in script and game won't go to full screen again... Then I edited package.json file setting "fullscreen": true and that practically solves problem, but when I enter to game options to toggle between full screen and window mode, game stubbornly remains in full screen.
What to do, to keep game option to switch between window mode and full screen and still be able to use window.prompt() method without problems?
So... I wrote simple function thinking it will solve the problem, but I was wrong...
Code:
Cheat.prototype.setFullScreen = function(){
if (Graphics._isFullScreen()){
Graphics._requestFullScreen();
}
}
I've added that function for each cheat I implemented in script and game won't go to full screen again... Then I edited package.json file setting "fullscreen": true and that practically solves problem, but when I enter to game options to toggle between full screen and window mode, game stubbornly remains in full screen.
What to do, to keep game option to switch between window mode and full screen and still be able to use window.prompt() method without problems?