efaf2702-b991-4f63-83a5-b02ab616aa07.js 2.09 KB
"use strict";
cc._RF.push(module, 'efaf2cCuZFPY4OlsCq2FqoH', 'NoticeViewImpl');
// script/game/ui/view/impl/NoticeViewImpl.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 });
exports.NoticeViewImpl = void 0;
const NoticeView_1 = require("../type/NoticeView");
const CCViewBase_1 = require("../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const CCDummyObjects_1 = require("../../../../common/CCDummyObjects");
const { ccclass, property } = cc._decorator;
let NoticeViewImpl = /** @class */ (() => {
    let NoticeViewImpl = class NoticeViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.titlelbl = CCDummyObjects_1.DummyLabel;
            this.contentlbl = CCDummyObjects_1.DummyLabel;
        }
        onLoad() {
            this.bindProp("titletxt", this.titlelbl, "string");
            this.bindProp("contenttxt", this.contentlbl, "string");
        }
        onCloseHandleClick(event) {
            this._props.onCloseClick();
        }
    };
    __decorate([
        property(cc.Label)
    ], NoticeViewImpl.prototype, "titlelbl", void 0);
    __decorate([
        property(cc.Label)
    ], NoticeViewImpl.prototype, "contentlbl", void 0);
    NoticeViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(NoticeView_1.NoticeViewType, "prefab/ui/NoticeView")
    ], NoticeViewImpl);
    return NoticeViewImpl;
})();
exports.NoticeViewImpl = NoticeViewImpl;

cc._RF.pop();