[SOLVED] How do I apply an outline to the game title?

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
IchihashiMaiden
Newbie
Posts: 15
Joined: Fri Dec 08, 2017 2:00 am
Projects: Be A Good Boy (Otome) ; Iliad (VN)
itch: IchihashiMaiden
Contact:

[SOLVED] How do I apply an outline to the game title?

#1 Post by IchihashiMaiden »

I'm working on a linear visual novel based on the Iliad, and in theory, my menu design was absolutely awesome...
But then I realized that gold and tan blend in with each other.

Image

I would like to apply an outline to the title (only the title), to make it stand out a little more from the background, but I'm not sure how exactly to do it.
Last edited by IchihashiMaiden on Sat Dec 09, 2017 5:46 pm, edited 1 time in total.
I have no idea what I'm doing.
(Character in icon belongs to nomnomnami on itch.io)

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: How do I apply an outline to the game title?

#2 Post by Remix »

The easy way... add the following to gui.rpy:

Code: Select all

define gui.main_menu_text_outlines = [ (2, "#333", 0, 0) ]
the alternate way... find screen main_menu in screens.rpy (better if only want title outlined):

Code: Select all

screen main_menu():

    ## This ensures that any other menu screen is replaced.
    tag menu

    style_prefix "main_menu"

    add gui.main_menu_background

    ## This empty frame darkens the main menu.
    frame:
        pass

    ## The use statement includes another screen inside this one. The actual
    ## contents of the main menu are in the navigation screen.
    use navigation

    if gui.show_name:

        vbox:
            text "[config.name!t]":
                style "main_menu_title"
                outlines [ (2, "#333", 0, 0) ]

            text "[config.version]":
                style "main_menu_version"
                outlines [ (2, "#333", 0, 0) ]
Frameworks & Scriptlets:

User avatar
IchihashiMaiden
Newbie
Posts: 15
Joined: Fri Dec 08, 2017 2:00 am
Projects: Be A Good Boy (Otome) ; Iliad (VN)
itch: IchihashiMaiden
Contact:

Re: How do I apply an outline to the game title?

#3 Post by IchihashiMaiden »

You're a life saver, thank you!
I have no idea what I'm doing.
(Character in icon belongs to nomnomnami on itch.io)

Post Reply

Who is online

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