02025066-b348-4cf3-ad25-ce300d1c5a34.js 4.04 KB
"use strict";
cc._RF.push(module, '02025Bms0hM860lzjANHFo0', 'SpecialPlotViewImpl');
// script/game/ui/view/impl/bedroom/SpecialPlotViewImpl.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.SpecialPlotViewImpl = void 0;
const CCDummyObjects_1 = require("../../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const SpecialPlotView_1 = require("../../type/SpecialPlotView");
const { ccclass, property } = cc._decorator;
let SpecialPlotViewImpl = /** @class */ (() => {
    let SpecialPlotViewImpl = class SpecialPlotViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.specialPlotScrollView = CCDummyObjects_1.DummyScrollView;
            this.specialPlotTitleNode = CCDummyObjects_1.DummyNode;
            this.specialPlotNode = CCDummyObjects_1.DummyNode;
            this.leftBtn = CCDummyObjects_1.DummyNode;
            this.rightBtn = CCDummyObjects_1.DummyNode;
            this.rightBtnRedDot = CCDummyObjects_1.DummyNode;
            this.forumBtn = CCDummyObjects_1.DummyNode;
            this.shopBtn = CCDummyObjects_1.DummyNode;
        }
        onLoad() {
        }
        getSpecialPlotScrollView() {
            return this.specialPlotScrollView;
        }
        getSpecialPlotTitleNode() {
            return this.specialPlotTitleNode;
        }
        getSpecialPlotNode() {
            return this.specialPlotNode;
        }
        onLeftBtnClickCallBack() {
            this._props.onLeftBtnClick();
        }
        onRightBtnClickCallBack() {
            this._props.onRightBtnClick();
        }
        showLeftBtn(isShow) {
            this.leftBtn.active = isShow;
        }
        showRightBtn(isShow) {
            this.rightBtn.active = isShow;
        }
        getViewNode() {
            return this.node;
        }
        getForumBtnNode() {
            return this.forumBtn;
        }
        onCloseClickCallBack() {
            this._props.onCloseBtnClick();
        }
        onShopBtnClickCallBack() {
            this._props.onShopBtnClick();
        }
        showRedDot(isShow) {
            this.rightBtnRedDot.active = isShow;
        }
    };
    __decorate([
        property(cc.ScrollView)
    ], SpecialPlotViewImpl.prototype, "specialPlotScrollView", void 0);
    __decorate([
        property(cc.Node)
    ], SpecialPlotViewImpl.prototype, "specialPlotTitleNode", void 0);
    __decorate([
        property(cc.Node)
    ], SpecialPlotViewImpl.prototype, "specialPlotNode", void 0);
    __decorate([
        property(cc.Node)
    ], SpecialPlotViewImpl.prototype, "leftBtn", void 0);
    __decorate([
        property(cc.Node)
    ], SpecialPlotViewImpl.prototype, "rightBtn", void 0);
    __decorate([
        property(cc.Node)
    ], SpecialPlotViewImpl.prototype, "rightBtnRedDot", void 0);
    __decorate([
        property({ type: cc.Node, tooltip: "论坛按钮" })
    ], SpecialPlotViewImpl.prototype, "forumBtn", void 0);
    __decorate([
        property({ type: cc.Node, tooltip: "商城按钮" })
    ], SpecialPlotViewImpl.prototype, "shopBtn", void 0);
    SpecialPlotViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(SpecialPlotView_1.SpecialPlotViewType, "prefab/ui/SpecialPlotView")
    ], SpecialPlotViewImpl);
    return SpecialPlotViewImpl;
})();
exports.SpecialPlotViewImpl = SpecialPlotViewImpl;

cc._RF.pop();