How to change the shortcuts at the textbox? [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
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

How to change the shortcuts at the textbox? [solved]

#1 Post by skyeworks » Tue Aug 01, 2017 12:41 am

Image

I don't know what these are called so when I tried googling them, I couldn't find out. But I want to know how I can customize the (back, history save load). I read how customize the text box in the documentation but it doesn't say how to change this other then the text font. (And if it did say how to, I didn't understand.) :(

I really want to make those shortcuts up into buttons that matches the text box. Do I do something in screens. rpy? (Sorry, I'm pretty much a noob.) Can I use an image for them?

(I'm working on a cute pet 911 emergency vn as my first vn. And while I don't mind just having it like the default like that for this game. I want to know for any future games.)
Last edited by skyeworks on Tue Aug 01, 2017 9:03 pm, edited 1 time in total.

User avatar
carrot
Regular
Posts: 28
Joined: Fri Jul 28, 2017 7:43 am
Contact:

Re: How to change the shortcuts at the textbox?

#2 Post by carrot » Tue Aug 01, 2017 3:18 pm

Those buttons are called the "quick menu" and you're right that they're in screens.rpy:

Code: Select all

## Quick Menu screen ###########################################################
##
## The quick menu is displayed in-game to provide easy access to the out-of-game
## menus.

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


## ...
You can edit this section just like any other screen, so you should be able to add an image in there if you like.

User avatar
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

Re: How to change the shortcuts at the textbox?

#3 Post by skyeworks » Tue Aug 01, 2017 9:03 pm

omg ! THANKYOU! THIS IS WHAT I WAS LOOKING FOR!
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot