How do I set "two_window" character display as the default?

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
rocket
Veteran
Posts: 373
Joined: Tue Jul 10, 2007 2:54 am
Projects: Starlight Ep0, Ep1
Location: San Fransisco
Contact:

How do I set "two_window" character display as the default?

#1 Post by rocket » Sat Aug 04, 2007 7:54 pm

I assume I don't have to manually insert it in each Character() definition, but it doesn't seem to be a config variable.

Any ideas? Thankies!

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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 do I set "two_window" character display as the default?

#2 Post by PyTom » Sat Aug 04, 2007 9:20 pm

It isn't a config variable, it needs to be written in each Character definition.

You may be able to use Character.copy() to help out:

Code: Select all

init:
     $ char = Character("Character", show_two_window=True)
     $ e = char.copy("Eileen", color="#0f0")
     $ l = char.copy("Lucy", color="#f00")
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
rocket
Veteran
Posts: 373
Joined: Tue Jul 10, 2007 2:54 am
Projects: Starlight Ep0, Ep1
Location: San Fransisco
Contact:

Re: How do I set "two_window" character display as the default?

#3 Post by rocket » Sun Aug 05, 2007 4:42 pm

Ah, thankee!

User avatar
Wintermoon
Miko-Class Veteran
Posts: 701
Joined: Sat May 26, 2007 3:41 pm
Contact:

Re: How do I set "two_window" character display as the default?

#4 Post by Wintermoon » Sun Aug 05, 2007 8:41 pm

Shorter and more elegant IMO:

Code: Select all

init:
     $ char = Character("Character", show_two_window=True).copy
     $ e = char("Eileen", color="#0f0")
     $ l = char("Lucy", color="#f00")
I love Python.

User avatar
rocket
Veteran
Posts: 373
Joined: Tue Jul 10, 2007 2:54 am
Projects: Starlight Ep0, Ep1
Location: San Fransisco
Contact:

Re: How do I set "two_window" character display as the default?

#5 Post by rocket » Sun Aug 05, 2007 10:08 pm

Wintermoon wrote:Shorter and more elegant IMO:

Code: Select all

init:
     $ char = Character("Character", show_two_window=True).copy
     $ e = char("Eileen", color="#0f0")
     $ l = char("Lucy", color="#f00")
I love Python.
O.o

Whaaaaaaa?! That works?! Spiffy. I think I may start to like the snake as well...

User avatar
Criptych
Regular
Posts: 87
Joined: Sat Jun 23, 2007 9:19 am
Projects: ALICE.NET
Location: The other end of the internet.
Contact:

Re: How do I set "two_window" character display as the default?

#6 Post by Criptych » Mon Aug 06, 2007 9:29 pm

Yeah, I'd guess Python's probably where M$ got the idea for "everything's an object" in .NET, eh? But it's certainly nifty. :)
Computers are useless. They can only give you answers. —Pablo Picasso

Image

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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 do I set "two_window" character display as the default?

#7 Post by PyTom » Mon Aug 06, 2007 9:41 pm

Actually, I think "everything's an object" goes back to at least smalltalk, and perhaps before that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: How do I set "two_window" character display as the default?

#8 Post by Jake » Tue Aug 07, 2007 5:47 am

PyTom wrote:Actually, I think "everything's an object" goes back to at least smalltalk, and perhaps before that.
And really, not everything in .NET's an object anyway, it's just that everything can be treated as an object if you need to. We still have non-nullable value types. ;-)
Server error: user 'Jake' not found

Post Reply

Who is online

Users browsing this forum: _ticlock_