How to completely disable saving, loading, preferences?

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
AliceGames
Newbie
Posts: 13
Joined: Fri Jul 23, 2021 10:06 am
Contact:

How to completely disable saving, loading, preferences?

#1 Post by AliceGames »

Hi, I know this sounds weird, but I literally am just making my visual novel a start and quit thing, no options, nothing. I just want the player to be able to start and quit by just using the x to close the window. Is there any way to disable the other features and their hotkeys?

henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Re: How to completely disable saving, loading, preferences?

#2 Post by henvu50 »

Open screens.rpy

All the main menu buttons are in screen preferences, you can delete them or set each button's sensitive status to False, which will disable it, turning it grey (inactive, unclickable)

Code: Select all

# screens.rpy
screen preferences:
     #.. all the main menu buttons are here
  
	# like this one
         if not main_menu:
            textbutton _("Save"):
                action ShowMenu("save")
                sensistive = False  # ADD THIS OR

      # OR JUST COMMENT IT OUT

Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot]