How to Change Text Color WITHOUT the {Color} Tag

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
Lucy1212
Regular
Posts: 39
Joined: Sat Sep 13, 2014 7:15 pm
Completed: None, yet
Projects: The Roses are Covered in Blood, Her Dolls, Where the Wind Travels
Contact:

How to Change Text Color WITHOUT the {Color} Tag

#1 Post by Lucy1212 »

Like, how do I change the color of all the text? This is probably a stupid question, but I can't seem to find the answer...?
I'm a wordsmith baby~

User avatar
yuucie
Regular
Posts: 164
Joined: Sun Jun 22, 2014 4:04 am
Completed: NaNoReNo[2015] Those Without Names
Tumblr: an-na-ko
Location: Toronto, Canada
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#2 Post by yuucie »

Try adding what_color to your code, like so:

Code: Select all

define P = DynamicCharacter("Protag", what_color="912f2f", show_two_window=True)
EDIT: Misread. For the entire game text, try adding this to your options.rpy under the default font section:

Code: Select all

style.default.color = "#1800ff"
Just edit the color code to your own and you should be good to go!

User avatar
Lucy1212
Regular
Posts: 39
Joined: Sat Sep 13, 2014 7:15 pm
Completed: None, yet
Projects: The Roses are Covered in Blood, Her Dolls, Where the Wind Travels
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#3 Post by Lucy1212 »

That works for all the text except dialogue, which was what I really wanted to change. I also tried doing,

Code: Select all

style.say_dialogue.color = "#1800ff"
, which didn't work either.
I'm a wordsmith baby~

User avatar
yuucie
Regular
Posts: 164
Joined: Sun Jun 22, 2014 4:04 am
Completed: NaNoReNo[2015] Those Without Names
Tumblr: an-na-ko
Location: Toronto, Canada
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#4 Post by yuucie »

That's odd. It works fine in my test renpy game. Have you tried checking if it's been defined in the say screen (screen.rpy)? The code mentioned in this thread here.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1962
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#5 Post by Donmai »

You can even define a different text color for each character, if you feel like it:

Code: Select all

define d = Character('Dave', color='#FF9933', what_color='#FF9933')
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Tobata
Newbie
Posts: 4
Joined: Tue Aug 19, 2014 5:25 am
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#6 Post by Tobata »

yuucie wrote: For the entire game text, try adding this to your options.rpy under the default font section:

Code: Select all

style.default.color = "#1800ff"
Just edit the color code to your own and you should be good to go!
Worked for me. It changed all my text (also dialogue) to blue.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How to Change Text Color WITHOUT the {Color} Tag

#7 Post by PyTom »

If you hover over the text and hit shift+I (as in India), Ren'Py will show the style inspector. Click on the text in question, and it'll show a list of styles, letting you figure out where the text color is being set.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]