Slider thumb image looks pixelated?

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
Posts: 2
Joined: Thu Jan 16, 2020 12:02 am

Slider thumb image looks pixelated?

#1 Post by dory2007 » Thu Jan 23, 2020 12:59 pm

I've been having trouble formatting my slider thumbs for the preferences screen. The slider itself looks good, but the thumb image (which I would like to be a flower) looks pixelated no matter what I do to it. The only thumb image that looks clean is the default 10 by 25 pixel rectangle the game provides as a default. Is there something I can do in my code to solve this issue?

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"
Screen Shot 2020-01-23 at 11.56.04 AM.png

User avatar
Miko-Class Veteran
Posts: 532
Joined: Mon Jan 26, 2009 7:21 pm

Re: Slider thumb image looks pixelated?

#2 Post by gas » Sat Jan 25, 2020 8:00 pm

Apply to the thumb image style properties.

Code: Select all

thumb "gui/slider/horizontal_[prefix_]thumb.png" xsize 20 ysize 50
Obviously change with your values.
That should do the trick.
10 ? "RENPY"
20 GOTO 10


Post Reply

Who is online

Users browsing this forum: Google [Bot]