[SOLVED]slider thumb transparency

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
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

[SOLVED]slider thumb transparency

#1 Post by Scribbles »

I'm having some problems with the slider thumb, the image I put in the folder is transparent, but it seems to add a square to the lower half of the image. I'm guessing it's the "thumb_shadow" (maybe) but I can't make it go away............. I'm pulling my hair out lol anyone know what's up with it?

It should look like this:
Image

It looks like this:
Image
Last edited by Scribbles on Tue Jun 18, 2019 4:53 pm, edited 1 time in total.
Image - Image -Image

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: slider thumb transparency

#2 Post by Scribbles »

I got a solution on the discord so going to share it here!

Code: Select all

style slider:
    ysize gui.slider_size
    base_bar Frame("gui/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
    thumb "gui/slider/horizontal_[prefix_]thumb.png"
    thumb_offset -50 ## This made the strange lower bar go away - would probably need customized to the size of the thumb
then to get the flower to fall lower on the bar I adjusted the thumb to have more horizontal transparent space to line up better with the slider's size. Thanks to the renpy discord people who helped <3 !
Image - Image -Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot]