2c4c8d95-5b6f-47f0-8dea-638601f5be33.js 5.95 KB
"use strict";
cc._RF.push(module, '2c4c82VW29H8I3qY4YB9b4z', 'WardrobeViewImpl');
// script/game/ui/view/impl/bedroom/WardrobeViewImpl.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.WardrobeViewImpl = void 0;
const CCDummyObjects_1 = require("../../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const WardrobeView_1 = require("../../type/WardrobeView");
const { ccclass, property } = cc._decorator;
let WardrobeViewImpl = /** @class */ (() => {
    let WardrobeViewImpl = class WardrobeViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.introductionIconNode = CCDummyObjects_1.DummyNode;
            this.introductionNode = CCDummyObjects_1.DummyNode;
            this.rolePortrait = CCDummyObjects_1.DummySprite;
            this.rolePortraitLock = CCDummyObjects_1.DummySprite;
            this.rolePortraitLockLabel = CCDummyObjects_1.DummyLabel;
            this.wearBtn = CCDummyObjects_1.DummyButton;
            this.shareBtn = CCDummyObjects_1.DummyButton;
            this.suitButtons = [];
            this.suitButtonSprites = [];
            this.redDotNodes = [];
            this.scrollViewContentNode = CCDummyObjects_1.DummyNode;
            this.suitItem = CCDummyObjects_1.DummyPrefab;
            this.suitItemNull = CCDummyObjects_1.DummyPrefab;
            this.stayTunedNode = CCDummyObjects_1.DummyNode;
        }
        getIntroductionIconNode() {
            return this.introductionIconNode;
        }
        getIntroductionNode() {
            return this.introductionNode;
        }
        getRolePortrait() {
            return this.rolePortrait;
        }
        getRolePortraitLock() {
            return this.rolePortraitLock;
        }
        getRolePortraitLockLabel() {
            return this.rolePortraitLockLabel;
        }
        getWearBtn() {
            return this.wearBtn;
        }
        getShareBtn() {
            return this.shareBtn;
        }
        getSuitButtons() {
            return this.suitButtons;
        }
        getSuitButtonSprites() {
            return this.suitButtonSprites;
        }
        getRedDotNodes() {
            return this.redDotNodes;
        }
        getScrollViewContentNode() {
            return this.scrollViewContentNode;
        }
        getSuitItem() {
            return this.suitItem;
        }
        getSuitItemNull() {
            return this.suitItemNull;
        }
        getStayTunedNode() {
            return this.stayTunedNode;
        }
        onWearBtnClick() {
            this._props.onWearBtnClickCallBack();
        }
        onShareBtnClick() {
            this._props.onShareBtnClickCallBack();
        }
        onTabBtnClick(event, customEventData) {
            let suitId = Number(customEventData);
            this._props.onTabBtnClickCallBack(suitId);
        }
        onBackBtnClick() {
            this._props.onBackBtnClickCallBack();
        }
    };
    __decorate([
        property({ type: cc.Node, displayName: "Introduction icon node" })
    ], WardrobeViewImpl.prototype, "introductionIconNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Introduction node" })
    ], WardrobeViewImpl.prototype, "introductionNode", void 0);
    __decorate([
        property({ type: cc.Sprite, displayName: "Role Portrait" })
    ], WardrobeViewImpl.prototype, "rolePortrait", void 0);
    __decorate([
        property({ type: cc.Sprite, displayName: "Role Portrait lock" })
    ], WardrobeViewImpl.prototype, "rolePortraitLock", void 0);
    __decorate([
        property({ type: cc.Label, displayName: "Role Portrait lock label" })
    ], WardrobeViewImpl.prototype, "rolePortraitLockLabel", void 0);
    __decorate([
        property({ type: cc.Button, displayName: "Wear button" })
    ], WardrobeViewImpl.prototype, "wearBtn", void 0);
    __decorate([
        property({ type: cc.Button, displayName: "Share button" })
    ], WardrobeViewImpl.prototype, "shareBtn", void 0);
    __decorate([
        property({ type: [cc.Button], displayName: "Suit buttons" })
    ], WardrobeViewImpl.prototype, "suitButtons", void 0);
    __decorate([
        property({ type: [cc.SpriteFrame], displayName: "Suit button sprites" })
    ], WardrobeViewImpl.prototype, "suitButtonSprites", void 0);
    __decorate([
        property({ type: [cc.Node], displayName: "Suit button reddot nodes" })
    ], WardrobeViewImpl.prototype, "redDotNodes", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "ScrollView content node" })
    ], WardrobeViewImpl.prototype, "scrollViewContentNode", void 0);
    __decorate([
        property({ type: cc.Prefab, displayName: "Suit item" })
    ], WardrobeViewImpl.prototype, "suitItem", void 0);
    __decorate([
        property({ type: cc.Prefab, displayName: "Suit item null" })
    ], WardrobeViewImpl.prototype, "suitItemNull", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Stay tuned node" })
    ], WardrobeViewImpl.prototype, "stayTunedNode", void 0);
    WardrobeViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(WardrobeView_1.WardrobeViewType, "prefab/ui/bedroomCat/WardrobeView")
    ], WardrobeViewImpl);
    return WardrobeViewImpl;
})();
exports.WardrobeViewImpl = WardrobeViewImpl;

cc._RF.pop();