58bc93c2-d8df-487b-bd07-0a6f079cb593.js 1.88 KB
"use strict";
cc._RF.push(module, '58bc9PC2N9Ie70HCm8HnLWT', 'NoticeViewPresenter');
// script/game/ui/presenter/NoticeViewPresenter.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const NoticeView_1 = require("../view/type/NoticeView");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
let NoticeViewPresenter = /** @class */ (() => {
    let NoticeViewPresenter = class NoticeViewPresenter extends PresenterBase_1.Presenter {
        constructor() {
            super();
            this.onCloseHandleClick = () => {
            };
            this._viewProps = {
                titletxt: "",
                contenttxt: "",
                onCloseClick: this.onCloseHandleClick
            };
        }
        onOpen(param) {
            super.onOpen(param);
            this._viewProps.titletxt = param.title;
            this._viewProps.contenttxt = param.content;
            this.view.setProps(this._viewProps);
        }
    };
    NoticeViewPresenter.uuid = "NoticeViewPresenter";
    NoticeViewPresenter = __decorate([
        PresenterCCViewFactory_1.RegPresenter(NoticeView_1.NoticeViewType)
    ], NoticeViewPresenter);
    return NoticeViewPresenter;
})();
exports.default = NoticeViewPresenter;

cc._RF.pop();