How do you change the position of the quick menu?

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
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

How do you change the position of the quick menu?

#1 Post by henvu50 »

Under the dialogue box you have buttons:

back, history, skip auto, save, q.save, q.load, prefs.

How do I move the position of this quick menu?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How do you change the position of the quick menu?

#2 Post by Imperf3kt »

In screens.rpy, you'll find it as a regular screen called "quick_menu"
Adjust the hbox position or edit it entirely.

Are you familiar with screen language?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

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

Re: How do you change the position of the quick menu?

#3 Post by henvu50 »

Imperf3kt wrote: Thu Aug 23, 2018 3:44 am In screens.rpy, you'll find it as a regular screen called "quick_menu"
Adjust the hbox position or edit it entirely.

Are you familiar with screen language?
No, I'll need to look into screen language.

Okay, I got it. I have to change the yoffset -20

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

            # MOVE THE QUICK MENU UP FROM IT'S DEFAULT POSITION BY 20 pixels
            yoffset -20
            # MOVE THE QUICK MENU UP FROM IT'S DEFAULT POSITION BY 20 pixels
            
            
Thanks

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

Re: How do you change the position of the quick menu?

#4 Post by henvu50 »

Imperf3kt wrote: Thu Aug 23, 2018 3:44 am In screens.rpy, you'll find it as a regular screen called "quick_menu"
Adjust the hbox position or edit it entirely.

Are you familiar with screen language?
Do you know how I can change the font of the quick menu and the font size?

I suspect it has something to do with:

Code: Select all

style_prefix "quick"
Some where there is a style called "quick" with all the properties for font size and font type, font color, but I don't know where it is?

Okay, I discovered I can change the font size of the quick menu by using the following code:

Code: Select all

define gui.quick_button_text_size = 5

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot]