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:
Now, I want to do the same thing, not on top of the dialogue, inside it, in a vertical way like this:
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.
[SOLVED] Quick Button costumization
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.
- Potato0095
- Regular
- Posts: 84
- Joined: Sun May 08, 2016 8:40 pm
- Projects: LoveCraft
- itch: potato95
- Location: Brazil
- Contact:
[SOLVED] Quick Button costumization
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."
- 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
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...
- Potato0095
- Regular
- Posts: 84
- Joined: Sun May 08, 2016 8:40 pm
- Projects: LoveCraft
- itch: potato95
- Location: Brazil
- Contact:
Re: Quick Button costumization
Yeah, that worked for me. Thanks.
"There are two types of lies: Lies that hurt, and lies that don't."
Re: [SOLVED] Quick Button costumization
How do you move the position of the quick menu? I just want to move it up by like 15 pixels.
Who is online
Users browsing this forum: Majestic-12 [Bot]