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

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

11. 引用的类库问题 [ 95%]

引用的类库问题 var ViewStack=(function(_super){ function ViewStack(){ this._items=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); ...

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

12. 对话框点击空白处无法关闭 [ 95%]

...IDE版本1.7.15这是我在编辑模式发布的一个对话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); ...

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

13. LayaAir引擎1.7 之后as转换js,出现问题 [ 94%]

...理,1.7之后,这些代码转换出现问题 as 代码 override public function get visible():Boolean  { return super.visible; } override public function set visible(value:Boolean):void  { super.visible = value; if (value) _mcAni.removeFromParent(); }   1.7之后的转换 __getset(0,__proto,'...

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

14. 关于类中方法的调用 [ 92%]

关于类中方法的调用 var FactionListItem = (function(_super){     function FactionListItem(data) {         FactionListItem.super(this);              this.updateLvAndPeopleCount();         this.updateLvAndPeopleCount = function(){         //-----         }     ...

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

15. 不能成功调用 DiaLog Close 关闭方法 [ 92%]

...成功调用 DiaLog Close 关闭方法 /** * Start 界面 */ var Start = (function(_super){ function Start(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick);...

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

16. Dialog 关闭效果无效 [ 91%]

Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...

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

17. 加载UI为什么总是加载白底 [ 91%]

加载UI为什么总是加载白底 var LayaSample = (function(){ (function(){ //初始化引擎 Laya.init(750,1334); //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function ...

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

18. 关于3d项目中component的问题 [ 91%]

...始移动 这是为什么呢? 以下是我的代码,请大家指正!(function () { var convertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { ...

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

19. 【简单跑酷--JS版】---Lv.3 添加地板 [ 91%]

...左边边界 就移除存入对象池 2、地板上可以添加东西  (function(){ /** * 地板类 */ function Floor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(t...

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

20. 感觉实例之间是关联的,求指教。(已解决) [ 90%]

...赐教。   这是场景代码/* * 用户扑克界面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上...

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