Positioning Choices/Menu Buttons

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
TheMCButterfly
Newbie
Posts: 17
Joined: Sat Mar 30, 2019 12:16 pm
Projects: Friends Forever - Talk to a character
IRC Nick: Butterfly
Contact:

Positioning Choices/Menu Buttons

#1 Post by TheMCButterfly » Sun Mar 31, 2019 7:27 am

How do you position a choice or a menu button.
Do I just do this?

Code: Select all

"RepositionedButton":
	xpos = 0.5
	ypos = 0.5
Thank you for your time!

If you have enough time, please go waste your time solving some of my other posts. Thanks, and bye!

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Positioning Choices/Menu Buttons

#2 Post by Per K Grok » Sun Mar 31, 2019 12:50 pm

TheMCButterfly wrote:
Sun Mar 31, 2019 7:27 am
How do you position a choice or a menu button.
Do I just do this?

Code: Select all

"RepositionedButton":
	xpos = 0.5
	ypos = 0.5
Thank you for your time!

If you have enough time, please go waste your time solving some of my other posts. Thanks, and bye!

In the screens.rpy look for "Choice screen"

The position of the buttons is in 'style choice_vbox'

Code: Select all


style choice_vbox:
    xalign 0.5
    ypos 270
    yanchor 0.5

    spacing gui.choice_spacing
    

TheMCButterfly
Newbie
Posts: 17
Joined: Sat Mar 30, 2019 12:16 pm
Projects: Friends Forever - Talk to a character
IRC Nick: Butterfly
Contact:

Re: Positioning Choices/Menu Buttons

#3 Post by TheMCButterfly » Mon Apr 01, 2019 2:50 am

Thank you, however, what I meant was individually, but to be honest, it doesn't matter.

Post Reply

Who is online

Users browsing this forum: Google [Bot]