2c4c8d95-5b6f-47f0-8dea-638601f5be33.js
5.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
"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();