Lemma Soft Forums

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


Visit our new games list, blog aggregator, and IRC channel.
Activation problem? Email pytom@bishoujo.us.
It is currently Sun Feb 26, 2017 10:17 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.



Post new topic Reply to topic  [ 81 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Tue Jul 30, 2013 6:42 pm 
Miko-Class Veteran
User avatar

Joined: Sun Oct 09, 2011 11:15 pm
Posts: 554
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
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!

Attachment:
screenshot0044.png
screenshot0044.png [ 578.58 KiB | Viewed 25339 times ]


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...


Attachment:
screenshot0038.png
screenshot0038.png [ 1020.8 KiB | Viewed 25339 times ]


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... :D
  • Background graphics (updated), sprites (updated) and GUI graphical assets by Uncle Mugen.
  • All the code is in the public domain.
  • And all the goodies from the FREE RENPY SCREEN BASED IMAGEMAP FRAMEWORK are still here:
mugenjohncel wrote:
  • Screen Based Image Map Button Main Menu with provision for unlockable content (like Extras)
  • Seperate Joined Screen Based Image Map Button Save and Load Screen
  • Full Featured Screen Based Image Map Button Config Screen
  • Screen Based Image MapButton prompt screens
  • Characters with Side Show Properties
  • Lucy and the lovable Handsome Uncle Mugen (me)
  • Extras screen that contains... nothing
  • Hover Tooltip on hotspots providing description of what button does what
  • Separate sound channels for each GUI hotspot hover sound circumventing an image map bug
  • Commented code


Attachment:
screenshot0045.png
screenshot0045.png [ 589.86 KiB | Viewed 25339 times ]

Imagebutton facts:
  • They are awesome
  • They are great dancers (may depend on your skills with ATL)
  • They are easy to code (the code is very similar, just a bit simpler, than with imagebuttons)
  • They take less disk space
  • But they require a bit of extra time when exporting them from .psd to .png No they don't.

Attachment:
screenshot0047.png
screenshot0047.png [ 520.4 KiB | Viewed 25340 times ]


To use it, just put the contents of the zip file into your Ren'Py games directory.


Attachments:
Renpy Imagebuttons GUI sample.zip [7.48 MiB]
Downloaded 5959 times

_________________
Image Image Image
Honest Critique


Last edited by leon on Wed Jul 31, 2013 7:46 pm, edited 1 time in total.
Top
 Profile Send private message  
 
PostPosted: Tue Jul 30, 2013 9:28 pm 
Eileen-Class Veteran
User avatar

Joined: Sun Jun 10, 2012 1:45 am
Posts: 1441
Location: Brazil
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016]
Projects: Slumberland
Thank you cousin leon! Thank you uncle Mugen!

_________________
Image

No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)


Top
 Profile Send private message  
 
PostPosted: Tue Jul 30, 2013 9:35 pm 
Miko-Class Veteran
User avatar

Joined: Mon May 07, 2012 4:39 pm
Posts: 558
Projects: Twin Crowns, Weather Wizard
Yes! No more trial and error for me, I will understand it all!

_________________
Works in Progress: Twin Crowns | Weather Wizard


Top
 Profile Send private message  
 
PostPosted: Tue Jul 30, 2013 10:09 pm 
Megane Procrastinator
User avatar

Joined: Fri Mar 28, 2008 4:54 am
Posts: 4042
Location: Yogyakarta, Indonesia.
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: Re:Set, Morpheandir Tales, The Alliance, Althernis Precasted
Organization: Memento-Mori VNs, Team Sleepyhead
OMG I LOSE. I have to admit. Imagebuttons are mad skillz! Thank you for this!

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Wed Jul 31, 2013 12:16 am 
Miko-Class Veteran
User avatar

Joined: Thu Oct 27, 2011 6:51 pm
Posts: 744
Completed: 30 Kilowatt Hours Left
Projects: The Only One Girl, False Hope
Organization: Tofu Sheets Visual
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*

