StablexUI icon indicating copy to clipboard operation
StablexUI copied to clipboard

How to change scroll look?

Open hopewise opened this issue 11 years ago • 3 comments

I need to change the following please:

scroll color ( the dragable sprite ) current;y, scroll sprite is rounded, how to make it rectangle

Also, is there example for texturing the scroll (the dragable sprite)

Thank you very much

hopewise avatar Jan 04 '14 18:01 hopewise

You need to adjust skins of vBar and hBar which are Slider widgets

RealyUniqueName avatar Jan 06 '14 12:01 RealyUniqueName

Thank, I did:

hBar-slider-skinName="'componentsSlider'"

Then

<componentsSlider:Paint color="0xb4b0b4" border = "Utils.DPS(12)" padding="Utils.DPS(2.8)" borderColor="0xdddddd"/>

But, how to set the image tile inside slider?

hopewise avatar Jan 07 '14 08:01 hopewise

You can use skins like Tile, Slice9, Img or Layer to draw images instead/on-top of plain color fill.

Or you can add some image to display list of a slider:

   <Scroll ... on-create="$this.hBar.slider.addChild(new flash.display.Bitmap($Assets.getBitmapData('image')));"/>

RealyUniqueName avatar Jan 10 '14 09:01 RealyUniqueName