Imagebutton GUI Framework [GxImagebuttons]

A place for Ren'Py tutorials and reusable Ren'Py code.
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.
Message
Author
User avatar
GlassHeart
Regular
Posts: 105
Joined: Fri Mar 11, 2011 12:13 pm
Completed: Out of Sight, Summer Found Me, Signed X, Trapped
Projects: Poison Sweet, CryptoHaven
Location: Romania
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#16 Post by GlassHeart » Tue Aug 06, 2013 8:18 am

@leon
I didn't think of using actions for cropping before and the whole export layers to files is new to me. I've been using photoshop for years, shame on me. This will save so much time with saving sprites, I can't even... *mind blown*
Thank you very much for sharing! :D
Image Image

User avatar
RavenBelmont
Regular
Posts: 36
Joined: Tue Jul 16, 2013 10:47 am
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#17 Post by RavenBelmont » Tue Aug 06, 2013 9:37 am

Could any kind soul release a 800x600 version of this, please ? I hope I'm not asking for too much. :P

User avatar
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
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
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#18 Post by leon » Tue Aug 06, 2013 5:26 pm

GlassHeart wrote:@leon
I didn't think of using actions for cropping before and the whole export layers to files is new to me. I've been using photoshop for years, shame on me. This will save so much time with saving sprites, I can't even... *mind blown*
Same here. I was just about to find a method for exporting layers online or make one myself, when I realized it already comes with Photoshop. :D

@RavenBelmont: The problem is that all the image resources were made for the screen resolution that is used here (1024x576). So without a new set of resources made for 800x600 it would take more than just changing the coordinates in the code.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1433
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#19 Post by xavimat » Thu Aug 08, 2013 9:16 am

Thanks a lot, leon. I'm playing right now with it.
Definitively, I'll use that.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
kuri_chii
Regular
Posts: 69
Joined: Sat Apr 27, 2013 10:34 am
Completed: RHWIMY beta 1.0
Projects: Right here where I met you, Love Snatch, Monarchy High
Organization: VND - AWA
IRC Nick: Kuri
Deviantart: franzzzz002
Skype: franz.mole
Location: Somewhere in Asia
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#20 Post by kuri_chii » Wed Aug 14, 2013 2:19 pm

arigatou *bows*
The best way showing your feelings is to write Novel Stories :3
Image
DeviantArt | Monarchy High | RHWIMY | Love Snatch

anticulturist
Newbie
Posts: 20
Joined: Thu Aug 15, 2013 9:16 am
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#21 Post by anticulturist » Sat Aug 24, 2013 8:35 pm

Thank you very much!

User avatar
brystfire
Newbie
Posts: 14
Joined: Thu Sep 12, 2013 3:59 am
Projects: Let's Learn Geometry
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#22 Post by brystfire » Wed Sep 25, 2013 10:54 pm

Sugoi! those buttons are awesome!

I want to learn to make those buttons.
BTW can i modify this design ?
just asking if it is okay i want to use some of those buttons :)

User avatar
hoshiworld
Newbie
Posts: 12
Joined: Wed May 01, 2013 10:17 am
Completed: Love evolution (beta)
Projects: Regular-Love Evo Story, I am Your Girl
Location: Indonesia
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#23 Post by hoshiworld » Wed Oct 09, 2013 12:34 am

Thank you so much! I love the GUI, this is awesome... anyway thank you so much! :D
Canceled all project because my Ren'py is formatted TT.TT

User avatar
Skaiya
Regular
Posts: 95
Joined: Tue Sep 25, 2012 5:42 pm
Projects: My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB
Tumblr: skaiya-art
Deviantart: skaiyaart
Location: The Netherlands
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#24 Post by Skaiya » Thu Nov 14, 2013 11:28 am

This is such a life saver!
Thank you so much <3
My dA
My Tumblr
Currently working on:
My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB.

Clestae
Regular
Posts: 44
Joined: Sat Nov 23, 2013 2:53 pm
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#25 Post by Clestae » Tue Nov 26, 2013 12:29 am

Newbie question *waves hand*

When I play this, the code stuff comes down for a split second, then disappears...is this supposed to happen? :oops: Because I think it's referring to it but I can't see it >.>

Sorry!
Image

User avatar
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
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
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#26 Post by leon » Tue Nov 26, 2013 6:47 am

The code should stay on the screen like in the tutorial that comes with Ren'Py (it's where its taken from). If you can't get it to work, just check screens.rpy - all the code is in there.

User avatar
SadisticWonderland
Regular
Posts: 38
Joined: Tue Dec 18, 2012 1:22 am
Projects: 7 Days~ A Week of Twisted Sanity!
Location: Sadistic Wonderland~
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#27 Post by SadisticWonderland » Thu Dec 12, 2013 10:31 pm

I finally manage to download this...Thank you!
Sanity is always deformed...


User avatar
AoiUsui
Regular
Posts: 38
Joined: Mon Nov 26, 2012 11:21 am
Completed: Alice's Dolls
Projects: Alice's Dolls
Organization: Otaku Brigade
Location: Philippines
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#28 Post by AoiUsui » Tue Feb 25, 2014 4:57 pm

Hi! Nice samples you've go there! Thank you very much. Now I think I can enhance more my ideas.

Anyways, I want to ask if I can incorporate this imagebuttons in-game? For example, I have a map and there is a clickable landmark.

Thank you for your answer. :)

User avatar
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
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
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#29 Post by leon » Tue Feb 25, 2014 5:41 pm

Just make a screen for the map. Something like this:

Code: Select all

screen map:
    add "map_bg.jpg"
    imagebutton auto "school_%s.png" focus_mask True xpos 100 ypos 100 action Jump("school")
Then display the map in the script:

Code: Select all

call screen map

margesh
Newbie
Posts: 1
Joined: Tue Mar 04, 2014 12:09 pm
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#30 Post by margesh » Tue Mar 04, 2014 12:29 pm

Hey, this is my first post so go easy on me ^^"". I'm actually new ( VERY VERY new ) to Ren'py and I marathoned through most of the cookbook in three hours. My python understanding is, like, maybe, a little below than basic? I'm really sorry about this but I have started not long ago.

I've been learning the basics in here and I replaced the options and screens rpy of that project with yours.

Image 1 (Click me)
I'm sorry about the inconvenience, but the forum isn't allowing me to use bbcode an image with width more than 800 pixels.
I understand that the background must be scaled, that is not the problem. Is there a way to restore that menu? I mean, the text in that image is not text but actually a menu with two choices.

Code: Select all

menu:
        "Be honest and give the penny to her":
            jump honest

        "Lie to her, and keep it for yourself":
            jump lie
Is it possible to restore it to the default way? Pardon me if this is not the normal ( or default ) style of menu.

Image 2 (Click me)

Post Reply

Who is online

Users browsing this forum: No registered users