大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...
来源: Laya_社区 发布时间: 20190618
...E; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new l...
来源: Laya_示例 发布时间: 20251130
...ar SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // ...
来源: Laya_社区 发布时间: 20171012
...相关的链接 提交 2 个回复 w1114367261 赞同来自: JokerKKK i = this.var.numChildren;//得到该父物体下的所有子物体个数 this.var.getchildAt("要获取的物体的下标int类型")//根据子物体下标获取单个物体 2018-04-18 1 1 分享 微博 QZONE 微信 173*****441 ...
来源: Laya_社区 发布时间: 20180418
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite =...
来源: Laya_示例 发布时间: 20251130
...; //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():...
来源: Laya2.0_文档 发布时间: 20210715
...ion (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer...
来源: Laya_社区 发布时间: 20180201
...uot;"+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了...
来源: Laya_社区 发布时间: 20180321
... //设置适配模式 Laya.stage.scaleMode = this.modes; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/l...
来源: Laya2.0_文档 发布时间: 20200307
...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...
来源: Laya_社区 发布时间: 20240305