mugenjohncel wrote:The lack of an open complete GUI example featuring Imagebuttons is probably one of the biggest wall in Ren'py that prevents layman people like me from adopting this superior method... While Imagemap is easier to use... everyone knows that the future of Ren'py belongs to Imagebuttons...
Not anymore, Uncle Mugen! Here is a complete GUI example so everyone can learn to imagebutton!
All the GUI resources were ripped and stolen from Uncle Mugen's Imagemap Framework.
Okay, actually I asked for permission, but I like to sound badass...
Features:
Fully functioning GUI using screen based imagebuttons.
Heavily commented code explaining all the mysterious behaviors for imagebutton in layman terms.
A mini script written by Uncle Mugen.
You will love it...
Background graphics (updated), sprites (updated) and GUI graphical assets by Uncle Mugen.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
I've always loved imagebuttons. I can easily make anything in my games fancy with their simple usage (because imagemaps make no sense to me), and now that you can use the beauty of the imagebutton for GUI? My life is now complete as a simple amateur Ren'Py user programmer person! Thank you so much, I could almost cry! *glomps*
leon wrote:Sounds like the file wasn't fully downloaded. Try downloading it again.
That's exactly what's happening.
-- Apparently, my DSL isn't fast enough to hold the connection from this site. It keeps breaking off. I've tried downloading all day. No dice.
Can you upload this file to MediaFire?
Ookami Kasumi ~ Purveyor of fine Smut. Most recent Games Completed:
I've always used imagemaps before because I thought imagebuttons were a pain to export one by one, but seeing all the cool things you can do with them, I really want to give them a try (I shall make all my buttons float around the screen forever!!!1)
Thanks so very much for the code. I'll have a fun time playing Frankenstein with it.
$ leon_awesome_points += infinity
$ uncle_mugen_awesome_points += infinity
*bows*
GlassHeart wrote:I've always used imagemaps before because I thought imagebuttons were a pain to export one by one
They certainly are. It used to take me a couple hours to do it (not a big deal for me, since it very slow at making the GUI anyhow). But... if you have Photoshop, you can automate the whole process - http://lemmasoft.renai.us/forums/viewto ... 46&t=22583
First off, awesome work! You really sold me on the superiority of imagebuttons over imagemaps.
One question though: What's the easiest way to use your code in 800x600 resolution? From the looks of it, I'd have to change every position value in screens.rpy... I think.
VHC_Softwares wrote:What's the easiest way to use your code in 800x600 resolution? From the looks of it, I'd have to change every position value in screens.rpy... I think.
Yes, changing position values is pretty much unavoidable. The easiest way is probably to divide every x coordinate with 1.28.