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

大约有 82 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0031 秒)

1. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 100%]

...ee_folder.png", "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, new Handler(this, this.onLoadComplete)); } private onLoadComplete(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // ...

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

2. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 99%]

...r.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage.addChild(this.img); } } new MaskDemo(); ``` 运行效果如图2所示...

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

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

...nds(); this.createController(); } private showBg(): 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,...

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

4. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 98%]

...is.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5";...

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

5. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 98%]

...olor = "#232628"; this.setup(); } private setup(): void { var list: List = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin =...

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

6. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 98%]

..../res/ui/tree/clip_tree_arrow.png" ]; //加载资源 Laya.loader.load(res, new Handler(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { // 组装tree的数据 var treeData:String = ""; //外层循环为树的父节点(相当于文件夹) for(v...

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

7. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 97%]

... { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 se...

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

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

...ivate createHScroller():void { //实例化垂直滚动条 this.hScrollBar= new HScrollBar(); //加载皮肤资源(其他资源根据规范命名后,会自动加载) this.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, ...

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

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

...ivate createVScroller():void { //实例化垂直滚动条 this.vScrollBar= new VScrollBar(); //加载皮肤资源(其他资源根据规范命名后,会自动加载) this.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, ...

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

10. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 97%]

...**/ private function createList():void { //实例化列表 var list:List = new List(); //设置列表渲染单元格为Item类(注:必须是类,不能是实例化对象,Item需类继承于Box) list.itemRender =Item; //列表显示区单元格的列数 list.repeatX = 1; //列表显示区单...

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