Namebox coming in different colors

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
pastelciel
Regular
Posts: 26
Joined: Sun Nov 23, 2014 8:32 pm
Projects: 【Pitch Black Serenade】
Organization: 97Circle
itch: 97circle
Contact:

Namebox coming in different colors

#1 Post by pastelciel » Sun Apr 08, 2018 10:21 am

I'd like to have namebox coming in different colors depending on the character speaking, while the text with their name stays white for everyone.

I was wondering if it was possible to have one default white namebox and change its color altering the RGB percentage? Perhaps in the code you use to define characters?

I'm only used to remove the saturation from sprites or background art so I'm not sure this would work for the gui as well...? If this would not be workable, should I upload a different namebox's png file for each character?

Thank you to anyone willing to help!
---------------------------------------------------------------------------------
【Pitch Black Serenade】 demo is out! ⇒ [itch.io]

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Namebox coming in different colors

#2 Post by Ocelot » Sun Apr 08, 2018 11:16 am

Check MatrixColor manipulator https://www.renpy.org/doc/html/displaya ... atrixcolor

You are probably want im.matrix.tint or im.matrix.colorize for this job.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Google [Bot]