quick menu customization [solved]
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.
- chocoberrie
- Veteran
- Posts: 254
- Joined: Wed Jun 19, 2013 10:34 pm
- Projects: Marshmallow Days
- Contact:
quick menu customization [solved]
Hello! ^_^
I have a question about the quick menu, which appears in the dialogue box by default. Is it possible to make my own quick menu using an imagemap or make the menu a part of the dialogue box but still have the individual menu items clickable, as in this example?
Any help on this would be much appreciated! Thank you! ^_^
I have a question about the quick menu, which appears in the dialogue box by default. Is it possible to make my own quick menu using an imagemap or make the menu a part of the dialogue box but still have the individual menu items clickable, as in this example?
Any help on this would be much appreciated! Thank you! ^_^
Last edited by chocoberrie on Mon May 26, 2014 10:02 pm, edited 1 time in total.
Re: quick menu customization
You certainly can!
In screens.rpy, you can customize the Quick Menu including repositioning options if you just wanted to move its location (I moved it from the bottom of the dialog box to the top for instance) or replace it entirely with an image map version. It just uses simple screen language so if you know how to do image maps, apply the same philosophy here. If you don't, I can dig up a tutorial for ya.
In screens.rpy, you can customize the Quick Menu including repositioning options if you just wanted to move its location (I moved it from the bottom of the dialog box to the top for instance) or replace it entirely with an image map version. It just uses simple screen language so if you know how to do image maps, apply the same philosophy here. If you don't, I can dig up a tutorial for ya.
- chocoberrie
- Veteran
- Posts: 254
- Joined: Wed Jun 19, 2013 10:34 pm
- Projects: Marshmallow Days
- Contact:
Re: quick menu customization
Okay, great!Crazy Li wrote:You certainly can!
In screens.rpy, you can customize the Quick Menu including repositioning options if you just wanted to move its location (I moved it from the bottom of the dialog box to the top for instance) or replace it entirely with an image map version. It just uses simple screen language so if you know how to do image maps, apply the same philosophy here. If you don't, I can dig up a tutorial for ya.
If I want to make the menu appear inside the dialogue box (like this), how would I go about doing that? Make an imagemap of the menu so that the ground and idle images have the dialogue box as their background?
- Marionette
- Regular
- Posts: 128
- Joined: Thu Apr 21, 2011 12:04 pm
- Completed: https://marionette.itch.io/
- Projects: Get Meowt of Here
- Deviantart: rexx9224
- itch: marionette
- Location: Ireland
- Discord: Marionette#2995
- Contact:
Re: quick menu customization
You should be able to use this code to do the image maps for your buttons, and if you want it in different positions you should be able to add in xpos and ypos arguments to move the images around.
Note: the %s assumes you have differently named images that correspond to the different states so it can pick them up automatically
eg.
save_%s.png:
save_insensitive.png
save_idle.png
save_hover.png
save_selected_idle.png
save_selected_hover.png
Code: Select all
screen gui_game_menu:
vbox xalign 1.0 yalign 1.0:
imagebutton auto "save_%s.png" action ShowMenu('save')
imagebutton auto "prefs_%s.png" action ShowMenu('preferences')
imagebutton auto "skip_%s.png" action Skip()
imagebutton auto "afm_%s.png" action Preference("auto-forward mode", "toggle")eg.
save_%s.png:
save_insensitive.png
save_idle.png
save_hover.png
save_selected_idle.png
save_selected_hover.png
- chocoberrie
- Veteran
- Posts: 254
- Joined: Wed Jun 19, 2013 10:34 pm
- Projects: Marshmallow Days
- Contact:
Re: quick menu customization
I ended up using an imagemap, because I have no idea how imagebuttons work ^^;;Marionette wrote:You should be able to use this code to do the image maps for your buttons, and if you want it in different positions you should be able to add in xpos and ypos arguments to move the images around.Code: Select all
screen gui_game_menu: vbox xalign 1.0 yalign 1.0: imagebutton auto "save_%s.png" action ShowMenu('save') imagebutton auto "prefs_%s.png" action ShowMenu('preferences') imagebutton auto "skip_%s.png" action Skip() imagebutton auto "afm_%s.png" action Preference("auto-forward mode", "toggle")
With regards to your code, I got an error about action Preference("auto-forward mode", "toggle"). Ren'Py says it's "unknown." If that's the case, how can I make the "Auto" hotspot I have toggle the auto-text mode?
Thank you so much for your help!
- chocoberrie
- Veteran
- Posts: 254
- Joined: Wed Jun 19, 2013 10:34 pm
- Projects: Marshmallow Days
- Contact:
Re: quick menu customization
Nevermind, I got it to work! 
I used this code:
instead of
I used this code:
Code: Select all
action Preference("auto-forward", "toggle")Code: Select all
action Preference("auto-forward mode", "toggle")- Marionette
- Regular
- Posts: 128
- Joined: Thu Apr 21, 2011 12:04 pm
- Completed: https://marionette.itch.io/
- Projects: Get Meowt of Here
- Deviantart: rexx9224
- itch: marionette
- Location: Ireland
- Discord: Marionette#2995
- Contact:
Re: quick menu customization
Yeah lol, sorry about that.chocoberrie wrote:Nevermind, I got it to work!
I used this code:
instead ofCode: Select all
action Preference("auto-forward", "toggle")
Code: Select all
action Preference("auto-forward mode", "toggle")
Was looking at old code.
- chocoberrie
- Veteran
- Posts: 254
- Joined: Wed Jun 19, 2013 10:34 pm
- Projects: Marshmallow Days
- Contact:
Re: quick menu customization
No worries! I found the newer code on the Ren'Py wiki.Marionette wrote:Yeah lol, sorry about that.
Was looking at old code.
Re: quick menu customization [solved]
How do you actually change the position of the quick menu? Like move it's position on the X and Y?
Who is online
Users browsing this forum: Google [Bot], span4ev