How do I set "two_window" character display as the default?
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.
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.
- 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?
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!
Any ideas? Thankies!
- 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?
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:
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- 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?
Shorter and more elegant IMO:
I love Python.
Code: Select all
init:
$ char = Character("Character", show_two_window=True).copy
$ e = char("Eileen", color="#0f0")
$ l = char("Lucy", color="#f00")
- 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?
O.oWintermoon wrote:Shorter and more elegant IMO:
I love Python.Code: Select all
init: $ char = Character("Character", show_two_window=True).copy $ e = char("Eileen", color="#0f0") $ l = char("Lucy", color="#f00")
Whaaaaaaa?! That works?! Spiffy. I think I may start to like the snake as well...
- 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?
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. 
- 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?
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: How do I set "two_window" character display as the default?
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.PyTom wrote:Actually, I think "everything's an object" goes back to at least smalltalk, and perhaps before that.
Server error: user 'Jake' not found
Who is online
Users browsing this forum: _ticlock_


