Page 1 of 1

A new Pause Menu and changing Buttons?

Posted: Tue Sep 27, 2016 8:08 am
by Tagumonman55
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!

Re: A new Pause Menu and changing Buttons?

Posted: Tue Sep 27, 2016 10:23 am
by Divona
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

Re: A new Pause Menu and changing Buttons?

Posted: Tue Sep 27, 2016 10:51 am
by papiersam
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:

Code: Select all

    config.exit_transition = dissolve
    config.enter_transition = dissolve
4. styling the quick_menu something like:

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')