How to adjust the text inside the menu?

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
Kun
Newbie
Posts: 19
Joined: Sun Dec 27, 2020 4:22 am
Projects: Hana's Campus Life (limitedfactory.info)
Organization: Limited Factory
Contact:

How to adjust the text inside the menu?

#1 Post by Kun » Sun Jan 03, 2021 11:27 am

https://drive.google.com/file/d/1pfRGc- ... sp=sharing

As you can see, the text is up in the menu box, can we center this?

thanks!

kun

User avatar
_ticlock_
Veteran
Posts: 391
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: How to adjust the text inside the menu?

#2 Post by _ticlock_ » Sun Jan 03, 2021 12:14 pm

Hi, Kun,

Is it choice screen (menu)?

For example, you can add yalign 0.5 to style choice_button_text in screens.rpy under screen choice

Code: Select all

style choice_button_text is default:
    properties gui.button_text_properties("choice_button")
    yalign 0.5

User avatar
Kun
Newbie
Posts: 19
Joined: Sun Dec 27, 2020 4:22 am
Projects: Hana's Campus Life (limitedfactory.info)
Organization: Limited Factory
Contact:

Re: How to adjust the text inside the menu?

#3 Post by Kun » Fri Jan 08, 2021 3:04 pm

Perfectly worked ;) thanks!

Post Reply

Who is online

Users browsing this forum: No registered users