"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var MsgPanel = (function (_super) {
    __extends(MsgPanel, _super);
    function MsgPanel() {
        var _this = _super.call(this) || this;
        _this.msgTxt.touchEnabled = _this.msgTxt2.touchEnabled = false;
        return _this;
    }
    Object.defineProperty(MsgPanel.prototype, "skinKey", {
        get: function () { return 'Msg'; },
        enumerable: true,
        configurable: true
    });
    MsgPanel.prototype.start = function (data) {
        this.percentHeight = 100;
        this.msgTxt.text = data[0];
        this.msgTxt2.text = data[1];
        if (data[1] && data[1].length > 0) {
            this.msgTxt.y = 35;
            this.msgTxt2.y = 75;
        }
        else {
            this.msgTxt.y = 52;
        }
    };
    MsgPanel.prototype.initEvents = function () {
        this.toastGroup.addEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
        this.dark.addEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
    };
    MsgPanel.prototype.removeEvents = function () {
        this.toastGroup.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
        this.dark.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
    };
    return MsgPanel;
}(Panel_1.default));
exports.default = MsgPanel;
__reflect(MsgPanel.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/src/msgPanel/MsgPanel\".MsgPanel");
//# sourceMappingURL=MsgPanel.js.map