Change Position of Main Menu Title Name Text
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.
Change Position of Main Menu Title Name Text
I would like to change the position of my game's title text position; however, I am unsure of how to do this. Can someone give me an example of how you would do so?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Change Position of Main Menu Title Name Text
Which version of renpy are you using? If you have a gui.rpy file, that contains all the positioning for the main menu.
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Change Position of Main Menu Title Name Text
The only one that I am seeing is the one for size in the gui.rpy file.
Code: Select all
define gui.title_text_size = 55
Anyways, that is not important. I assume in the newer version in gui.rpy there is more in the file than my version in terms of customizing the position of where the game's title for the main menu. Or am I simply being idiotic and the customization for the title text is labeled something other than "gui.title_something_something"? However, I am not seeing it in the tutorial's gui.rpy file. It only has the same option to change the size of the title's text in the main menu.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Change Position of Main Menu Title Name Text
Oops, sorry, I had you looking in the wrong spot.
Open screens.rpy and find these lines
They should be around line 397
These are what affect the placement of things.
What I did in one project, was just add some positioning information to the vbox
Open screens.rpy and find these lines
Code: Select all
style main_menu_vbox:
xalign 1.0
xoffset -30
xmaximum 1200
yalign 1.0
yoffset -30
style main_menu_text:
xalign 1.0
layout "subtitle"
text_align 1.0
color gui.accent_color
style main_menu_title:
size gui.title_text_size
These are what affect the placement of things.
What I did in one project, was just add some positioning information to the vbox
Code: Select all
if gui.show_name:
vbox:
xalign 0.97
yalign 0.04
if not renpy.variant("android"):
# if not renpy.variant("small"):
text "Welcome, [player]":
style "main_menu_version"
else:
null height 2
text "[config.name!t]":
style "main_menu_title"
text "Version [config.version]":
style "main_menu_version"
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Change Position of Main Menu Title Name Text
I forgot about those settings. Thanks for that.Imperf3kt wrote: ↑Mon Nov 05, 2018 2:29 pm Oops, sorry, I had you looking in the wrong spot.
Open screens.rpy and find these linesThey should be around line 397Code: Select all
style main_menu_vbox: xalign 1.0 xoffset -30 xmaximum 1200 yalign 1.0 yoffset -30 style main_menu_text: xalign 1.0 layout "subtitle" text_align 1.0 color gui.accent_color style main_menu_title: size gui.title_text_size
These are what affect the placement of things.
What I did in one project, was just add some positioning information to the vboxCode: Select all
if gui.show_name: vbox: xalign 0.97 yalign 0.04 if not renpy.variant("android"): # if not renpy.variant("small"): text "Welcome, [player]": style "main_menu_version" else: null height 2 text "[config.name!t]": style "main_menu_title" text "Version [config.version]": style "main_menu_version"
Who is online
Users browsing this forum: No registered users