"clicked" no longer working...

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
Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

"clicked" no longer working...

#1 Post by Glazed Donuts » Thu Feb 17, 2011 9:12 pm

Eversince I updated to the new version of RenPy, this line no longer works:

Code: Select all

$ ui.autobar(100, old_score, score, 30.0, left_bar=Frame("sozai/ui/barBG.png", 5, 5), right_bar=Frame("sozai/ui/barFG.png", 5, 5) , thumb="sozai/ui/barICO.png", xmaximum=100, clicked=ui.returns(False) )
I get an error that says:
Exception: Style property clicked is unknown.
Is there a new syntax to use that's equivalent to 'clicked?'

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: "clicked" no longer working...

#2 Post by PyTom » Thu Feb 17, 2011 11:30 pm

What was the old version that you were using? That really shouldn't have ever worked - bars don't have a clicked property, just a changed one.
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

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: "clicked" no longer working...

#3 Post by Glazed Donuts » Thu Feb 17, 2011 11:40 pm

I was using the one before 6.12.0e (I forgot the version number)
I'm not sure if it was 'functioning,' but I never got any errors about it when I had that line of code in there until I upgraded to 6.12.0e

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: "clicked" no longer working...

#4 Post by Aleema » Thu Feb 17, 2011 11:58 pm

Yeah, I found when upgrading, all the little wrong things you did get pointed out and crash, stuff like repeating the same property twice in the same element will now crash your code and such. clicked should have never worked for an autobar, so just take it out.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Hojoo