動態設定滾動條圖片
阿新 • • 發佈:2018-12-03
之前在Egret論壇發的。現在用到忘了怎麼設定了。貼到blog備用。
/** * 測試 * @author chenkai * [url=home.php?mod=space&uid=81950]@since[/url] 2017/10/20 */ class HomeScene extends eui.Component{ private testScroll:eui.Scroller; public constructor() { super(); this.skinName = "HomeSceneSkin"; } private bar:TestBar; public childrenCreated(){ this.testScroll.scrollPolicyV = eui.ScrollPolicy.ON; let thumb:any = this.testScroll.verticalScrollBar.thumb; thumb.texture = RES.getRes("thumb_png"); } }