大约有 1,738 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0068 秒)
Laya_社区(1374) Laya2.0_文档(82) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya3.0_文档(45) Laya_示例(32) Laya2.0_示例(27)
...unction () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = fun...
来源: Laya_社区 发布时间: 20200924
...istView(x, y, width, height, item_width, item_height) { var list = new Laya.List(); list.itemRender = initItem(item_width, item_height); list.repeatX = 1; list.size(width, height); list.x = x; list.y = y; list.vScrollBarSkin = ""; l...
来源: Laya_社区 发布时间: 20180724
...: 与内容相关的链接 提交 4 个回复 cuixueying 赞同来自: lexnewgate 应广大开发者的需求,我们提供了鼠标提示管理类TipManager,以此来实现鼠标悬停的提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import...
来源: Laya_社区 发布时间: 20161115
...tion createLabel(color, strokeColor) { const STROKE_WIDTH = 4; var label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label);...
来源: Laya_示例 发布时间: 20241117
...:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math...
来源: Laya_社区 发布时间: 20171113
...is,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage.height-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"...
来源: Laya_社区 发布时间: 20170626
...te(this,this.onLoaded)); } createButton(skin, name, cb, index) { var btn = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return btn; } onLoaded(){ for (let index = 0; ind...
来源: Laya2.0_示例 发布时间: 20241117
...错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 将tsconfig.json里的"target":"es6"改为"es5"会报错: Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 会升级到2.2.0Beta主要是看升级日志里,这个版本修复里很多bu...
来源: Laya_社区 发布时间: 20190812
UI 控件多次调用 RESIZE 回调问题 var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测...
来源: Laya_社区 发布时间: 20181214
...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