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

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

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

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

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

2. 关于位图字体使用问题,参照官方文档,显示不出 [ 94%]

...用问题,参照官方文档,显示不出 export default class AllText extends ui.examples.text.BitmapFontUI   ui.examples.text.BitmapFontUI 找不到继承的类   laya is not define   参见 demo 附件 : --> Test1.rar 2020-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

3. D.TS访问问题 [ 93%]

D.TS访问问题 declare module common_lib{ class ByteArray extends com.tengxun.utils.ByteArray{} class ParserUtil extends com.utlis.ParserUtil{} class MathR extends com.utlis.MathR{} } 我是仿照layaAir.d.ts来写的,这些代码上面还有ByteArray这些类的declare。奇怪的是: declar...

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

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

...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

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. 请问打开一个UI后,怎么屏蔽其他UI的点击呢? [ 89%]

...di199553: let myDig:HintView = new HintView(); myDig.popup(true); HintView extends ui.HintViewUI ----- HintViewUI extends Dialog 这样有问题嘛...我这里没有出遮罩的... luck_wan • 2017-12-18 17:54 @wudi199553:用同事的电脑试过可以了,我大概把哪里改错了吧。。。...

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

7. 2.0 beta UI Button无法获取 [ 88%]

....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

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

...继承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

9. 分包后, 资源加载问题 [ 85%]

...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

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

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

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