Viewport vs Buttons

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
Amethysts
Regular
Posts: 41
Joined: Thu Aug 23, 2018 1:17 pm
Projects: Coalescence
Skype: amethysts-studio
itch: amethysts
Contact:

Viewport vs Buttons

#1 Post by Amethysts »

Hello !

I have a little problem about viewport (vpgrid did the same) and buttons.

I want to scroll down the viewport but it is not possible to drag by grabbing a button (and the viewport is full of buttons...)
I can drag it by touching only the little space without a button !

See:
Image

I think it's easily solvable but I didn't find anyhting in this forum or on the official documentation...

Thank you for helping me !

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Viewport vs Buttons

#2 Post by Alex »

Yes, that's how it works. You can make scrollbar wider or set the 'edgescroll' property to autoscroll the viewport.
https://www.renpy.org/doc/html/screens.html#viewport

User avatar
Amethysts
Regular
Posts: 41
Joined: Thu Aug 23, 2018 1:17 pm
Projects: Coalescence
Skype: amethysts-studio
itch: amethysts
Contact:

Re: Viewport vs Buttons

#3 Post by Amethysts »

This is a mobile game so I would really like to find a way to make a user-friendly interactive list ^^'

Edgescroll is not really relevant in this situation, is there a different way to do this ?

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Viewport vs Buttons

#4 Post by Alex »

Amethysts wrote: Sat Aug 03, 2019 2:38 pm...
You can make a wide scrollbar or make buttons to operate the viewport - https://www.renpy.org/doc/html/screen_a ... tml#Scroll

Post Reply

Who is online

Users browsing this forum: Google [Bot]