Changing Color of Main Menu 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
SaltedBeef
Newbie
Posts: 2
Joined: Sat Apr 13, 2019 5:20 pm
Contact:

Changing Color of Main Menu Title

#1 Post by SaltedBeef »

I recently replaced the "main_menu.png" file in my gui/ folder, and now I have a slight problem - the title (which was originally blue) isn't very visible.
MainMenuText.PNG
This was one of the menu colors I picked when I started making the game, but I'm not sure how to change it.
Where is this setting stored in Ren'Py, and how would I change the color for that piece of text?
Also, is there any way to change it without affecting anything else in the GUI?

Thanks in advance!

User avatar
plaster
Regular
Posts: 89
Joined: Thu Jul 11, 2013 1:03 am
Tumblr: plasterbrain
Soundcloud: plasterbrain
Location: Chicago
Contact:

Re: Changing Color of Main Menu Title

#2 Post by plaster »

Assuming your project file structure is the default one, you should be able to find

Code: Select all

style main_menu_title:
    properties gui.text_properties("title")
in your screens.rpy. You can add a custom color there:

Code: Select all

style main_menu_title:
    properties gui.text_properties("title")
    color "#fff"
    outlines [(1, "#000", 0, 0)]
(some outlines would help with visibility too)

here is a hex color picker if you need one

SaltedBeef
Newbie
Posts: 2
Joined: Sat Apr 13, 2019 5:20 pm
Contact:

Re: Changing Color of Main Menu Title

#3 Post by SaltedBeef »

Tried using this last night - it works!

Thank you for your help!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]