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 Fri May 24, 2013 9:35 am

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  [ 5 posts ] 
Author Message
 Post subject: Image buttons
PostPosted: Sat Mar 24, 2012 2:17 am 
Newbie
User avatar

Joined: Thu Mar 22, 2012 2:22 am
Posts: 19
I just discovered that there are image buttons. But the code doesn't work?

init python hide:
buttons = dict()
buttons["Start Game"] = (
"theme/Start Game.idle.png",
"theme/Start Game.hover.png",
"theme/Start Game.selidle.png",
"theme/Start Game.selhover.png",
"theme/Start Game.insensitive.png"
)

theme.image_buttons(buttons)

I don't get it. My filenames are right but it doesn't work... :(

Ex of my filename: "Start Game.idle.png". Is the "theme/" included or what??


Top
 Profile Send private message  
 
 Post subject: Re: Image buttons
PostPosted: Sat Mar 24, 2012 3:07 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Where did you find that code?

Anyway, here are the two ways to code an imagebutton
http://www.renpy.org/wiki/renpy/doc/ref ... magebutton

For screen: http://www.renpy.org/doc/html/screens.html#imagebutton

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
 Post subject: Re: Image buttons
PostPosted: Sat Mar 24, 2012 3:53 am 
Newbie
User avatar

Joined: Thu Mar 22, 2012 2:22 am
Posts: 19
DragoonHP wrote:
Where did you find that code?

Anyway, here are the two ways to code an imagebutton
http://www.renpy.org/wiki/renpy/doc/ref ... magebutton

For screen: http://www.renpy.org/doc/html/screens.html#imagebutton


It found here. http://www.renpy.org/wiki/renpy/doc/ref ... ge_buttons
Is is possible to use your links for the main menu? That's what I'm trying to do :/


Top
 Profile Send private message  
 
 Post subject: Re: Image buttons
PostPosted: Sat Mar 24, 2012 5:02 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Yes...
You can also you imagemaps for main menu... viewtopic.php?f=8&t=14237

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
 Post subject: Re: Image buttons
PostPosted: Sat Mar 24, 2012 11:14 pm 
Newbie
User avatar

Joined: Thu Mar 22, 2012 2:22 am
Posts: 19
DragoonHP wrote:
Yes...
You can also you imagemaps for main menu... viewtopic.php?f=8&t=14237


Thank you very much. I'll try it now.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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