1aaf7fb6-fdcb-4468-99e5-44dee21f1d08.js 2.23 KB
"use strict";
cc._RF.push(module, '1aaf7+2/ctEaJnlRN7iHx0I', 'PromptAlertDialogViewImpl');
// script/game/ui/view/impl/bedroom/PromptAlertDialogViewImpl.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 CCDummyObjects_1 = require("../../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const PromptAlertDialogView_1 = require("../../type/PromptAlertDialogView");
const { ccclass, property } = cc._decorator;
let PromptAlertDialogViewImpl = /** @class */ (() => {
    let PromptAlertDialogViewImpl = class PromptAlertDialogViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.iconSprite = CCDummyObjects_1.DummySprite;
            this.contentLabel = CCDummyObjects_1.DummyRichText;
        }
        getIconSprite() {
            return this.iconSprite;
        }
        getContentLable() {
            return this.contentLabel;
        }
        onOkBtnClick() {
            this.close();
        }
    };
    __decorate([
        property(cc.Sprite)
    ], PromptAlertDialogViewImpl.prototype, "iconSprite", void 0);
    __decorate([
        property(cc.RichText)
    ], PromptAlertDialogViewImpl.prototype, "contentLabel", void 0);
    PromptAlertDialogViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(PromptAlertDialogView_1.PromptAlertDialogViewType, "prefab/ui/bedroomCat/PromptAlertDialogView")
    ], PromptAlertDialogViewImpl);
    return PromptAlertDialogViewImpl;
})();
exports.default = PromptAlertDialogViewImpl;

cc._RF.pop();