How to change warning message?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
How to change warning message?
How do you change the warning message here?
Please help, thank you.
Re: How to change warning message?
I'm not sure about want you want but check this: http://lemmasoft.renai.us/forums/viewto ... 51&t=20720
OokamiKasumi's tutorials are easy to understand, I hope they'll help you.
OokamiKasumi's tutorials are easy to understand, I hope they'll help you.
- ketskari
- Veteran
- Posts: 296
- Joined: Tue Dec 21, 2010 6:22 pm
- Completed: Asher, Sunrise, Tell a Demon
- Projects: Asher Remake, TEoA
- Organization: Sun Labyrinth
- Tumblr: sunlabyrinth
- Deviantart: sunlabyrinth
- itch: sunlabyrinth
- Contact:
Re: How to change warning message?
You go to screens.rpy and in the yesno_prompt screen add a line of code for each message you want to change:
You can also replace this message with an image, if you want to have fancy text or a background image, like in the link Orfeo mentioned.
And you do this for each of the messages you want to change:
layout.ARE_YOU_SURE
layout.DELETE_SAVE
layout.OVERWRITE_SAVE
layout.LOADING
layout.QUIT
layout.MAIN_MENU
Here's the link in the documentation with the original messages.
Code: Select all
if (message == layout.MAIN_MENU):
label _("Are you sure you want to return to the main menu? This will lose unsaved progress."):
elif (message == layout.QUIT):
label _("Are you sure you want to quit? We'll miss you.")
And you do this for each of the messages you want to change:
layout.ARE_YOU_SURE
layout.DELETE_SAVE
layout.OVERWRITE_SAVE
layout.LOADING
layout.QUIT
layout.MAIN_MENU
Here's the link in the documentation with the original messages.
Re: How to change warning message?
Wow, thank you so much
Who is online
Users browsing this forum: Ahrefs [Bot]