• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0070 秒)

301. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

...Bg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } private createTimerAnimation(): void { this.counter = new Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.co...

来源: Laya2.0_文档 发布时间: 20210714

302. laya.ani.swf.MovieClip [ 60%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite  play(index:int = 0, loop:Boolean = true):void 播放动画。 MovieClip  playTo(start:int, end:int, complete:Handler = null):void 从开始索引播放到结束索引,结束之后出发complete回...

来源: Laya2.0_api 发布时间: 20190513

303. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

...//设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handler(this, this.onChange); //加载到...

来源: Laya2.0_文档 发布时间: 20210715

304. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

...//设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handler(this, this.onChange); //加载到...

来源: Laya2.0_文档 发布时间: 20210715

305. laya.ui.Tab [ 60%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...

来源: Laya2.0_api 发布时间: 20190513

306. laya.ui.TextArea [ 59%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

307. laya.ui.Clip [ 59%]

...hildren():void 销毁所有子对象,不销毁自己本身。 Node  dispose():void 销毁对象并释放加载的皮肤资源。 Clip drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas 绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas...

来源: laya_api 发布时间: 20170929

308. laya.ui.RadioGroup [ 59%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...

来源: Laya2.0_api 发布时间: 20190513

309. laya.ui.VScrollBar [ 59%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...

来源: Laya2.0_api 发布时间: 20190513

310. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 59%]

...   a.loadImage("http://103.219.177.59:63344/%2 ... 6quot;)         a.pos(512,0,true)         this.owner.addChild(a)          let b = new Laya.Sprite()         b.loadImage("http://103.219.177.59:63344/%2 ... 6quot;)         b.pos(512,512,true)         this.owner.addChild(b) ...

来源: Laya_社区 发布时间: 20230316