how to move gui text 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.
Message
Author
User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: how to move gui text buttons

#16 Post by Imperf3kt »

You put it in the navigation screen. The buttons on the main menu and all other menus are set inside the navigation screen.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Saltome
Veteran
Posts: 244
Joined: Sun Oct 26, 2014 1:07 pm
Deviantart: saltome
Contact:

Re: how to move gui text buttons

#17 Post by Saltome »

The problem here isn't that the buttons aren't properly aligned, and if you give them a background you will see that they align perfectly.
The problem is with the text alignment. It's set to left, where as you probably want it to be centered for a horizontal menu. Combined with the lack of background, it looks like the buttons are skewed.
You can put this at the beginning of your script file to change the text alignment.

Code: Select all

define gui.button_text_xalign = 0.5
Deviant Art: Image
Discord: saltome
Itch: Phoenix Start

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Sugar_and_rice