Disable and enable Saves [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.
- neometalero
- Veteran
- Posts: 202
- Joined: Sun Oct 23, 2016 3:51 am
- Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Deviantart: neometalero
- Contact:
Disable and enable Saves [SOLVED]
I need a way to disable and enable the save screen on the game. There is any way I could do this?
Last edited by neometalero on Tue May 21, 2024 2:44 pm, edited 1 time in total.
- m_from_space
- Eileen-Class Veteran
- Posts: 1030
- Joined: Sun Feb 21, 2021 3:36 am
- Contact:
Re: Disable and enable Saves
There is a variable for this purpose:neometalero wrote: ↑Mon May 20, 2024 11:39 am I need a way to disable and enable the save screen on the game. There is any way I could do this?
Code: Select all
# disable access to the game menu:
$ _game_menu_screen = None
# reset access to the game menu:
$ _game_menu_screen = "save"
- neometalero
- Veteran
- Posts: 202
- Joined: Sun Oct 23, 2016 3:51 am
- Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Deviantart: neometalero
- Contact:
Re: Disable and enable Saves
That worked, but still I can save the game from the little bar on the bottom of the screen. Any way to disable that?m_from_space wrote: ↑Tue May 21, 2024 5:09 amThere is a variable for this purpose:neometalero wrote: ↑Mon May 20, 2024 11:39 am I need a way to disable and enable the save screen on the game. There is any way I could do this?
Code: Select all
# disable access to the game menu: $ _game_menu_screen = None # reset access to the game menu: $ _game_menu_screen = "save"
Re: Disable and enable Saves
You can use Displayable Inspector: point that little bar with the mouse and press Shift-i.neometalero wrote: ↑Tue May 21, 2024 2:01 pm That worked, but still I can save the game from the little bar on the bottom of the screen. Any way to disable that?
You could see that it's screen quick_menu.
Examine the file screens.rpy looking for "quick_menu".
You will find:
Code: Select all
screen quick_menu():
## Ensure this appears on top of other screens.
zorder 100
if quick_menu:
hbox:
style_prefix "quick"
xalign 0.5
yalign 1.0
textbutton _("Back") action Rollback()
textbutton _("History") action ShowMenu('history')
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Save") action ShowMenu('save')
textbutton _("Q.Save") action QuickSave()
textbutton _("Q.Load") action QuickLoad()
textbutton _("Prefs") action ShowMenu('preferences')
Code: Select all
$ quick_menu = False
Code: Select all
$ quick_menu = True
Code: Select all
textbutton _("Save") action ShowMenu('save')
textbutton _("Q.Save") action QuickSave()
Code: Select all
if save_on:
textbutton _("Save") action ShowMenu('save')
textbutton _("Q.Save") action QuickSave()
Code: Select all
default save_on = True
Code: Select all
$ save_on = False
If the problem is solved, please edit the original post and add [SOLVED] to the title.
- neometalero
- Veteran
- Posts: 202
- Joined: Sun Oct 23, 2016 3:51 am
- Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Deviantart: neometalero
- Contact:
Re: Disable and enable Saves
I managed to hide and activate the save when needed. I will play around a little bit more and see if I can do it in a more elegant way, but this was all of the information I needed. Thanks a lot for your help! Both of you!
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot]