Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue May 21, 2013 6:44 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Apr 16, 2012 9:59 pm 
Miko-Class Veteran
User avatar

Joined: Thu May 14, 2009 8:15 pm
Posts: 585
Projects: Castle of Arhannia
Quote:
default
If given and true, the displayable is focused by default. Only one displayable should have this


How do I use this?

I tried
Code:
button:
    default True


and it thought I was setting the default for a variable


Top
 Profile Send private message  
 
PostPosted: Thu Apr 19, 2012 12:49 am 
Regular

Joined: Tue Apr 03, 2012 9:17 am
Posts: 88
Location: Seoul, South Korea
Projects: Dandelion
Organization: Cheritz
You're using screen language so the default statement in that case expects a variable not a boolean.
http://www.renpy.org/doc/html/screens.html#default

I'm not 100% sure so someone correct me if I'm wrong but I think the default statement you're looking at refers to a property that can be used in ui functions like ui.menu
http://www.renpy.org/wiki/renpy/doc/ref ... ns/ui.menu


Top
 Profile Send private message  
 
PostPosted: Thu Apr 19, 2012 1:05 am 
Miko-Class Veteran
User avatar

Joined: Thu May 14, 2009 8:15 pm
Posts: 585
Projects: Castle of Arhannia
that would make sense, except that there's also a default property listed under the common properties that should be valid for all the interface statements in screen language. That's where the quote in my first post comes from.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 19, 2012 1:51 am 
Regular

Joined: Tue Apr 03, 2012 9:17 am
Posts: 88
Location: Seoul, South Korea
Projects: Dandelion
Organization: Cheritz
You're right, don't add a colon

Code:
button default True


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group