Imagebutton GUI Framework [GxImagebuttons]
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.
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.
Re: Imagebutton GUI Framework [GxImagebuttons]
So... i saw the game and it is good but i still don't know what to do...
i put this in my code just to see if i could make a button:
screen home_menu1:
hbox:
style_group "quick"
xpos 650
ypos 410
textbutton _("Kitchen") action ShowMenu('save')
Nothing happens... what am i doing wrong?
i put this in my code just to see if i could make a button:
screen home_menu1:
hbox:
style_group "quick"
xpos 650
ypos 410
textbutton _("Kitchen") action ShowMenu('save')
Nothing happens... what am i doing wrong?
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- 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
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Question answered by carrot on another thread. viewtopic.php?p=462459#p462459
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
-
- Newbie
- Posts: 1
- Joined: Mon Aug 14, 2017 12:57 am
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Hi,
I am unable to run this after I have downloaded, unzipped, and placed in directory. Here is the traceback, can someone help me?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/example.rpy", line 113, in script
image example = __Example()
Exception: Not a displayable: <store._m1_example__Example object at 0x041A1530>
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\main.py", line 419, in main
game.context().run(node)
File "game/example.rpy", line 113, in script
image example = __Example()
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 911, in execute
renpy.exports.image(self.imgname, img)
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\exports.py", line 347, in image
d = renpy.easy.displayable(d)
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\easy.py", line 108, in displayable
raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: <store._m1_example__Example object at 0x041A1530>
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Renpy Imagebuttons GUI Sample 1.0
I am unable to run this after I have downloaded, unzipped, and placed in directory. Here is the traceback, can someone help me?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/example.rpy", line 113, in script
image example = __Example()
Exception: Not a displayable: <store._m1_example__Example object at 0x041A1530>
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\main.py", line 419, in main
game.context().run(node)
File "game/example.rpy", line 113, in script
image example = __Example()
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 911, in execute
renpy.exports.image(self.imgname, img)
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\exports.py", line 347, in image
d = renpy.easy.displayable(d)
File "C:\Users\Scott\Desktop\Game Creation\renpy\renpy-6.99.12.4-sdk\renpy\easy.py", line 108, in displayable
raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: <store._m1_example__Example object at 0x041A1530>
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Renpy Imagebuttons GUI Sample 1.0
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Have you downloaded from the updated file in this post?
viewtopic.php?f=51&t=22565&start=75#p455107
viewtopic.php?f=51&t=22565&start=75#p455107
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
- Regular
- Posts: 64
- Joined: Mon May 07, 2018 10:49 am
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Hey, so I downloaded the updated file but it still didn't work, then I tried Donmai's solution and it worked
viewtopic.php?f=51&t=22565&start=75#p439392
Basically, open 01examples.rpy from Tutorial project and copy everything, then open examples from Renpy Imagebutton... (this project), select all, paste and save. It should work now.
Edit: ok am I missing a 'example main.eff' image? I remember there being an image or something when Lucy says "Simple...to use ATL with imagebuttons, ...define the transformation like this", right now it's just blank. The next picture after this is also missing.
viewtopic.php?f=51&t=22565&start=75#p439392
Basically, open 01examples.rpy from Tutorial project and copy everything, then open examples from Renpy Imagebutton... (this project), select all, paste and save. It should work now.
Edit: ok am I missing a 'example main.eff' image? I remember there being an image or something when Lucy says "Simple...to use ATL with imagebuttons, ...define the transformation like this", right now it's just blank. The next picture after this is also missing.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3795
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Odd, I just downloaded this (again) last night from the file trooper6 linked and didn't notice that.zeroTheHero wrote: ↑Thu Jan 31, 2019 11:55 am Hey, so I downloaded the updated file but it still didn't work, then I tried Donmai's solution and it worked
viewtopic.php?f=51&t=22565&start=75#p439392
Basically, open 01examples.rpy from Tutorial project and copy everything, then open examples from Renpy Imagebutton... (this project), select all, paste and save. It should work now.
Edit: ok am I missing a 'example main.eff' image? I remember there being an image or something when Lucy says "Simple...to use ATL with imagebuttons, ...define the transformation like this", right now it's just blank. The next picture after this is also missing.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
My post is just an implementation of Donmai's fix so that people don't have to do it themselves. So that is odd!
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
- Regular
- Posts: 64
- Joined: Mon May 07, 2018 10:49 am
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
I thought so too, The only thing that has changed is that I updated my Ren'py to 7.00, It worked like usual before it
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3795
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Hmm. Maybe it's renpy 7.0.0?
I'm using the latest which I think is 7.1.3 or something.
Though I've never encountered such an issue previously on any other renpy version and cannot think why it would do so.
Is your file corrupting upon download? I'll check the crc value of the known good downloaded file after lunch and post it here, you can check it with something like RapidCRC - if the numbers differ, it didn't download properly.
That's all I can think of.
The crc value checks out to be 40FC023B
I'm using the latest which I think is 7.1.3 or something.
Though I've never encountered such an issue previously on any other renpy version and cannot think why it would do so.
Is your file corrupting upon download? I'll check the crc value of the known good downloaded file after lunch and post it here, you can check it with something like RapidCRC - if the numbers differ, it didn't download properly.
That's all I can think of.
The crc value checks out to be 40FC023B
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 64
- Joined: Mon May 07, 2018 10:49 am
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Sorry for the late reply, was away from the computer.Imperf3kt wrote: ↑Thu Jan 31, 2019 11:51 pm Hmm. Maybe it's renpy 7.0.0?
I'm using the latest which I think is 7.1.3 or something.
Though I've never encountered such an issue previously on any other renpy version and cannot think why it would do so.
Is your file corrupting upon download? I'll check the crc value of the known good downloaded file after lunch and post it here, you can check it with something like RapidCRC - if the numbers differ, it didn't download properly.
That's all I can think of.
The crc value checks out to be 40FC023B
I updated my ren'py to the latest version and it seems to have fixed the issue. I can get all the text on screen and it works without any problems, so maybe it was an update thing.
- Alexis_Royce
- Regular
- Posts: 54
- Joined: Tue Apr 10, 2012 2:34 pm
- Projects: May I Take Your Order, Off the Cuff, Case of the Serialized Killer
- itch: alexisroyce
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
I know that this may go entirely against the general idea of image buttons, but is there any way to make them more accessible for people with visual impairments? I'd like to add a tag or something so that a screen reader or the self-voicing mode will still be able to identify those buttons.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3795
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
add an "alt" to them
for example:
for example:
Code: Select all
imagebutton:
idle "idle. png"
hover "hover. png"
action do_something
alt "This text will be read by self-voicing"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Alexis_Royce
- Regular
- Posts: 54
- Joined: Tue Apr 10, 2012 2:34 pm
- Projects: May I Take Your Order, Off the Cuff, Case of the Serialized Killer
- itch: alexisroyce
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Ahhh, marvelous. Thank you very much!Imperf3kt wrote: ↑Tue Feb 11, 2020 3:18 pm add an "alt" to them
for example:Code: Select all
imagebutton: idle "idle. png" hover "hover. png" action do_something alt "This text will be read by self-voicing"
Re: Imagebutton GUI Framework [GxImagebuttons]
Just wanted to thank trooper6 and Donmai for helping people 7 years after the original post, my post might be redundant but thank you you guys are angels!
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Imagebutton GUI Framework [GxImagebuttons]
Thanks for the kind words!
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
Who is online
Users browsing this forum: No registered users