[SOLVED] Quick Button costumization

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
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

[SOLVED] Quick Button costumization

#1 Post by Potato0095 »

Let's say I want to move the quick buttons to another place, on top of the dialogue box, with the same distance between each one like this one:
screenshot0002.png

Now, I want to do the same thing, not on top of the dialogue, inside it, in a vertical way like this:
screenshot0001.png

What should I do to costumize it? I can't find anything on gui.rpy, correct me if I'm wrong, but I'm assuming I'm gonna need to make a variable here.
Last edited by Potato0095 on Sat Jul 22, 2017 8:43 am, edited 1 time in total.
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
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: Quick Button costumization

#2 Post by Divona »

You have to use Screen Language to modifies the position of the quick menu. You can find the quick menu code under "screens.rpy" file, search for "screen quick_menu()". For vertical, use vbox instead of hbox.

Code: Select all

        # change from hbox to vbox for vertical quick menu
        vbox:
            style_prefix "quick"

            # position of the quick menu
            xalign 0.5
            yalign 1.0

            # buttons in the quick menu
            textbutton _("Back") action Rollback()
            textbutton _("History") action ShowMenu('history')

            # the rest of the code and so on...
Completed:
Image

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Quick Button costumization

#3 Post by Potato0095 »

Yeah, that worked for me. Thanks.
"There are two types of lies: Lies that hurt, and lies that don't."

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

Re: [SOLVED] Quick Button costumization

#4 Post by henvu50 »

How do you move the position of the quick menu? I just want to move it up by like 15 pixels.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]