How to change position of game menu screens (load, preferences, about, help)

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
LyraCentauri
Newbie
Posts: 10
Joined: Fri Mar 26, 2021 5:50 pm
Contact:

How to change position of game menu screens (load, preferences, about, help)

#1 Post by LyraCentauri » Fri Mar 26, 2021 6:13 pm

Hi! I'm very sorry if this is an obvious question but this is my first time coding a game and I have hit a wall trying to customize the game menu gui.

I've changed the position of the navigation menu from the left side to be on the right, but now the screen buttons for load/save, about, etc. are colliding with the navigation menu and I want to shift all of these screens to the left to balance everything out. How do I go about changing the position of the load, about, preferences, and the help screens?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: How to change position of game menu screens (load, preferences, about, help)

#2 Post by Imperf3kt » Fri Mar 26, 2021 6:47 pm

In the game menu, adjust the frame position.
Sorry I can't help much better than this, I can't remember exactly which line and I'm currently not able to check at a pc.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Dr_arell
Regular
Posts: 70
Joined: Sun Feb 23, 2020 11:24 pm
Deviantart: DarellArt
Contact:

Re: How to change position of game menu screens (load, preferences, about, help)

#3 Post by Dr_arell » Fri Mar 26, 2021 8:52 pm

in the file "screens" look for "screen navigation" or "screen main_menu" there you can place alignments and all that on each textbutton

LyraCentauri
Newbie
Posts: 10
Joined: Fri Mar 26, 2021 5:50 pm
Contact:

Re: How to change position of game menu screens (load, preferences, about, help)

#4 Post by LyraCentauri » Tue Mar 30, 2021 12:22 am

Thanks guys for the advice! I was able to move the content screens with this code in the screens.rpy file under "game menu screen" (posting to help anyone else who needs a solution):

frame:
style "game_menu_content_frame"
#moved load menu
right_padding 500
xpos 100

Post Reply

Who is online

Users browsing this forum: mold.FF