Confirm Reload

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
511
First Language
German
Primarily Uses
RMMV

Confirm Reload v1.00


LadyBaskerville




Introduction


Have you ever accidentally hit F5 while playing your RPG Maker game and lost half an hour of progress when the game reloaded and sent you back to the title screen? Probably not, unless you're like me and tend to press buttons you shouldn't press ;) But just to make sure this doesn't happen to you or your players, here's a tiny plugin to ask for player confirmation before the game is reloaded.


Features


- When the player presses F5, display a message that asks whether the game should be reloaded. Only reload the game if the player hits "Ok".


How to use


This plugin is plug and play for the most part. If you want to change the message that is displayed to the player, you can do so in the "Message" parameter.


Plugin


Download it here: LB_ConfirmReload.js


Credit


- LadyBaskerville (optional)


Terms of Use


- You may use this plugin in both non-commercial and commercial projects.
- You may edit this plugin for your own needs.
- You may redistribute this plugin elsewhere. In that case, please link back to this plugin thread if possible.
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
482
Reaction score
211
First Language
Spanish
Primarily Uses
RMMV
Sorry for the necropost, but I would like to know something about the plugin.

Is there a way to edit the texts that show the window for reseting the game? The text inside it can be translated, of course, but the name of the window (that is 'Confirm') and the 'OK' and 'Cancel' button cannot be edited, neither on the Plugin manager nor inside the plugin itself. Here's an screenshot:
RPGMMV_LBPlugins_001.png

As you can see, the inside text is in Spanish, but the other texts are in English because there is no way to translate them. Having the option to edit them would be great. Thanks in advance!
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
511
First Language
German
Primarily Uses
RMMV
Unfortunately, these texts are browser-generated and can't be changed manually - for that, you would have to code a custom dialog box instead of using the window.comfirm() method, and that's not something I know how to do yet :(
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
482
Reaction score
211
First Language
Spanish
Primarily Uses
RMMV
Unfortunately, these texts are browser-generated and can't be changed manually - for that, you would have to code a custom dialog box instead of using the window.comfirm() method, and that's not something I know how to do yet :(
No problem, it is not a big issue, but something I would like to add, since a game translation is very important for me in all the details as possible. Don't worry, I'll find another way to change the text, and if I can't, well at least the main text will be Spanish. :rwink:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Managed to find a way to hang a bed cover over my window. So no more being toasted alive in the afternoon!:kaoswt2:
So, uh, has anyone tried buying any resources from KokoroReflections? Because I've been looking for a 'buy' button on the site for like 10 minutes now and can't find one.
Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...
Everyone in the US right now: Please stay safe.
Symphony Celestia: Prophecy of the Falling Stars RPG Maker music pack WIP. Symphony Celestia is a new series that focuses on symphonic and orchestrated music to tell a story. Each story will include compositions that make up that story from beginning to end. Themes include: Battles, adventures, character themes, etc. Below is a video preview to the first story.

Forum statistics

Threads
97,980
Messages
948,325
Members
129,245
Latest member
Tanoukun
Top