Hi
I have the following problem:
In my game, the player has 3 possible answers to the given question.
If I define this as a menu they are all centered.
I want them to look like in the picture (yellow part).
I already read "how to customize menus" and couldn't find anything about position...
Shall I do this with imagebuttons?
[SOLVED] Customizing In-Game Menu position?
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.
[SOLVED] Customizing In-Game Menu position?
Last edited by Mangescom on Sun Aug 02, 2015 4:44 pm, edited 3 times in total.
- mobychan
- Veteran
- Posts: 275
- Joined: Fri Apr 24, 2015 6:31 am
- Projects: The Chosen - Sakura Pink & Gentian Blue
- Organization: Foresoft
- Location: Germany
- Contact:
Re: Customizing In-Game Menu?
In the screens.rpy file you should find the choice screen, there you just have to change the style of the buttons:
Code: Select all
if action:
button:
action action
style "menu_choice_button" # Use this style to customize your buttons
text caption style "menu_choice"
- Donmai
- Eileen-Class Veteran
- Posts: 1965
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Customizing In-Game Menu position?
As mobychan told you. Open your 'screens.rpy' in your text editor. Go to 'screen choice'. Try tweaking some values there. Look for these lines I have commented:
Code: Select all
screen choice:
window:
style "menu_window"
xalign 0.75 # try changing this
yalign 0.5 # optionally, you can change the yalign too
Code: Select all
style menu_choice_button is button:
xminimum int(config.screen_width * 0.45) # try changing this
xmaximum int(config.screen_width * 0.45) # and this
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: [SOLVED] Customizing In-Game Menu position?
Thanks a lot to both of you!
Who is online
Users browsing this forum: Google [Bot]