[SOLVED] Customizing In-Game Menu position?

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
Mangescom
Newbie
Posts: 16
Joined: Sat Jul 04, 2015 1:45 pm
Deviantart: Mangescom
Contact:

[SOLVED] Customizing In-Game Menu position?

#1 Post by Mangescom »

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?
Attachments
image.jpg
Last edited by Mangescom on Sun Aug 02, 2015 4:44 pm, edited 3 times in total.

User avatar
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?

#2 Post by mobychan »

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"

User avatar
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?

#3 Post by Donmai »

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
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Mangescom
Newbie
Posts: 16
Joined: Sat Jul 04, 2015 1:45 pm
Deviantart: Mangescom
Contact:

Re: [SOLVED] Customizing In-Game Menu position?

#4 Post by Mangescom »

Thanks a lot to both of you!

Post Reply

Who is online

Users browsing this forum: Google [Bot]