I'm back with questions! After spending over 2 years working on my Visual Novel by my lonesome and attempting to problem solve myself, I've returned with a question!
Those buttons on the bottom of the game. Like the "Skip" the "Back" the "Options" and the "Jump-forwards" buttons
I don't want them there by just default anymore, I want the player to have to hit a key on their keyboard, (Most likely the escape key or maybe backspace.)
When pressed, it will darken the whole screen and show the buttons listed along the right side of the screen. (Similar to the default main menu setup)
I don't have a picture of what I'm referring to on hand, but an example is what they did with "Fate/Stay Night's" Pause menu.
Something along those lines.
All help is much appreciated!
A new Pause Menu and changing Buttons?
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.
-
- Newbie
- Posts: 20
- Joined: Thu Nov 13, 2014 12:56 am
- Projects: Legend Of Quadopolia
- Deviantart: Tagumonman55
- Contact:
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: A new Pause Menu and changing Buttons?
Pretty much you want to hide quick menu, and create your own pause menu? That can be done by tweaking 'screen quick_menu()' in 'screens.rpy' to hide them and setup some keymap to your custom screen.
You could start with this tutorial (the code is from older version of Ren'Py but should still work:
viewtopic.php?f=51&t=34075
You could start with this tutorial (the code is from older version of Ren'Py but should still work:
viewtopic.php?f=51&t=34075
- papiersam
- Veteran
- Posts: 231
- Joined: Fri Aug 12, 2016 2:24 pm
- Completed: Gem Hunt Beta, 1/Probably, Animunch
- Projects: The Panda Who Dreamed
- Contact:
Re: A new Pause Menu and changing Buttons?
I'm not sure if it's what you're looking to do, but you could try:
1. Removing the 'use quick_menu' statements from the say screen in screens.rpy
2. adding define _game_menu_screen = 'quick_menu' without indent to a script file
3. (Optional) go to options.rpy and set up the game menu transition something like:
4. styling the quick_menu something like:
1. Removing the 'use quick_menu' statements from the say screen in screens.rpy
2. adding define _game_menu_screen = 'quick_menu' without indent to a script file
3. (Optional) go to options.rpy and set up the game menu transition something like:
Code: Select all
config.exit_transition = dissolve
config.enter_transition = dissolve
Code: Select all
screen quick_menu():
add "#0009" #or any other semi transparent colour
# Add an in-game quick menu.
vbox:
xalign 1.0
yalign 0.5
textbutton _("Back") action Rollback()
textbutton _("Save") action ShowMenu('save')
textbutton _("Q.Save") action QuickSave()
textbutton _("Q.Load") action QuickLoad()
textbutton _("Skip") action Skip()
textbutton _("F.Skip") action Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Prefs") action ShowMenu('preferences')