Now time to play with this, ahahaha...AHAHAHAHA!

_________________
My Ren'Py novels:
The Only One Girl [WiP][Up.2/07/2017]
30 Kilowatt Hours Left [COMPLETE][GameJolt GDC Jam2016]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"


Top
 Profile Send private message  
 
PostPosted: Wed Jul 31, 2013 9:06 am 
Regular
User avatar

Joined: Tue Jul 16, 2013 10:47 am
Posts: 36
Incredible! This is just what I needed! Thank you for sharing this, Leon, and please keep up with your great work, it's of great value to us all. :)


Top
 Profile Send private message  
 
PostPosted: Sun Aug 04, 2013 1:33 am 
Eileen-Class Veteran
User avatar

Joined: Thu Oct 14, 2010 3:53 am
Posts: 1763
Location: NC, USA
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Twitter: @ookamikasumi
Deviantart: OokamiKasumi
leon wrote:
...To use it, just put the contents of the zip file into your Ren'Py games directory.

For some reason I am getting an error when I try to unzip this.
Quote:
! L:\Library\!Kenetic Novels\RenPy\Renpy Imagebuttons GUI sample.zip: Unexpected end of archive

_________________
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed:
For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar


Top
 Profile Send private message  
 
PostPosted: Sun Aug 04, 2013 7:22 am 
Miko-Class Veteran
User avatar

Joined: Sun Oct 09, 2011 11:15 pm
Posts: 554
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
Sounds like the file wasn't fully downloaded. Try downloading it again.

_________________
Image Image Image
Honest Critique


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 12:27 am 
Eileen-Class Veteran
User avatar

Joined: Thu Oct 14, 2010 3:53 am
Posts: 1763
Location: NC, USA
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Twitter: @ookamikasumi
Deviantart: OokamiKasumi
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:
For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 12:53 am 
Miko-Class Veteran
User avatar

Joined: Tue Jun 22, 2010 12:54 am
Posts: 690
Location: Zion Island, Solario
Completed: Christmas
IRC Nick: DragoonHP
OokamiKasum: You can upload the file directly to your mediafire account.

--> Click the blue icon labelled "Upload"
--> Select "From the Web"
--> Enter URL ( download/file.php?id=21773 ) and name: ( Renpy Imagebuttons GUI sample.zip )

If you get stuck, here is the link to the file: http://www.mediafire.com/download/ct1uc ... sample.zip


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 6:09 am 
Eileen-Class Veteran
User avatar

Joined: Thu Oct 14, 2010 3:53 am
Posts: 1763
Location: NC, USA
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Twitter: @ookamikasumi
Deviantart: OokamiKasumi
DragoonHP wrote:
OokamiKasum: You can upload the file directly to your mediafire account.

Whoa... I had no idea...! Thank you, this will help with all the other files I can't seem to download from here.

_________________
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed:
For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 1:01 pm 
Regular
User avatar

Joined: Fri Mar 11, 2011 12:13 pm
Posts: 103
Location: Romania
Completed: Out of Sight, Summer Found Me, Signed X, Trapped
Projects: Poison Sweet, CryptoHaven
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. :D
$ leon_awesome_points += infinity
$ uncle_mugen_awesome_points += infinity
*bows*

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 2:04 pm 
Miko-Class Veteran
User avatar

Joined: Sun Oct 09, 2011 11:15 pm
Posts: 554
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
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 - viewtopic.php?f=46&t=22583

_________________
Image Image Image
Honest Critique


Top
 Profile Send private message  
 
PostPosted: Mon Aug 05, 2013 9:00 pm 
Newbie
User avatar

Joined: Sat Feb 16, 2013 12:22 am
Posts: 22
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.


Top
 Profile Send private message  
 
PostPosted: Tue Aug 06, 2013 1:36 am 
Miko-Class Veteran
User avatar

Joined: Sun Oct 09, 2011 11:15 pm
Posts: 554
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
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.

_________________
Image Image Image
Honest Critique


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

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