Image Gallery: Disable Click to Advance

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
that_wannabe_cat
Newbie
Posts: 9
Joined: Mon Oct 21, 2019 5:37 pm
Completed: My Vampire Girlfriend, Thea is Drowning, Dear Genny, The Puppet Whisperer (Programming)
Projects: Merely a Regret
itch: that-wannabe-cat
Contact:

Image Gallery: Disable Click to Advance

#1 Post by that_wannabe_cat » Sat Jun 06, 2020 2:20 pm

Hello.

I've been experimenting around with the image gallery code found https://www.renpy.org/doc/html/rooms.html. It seems like the image gallery will advance through images on a mouse click, and will even leave the image if you click next or previous at the end.

Is there a way to disable these two features or will I have to create my own custom gallery code?

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Image Gallery: Disable Click to Advance

#2 Post by rames44 » Mon Jun 08, 2020 12:29 pm

This behavior is be design, so you’re probably going to have to create your own code.

How were you planning on having the player advance to the next image, or leave the gallery?

User avatar
that_wannabe_cat
Newbie
Posts: 9
Joined: Mon Oct 21, 2019 5:37 pm
Completed: My Vampire Girlfriend, Thea is Drowning, Dear Genny, The Puppet Whisperer (Programming)
Projects: Merely a Regret
itch: that-wannabe-cat
Contact:

Re: Image Gallery: Disable Click to Advance

#3 Post by that_wannabe_cat » Mon Jun 08, 2020 7:56 pm

Navigation buttons, like the ones provided by the gallery_navigation screen. Click exit/return to leave, arrows to advance left and right etc.

Oh well thank you for the answer. Customization for it would've been nice.

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Image Gallery: Disable Click to Advance

#4 Post by rames44 » Tue Jun 09, 2020 12:21 pm

Well, it’s possible you could take code for the built-in gallery screen and modify it to your needs. (Should be in screens.rpy) You can suppress default key function by adding a “key” statement to a screen.

User avatar
that_wannabe_cat
Newbie
Posts: 9
Joined: Mon Oct 21, 2019 5:37 pm
Completed: My Vampire Girlfriend, Thea is Drowning, Dear Genny, The Puppet Whisperer (Programming)
Projects: Merely a Regret
itch: that-wannabe-cat
Contact:

Re: Image Gallery: Disable Click to Advance

#5 Post by that_wannabe_cat » Tue Jun 09, 2020 3:19 pm

Huh. I'll look into that. Thank you!

Post Reply

Who is online

Users browsing this forum: CharlieFuu69, Google [Bot]