My game has roguelike elements so I've been fiddling around with saving and loading. Right now the game saves every time the player goes to the menu. But the confirm popup says "Are you sure you want to return to the main menu? This will lose unsaved progress." I've been trying to figure out how to change the text but the answers I found seem to be outdated since I can't get it to work.
I found this page https://www.renpy.org/doc/html/screen_s ... ml#confirm but I can't figure out how to redefine the messages. Help?
TL;DR: How to change the confirm screen text?
How to change confirm screen messages?[SOLVED]
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.
- Aviala
- Miko-Class Veteran
- Posts: 533
- Joined: Tue Sep 03, 2013 8:40 am
- Completed: Your Royal Gayness, Love Bug, Lovingly Evil
- Organization: Lizard Hazard Games
- Tumblr: lizardhazardgames
- itch: aviala
- Location: Finland
- Contact:
How to change confirm screen messages?[SOLVED]
Last edited by Aviala on Fri Dec 29, 2017 5:59 pm, edited 1 time in total.
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: How to change confirm screen messages?
I am not sure, but..for
trygui.MAIN_MENU - "Are you sure you want to return to the mainnmenu? This will lose unsaved progress."
Code: Select all
init python:
layout.MAIN_MENU = "Your text..."
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to change confirm screen messages?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Aviala
- Miko-Class Veteran
- Posts: 533
- Joined: Tue Sep 03, 2013 8:40 am
- Completed: Your Royal Gayness, Love Bug, Lovingly Evil
- Organization: Lizard Hazard Games
- Tumblr: lizardhazardgames
- itch: aviala
- Location: Finland
- Contact:
Re: How to change confirm screen messages?
Thanks, I didn't realize I had to write layout.MAIN_MENU instead of gui.MAIN_MENU ! Problem solved :D
Who is online
Users browsing this forum: Google [Bot]