How to change confirm screen messages?[SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
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]

#1 Post by Aviala »

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?
Last edited by Aviala on Fri Dec 29, 2017 5:59 pm, edited 1 time in total.

User avatar
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?

#2 Post by IrinaLazareva »

I am not sure, but..for
gui.MAIN_MENU - "Are you sure you want to return to the mainnmenu? This will lose unsaved progress."
try

Code: Select all

init python:
    layout.MAIN_MENU = "Your text..."

User avatar
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?

#3 Post by Imperf3kt »

viewtopic.php?f=51&t=43680

I believe this should suit
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

User avatar
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?

#4 Post by Aviala »

Thanks, I didn't realize I had to write layout.MAIN_MENU instead of gui.MAIN_MENU ! Problem solved :D

Post Reply

Who is online

Users browsing this forum: Google [Bot]