How to Change the viewport SCROLLBAR Width? [Solved]

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
Yuvan raj
Regular
Posts: 38
Joined: Wed Feb 17, 2021 11:24 am
Contact:

How to Change the viewport SCROLLBAR Width? [Solved]

#1 Post by Yuvan raj »

Hello, I'm a noob in renpy. I created this viewport and the vertical scrollbar on the side is very thin. I also plan on releasing the finished game on android and I have experience playing games in which the scrollbar was too thin that i could select it.
This is my screen with viewport.
Image

And this is my code for it.

Code: Select all

screen charactersbutton():
    modal True
    use statusbuttons

    frame:
        background Solid("#5a5c5c")
        xpos 20 ypos 18
        xmaximum 1468
        xminimum 1468
        ymaximum 1045
        yminimum 1045
        viewport:
            scrollbars "vertical"
            mousewheel True
            draggable True
            xalign 0.5
            hbox:
                imagebutton auto "close_%s" xpos 1150 ypos 8 action [Hide("charactersbutton"), SetVariable("characters_imagebutton_list_boolean",True), Show("statusbuttons")]

Thank you guys in advance!
Last edited by Yuvan raj on Tue Jun 01, 2021 1:37 am, edited 1 time in total.

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

Re: How to Change the viewport SCROLLBAR Width?

#2 Post by Alex »

Try it like

Code: Select all

        viewport:
            scrollbars "vertical"
            vscrollbar_xsize 50 #<---
            mousewheel True
            draggable True
            xalign 0.5
You can use style inspector (hit shift + i while hovering mouse pointer over an element of GUI) to see style properties you can adjust.
This might be useful too - viewtopic.php?f=8&t=62029#p542258

Yuvan raj
Regular
Posts: 38
Joined: Wed Feb 17, 2021 11:24 am
Contact:

Re: How to Change the viewport SCROLLBAR Width?

#3 Post by Yuvan raj »

Alex wrote: Mon May 31, 2021 4:27 pm Try it like

Code: Select all

        viewport:
            scrollbars "vertical"
            vscrollbar_xsize 50 #<---
            mousewheel True
            draggable True
            xalign 0.5
You can use style inspector (hit shift + i while hovering mouse pointer over an element of GUI) to see style properties you can adjust.
This might be useful too - viewtopic.php?f=8&t=62029#p542258
I love u(no homo). Thanks a lot, it works!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]