Positioning the Title in the game 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
VideoGameVet
Newbie
Posts: 23
Joined: Fri Jun 07, 2019 1:03 pm
Skype: william_volk
Contact:

Positioning the Title in the game menu?

#1 Post by VideoGameVet » Wed Jun 12, 2019 9:01 pm

Currently, my game title, at the start of the program, appears at the lower right in the game menu. Is there a config item to position it in a different location?
"A delayed game is eventually good, but a rushed game is forever bad."
- Shigeru Miyamoto

User avatar
Per K Grok
Miko-Class Veteran
Posts: 741
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 & 2
itch: per-k-grok
Location: Sverige
Contact:

Re: Positioning the Title in the game menu?

#2 Post by Per K Grok » Thu Jun 13, 2019 12:29 am

VideoGameVet wrote:
Wed Jun 12, 2019 9:01 pm
Currently, my game title, at the start of the program, appears at the lower right in the game menu. Is there a config item to position it in a different location?
In screens.rpy under 'screen main_menu():' look for

Code: Select all

style main_menu_vbox:
    xalign 1.0
    xoffset -10
    xmaximum 400
    yalign 1.0
    yoffset -10

User avatar
VideoGameVet
Newbie
Posts: 23
Joined: Fri Jun 07, 2019 1:03 pm
Skype: william_volk
Contact:

Re: Positioning the Title in the game menu?

#3 Post by VideoGameVet » Thu Jun 13, 2019 11:33 am

Per K Grok wrote:
Thu Jun 13, 2019 12:29 am
VideoGameVet wrote:
Wed Jun 12, 2019 9:01 pm
Currently, my game title, at the start of the program, appears at the lower right in the game menu. Is there a config item to position it in a different location?
In screens.rpy under 'screen main_menu():' look for

Code: Select all

style main_menu_vbox:
    xalign 1.0
    xoffset -10
    xmaximum 400
    yalign 1.0
    yoffset -10
Thank you!
"A delayed game is eventually good, but a rushed game is forever bad."
- Shigeru Miyamoto

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

Re: Positioning the Title in the game menu?

#4 Post by Imperf3kt » Thu Jun 13, 2019 1:24 pm

I would have thought the important bit would be under the main_menu screen:

Code: Select all

    if gui.show_name:
        vbox:
            xalign 0.97
            yalign 0.04
Adjust the numbers to move the position. The numbers given approximate to the top right.

The part Per K Grok suggested is to align the text within the vbox, but it doesn't align the vbox iself.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

Post Reply

Who is online

Users browsing this forum: Bing [Bot]