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

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

91. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 76%]

... */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICAL: "vertical",             HORIZONTAL: "horizontal",             TOP_LEFT: "topLeft",             TOP_RIGHT:...

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

92. List翻页效果 [ 76%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); 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 =...

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

93. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 76%]

...     private isright: boolean = false;     constructor() {         super();         this.packageName = "Game";         this.resName = "Main";         this.isFullWindow = true;     }      /**      * 初始化组件 第一次new的时候执行      */     onConstruct()...

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

94. List翻页效果怎么实现 [ 76%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); 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 =...

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

95. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

... { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 t...

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

96. js飞机大战报错 请大神看看 [ 76%]

...       this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {     function GameInfo() {         GameInfo.super(this);         // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel         // 注册按钮点击事件 点击后暂停游戏   ...

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

97. 这样的panel请问如何实现比较好? [ 75%]

...划分) class Item extends ui.itemUI { private state = 0; constructor() { super(); //点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnC...

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

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

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); 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 =...

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

99. 模仿教程里的打地鼠写的代码,运行报错 [ 75%]

...G); } })();在background.js里是这样写的 var background = (function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgroundUI);backgound.ui也在场景编辑器里编辑并导出了。   然后运行的时候...

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

100. 异步加载一个UI对象时的问题 [ 75%]

...函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Lo...

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