Editing About Screen

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
Westeford
Regular
Posts: 151
Joined: Mon Jun 19, 2017 4:43 pm
Completed: 12 Hours to Die
Projects: Project Premonition
itch: westeford
Location: United States
Contact:

Editing About Screen

#1 Post by Westeford » Sat Aug 11, 2018 3:05 pm

I'm blanking really bad on this one.
I'm editing the pre-made screens. Two things I'm trying to accomplish.
1. I'd like to center the "About" screen's contents.
2. I want to remove the screen's title. (So for About, I want to remove the word About in the top-left corner.)

I feel like I'm overlooking something really simple.
I've provided an image as well.
About.png
Thanks in advance

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: Editing About Screen

#2 Post by Per K Grok » Sat Aug 11, 2018 5:16 pm

Westeford wrote:
Sat Aug 11, 2018 3:05 pm

1. I'd like to center the "About" screen's contents.
2. I want to remove the screen's title. (So for About, I want to remove the word About in the top-left corner.)


Find the following code in screens.rpy

Code: Select all

screen about():

    tag menu

    ## This use statement includes the game_menu screen inside this one. The
    ## vbox child is then included inside the viewport inside the game_menu
    ## screen.
    use game_menu(_("About"), scroll="viewport"):

        style_prefix "about"

        vbox:
        


1. under 'vbox:', add 'xpos 200' (or what ever number give you a good result)

2. remove 'About' from 'use game_menu(_("About"), scroll="viewport"):'

User avatar
Westeford
Regular
Posts: 151
Joined: Mon Jun 19, 2017 4:43 pm
Completed: 12 Hours to Die
Projects: Project Premonition
itch: westeford
Location: United States
Contact:

Re: Editing About Screen

#3 Post by Westeford » Sat Aug 11, 2018 6:22 pm

Per K Grok wrote:
Sat Aug 11, 2018 5:16 pm
1. under 'vbox:', add 'xpos 200' (or what ever number give you a good result)
2. remove 'About' from 'use game_menu(_("About"), scroll="viewport"):'
Thank you for your reply. My second problem is resolved. The solution to my first problem can work, but is there a way to put it in the absolute center? (I'm kinda picky about that kind of thing.) Nevertheless, thank you for your help.

User avatar
MaydohMaydoh
Regular
Posts: 165
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: Editing About Screen

#4 Post by MaydohMaydoh » Sat Aug 11, 2018 9:13 pm

Using at truecenter instead of xpos 200 will place it in the middle of the screen.
You could also use align (0.5, 0.5) so you can adjust the positioning slightly if needed.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]