DirectSlider Problem!!!

this is example code in manual

slider=DirectSlider(range=(0,40), value=20,  command=showValue,thumb_image='texture/boxmap.png',thumb_scale=(0.05,1,0.05))

the problem is
why “thumb_scale” can’t resize the “thumb_image”? :confused:
or I use wrong keyword?

help please :cry:
thank you

[size=150]CONGRATULATION !!![/size]
seems you just found another BIG bug !

I’ve never used it so I just noticed, too.
This ought to work quite fine :

OI=OnscreenImage(parent=hidden,image='PSPicon-compiler.jpg',scale=.05)
b=OI.getTightBounds()
slider=DirectSlider( range=(0,40), value=20, command=showValue,
                     thumb_frameSize=(b[0][0],b[1][0],b[0][2],b[1][2]) )
slider.getChild(0).node().setup(OI)

# show clickable regions
base.mouseWatcherNode.showRegions(render2d,'gui-popup',0)

Scale the OnscreenImage instead.

:smiley:
Thank you ynjh_jo
for your great help

Love U :smiling_imp: