a7e179e4-e522-4225-880b-7ca696cbd5b3.js 2.66 KB
"use strict";
cc._RF.push(module, 'a7e17nk5SJCJYgLfKaWy9Wz', 'ItemIntroductionViewImpl');
// script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl.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.ItemIntroductionViewImpl = void 0;
const CCDummyObjects_1 = require("../../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const ItemIntroductionView_1 = require("../../type/ItemIntroductionView");
const { ccclass, property } = cc._decorator;
let ItemIntroductionViewImpl = /** @class */ (() => {
    let ItemIntroductionViewImpl = class ItemIntroductionViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.itemSprite = CCDummyObjects_1.DummySprite;
            this.redDotNode = CCDummyObjects_1.DummyNode;
        }
        onLoad() {
            this._contentContainer = this.node.parent.addComponent(CCViewBase_1.CCView);
        }
        getItemSpriteNode() {
            return this.itemSprite;
        }
        getContainer() {
            return this._contentContainer;
        }
        onSpecialPlotBtnClickCallBack() {
            this._props.onSpecialPlotBtnClick();
        }
        onShopBtnClickCallBack() {
            this._props.onShopBtnClick();
        }
        onCloseClickCallBack() {
            this.close();
        }
        showSpecialPlotBtnRedDot(isShow) {
            this.redDotNode.active = isShow;
        }
    };
    __decorate([
        property(cc.Sprite)
    ], ItemIntroductionViewImpl.prototype, "itemSprite", void 0);
    __decorate([
        property(cc.Node)
    ], ItemIntroductionViewImpl.prototype, "redDotNode", void 0);
    ItemIntroductionViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(ItemIntroductionView_1.ItemIntroductionViewType, "prefab/ui/ItemIntroductionView")
    ], ItemIntroductionViewImpl);
    return ItemIntroductionViewImpl;
})();
exports.ItemIntroductionViewImpl = ItemIntroductionViewImpl;

cc._RF.pop();