A different name window(solved)

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
tatsumiya
Newbie
Posts: 4
Joined: Thu Feb 07, 2013 1:00 am
Contact:

A different name window(solved)

#1 Post by tatsumiya » Thu Apr 11, 2013 2:23 am

I was wondering if it was possible to change the window for the character names?
So that it looks different from the main text window, and if I can change the color depending on the character speaking.
Like in Starry Sky, I guess?
I just don't like the look when the name window is the same as the text window.
....uhmm.. I hope I posted this in the right forum
Last edited by tatsumiya on Sat Apr 20, 2013 8:53 am, edited 1 time in total.

User avatar
Taleweaver
Writing Maniac
Posts: 3428
Joined: Tue Nov 11, 2003 8:51 am
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
Organization: Tall Tales Productions
Location: Germany
Contact:

Re: A different name window

#2 Post by Taleweaver » Thu Apr 11, 2013 2:26 am

Ren'Py-related question, thus moved to the Ren'Py-related forum.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira

ariana.ravensford
Regular
Posts: 52
Joined: Mon Apr 01, 2013 10:14 am
Projects: Morpheandir Tales
Location: Midwest United States
Contact:

Re: A different name window

#3 Post by ariana.ravensford » Thu Apr 11, 2013 2:37 am

I don't know about changing the color for each character speaking, but in order to just change the color or image of the name box, you have to go to options.rpy and the command that you have to input is style.say_who_window.background = Frame(imagename, 0, 0)

The 'imagename' should be replaced with the name of the image that you want to use for the name box, and the two 0's are to designate the size of the borders.

From there, it works like how it would work if you were to change the text window background (adjusting the margins and the padding), but instead of using the command with style.window, it's style.say_who_window.

At least, that's how it worked for me.
Current Project~
The Morpheandir Tales: Tome of the Lost
http://lemmasoft.renai.us/forums/viewto ... 16&t=20262
Please come take a look and provide feedback, especially on the questions I pose, since this is the first game I'm making!

RangerDanger
Regular
Posts: 45
Joined: Wed Jun 27, 2012 11:36 pm
Contact:

Re: A different name window

#4 Post by RangerDanger » Thu Apr 11, 2013 9:28 am

I believe that you can pass various "say" styles (styles relating to the dialogue, including the say_window) to the Character() function using various keyword arguments.

This page from the documentation will probably be very helpful to you. Scroll down to just above the "Example" section for the relevant info.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: A different name window

#5 Post by OokamiKasumi » Fri Apr 12, 2013 9:31 pm

tatsumiya wrote:I was wondering if it was possible to change the window for the character names?
So that it looks different from the main text window, and if I can change the color depending on the character speaking.
Yes, you can but you'll need to make each character's individual name box first.
-- How you code this is Here: http://lemmasoft.renai.us/forums/viewto ... 8&#p258298
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
tatsumiya
Newbie
Posts: 4
Joined: Thu Feb 07, 2013 1:00 am
Contact:

Re: A different name window

#6 Post by tatsumiya » Tue Apr 16, 2013 12:48 pm

Taleweaver wrote:Ren'Py-related question, thus moved to the Ren'Py-related forum.
ah, thank you for correcting me :oops:
ariana.ravensford wrote:I don't know about changing the color for each character speaking, but in order to just change the color or image of the name box, you have to go to options.rpy and the command that you have to input is style.say_who_window.background = Frame(imagename, 0, 0)

The 'imagename' should be replaced with the name of the image that you want to use for the name box, and the two 0's are to designate the size of the borders.

From there, it works like how it would work if you were to change the text window background (adjusting the margins and the padding), but instead of using the command with style.window, it's style.say_who_window.

At least, that's how it worked for me.
RangerDanger wrote:I believe that you can pass various "say" styles (styles relating to the dialogue, including the say_window) to the Character() function using various keyword arguments.

This page from the documentation will probably be very helpful to you. Scroll down to just above the "Example" section for the relevant info.
OokamiKasumi wrote:
tatsumiya wrote:I was wondering if it was possible to change the window for the character names?
So that it looks different from the main text window, and if I can change the color depending on the character speaking.
Yes, you can but you'll need to make each character's individual name box first.
-- How you code this is Here: http://lemmasoft.renai.us/forums/viewto ... 8&#p258298
Aaaaahh Thank you very much!!
I can now proceed to making my game a little bit prettier u///u;;

Post Reply

Who is online

Users browsing this forum: No registered users