class DialogPage extends ui.DialogPageUI {
private tip:Laya.TipManager = new Laya.TipManager();
constructor() {
super();
this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void {
dialog.scale(1, 1);
Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Laya.Ease.bounceOut, Laya.Handler.create(this, this.doOpen, [dialog]));
});
this.show();
this.dragArea = "0,0,500,64";
this.toolTip = "左键点击标题栏可以进行拖动";
}
public onOpened():void{
console.log("Dialog页面已打开");
}
}