"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");
// import { NetManager } from '../../libs/tw/manager/NetManager';
// import { DataManager } from "../../libs/tw/manager/DataManager";
var RulePanel = (function (_super) {
    __extends(RulePanel, _super);
    function RulePanel() {
        var _this = _super.call(this) || this;
        // NetManager.ins.getRule(()=>{
        //     var tx:egret.TextField = new egret.TextField;
        //     tx.width = this.stage.stageWidth - 220;
        //     tx.textFlow = (new egret.HtmlTextParser).parser(
        //         DataManager.ins.getRuleData ? DataManager.ins.getRuleData.ruleText : 
        //         (DataManager.ins.ajaxElementData ? DataManager.ins.ajaxElementData.rule : 
        //             (window['ruleCFG'] ? window['ruleCFG'] : "规则")
        //         )
        //     );
        //     tx.x = 110;
        //     tx.y = 330;
        //     tx.textColor = 0x333333;
        //     this.addChild( tx );
        // })
        _this.percentHeight = 100;
        return _this;
    }
    RulePanel.prototype.onSkinComplete = function () {
        _super.prototype.onSkinComplete.call(this);
        this.maskRule.alpha = 0;
        egret.Tween.get(this.maskRule).to({ alpha: 1 }, 1000);
    };
    RulePanel.prototype.initEvents = function () {
        _super.prototype.initEvents.call(this);
    };
    RulePanel.prototype.removeEvents = function () {
        _super.prototype.removeEvents.call(this);
    };
    Object.defineProperty(RulePanel.prototype, "skinKey", {
        get: function () { return 'Rule'; },
        enumerable: true,
        configurable: true
    });
    return RulePanel;
}(Panel_1.default));
exports.default = RulePanel;
__reflect(RulePanel.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/src/rulePanel/RulePanel\".RulePanel");
//# sourceMappingURL=RulePanel.js.map