/**
* 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);
// 初始化 UI 界面显示
this.reset();
}
// 注册 Start 类
Laya.class(Start,"Start",_super);
var _proto = Start.prototype;
// 初始化 UI 界面显示
_proto.reset = function(){
}
_proto.onBeginClick = function(){
dialog.close();
restart();
}
_proto.onLinkClick = function(){
alert("***");
}
return Start;
})(ui.StartUI);
另附说明:
在源码中未声明以下变量,Dialog 页面正常弹出
var dialog = new Dialog();
dialog.show();