Changing borders for thumb buttons in gui

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
Widdershins
Regular
Posts: 42
Joined: Sat Feb 03, 2018 4:17 am
Projects: Bright Oak
Organization: Butterfly Rocket Studios
Tumblr: brightoakgame
itch: ButterflyRocket
Location: California, USA
Discord: Widdershins#3997
Contact:

Changing borders for thumb buttons in gui

#1 Post by Widdershins » Fri Apr 29, 2022 2:25 am

(I'm fairly new, so apologies if this is silly and I've just missed a page somewhere, but I've looked around and I'm still a bit stuck) I'm swapping out the plain rectangles used for the sliders and scrollbars with more irregular shapes; I've been happy with how the bars themselves have swapped out, but I can't seem to figure out how to adjust the borders on the thumb files so that it doesn't cause little blips in the bar (as seen below).

Image

Any guidance on where I can adjust borders so that the center of my little acorns (which is lined up more neatly) hits the bars? Similarly, the vertical thumbs also do crazy things, and I'm not sure how to keep the image from stretching out excessively.

Thank you for your patience in reading, and thank you thank you thank you in advance for any advice!
Image
Follow Bright Oak's progress on Itch ✨ Tumblr ✨ Twitter

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

Re: Changing borders for thumb buttons in gui

#2 Post by Alex » Fri Apr 29, 2022 6:12 pm

Set the thumb_offset property for your buttons (directly or in style) - https://www.renpy.org/doc/html/style_pr ... umb_offset

User avatar
Widdershins
Regular
Posts: 42
Joined: Sat Feb 03, 2018 4:17 am
Projects: Bright Oak
Organization: Butterfly Rocket Studios
Tumblr: brightoakgame
itch: ButterflyRocket
Location: California, USA
Discord: Widdershins#3997
Contact:

Re: Changing borders for thumb buttons in gui

#3 Post by Widdershins » Sat Apr 30, 2022 1:45 am

Thank you very much!! Figured I was missing it somewhere; I appreciate your patience and assistance!
Image
Follow Bright Oak's progress on Itch ✨ Tumblr ✨ Twitter

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], span4ev