b90ae014-bbbe-4032-9724-94b8e772872f.js 10.1 KB
"use strict";
cc._RF.push(module, 'b90aeAUu75AMpcklLjncocv', 'BedroomViewImpl');
// script/game/ui/view/impl/bedroom/BedroomViewImpl.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.BedroomViewImpl = void 0;
const CCDummyObjects_1 = require("../../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const BedroomView_1 = require("../../type/BedroomView");
const { ccclass, property } = cc._decorator;
let BedroomViewImpl = /** @class */ (() => {
    let BedroomViewImpl = class BedroomViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.itemNodes = [];
            this.topBtnRootNodes = [];
            this.topBtnNodes = [];
            this.topBtnNumberLabels = [];
            this.introductionNodes = [];
            this.introductionIcons = [];
            this.introductionNameLabels = [];
            this.introductionLabels = [];
            this.catButtonSkeletonNode = CCDummyObjects_1.DummyNode;
            this.catBubbleNode = CCDummyObjects_1.DummyNode;
            this.catBubbleLabel = CCDummyObjects_1.DummyLabel;
            this.catFeedRootNode = CCDummyObjects_1.DummyNode;
            this.catBlowBtnNode = CCDummyObjects_1.DummyNode;
            this.foodBtnNodes = [];
            this.foodNumberLabels = [];
            this.catLevelLabel = CCDummyObjects_1.DummyLabel;
            this.catExpLabel = CCDummyObjects_1.DummyLabel;
            this.catExpProgressBar = CCDummyObjects_1.DummyProgressBar;
            this.rewardBtnNode = CCDummyObjects_1.DummyNode;
            this.rewardRedDotNode = CCDummyObjects_1.DummyNode;
            this.wardrobeBtnNode = CCDummyObjects_1.DummyNode;
            this.wardrobeRedDotNode = CCDummyObjects_1.DummyNode;
            this.backgroundSpriteFrames = [];
            this.background = CCDummyObjects_1.DummySprite;
            this.changeBgSpriteFrames = [];
            this.changeBackground = CCDummyObjects_1.DummySprite;
        }
        getThisNode() {
            return this.node;
        }
        getItemNodes() {
            return this.itemNodes;
        }
        getTopBtnRootNodes() {
            return this.topBtnRootNodes;
        }
        getTopBtnNodes() {
            return this.topBtnNodes;
        }
        getTopBtnNumberLabels() {
            return this.topBtnNumberLabels;
        }
        getIntroductionNodes() {
            return this.introductionNodes;
        }
        getIntroductionIcons() {
            return this.introductionIcons;
        }
        getIntroductionNameLabels() {
            return this.introductionNameLabels;
        }
        getIntroductionLabels() {
            return this.introductionLabels;
        }
        getCatButtonSkeletonNode() {
            return this.catButtonSkeletonNode;
        }
        getCatBubbleNode() {
            return this.catBubbleNode;
        }
        getCatBubbleLabel() {
            return this.catBubbleLabel;
        }
        getCatFeedRootNode() {
            return this.catFeedRootNode;
        }
        getCatBlowBtnNode() {
            return this.catBlowBtnNode;
        }
        getFoodBtnNodes() {
            return this.foodBtnNodes;
        }
        getFoodNumberLabels() {
            return this.foodNumberLabels;
        }
        getCatLevelLabel() {
            return this.catLevelLabel;
        }
        getCatExpLabel() {
            return this.catExpLabel;
        }
        getCatExpProgressBar() {
            return this.catExpProgressBar;
        }
        getRewardBtnNode() {
            return this.rewardBtnNode;
        }
        getRewardRedDotNode() {
            return this.rewardRedDotNode;
        }
        getWardrobeBtnNode() {
            return this.wardrobeBtnNode;
        }
        getWardrobeRedDotNode() {
            return this.wardrobeRedDotNode;
        }
        getBackgroundSpriteFrames() {
            return this.backgroundSpriteFrames;
        }
        getBackground() {
            return this.background;
        }
        getChangeBgSpriteFrames() {
            return this.changeBgSpriteFrames;
        }
        getChangeBackground() {
            return this.changeBackground;
        }
        onClickItem(event, customEventData) {
            let itemId = Number(customEventData);
            this._props.onClickItem(itemId);
        }
        onBackBtnClickCallBack() {
            this._props.onBackBtnClickCallBack();
        }
        onClickTopAddBtn(event, customEventData) {
            let foodId = Number(customEventData);
            this._props.onClickTopAddBtn(foodId);
        }
        onClickRewardBtn() {
            this._props.onRewardBtnClickCallBack();
        }
        onClickWardrobeBtn() {
            this._props.onWardrobeBtnClickCallBack();
        }
        onClickCatButton() {
            this._props.onCatBtnClickCallBack();
        }
        onClickBowlBtn() {
            this._props.onBowlBtnClickCallBack();
        }
        onClickFoodBtn(event, customEventData) {
            let foodId = Number(customEventData);
            this._props.onFoodBtnClickCallBack(foodId);
        }
        onClickFeedCloseBtn() {
            this._props.onFeedCloseBtnClickCallBack();
        }
        onClickChangeBackgroundBtn() {
            this._props.onChangeBackgroundBtnClickCallBack();
        }
    };
    __decorate([
        property({ type: [cc.Node], displayName: "Item Nodes" })
    ], BedroomViewImpl.prototype, "itemNodes", void 0);
    __decorate([
        property({ type: [cc.Node], displayName: "Top button root nodes" })
    ], BedroomViewImpl.prototype, "topBtnRootNodes", void 0);
    __decorate([
        property({ type: [cc.Node], displayName: "Top button Nodes" })
    ], BedroomViewImpl.prototype, "topBtnNodes", void 0);
    __decorate([
        property({ type: [cc.Label], displayName: "Top button number labels" })
    ], BedroomViewImpl.prototype, "topBtnNumberLabels", void 0);
    __decorate([
        property({ type: [cc.Node], displayName: "Introduction Nodes" })
    ], BedroomViewImpl.prototype, "introductionNodes", void 0);
    __decorate([
        property({ type: [cc.Sprite], displayName: "Introduction icons" })
    ], BedroomViewImpl.prototype, "introductionIcons", void 0);
    __decorate([
        property({ type: [cc.Label], displayName: "Introduction name labels" })
    ], BedroomViewImpl.prototype, "introductionNameLabels", void 0);
    __decorate([
        property({ type: [cc.Label], displayName: "Introduction labels" })
    ], BedroomViewImpl.prototype, "introductionLabels", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Cat button skeleton node" })
    ], BedroomViewImpl.prototype, "catButtonSkeletonNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Cat bubble node" })
    ], BedroomViewImpl.prototype, "catBubbleNode", void 0);
    __decorate([
        property({ type: cc.Label, displayName: "Cat bubble Label" })
    ], BedroomViewImpl.prototype, "catBubbleLabel", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Cat level label" })
    ], BedroomViewImpl.prototype, "catFeedRootNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Cat blow button node" })
    ], BedroomViewImpl.prototype, "catBlowBtnNode", void 0);
    __decorate([
        property({ type: [cc.Node], displayName: "Feed button Nodes" })
    ], BedroomViewImpl.prototype, "foodBtnNodes", void 0);
    __decorate([
        property({ type: [cc.Label], displayName: "Food number labels" })
    ], BedroomViewImpl.prototype, "foodNumberLabels", void 0);
    __decorate([
        property({ type: cc.Label, displayName: "Cat level label" })
    ], BedroomViewImpl.prototype, "catLevelLabel", void 0);
    __decorate([
        property({ type: cc.Label, displayName: "Cat exp label" })
    ], BedroomViewImpl.prototype, "catExpLabel", void 0);
    __decorate([
        property({ type: cc.ProgressBar, displayName: "Cat exp progressBar" })
    ], BedroomViewImpl.prototype, "catExpProgressBar", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Reward button node" })
    ], BedroomViewImpl.prototype, "rewardBtnNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Reward reddot node" })
    ], BedroomViewImpl.prototype, "rewardRedDotNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Wardrobe button node" })
    ], BedroomViewImpl.prototype, "wardrobeBtnNode", void 0);
    __decorate([
        property({ type: cc.Node, displayName: "Wardrobe reddot node" })
    ], BedroomViewImpl.prototype, "wardrobeRedDotNode", void 0);
    __decorate([
        property({ type: [cc.SpriteFrame], displayName: "Background spriteFrames" })
    ], BedroomViewImpl.prototype, "backgroundSpriteFrames", void 0);
    __decorate([
        property({ type: cc.Sprite, displayName: "Background sprite" })
    ], BedroomViewImpl.prototype, "background", void 0);
    __decorate([
        property({ type: [cc.SpriteFrame], displayName: "ChangeBg spriteFrames" })
    ], BedroomViewImpl.prototype, "changeBgSpriteFrames", void 0);
    __decorate([
        property({ type: cc.Sprite, displayName: "ChangeBackground sprite" })
    ], BedroomViewImpl.prototype, "changeBackground", void 0);
    BedroomViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(BedroomView_1.BedroomViewType, "prefab/ui/BedroomView")
    ], BedroomViewImpl);
    return BedroomViewImpl;
})();
exports.BedroomViewImpl = BedroomViewImpl;

cc._RF.pop();