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 Thu May 23, 2013 10:31 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  [ 3 posts ] 
Author Message
PostPosted: Sun Jan 29, 2012 4:49 am 
Newbie

Joined: Sun Sep 28, 2008 10:38 pm
Posts: 9
I have managed to create a CG gallery using the recipe of Renpy. And I also associate small images onto the cg buttons using make_button but here comes a problem. Once a cg is unlocked, the button image still stay the same. So my question is how can you change said image when unlocked? Thanks a lot.

P/s: Below is how my gallery work:

Image

So I want when one of the images is unlocked, the lock (which is my button image) will be replaced by something else.


Top
 Profile Send private message  
 
PostPosted: Tue Jan 31, 2012 12:49 pm 
Lemma-Class Veteran

Joined: Tue Aug 01, 2006 12:39 pm
Posts: 4051
I include a sample line from the gallery:
Code:
    add g.make_button("cakepan1", "gui/circlehcg1.png", "gui/circlehcg1lock.png", "gui/circlehcg1hover.png", xanchor = 0, yanchor = 0, xalign = 0, yalign = 0, xpos = 239, ypos = 160, xmargin = 0, ymargin = 0, background = None)

cakepan1 was the name of a g.button,
circlehcg1 is an unlocked button in the CG galler,
circlehcg1lock is the locked button,
circlehcg1hover is the name of an unlocked hovered button


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 8:03 am 
Newbie

Joined: Sun Sep 28, 2008 10:38 pm
Posts: 9
DaFool wrote:
I include a sample line from the gallery:
Code:
    add g.make_button("cakepan1", "gui/circlehcg1.png", "gui/circlehcg1lock.png", "gui/circlehcg1hover.png", xanchor = 0, yanchor = 0, xalign = 0, yalign = 0, xpos = 239, ypos = 160, xmargin = 0, ymargin = 0, background = None)

cakepan1 was the name of a g.button,
circlehcg1 is an unlocked button in the CG galler,
circlehcg1lock is the locked button,
circlehcg1hover is the name of an unlocked hovered button


Yes, finally got it to work. Thanks a lot.


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


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