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

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

171. List翻页效果怎么实现 [ 80%]

...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...

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

172. 飞机大战地图滚动报错,麻烦看下? [ 80%]

... null; var bg2 = null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");     box.addChild(bg1);     bg2 = new laya.display.Sprite();     bg2.loadImage("res/bg...

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

173. 请问UI之间的场景切换要怎么写 [ 80%]

...his,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign); Laya.sg_index = new sg_index(); Laya.stage.addChild(Laya.sg_index); } 这样写...

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

174. image._nativeObj报错 [ 80%]

...码,就只有Graphics的构造函数里面会有这个 _this_._nativeObj=new (window as Object)._conchGraphics(); 貌似没有new成功,麻烦帮忙看看什么情况会导致new失败呢   LayaAir版本:1.7.14beta LayaNative版本:0.9.13 附件 : --> 2018-01-31 添加评论 免费帖 --> ...

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

175. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 80%]

...制Clip: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.s...

来源: Laya3.0_文档 发布时间: 20230830

176. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 80%]

...this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将pane...

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

177. as3分包,如果在ui编辑器IDE里导入了类runtime,在分包里就会报错。这个怎么处理。 [ 80%]

...n.View (Nxsg.max.js:62736)     at MailWinUI (Nxsg.max.js:71304)     at new MailWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous>:10904:20)     at MailLockWin.__proto.setWin (Nxsg.max.js:52913)     at new MailLockWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous&...

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

178. 使用发光滤镜后的第一个遮罩效果无效 [ 80%]

...第一个遮罩没有效果 。LAYA版本是   2.13.0  var glowFilter = new Laya.GlowFilter("#ffff00", 10, 0, 0);        this.btnLoad.displayObject.filters = [glowFilter];         var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_h...

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

179. 缓动-缓动函数演示 [ 80%]

...ontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.Handler; let easeFunctionsList = ne...

来源: Laya2.0_示例 发布时间: 20240929

180. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 80%]

...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...

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