Page 7 of 8

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Fri Aug 11, 2017 6:15 pm
by Zherot
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?

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Sat Aug 12, 2017 9:02 am
by Donmai
Question answered by carrot on another thread. viewtopic.php?p=462459#p462459

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Mon Aug 14, 2017 1:00 am
by redyolocup
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

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Mon Aug 14, 2017 1:35 am
by trooper6
Have you downloaded from the updated file in this post?
viewtopic.php?f=51&t=22565&start=75#p455107

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Jan 31, 2019 11:55 am
by zeroTheHero
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.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Jan 31, 2019 2:20 pm
by Imperf3kt
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.
Odd, I just downloaded this (again) last night from the file trooper6 linked and didn't notice that.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Jan 31, 2019 10:31 pm
by trooper6
My post is just an implementation of Donmai's fix so that people don't have to do it themselves. So that is odd!

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Jan 31, 2019 10:46 pm
by zeroTheHero
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

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Jan 31, 2019 11:51 pm
by Imperf3kt
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

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Fri Feb 01, 2019 11:13 am
by zeroTheHero
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
Sorry for the late reply, was away from the computer.
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.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Tue Feb 11, 2020 2:23 pm
by Alexis_Royce
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.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Tue Feb 11, 2020 3:18 pm
by Imperf3kt
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]

Posted: Sat Feb 29, 2020 1:06 pm
by Alexis_Royce
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"
Ahhh, marvelous. Thank you very much!

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Fri Jun 05, 2020 9:55 am
by Jerio
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!

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Sat Jun 06, 2020 3:12 am
by trooper6
Thanks for the kind words!