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

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

1. 问一个问题就是你们的每个UI都继承了一个引擎的代码我要写一个UI的基类那不就无法继承了 [ 100%]

...如果是面板本身绑定runtime并没有用,导出的UI类依然还是extends View,依然还是调用不到基类的函数;会报错:“xxx this variable is not defined”;并且在源码中看到“/*no*/this.xxx()”   最头痛的是自己把extends View改为extends自己写的基...

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

2. 分包后, 资源加载问题 [ 94%]

...e.log("kk22") var View=laya.ui.View; console.log("kk3") //class loading100 extends laya.display.Sprite var loading100=(function(_super){ console.log("kk4") function loading100(){ loading100.__super.call(this); this.load=new loadingUI(); this.addChild(this.load); } console.log("kk5") __class(loading1...

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

3. 2.0 beta UI Button无法获取 [ 92%]

....Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default c...

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

4. view和panel关于mouseThrough的区别 [ 90%]

...么情况???都是有设置 mouseThrough=true的,就改动了继承 extends Laya.View可穿透 extends Laya.Panel不可穿透   附件 : --> 2018-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w111436...

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

5. 3d项目,需要加一层显示分数的界面 [ 90%]

...的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样。 2018-0...

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

6. 分享:关于自定义场景继承的实现 [ 89%]

...继承Laya.Scene BaseScene.tsexport namespace base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically...

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

7. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 87%]

...Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("test/TestScene"); } } REG("ui...

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

8. 关于.ui文件生成的ts类如何正确使用这个.ui皮肤,自动生成的代码有误 [ 83%]

...的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样。 2018-0...

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

9. list里面可以加入多个view吗? [ 83%]

...mport laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,HEI); img=new Image(); addChild(img); label=new Label(); label...

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

10. 分包项目, 加载js时报错 [ 82%]

...关的链接 提交 2 个回复 sevennqi 赞同来自: 这个是我改成extends Box:  package {     import laya.ui.Box;     import laya.display.Text;     import laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         publ...

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