Commit 02cd8f68 by 张树文

删除不需要的

1 parent d6e06d51
Showing with 217 additions and 2139 deletions
{
"ver": "1.2.7",
"uuid": "66d3171e-9b5e-40a6-b3aa-80205f9c7cd1",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "12b3167a-06e9-44bc-aaf4-99c7e9a22f97",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
import { ResUtils } from "simba-cc-resutils";
import { ConfigManager } from "simba-config-manager";
import { SDK } from "simba-sdk";
import { DeepReadonlyObject } from "simba-utils";
import { createPresenter, Presenter } from "../../../common/classbase/PresenterBase";
import { GameConstData } from "../../../common/gameplay/gamedata/GameConstData";
import { UIManager } from "../../../common/gameplay/managers/UIManager";
import { IItemTbl, itemTbl } from "../../../config/ItemTbl";
import GameCenter from "../../../cooperation/script/GameCenter";
import { channel, GameConfig } from "../../../GameConfig";
import GameDotMgr from "../../GameDotMgr";
import { GameModelManager } from "../../model/GameModelManager";
import { UnlockItemModelManager } from "../../model/UnlockItemModelManager";
import UnlockSpecialPlotEventManager from "../../model/UnlockSpecialPlotEventManager";
import { UnlockSpecialPlotModelManager } from "../../model/UnlockSpecialPlotModelManager";
import { RegPresenter } from "../PresenterCCViewFactory";
import { ItemIntroductionView, ItemIntroductionViewProps, ItemIntroductionViewType } from "../view/type/ItemIntroductionView";
import { SpecialPlotViewProps } from "../view/type/SpecialPlotView";
import SpecialPlotViewPresenter from "./SpecialPlotViewPresenter";
@RegPresenter(ItemIntroductionViewType)
export default class ItemIntroductionViewPresenter extends Presenter<ItemIntroductionViewProps, ItemIntroductionView>
{
static uuid = "ItemIntroductionViewPresenter";
private _viewProps: ItemIntroductionViewProps;
private specialPresenter: SpecialPlotViewPresenter | undefined = undefined;
constructor() {
super();
}
onOpen(props: ItemIntroductionViewProps) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.showItemSpr = this.showItemSpr;
this._viewProps.onSpecialPlotBtnClick = this.onSpecialPlotClickCallBack;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this.view.setProps(this._viewProps);
this.onShow();
createPresenter(SpecialPlotViewPresenter).then((presenter) => {
this.specialPresenter = presenter;
});
}
onShow() {
super.onShow();
this.showItemSpr(this._viewProps.itemId);
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
showItemSpr = async (itemId: number) => {
try {
let cfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;
if (itemId) {
cfg = ConfigManager.getConfig(itemTbl, itemId);
if (cfg) {
//如果没有模糊图,那么直接展示简介图
if (cfg.foggy === 0) {
UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path: string = GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
//如果有模糊图,那么就判断是否已经解锁了清晰的简介图
else {
let unlockedIntroduction = false;
let unlockedIntroductionItems = UnlockItemModelManager.unlockedIntroductionItems;
for (let i = 0; i < unlockedIntroductionItems.length; i++) {
if (itemId == unlockedIntroductionItems[i]) {
unlockedIntroduction = true;
}
}
if (!unlockedIntroduction) {
let path: string = GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.foggyPicture;
let itemSpriteFrame = await ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
} else {
UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path: string = GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
}
}
}
this.updateSpecialPlotBtnRedDotStatus();
} catch (error) {
console.error(error);
}
}
onSpecialPlotClickCallBack = () => {
let itemCfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;
itemCfg = ConfigManager.getConfig(itemTbl, this._viewProps.itemId);
let unlockedSpecialPlots = UnlockSpecialPlotModelManager.unlockedSpecialPlotIdByItemId(this._viewProps.itemId);
if (itemCfg) {
let unlockedSpecialPlot = false;
if (unlockedSpecialPlots.length > 0) {
unlockedSpecialPlot = true;
}
if (unlockedSpecialPlot) {
this.openSpecialPlotView(this._viewProps.itemId, unlockedSpecialPlots);
} else {
UIManager.showToast(itemCfg.toastMsg);
return;
}
}
this.view.close();
}
openSpecialPlotView(itemId: number, specialPlotIds: number[]) {
if (this.specialPresenter) {
let temp: SpecialPlotViewProps = {
itemId: itemId,
specialPlotIds: specialPlotIds,
onLeftBtnClick: () => { },
onRightBtnClick: () => { },
createGameClubBtn: () => { },
onShopBtnClick: () => { },
onCloseBtnClick: () => { }
};
this.specialPresenter.open(this.view.getContainer(), temp);
}
}
onShopBtnClickCallBack = () => {
GameDotMgr.getInstance().dotClickUI("shop_btn_introduction");
let type = GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager.getYouZanShopUrlByType(type);
if (link) {
SDK.openProgramV2(GameConfig.youZanShopAppId, link);
}
}
} else if (channel == "android") {
if (type) {
let link = GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager.jumpToTaobaoShop(link);
}
}
} else {
UIManager.showToast("该功能在当前平台不可使用");
}
}
updateSpecialPlotBtnRedDotStatus() {
this.view.showSpecialPlotBtnRedDot(UnlockSpecialPlotEventManager.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
}
{
"ver": "1.0.8",
"uuid": "4c1e1ec2-e61e-474d-b4e2-9268b8a524a5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { ConfigManager } from "simba-config-manager";
import { SDK } from "simba-sdk";
import { DeepReadonlyObject } from "simba-utils";
import { Presenter } from "../../../common/classbase/PresenterBase";
import { UIManager } from "../../../common/gameplay/managers/UIManager";
import { IStoryTbl, storyTbl } from "../../../config/StoryTbl";
import GameCenter from "../../../cooperation/script/GameCenter";
import { channel, GameConfig } from "../../../GameConfig";
import GameDotMgr from "../../GameDotMgr";
import { GameModelManager } from "../../model/GameModelManager";
import UnlockSpecialPlotEventManager from "../../model/UnlockSpecialPlotEventManager";
import { UnlockSpecialPlotModelManager } from "../../model/UnlockSpecialPlotModelManager";
import { RegPresenter } from "../PresenterCCViewFactory";
import { SpecialPlotViewType, SpecialPlotViewProps, SpecialPlotView } from "../view/type/SpecialPlotView";
@RegPresenter(SpecialPlotViewType)
export default class SpecialPlotViewPresenter extends Presenter<SpecialPlotViewProps, SpecialPlotView>
{
static uuid = "SpecialPlotViewPresenter";
private _viewProps: SpecialPlotViewProps;
private _value: number = 0;
private _cfg: DeepReadonlyObject<IStoryTbl> | undefined = undefined;
constructor() {
super();
}
onOpen(props: SpecialPlotViewProps) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.onLeftBtnClick = this.onLeftBtnClickCallBack;
this._viewProps.onRightBtnClick = this.onRightBtnClickCallBack;
this._viewProps.createGameClubBtn = this.createGameClubBtn;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this._viewProps.onCloseBtnClick = this.onCloseBtnClick;
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
this.createGameClubBtn();
this.showGameClubBtn();
}
onClose() {
super.onClose();
SDK.destroyGameClubButton();
}
onEnterBackground() {
super.onEnterBackground();
this.hideGameClubBtn();
}
onEnterForeground() {
super.onEnterForeground();
this.showGameClubBtn();
}
showGameClubBtn() {
SDK.showGameClubButton();
}
hideGameClubBtn() {
SDK.hideGameClubButton();
}
showSpecialPlot(specialPlotId: number) {
try {
if (specialPlotId) {
this._cfg = ConfigManager.getConfig(storyTbl, specialPlotId);
if (this._cfg) {
this.view.getSpecialPlotTitleNode()!.getComponent(cc.Label).string = this._cfg.title;
let cfgStr: string[] = this._cfg.content.split("%%");
let specialPlotNodeStr = "";
for (let i = 0; i < cfgStr.length; i++) {
specialPlotNodeStr = specialPlotNodeStr + cfgStr[i] + "\n";
}
this.view.getSpecialPlotNode()!.getComponent(cc.Label).string = specialPlotNodeStr;
UnlockSpecialPlotModelManager.saveClickedSpecialPlotIdByItemIdToGameRecord(specialPlotId);
}
this.updateLeftOrRightBtnStatus();
this.updateRightBtnRedDotStatus();
this.view.getSpecialPlotScrollView().scrollToTop();
}
} catch (error) {
console.error(error);
}
}
updateLeftOrRightBtnStatus() {
//处理左按钮显隐,右按钮暂不处理
if (this._value <= 0) {
this.view.showLeftBtn(false);
} else {
this.view.showLeftBtn(true);
}
}
onLeftBtnClickCallBack = () => {
if (this._value <= 0) {
return;
} else {
this._value -= 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
}
onRightBtnClickCallBack = () => {
if (this._value >= this._viewProps.specialPlotIds.length - 1) {
UIManager.showToast(this._cfg!.toastMsg);
return;
} else {
this._value += 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
}
createGameClubBtn = () => {
this.view.getViewNode()!.getComponent(cc.Widget).updateAlignment();
let info = SDK.systemInfo.displayInfo;
let aspect = info.windowSize.height / cc.view.getVisibleSize().height;
this.view.getViewNode()!.getComponent(cc.Widget).updateAlignment();
let pos = this.view.getForumBtnNode()!.convertToWorldSpaceAR(cc.v2(0, 0));
pos.x += cc.view.getViewportRect().x / cc.view.getScaleX();
let xPos = pos.x * aspect;
let yPos = info.windowSize.height - pos.y * aspect;
let width = this.view.getForumBtnNode()!.width * aspect;
let height = this.view.getForumBtnNode()!.height * aspect;
let left = xPos - width / 2;
let top = yPos - height / 2;
SDK.createGameClubButton({
type: "text",
text: "",
style: {
left: left,
top: top,
width: width,
height: height
},
icon: "green"
});
}
onShopBtnClickCallBack = () => {
GameDotMgr.getInstance().dotClickUI("shop_btn_specoalPlot");
let type = GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager.getYouZanShopUrlByType(type);
if (link) {
SDK.openProgramV2(GameConfig.youZanShopAppId, link);
}
}
} else if (channel == "android") {
if (type) {
let link = GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager.jumpToTaobaoShop(link);
}
}
} else {
UIManager.showToast("该功能在当前平台不可使用");
}
}
onCloseBtnClick = () => {
this.view.close();
GameModelManager.BackToBedRoom.emit();
}
updateRightBtnRedDotStatus() {
this.view.showRedDot(UnlockSpecialPlotEventManager.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
}
{
"ver": "1.0.8",
"uuid": "75c442d0-a44a-477f-80a4-2570d6cb45dc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { DummyButton, DummyLabel, DummyNode, DummySprite } from "../../../../../common/CCDummyObjects";
import { CCPureView, CCView } from "../../../../../common/classbase/CCViewBase";
import { RegView } from "../../../PresenterCCViewFactory";
import { ItemIntroductionView, ItemIntroductionViewProps, ItemIntroductionViewType } from "../../type/ItemIntroductionView";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(ItemIntroductionViewType, "prefab/ui/ItemIntroductionView")
export class ItemIntroductionViewImpl extends CCPureView<ItemIntroductionViewProps> implements ItemIntroductionView {
@property(cc.Sprite)
private itemSprite = DummySprite;
@property(cc.Node)
private redDotNode = DummyNode;
private _contentContainer: CCView;
onLoad() {
this._contentContainer = this.node.parent.addComponent(CCView);
}
getItemSpriteNode(): cc.Sprite {
return this.itemSprite;
}
getContainer(): CCView {
return this._contentContainer;
}
onSpecialPlotBtnClickCallBack() {
this._props.onSpecialPlotBtnClick();
}
onShopBtnClickCallBack() {
this._props.onShopBtnClick();
}
onCloseClickCallBack() {
this.close();
}
showSpecialPlotBtnRedDot(isShow: boolean) {
this.redDotNode.active = isShow;
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "a7e179e4-e522-4225-880b-7ca696cbd5b3",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { DummyNode, DummyScrollView } from "../../../../../common/CCDummyObjects";
import { CCPureView } from "../../../../../common/classbase/CCViewBase";
import { RegView } from "../../../PresenterCCViewFactory";
import { SpecialPlotView, SpecialPlotViewProps, SpecialPlotViewType } from "../../type/SpecialPlotView";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(SpecialPlotViewType, "prefab/ui/SpecialPlotView")
export class SpecialPlotViewImpl extends CCPureView<SpecialPlotViewProps> implements SpecialPlotView {
@property(cc.ScrollView)
private specialPlotScrollView = DummyScrollView;
@property(cc.Node)
private specialPlotTitleNode = DummyNode;
@property(cc.Node)
private specialPlotNode = DummyNode;
@property(cc.Node)
private leftBtn = DummyNode;
@property(cc.Node)
private rightBtn = DummyNode;
@property(cc.Node)
private rightBtnRedDot = DummyNode;
@property({ type: cc.Node, tooltip: "论坛按钮" })
private forumBtn: cc.Node = DummyNode;
@property({ type: cc.Node, tooltip: "商城按钮" })
private shopBtn: cc.Node = DummyNode;
onLoad() {
}
getSpecialPlotScrollView(): cc.ScrollView {
return this.specialPlotScrollView;
}
getSpecialPlotTitleNode(): cc.Node {
return this.specialPlotTitleNode;
}
getSpecialPlotNode(): cc.Node {
return this.specialPlotNode;
}
onLeftBtnClickCallBack() {
this._props.onLeftBtnClick();
}
onRightBtnClickCallBack() {
this._props.onRightBtnClick();
}
showLeftBtn(isShow: boolean) {
this.leftBtn.active = isShow;
}
showRightBtn(isShow: boolean) {
this.rightBtn.active = isShow;
}
getViewNode(): cc.Node {
return this.node;
}
getForumBtnNode(): cc.Node {
return this.forumBtn;
}
onCloseClickCallBack() {
this._props.onCloseBtnClick();
}
onShopBtnClickCallBack() {
this._props.onShopBtnClick();
}
showRedDot(isShow: boolean) {
this.rightBtnRedDot.active = isShow;
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "02025066-b348-4cf3-ad25-ce300d1c5a34",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { CCView } from "../../../../common/classbase/CCViewBase";
import { PureView } from "../../../../common/classbase/ViewBase";
export interface ItemIntroductionViewProps {
itemId: number;
showItemSpr: (itemId: number) => void;
onSpecialPlotBtnClick: () => void;
onShopBtnClick: () => void;
}
type ItemIntroductionViewBase = PureView<ItemIntroductionViewProps>;
export interface ItemIntroductionView extends ItemIntroductionViewBase {
getItemSpriteNode: () => cc.Sprite;
getContainer: () => CCView;
showSpecialPlotBtnRedDot: (isShow: boolean) => void;
}
export const ItemIntroductionViewType = "ItemIntroductionView";
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "15701a91-195f-4948-ba9b-aea3c296111a",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { PureView } from "../../../../common/classbase/ViewBase";
type onLeftBtnClickCallBack = () => void;
type onRightBtnClickCallBack = () => void;
type createGameClubBtn = () => void;
type onShopBtnClickCallBack = () => void;
type onCloseBtnClick = () => void;
export interface SpecialPlotViewProps {
itemId: number;
specialPlotIds: number[];
onLeftBtnClick: onLeftBtnClickCallBack;
onRightBtnClick: onRightBtnClickCallBack;
createGameClubBtn: createGameClubBtn;
onShopBtnClick: onShopBtnClickCallBack;
onCloseBtnClick: onCloseBtnClick;
}
type SpecialPlotViewBase = PureView<SpecialPlotViewProps>;
export interface SpecialPlotView extends SpecialPlotViewBase {
getSpecialPlotScrollView: () => cc.ScrollView;
getSpecialPlotTitleNode: () => cc.Node | undefined;
getSpecialPlotNode: () => cc.Node | undefined;
showLeftBtn: (isShow: boolean) => void;
showRightBtn: (isShow: boolean) => void;
getViewNode: () => cc.Node | undefined;
getForumBtnNode: () => cc.Node | undefined;
showRedDot: (isShow: boolean) => void;
}
export const SpecialPlotViewType = "SpecialPlotView";
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "3aa5b286-ed58-49e7-af39-81b2b0faef92",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
"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._R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;QACzB,CAAC;QAED,oBAAoB;YAChB,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;QAClC,CAAC;QAED,sBAAsB;YAClB,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACjC,CAAC;QAED,UAAU,CAAC,MAAe;YACtB,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC;QACxC,CAAC;KACJ,CAAA;IAlEG;QADC,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC;sEACwB;IAEhD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;qEACuB;IAEzC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;gEACkB;IAEpC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;wDACU;IAE5B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;yDACW;IAE7B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+DACiB;IAEnC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;yDACP;IAEtC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;wDACR;IAjB5B,mBAAmB;QAF/B,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OAC7C,mBAAmB,CAqE/B;IAAD,0BAAC;KAAA;AArEY,kDAAmB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode, DummyScrollView } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { SpecialPlotView, SpecialPlotViewProps, SpecialPlotViewType } from \"../../type/SpecialPlotView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(SpecialPlotViewType, \"prefab/ui/SpecialPlotView\")\nexport class SpecialPlotViewImpl extends CCPureView<SpecialPlotViewProps> implements SpecialPlotView {\n\n @property(cc.ScrollView)\n private specialPlotScrollView = DummyScrollView;\n @property(cc.Node)\n private specialPlotTitleNode = DummyNode;\n @property(cc.Node)\n private specialPlotNode = DummyNode;\n @property(cc.Node)\n private leftBtn = DummyNode;\n @property(cc.Node)\n private rightBtn = DummyNode;\n @property(cc.Node)\n private rightBtnRedDot = DummyNode;\n @property({ type: cc.Node, tooltip: \"论坛按钮\" })\n private forumBtn: cc.Node = DummyNode;\n @property({ type: cc.Node, tooltip: \"商城按钮\" })\n private shopBtn: cc.Node = DummyNode;\n\n onLoad() {\n }\n\n getSpecialPlotScrollView(): cc.ScrollView {\n return this.specialPlotScrollView;\n }\n\n getSpecialPlotTitleNode(): cc.Node {\n return this.specialPlotTitleNode;\n }\n\n getSpecialPlotNode(): cc.Node {\n return this.specialPlotNode;\n }\n\n onLeftBtnClickCallBack() {\n this._props.onLeftBtnClick();\n }\n\n onRightBtnClickCallBack() {\n this._props.onRightBtnClick();\n }\n\n showLeftBtn(isShow: boolean) {\n this.leftBtn.active = isShow;\n }\n\n showRightBtn(isShow: boolean) {\n this.rightBtn.active = isShow;\n }\n\n getViewNode(): cc.Node {\n return this.node;\n }\n\n getForumBtnNode(): cc.Node {\n return this.forumBtn;\n }\n\n onCloseClickCallBack() {\n this._props.onCloseBtnClick();\n }\n\n onShopBtnClickCallBack() {\n this._props.onShopBtnClick();\n }\n\n showRedDot(isShow: boolean) {\n this.rightBtnRedDot.active = isShow;\n }\n}"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '15701qRGV9JSLqbrqPClhEa', 'ItemIntroductionView');
// script/game/ui/view/type/ItemIntroductionView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ItemIntroductionViewType = void 0;
exports.ItemIntroductionViewType = "ItemIntroductionView";
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/ItemIntroductionView.ts"],"names":[],"mappings":";;;;;;;AAkBa,QAAA,wBAAwB,GAAG,sBAAsB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { CCView } from \"../../../../common/classbase/CCViewBase\";\nimport { PureView } from \"../../../../common/classbase/ViewBase\";\n\nexport interface ItemIntroductionViewProps {\n itemId: number;\n showItemSpr: (itemId: number) => void;\n onSpecialPlotBtnClick: () => void;\n onShopBtnClick: () => void;\n}\n\ntype ItemIntroductionViewBase = PureView<ItemIntroductionViewProps>;\n\nexport interface ItemIntroductionView extends ItemIntroductionViewBase {\n getItemSpriteNode: () => cc.Sprite;\n getContainer: () => CCView;\n showSpecialPlotBtnRedDot: (isShow: boolean) => void;\n}\n\nexport const ItemIntroductionViewType = \"ItemIntroductionView\";"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '3aa5bKG7VhJ5685gbKw+u+S', 'SpecialPlotView');
// script/game/ui/view/type/SpecialPlotView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecialPlotViewType = void 0;
exports.SpecialPlotViewType = "SpecialPlotView";
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/SpecialPlotView.ts"],"names":[],"mappings":";;;;;;;AA8Ba,QAAA,mBAAmB,GAAG,iBAAiB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\n\ntype onLeftBtnClickCallBack = () => void;\ntype onRightBtnClickCallBack = () => void;\ntype createGameClubBtn = () => void;\ntype onShopBtnClickCallBack = () => void;\ntype onCloseBtnClick = () => void;\nexport interface SpecialPlotViewProps {\n itemId: number;\n specialPlotIds: number[];\n onLeftBtnClick: onLeftBtnClickCallBack;\n onRightBtnClick: onRightBtnClickCallBack;\n createGameClubBtn: createGameClubBtn;\n onShopBtnClick: onShopBtnClickCallBack;\n onCloseBtnClick: onCloseBtnClick;\n}\n\ntype SpecialPlotViewBase = PureView<SpecialPlotViewProps>;\n\nexport interface SpecialPlotView extends SpecialPlotViewBase {\n getSpecialPlotScrollView: () => cc.ScrollView;\n getSpecialPlotTitleNode: () => cc.Node | undefined;\n getSpecialPlotNode: () => cc.Node | undefined;\n showLeftBtn: (isShow: boolean) => void;\n showRightBtn: (isShow: boolean) => void;\n getViewNode: () => cc.Node | undefined;\n getForumBtnNode: () => cc.Node | undefined;\n showRedDot: (isShow: boolean) => void;\n}\n\nexport const SpecialPlotViewType = \"SpecialPlotView\";"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '4c1e17C5h5HTbTikmi4pSSl', 'ItemIntroductionViewPresenter');
// script/game/ui/presenter/ItemIntroductionViewPresenter.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 });
const simba_cc_resutils_1 = require("simba-cc-resutils");
const simba_config_manager_1 = require("simba-config-manager");
const simba_sdk_1 = require("simba-sdk");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const GameConstData_1 = require("../../../common/gameplay/gamedata/GameConstData");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const ItemTbl_1 = require("../../../config/ItemTbl");
const GameConfig_1 = require("../../../GameConfig");
const GameDotMgr_1 = require("../../GameDotMgr");
const GameModelManager_1 = require("../../model/GameModelManager");
const UnlockItemModelManager_1 = require("../../model/UnlockItemModelManager");
const UnlockSpecialPlotEventManager_1 = require("../../model/UnlockSpecialPlotEventManager");
const UnlockSpecialPlotModelManager_1 = require("../../model/UnlockSpecialPlotModelManager");
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const ItemIntroductionView_1 = require("../view/type/ItemIntroductionView");
const SpecialPlotViewPresenter_1 = require("./SpecialPlotViewPresenter");
let ItemIntroductionViewPresenter = /** @class */ (() => {
let ItemIntroductionViewPresenter = class ItemIntroductionViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this.specialPresenter = undefined;
this.showItemSpr = async (itemId) => {
try {
let cfg = undefined;
if (itemId) {
cfg = simba_config_manager_1.ConfigManager.getConfig(ItemTbl_1.itemTbl, itemId);
if (cfg) {
//如果没有模糊图,那么直接展示简介图
if (cfg.foggy === 0) {
UnlockItemModelManager_1.UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
//如果有模糊图,那么就判断是否已经解锁了清晰的简介图
else {
let unlockedIntroduction = false;
let unlockedIntroductionItems = UnlockItemModelManager_1.UnlockItemModelManager.unlockedIntroductionItems;
for (let i = 0; i < unlockedIntroductionItems.length; i++) {
if (itemId == unlockedIntroductionItems[i]) {
unlockedIntroduction = true;
}
}
if (!unlockedIntroduction) {
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.foggyPicture;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
else {
UnlockItemModelManager_1.UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
}
}
}
this.updateSpecialPlotBtnRedDotStatus();
}
catch (error) {
console.error(error);
}
};
this.onSpecialPlotClickCallBack = () => {
let itemCfg = undefined;
itemCfg = simba_config_manager_1.ConfigManager.getConfig(ItemTbl_1.itemTbl, this._viewProps.itemId);
let unlockedSpecialPlots = UnlockSpecialPlotModelManager_1.UnlockSpecialPlotModelManager.unlockedSpecialPlotIdByItemId(this._viewProps.itemId);
if (itemCfg) {
let unlockedSpecialPlot = false;
if (unlockedSpecialPlots.length > 0) {
unlockedSpecialPlot = true;
}
if (unlockedSpecialPlot) {
this.openSpecialPlotView(this._viewProps.itemId, unlockedSpecialPlots);
}
else {
UIManager_1.UIManager.showToast(itemCfg.toastMsg);
return;
}
}
this.view.close();
};
this.onShopBtnClickCallBack = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_introduction");
let type = GameModelManager_1.GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(type);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
}
else if (GameConfig_1.channel == "android") {
if (type) {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
}
onOpen(props) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.showItemSpr = this.showItemSpr;
this._viewProps.onSpecialPlotBtnClick = this.onSpecialPlotClickCallBack;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this.view.setProps(this._viewProps);
this.onShow();
PresenterBase_1.createPresenter(SpecialPlotViewPresenter_1.default).then((presenter) => {
this.specialPresenter = presenter;
});
}
onShow() {
super.onShow();
this.showItemSpr(this._viewProps.itemId);
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
openSpecialPlotView(itemId, specialPlotIds) {
if (this.specialPresenter) {
let temp = {
itemId: itemId,
specialPlotIds: specialPlotIds,
onLeftBtnClick: () => { },
onRightBtnClick: () => { },
createGameClubBtn: () => { },
onShopBtnClick: () => { },
onCloseBtnClick: () => { }
};
this.specialPresenter.open(this.view.getContainer(), temp);
}
}
updateSpecialPlotBtnRedDotStatus() {
this.view.showSpecialPlotBtnRedDot(UnlockSpecialPlotEventManager_1.default.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
};
ItemIntroductionViewPresenter.uuid = "ItemIntroductionViewPresenter";
ItemIntroductionViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(ItemIntroductionView_1.ItemIntroductionViewType)
], ItemIntroductionViewPresenter);
return ItemIntroductionViewPresenter;
})();
exports.default = ItemIntroductionViewPresenter;
cc._RF.pop();
\ No newline at end of file
"use strict";
cc._RF.push(module, '75c44LQpEpHf4CkJXDWy0Xc', 'SpecialPlotViewPresenter');
// script/game/ui/presenter/SpecialPlotViewPresenter.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 });
const simba_config_manager_1 = require("simba-config-manager");
const simba_sdk_1 = require("simba-sdk");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const StoryTbl_1 = require("../../../config/StoryTbl");
const GameConfig_1 = require("../../../GameConfig");
const GameDotMgr_1 = require("../../GameDotMgr");
const GameModelManager_1 = require("../../model/GameModelManager");
const UnlockSpecialPlotEventManager_1 = require("../../model/UnlockSpecialPlotEventManager");
const UnlockSpecialPlotModelManager_1 = require("../../model/UnlockSpecialPlotModelManager");
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const SpecialPlotView_1 = require("../view/type/SpecialPlotView");
let SpecialPlotViewPresenter = /** @class */ (() => {
let SpecialPlotViewPresenter = class SpecialPlotViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this._value = 0;
this._cfg = undefined;
this.onLeftBtnClickCallBack = () => {
if (this._value <= 0) {
return;
}
else {
this._value -= 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
};
this.onRightBtnClickCallBack = () => {
if (this._value >= this._viewProps.specialPlotIds.length - 1) {
UIManager_1.UIManager.showToast(this._cfg.toastMsg);
return;
}
else {
this._value += 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
};
this.createGameClubBtn = () => {
this.view.getViewNode().getComponent(cc.Widget).updateAlignment();
let info = simba_sdk_1.SDK.systemInfo.displayInfo;
let aspect = info.windowSize.height / cc.view.getVisibleSize().height;
this.view.getViewNode().getComponent(cc.Widget).updateAlignment();
let pos = this.view.getForumBtnNode().convertToWorldSpaceAR(cc.v2(0, 0));
pos.x += cc.view.getViewportRect().x / cc.view.getScaleX();
let xPos = pos.x * aspect;
let yPos = info.windowSize.height - pos.y * aspect;
let width = this.view.getForumBtnNode().width * aspect;
let height = this.view.getForumBtnNode().height * aspect;
let left = xPos - width / 2;
let top = yPos - height / 2;
simba_sdk_1.SDK.createGameClubButton({
type: "text",
text: "",
style: {
left: left,
top: top,
width: width,
height: height
},
icon: "green"
});
};
this.onShopBtnClickCallBack = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_specoalPlot");
let type = GameModelManager_1.GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(type);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
}
else if (GameConfig_1.channel == "android") {
if (type) {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
this.onCloseBtnClick = () => {
this.view.close();
GameModelManager_1.GameModelManager.BackToBedRoom.emit();
};
}
onOpen(props) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.onLeftBtnClick = this.onLeftBtnClickCallBack;
this._viewProps.onRightBtnClick = this.onRightBtnClickCallBack;
this._viewProps.createGameClubBtn = this.createGameClubBtn;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this._viewProps.onCloseBtnClick = this.onCloseBtnClick;
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
this.createGameClubBtn();
this.showGameClubBtn();
}
onClose() {
super.onClose();
simba_sdk_1.SDK.destroyGameClubButton();
}
onEnterBackground() {
super.onEnterBackground();
this.hideGameClubBtn();
}
onEnterForeground() {
super.onEnterForeground();
this.showGameClubBtn();
}
showGameClubBtn() {
simba_sdk_1.SDK.showGameClubButton();
}
hideGameClubBtn() {
simba_sdk_1.SDK.hideGameClubButton();
}
showSpecialPlot(specialPlotId) {
try {
if (specialPlotId) {
this._cfg = simba_config_manager_1.ConfigManager.getConfig(StoryTbl_1.storyTbl, specialPlotId);
if (this._cfg) {
this.view.getSpecialPlotTitleNode().getComponent(cc.Label).string = this._cfg.title;
let cfgStr = this._cfg.content.split("%%");
let specialPlotNodeStr = "";
for (let i = 0; i < cfgStr.length; i++) {
specialPlotNodeStr = specialPlotNodeStr + cfgStr[i] + "\n";
}
this.view.getSpecialPlotNode().getComponent(cc.Label).string = specialPlotNodeStr;
UnlockSpecialPlotModelManager_1.UnlockSpecialPlotModelManager.saveClickedSpecialPlotIdByItemIdToGameRecord(specialPlotId);
}
this.updateLeftOrRightBtnStatus();
this.updateRightBtnRedDotStatus();
this.view.getSpecialPlotScrollView().scrollToTop();
}
}
catch (error) {
console.error(error);
}
}
updateLeftOrRightBtnStatus() {
//处理左按钮显隐,右按钮暂不处理
if (this._value <= 0) {
this.view.showLeftBtn(false);
}
else {
this.view.showLeftBtn(true);
}
}
updateRightBtnRedDotStatus() {
this.view.showRedDot(UnlockSpecialPlotEventManager_1.default.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
};
SpecialPlotViewPresenter.uuid = "SpecialPlotViewPresenter";
SpecialPlotViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(SpecialPlotView_1.SpecialPlotViewType)
], SpecialPlotViewPresenter);
return SpecialPlotViewPresenter;
})();
exports.default = SpecialPlotViewPresenter;
cc._RF.pop();
\ No newline at end of file
"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();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAuG;AACvG,2EAAgF;AAChF,4EAA0D;AAC1D,0EAA4H;AAE5H,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,uBAAqC;QAAnF;;YAGY,eAAU,GAAG,4BAAW,CAAC;YAEzB,eAAU,GAAG,0BAAS,CAAC;QA+BnC,CAAC;QA3BG,MAAM;YACF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,mBAAM,CAAC,CAAC;QACnE,CAAC;QAED,iBAAiB;YACb,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,YAAY;YACR,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;QAED,6BAA6B;YACzB,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC;QACxC,CAAC;QAED,sBAAsB;YAClB,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACjC,CAAC;QAED,oBAAoB;YAChB,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;QAED,wBAAwB,CAAC,MAAe;YACpC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;QACpC,CAAC;KACJ,CAAA;IAjCG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;gEACa;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;gEACa;IALtB,wBAAwB;QAFpC,OAAO;QACP,gCAAO,CAAC,+CAAwB,EAAE,gCAAgC,CAAC;OACvD,wBAAwB,CAoCpC;IAAD,+BAAC;KAAA;AApCY,4DAAwB","file":"","sourceRoot":"/","sourcesContent":["import { DummyButton, DummyLabel, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView, CCView } from \"../../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { ItemIntroductionView, ItemIntroductionViewProps, ItemIntroductionViewType } from \"../../type/ItemIntroductionView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(ItemIntroductionViewType, \"prefab/ui/ItemIntroductionView\")\nexport class ItemIntroductionViewImpl extends CCPureView<ItemIntroductionViewProps> implements ItemIntroductionView {\n\n @property(cc.Sprite)\n private itemSprite = DummySprite;\n @property(cc.Node)\n private redDotNode = DummyNode;\n\n private _contentContainer: CCView;\n\n onLoad() {\n this._contentContainer = this.node.parent.addComponent(CCView);\n }\n\n getItemSpriteNode(): cc.Sprite {\n return this.itemSprite;\n }\n\n getContainer(): CCView {\n return this._contentContainer;\n }\n\n onSpecialPlotBtnClickCallBack() {\n this._props.onSpecialPlotBtnClick();\n }\n\n onShopBtnClickCallBack() {\n this._props.onShopBtnClick();\n }\n\n onCloseClickCallBack() {\n this.close();\n }\n\n showSpecialPlotBtnRedDot(isShow: boolean) {\n this.redDotNode.active = isShow;\n }\n}"]}
\ No newline at end of file
......@@ -595,8 +595,8 @@
"relativePath": "resources/prefab/HotUpdate.prefab"
},
"bc599480-9fa3-4263-907e-4e3462979b98": {
"asset": 1642668301810,
"meta": 1642668337218,
"asset": 1642731381637,
"meta": 1642732303089,
"relativePath": "resources/prefab/ui"
},
"2797df35-2019-4232-a04b-c9cde8744a7d": {
......@@ -644,11 +644,6 @@
"meta": 1636336778803,
"relativePath": "resources/prefab/ui/GuideView.prefab"
},
"66d3171e-9b5e-40a6-b3aa-80205f9c7cd1": {
"asset": 1636336778805,
"meta": 1636336778805,
"relativePath": "resources/prefab/ui/ItemIntroductionView.prefab"
},
"a29cffee-027f-4e38-b4c4-8faaeecade02": {
"asset": 1642668301815,
"meta": 1642668337307,
......@@ -729,11 +724,6 @@
"meta": 1636336778897,
"relativePath": "resources/prefab/ui/SpecialToast.prefab"
},
"12b3167a-06e9-44bc-aaf4-99c7e9a22f97": {
"asset": 1636336778899,
"meta": 1636336778900,
"relativePath": "resources/prefab/ui/SpecialPlotView.prefab"
},
"7e3e0d01-976c-4367-8a37-dbf4809fcd6c": {
"asset": 1636336778906,
"meta": 1636336778907,
......@@ -4254,11 +4244,6 @@
"meta": 1636336786240,
"relativePath": "script/common/components/SoundEffectButton.ts"
},
"dab514f6-996e-4d09-8893-7dd6720cc80d": {
"asset": 1636336499446,
"meta": 1636336786244,
"relativePath": "script/common/components/SVButton.ts"
},
"8c87d0dc-c3ce-47fe-84e5-0d6a7ed5fa60": {
"asset": 1636336499447,
"meta": 1636336786258,
......@@ -4545,8 +4530,8 @@
"relativePath": "script/game/md5.js"
},
"018a6030-c846-4add-9197-d5f8fef95801": {
"asset": 1642668301974,
"meta": 1642668339271,
"asset": 1642731230462,
"meta": 1642732303089,
"relativePath": "script/game/model"
},
"1e05df6b-92a9-4dbd-ba55-fd849f3329b2": {
......@@ -4585,8 +4570,8 @@
"relativePath": "script/game/network/HttpRequests.ts"
},
"d95793ed-9790-444e-ae18-9e685d899f58": {
"asset": 1642668301976,
"meta": 1642668339806,
"asset": 1642731352914,
"meta": 1642732303091,
"relativePath": "script/game/ui"
},
"af19548b-fcd7-44fd-9640-8c3fa40cb0ae": {
......@@ -4685,8 +4670,8 @@
"relativePath": "script/game/ui/PlaySoundEffectOnEnabled.ts"
},
"0a984f85-123a-4a0b-8307-498c7810c080": {
"asset": 1642668335819,
"meta": 1642668339806,
"asset": 1642731840058,
"meta": 1642732303092,
"relativePath": "script/game/ui/presenter"
},
"83983ea7-5e6e-4eda-b421-1ac148711443": {
......@@ -4694,11 +4679,6 @@
"meta": 1636336788620,
"relativePath": "script/game/ui/presenter/AlertDialogViewPresenter.ts"
},
"3de106d3-3fa4-4f1a-a2c7-f7b708d53b81": {
"asset": 1642668301983,
"meta": 1642668339807,
"relativePath": "script/game/ui/presenter/bedroom"
},
"cc2ae273-cdb2-44c9-bdb2-c7cc3d991f47": {
"asset": 1639979472881,
"meta": 1639979554541,
......@@ -4724,11 +4704,6 @@
"meta": 1636336789276,
"relativePath": "script/game/ui/presenter/GuideViewPresenter.ts"
},
"4c1e1ec2-e61e-474d-b4e2-9268b8a524a5": {
"asset": 1642668301981,
"meta": 1642668340512,
"relativePath": "script/game/ui/presenter/ItemIntroductionViewPresenter.ts"
},
"fb97d446-ef23-4786-b06d-925fb0029ba1": {
"asset": 1636336499479,
"meta": 1636336789306,
......@@ -4840,20 +4815,10 @@
"relativePath": "script/game/ui/view/impl"
},
"1ba45b63-97c1-4e0d-94e6-096366363080": {
"asset": 1642668301987,
"meta": 1642668340872,
"asset": 1642731381660,
"meta": 1642732303092,
"relativePath": "script/game/ui/view/impl/bedroom"
},
"a7e179e4-e522-4225-880b-7ca696cbd5b3": {
"asset": 1636336499491,
"meta": 1636336789985,
"relativePath": "script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl.ts"
},
"02025066-b348-4cf3-ad25-ce300d1c5a34": {
"asset": 1636336499492,
"meta": 1636336790009,
"relativePath": "script/game/ui/view/impl/bedroom/SpecialPlotViewImpl.ts"
},
"093f4e84-92fd-43e0-a556-0abc9863dfc7": {
"asset": 1636336499487,
"meta": 1636336790149,
......@@ -4975,8 +4940,8 @@
"relativePath": "script/game/ui/view/impl/ReviewPlotViewImpl.ts"
},
"7f58c94a-12d9-4db0-a7b6-58999cf8bd82": {
"asset": 1642668301990,
"meta": 1642668341174,
"asset": 1642731381650,
"meta": 1642732303093,
"relativePath": "script/game/ui/view/type"
},
"93d0723a-9266-4ceb-8161-2aa381e433ab": {
......@@ -5029,11 +4994,6 @@
"meta": 1636336790805,
"relativePath": "script/game/ui/view/type/ImagePreviewView.ts"
},
"15701a91-195f-4948-ba9b-aea3c296111a": {
"asset": 1636336499499,
"meta": 1636336790808,
"relativePath": "script/game/ui/view/type/ItemIntroductionView.ts"
},
"71510cbb-076b-4984-b8c8-3f1e9a12140b": {
"asset": 1636336499500,
"meta": 1636336790811,
......@@ -5094,11 +5054,6 @@
"meta": 1636336790864,
"relativePath": "script/game/ui/view/type/SentenceSelectorView.ts"
},
"3aa5b286-ed58-49e7-af39-81b2b0faef92": {
"asset": 1636336499502,
"meta": 1636336790889,
"relativePath": "script/game/ui/view/type/SpecialPlotView.ts"
},
"49fa986d-64fc-4cbb-91d6-7600682581aa": {
"asset": 1636336499503,
"meta": 1636336790891,
......@@ -6214,11 +6169,6 @@
"meta": 1642668337805,
"relativePath": "resources/textures/common/toastbg.png"
},
"75c442d0-a44a-477f-80a4-2570d6cb45dc": {
"asset": 1642668301982,
"meta": 1642668340721,
"relativePath": "script/game/ui/presenter/SpecialPlotViewPresenter.ts"
},
"e3cbf80c-3054-4199-bc41-791397392a49": {
"asset": 1642668337327,
"meta": 1642668337328,
......@@ -7183,5 +7133,10 @@
"asset": 1642731703448,
"meta": 1642731713714,
"relativePath": "script/game/ui/view/impl/AlertDialogViewImpl.ts"
},
"dab514f6-996e-4d09-8893-7dd6720cc80d": {
"asset": 1642732272513,
"meta": 1642732279270,
"relativePath": "script/common/components/SVButton.ts"
}
}
\ No newline at end of file
......@@ -29,31 +29,11 @@
"31f7cacd-9bc7-42ee-b3d2-cbfde83002cc",
"65dd264a-75d7-443b-99f3-537ff0a01c59",
"29d240ad-2239-4093-93b1-eff667d753d1",
"7e3e0d01-976c-4367-8a37-dbf4809fcd6c",
"e3cbf80c-3054-4199-bc41-791397392a49",
"7fba704a-007b-43cf-a585-05349a935476",
"e2cefdd5-1c31-4fc8-85ac-dbd2ea35a494",
"a8737f59-6a1e-4727-9ade-cc421302849a",
"93b269d9-b0e4-4643-9169-0b1062cf990a",
"89d761e1-b9f3-4586-af0c-1a10b4f5106f",
"88aa7b15-efde-4df9-92bb-f544be6d2eb2",
"8be8e248-caa5-4f01-a912-0e4c5e61df40",
"63764aa1-7e47-4e21-a847-809b1d441c66",
"12b3167a-06e9-44bc-aaf4-99c7e9a22f97",
"8c59299e-f7a6-4b18-bb15-ebe2570da3a3",
"707817fb-30bd-49f6-b5fb-23ffa4d672ab",
"dea832f8-800e-40bb-9155-a3759b75be17",
"d73d46ac-877a-459d-96f8-68c75aca6eae",
"3e9a1bd5-8271-43aa-bea0-a55f4f993720",
"33b784bb-bcde-43b1-8caf-f97acc5a7702",
"c6e78e76-41e2-4599-a47f-297d5cfc8ee8",
"66d3171e-9b5e-40a6-b3aa-80205f9c7cd1",
"d8c4a9af-7d3c-4560-886d-65386823f266",
"ff516f17-f278-47d9-befc-ef7bfb4c0459",
"d370020c-eb3c-48b9-b561-b423f8f8c767",
"bd537cf0-df73-4b2a-bb36-40e91d4875e3",
"c408c1b6-ca44-4401-a59c-7feb174a3ef2",
"0c5e5b6a-e3cd-49c8-b1f6-dd38039c121a",
"ba03efa2-3ae0-4cbd-b432-f2e7c851e3df",
"83d8a338-4f49-4490-b663-dd0d9aab473b",
"852fef7e-20c0-4985-a953-ed58665d4388",
......@@ -66,12 +46,6 @@
"e7c677eb-d529-4890-b7fa-cc433fe3d902",
"445430f5-896b-46f2-8d76-7bf942178061",
"6ad1c32a-e62c-4cd3-b2c6-f1c1b30a4660",
"d38ffd80-2c0c-4865-993b-d8ce9f6fe21d",
"b779c231-722a-4460-ac43-333651f1de42",
"fa82047f-ca46-4900-b016-1cbc6fb8dc8a",
"9d521361-150a-4693-a6c3-867dd716037f",
"ece3e714-af31-46df-98f2-b7f0cb6b5bb7",
"4cec8901-8eab-4765-9ec8-af64f3931bf5",
"4458bccc-422f-49f9-98d8-f844a1a3e113",
"419a29ab-4d00-4b65-bb28-23d9a5c70ee3",
"e2f2eb57-9f7c-4789-8854-ecb3c2e08cb2",
......@@ -79,6 +53,33 @@
"ed37faca-9207-4ffb-ac9d-332d93df4903",
"c1e50518-50fc-4392-b704-8fa2e9ffcd32",
"17490e5e-c876-437e-9e9a-c6a0b281e91f",
"9893da49-ed1c-4c88-afe6-6a5ffd8301e6"
"9893da49-ed1c-4c88-afe6-6a5ffd8301e6",
"ece3e714-af31-46df-98f2-b7f0cb6b5bb7",
"8be8e248-caa5-4f01-a912-0e4c5e61df40",
"e3cbf80c-3054-4199-bc41-791397392a49",
"8c59299e-f7a6-4b18-bb15-ebe2570da3a3",
"707817fb-30bd-49f6-b5fb-23ffa4d672ab",
"dea832f8-800e-40bb-9155-a3759b75be17",
"d73d46ac-877a-459d-96f8-68c75aca6eae",
"3e9a1bd5-8271-43aa-bea0-a55f4f993720",
"33b784bb-bcde-43b1-8caf-f97acc5a7702",
"c6e78e76-41e2-4599-a47f-297d5cfc8ee8",
"4cec8901-8eab-4765-9ec8-af64f3931bf5",
"d8c4a9af-7d3c-4560-886d-65386823f266",
"ff516f17-f278-47d9-befc-ef7bfb4c0459",
"d370020c-eb3c-48b9-b561-b423f8f8c767",
"bd537cf0-df73-4b2a-bb36-40e91d4875e3",
"c408c1b6-ca44-4401-a59c-7feb174a3ef2",
"e2cefdd5-1c31-4fc8-85ac-dbd2ea35a494",
"9d521361-150a-4693-a6c3-867dd716037f",
"fa82047f-ca46-4900-b016-1cbc6fb8dc8a",
"0c5e5b6a-e3cd-49c8-b1f6-dd38039c121a",
"b779c231-722a-4460-ac43-333651f1de42",
"63764aa1-7e47-4e21-a847-809b1d441c66",
"7e3e0d01-976c-4367-8a37-dbf4809fcd6c",
"2d2f792f-a40c-49bb-a189-ed176a246e49",
"66d3171e-9b5e-40a6-b3aa-80205f9c7cd1",
"d38ffd80-2c0c-4865-993b-d8ce9f6fe21d",
"12b3167a-06e9-44bc-aaf4-99c7e9a22f97"
]
}
{
"nodeFoldStates": [
"a150jGk0RLcaflRvNQtjSC",
"acWc6QviFMCIySLqnhs/5C",
"05fdfTlOlD4YRcOkemc8S4",
"25VWOpOjxMMYZ9g+Hg3mid",
"66gxn1SWxGjZqUxAs1cl/h",
"faKjkR/V5DvpHC7hcGoEMK",
"66/stcamZPZZ1SmJuzu2LT",
"e0zbEN6jVMiK1nSzmgWxQN",
"470Wk1V89H17jRtoXkTNAx",
"07aTMRephHC5+lm0xSIOMq",
"ea2EdEj5ZAOrMsm5asGcLc",
"24hfprzh5FdYsCekzxna0h",
"38UAlRQhxKDJP8otfz/Hwn",
"06NFh2WcNOs4nnsoQOohCb",
"cbr47tyjhKyZeUPFgC77Pg",
"bf3l0nKt5OJKrRz7dPnK0V",
"57v6uhGQJLprFPSzmWgqN3",
"bbM10mwBdC8og78BiAuscU",
"b7Dnt+NEFMLatrJtmIiOBa",
"bbUw3k8R1C3qNOTSwaR0E4",
"80lX4aeyVNKYJw+hiA74YR",
"d9RQ+KGMZJ3a24yQ42OKy8",
"famxnGAn1BjKPU36qoW80N",
"a3Yo8j3XpMsIBm1hPGlMGH",
"25n/gaKNhJj48hlGJeJu9P",
"0dC/0C73hDtpkBYryZbtCV",
"27oljb+01HyoKGRXh2DOin",
"d8HbgskDtCeob2HjzMsDQn",
"6b5nMpJiRDAr3ZZtbsgqWv",
"37QHhLXnJHVYkfqNSy/a+Q",
"794HT0MzZHAJ09sQR7bcSQ",
"f7KK21g3xN3aHo0Wqhr9+f",
"43JYATn91Gz4zTuJXi0PTL",
"95MuboOJ1E+bsRQJfghL0g",
"e8gB8QC/VNm6G5Yp4RpN29",
"4bOe7rqdRJpIpnppKtpW3L",
"bc6QozpPdCh7YWkpQ3BZPO",
"bdXZwndVBEzIOKFJjhvycj",
"49cbUIX6BEf6ssfKfctwkE",
"47wiLtHa5BP74g4PIlSBG+",
"c15ZC2259N0IcxcLPCiXky",
"773W/F5y5JML5pQVSKvmc3",
"61213x0fVE8JVuQp2Y87/Z",
"5feBM5gGFN+adHLU7c0YdF",
"3dmltS4gZLMaeZMVwWUGhh",
"cd8laM4R5AILsFg4YeiUgt",
"feD/ioLJNCWoGx1d/eDZ5E",
"d0eI5d2GpKjqCvUoaM5fAY",
"12pYkbE0VCaKknMmm+/hYO",
"ba22zRZ8JCL5V4B484tG29",
"9dKI13CC9LZrbMwTRcB4f0",
"72yRnOTWlJaIwm3+oC0MoN",
"72AddsbxtFVrpMAxPxfb/A",
"c4st3EktFHjZOs+Lo8NFa3",
"79fGnP0JpN37VxgTTP0+8G",
"ffTKk/qBpCAK2cs01vpGNV",
"bfzL3Q0G5F7arDlG0hXJf6",
"4dzBrnOERPMrSMrWmWImNI",
"cbdEL8df1OK7WpNTzOVeH7",
"c8as7bsBxKw6onO1vyGElR",
"afoYcxIjZGwJ4pA+njB7xr",
"19kqSt289NS5Hmhoo52unQ",
"5dTC/3uldI65NOVt6wmGn2",
"74FK5O7opEj4QkyEjTuX98",
"5dJjmm8DxGhZDECnadsKWI",
"47VK2EPkVHs7j1kM0+eilP",
"22qfdecHhK37QPoq8g6UwX",
"ebHvm6+1hJzYHh7Rb1eOjn",
"57ez2lxChN6ac3QsMumYg4",
"bciFX9/npJbr1y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/0xGhwL",
"b1omrfLhhBaY+HS0YLrCVT",
"4e4K42BN9F/bTOAQ4JoXoT",
"79NeKeBHJGQaoTI/RzyaYh",
"91g6kTB4FFy4J1tMMM6FUr",
"0bEOiRnjZITJPCqBY+0LgK",
"23jpup7YFC9Jqcf0QXez/9",
"bcIP+VcBNPgq8tqrDlWkK8",
"6aYXKFGqFHFauX8LZRdMct",
"06edJYWXtHJquyzWMPtghR",
"029Mw6n45Hh61aTy757aJB",
"47W01P8yRAQIQTfgMOj4X0",
"91w4kuFDRDBr1dpe9JSS/6",
"31zICQSHNJbb6Gpznq3DYi",
"f5+sDPNVBIg4gwUcLITsy8",
"e6w+Y7xkRH+oQfEmjkFROg",
"c3cU1QobVGoqRa7bHi2vjG",
"85bDUrC45FoocNSaRgahHf",
"9d0LSOSBVLg7wiYFgq0F46",
"711Lh4hkpERr8DMm6URzHH",
"3eaYNLGBBB4oHBeXWw+lBq",
"9copIaD0hCYKgU+5AvFcf5",
"10hvHDnjJJ546dYTqOGFXP",
"0600v5fZdGeJiU6W2AIGyD",
"1eAcNE5axI/IO8vN5BjnIT",
"72wWqVPj1A+Yw3Lt8QIHzE",
"6csu3K3s5PiaVWfML8IOuX",
"9cFMFWg/dCjJv1Col8t3oC",
"dai40MOntMRYNQi4Hm3kpZ",
"f5RSHVHudPfbTXhlQaHqFH",
"25GFLHqyhGZJ9O7sl3M8We",
"8f58PLcudJu5KX4gu1FDfH",
"59GKpao1ZBVq5d4LsU242n",
"2c0VxZgBdEWqcswbC8dcQg",
"3f7DvOlLxEFan84tGxpbVy",
"afU0jlKz5CpYPuCJ1TDwkO",
"c9lkNEaW5PZah9SbLxcoz2",
"46qRGlATxIlojKB0kqrEuo",
"651bMAJwNEx6/lWG42Oou0",
"64meYcu+tLpZ4SsBcE4B8a",
"5b0lVdxgJI3IYF5zFOzAlb",
"dbqer9aB5NqbAcBx/K8Eo3",
"b4wd4ZdcJK+LUiqwTE9enU",
"deZ8MS2BtDNpFHJCM3vqx9",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25h6iDvN5I0J+6r/tu8m2U",
"08rid+J5pPRpfeZFDROHBt",
"e8Jyjp0cBLLomMuZShEnDZ",
"12hqvUTzhANZzrZwfSI1/k",
"70zegfOOxB+LeigXA5zF7+",
"974i8afnZLnpGc0B7G/qFU",
"7e0b1KA7pH+p9SGWFneT6X",
"3bk0T7y2VLy6OS1yywky1R",
"49ZYy1BZRDgbSOtlrArRBd",
"eeKZKmheZIXqgTct6QzLF8",
"c6se8o87xBHLMHNQTiUyBW",
"14/jL90QhJdqx1760xf9TA",
"31yVayNzVHSrIQnak7aTWf",
"a049TZGeJHSKzvx8sprvqj",
"9egyk47f9IW7L7gyY7FouA",
"85Gqw6JqhClJRR+TaYcyZ1",
"f6x3dEwp9N3aUImcPwMI02",
"d4HDlNVBxP+rCxnbl20c8G",
"49rNSlCfdCYIxenyOby1i3",
"bfmoxq6OpAZpFwLFo9HeU2",
"34RIsyJLVISoKc36OZRKMH",
"caoEMFXT9KXpCYvOSqmjdP",
"c9FHO6sPNNhYBCpPH1I5LE",
"35YCv6Ns5HVJvFuPP6RzzO",
"88iKAry1xKGqM507Ikc5ZR",
"2ah12F+QxKGo/eSyNXxgKi",
"29aRFkqrtA0b3vKzFannpU",
"633xZ7eTVDGb0MtI+Nb1qf",
"f50YO1AvRM9Y4NP+Q4yWzk",
"7c7oOF4hpLg7Sp5r5IB2J7",
"6dDchGvyJFQL6SsFYkxKkk",
"a5F/ApsuVM8Y03rirE3ItJ",
"75J8ti8bBAMry4fwsMBUMw",
"bcz4/FletDV5mBBb/mqUwS",
"8apfdqr/pM9Issu+n035rk",
"8dz0luNeRGmbUeSgJoFTIs",
"84r8baEfpAKJFcLak19JIR",
"eeuagESTlJN7HtfJBZ1Cg6",
"50nAr7msZCIbpPBxbiFZmX",
"58rKeOUEFHiZYGa+O1M5s4",
"b9Yvzb9W9IA6KJk8gDb85B",
"a46kxxgTZKsow7xFLeKBBh",
"dbwafYevFAAozoKi4t2WK2",
"edqK4JMK5NwqS3rs8TYUer"
]
}
This diff could not be displayed because it is too large.
......@@ -145,7 +145,6 @@ require('./assets/script/game/ui/presenter/ExchangeCodeViewPresenter');
require('./assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter');
require('./assets/script/game/ui/presenter/ExtraPlotViewPresenter');
require('./assets/script/game/ui/presenter/GuideViewPresenter');
require('./assets/script/game/ui/presenter/ItemIntroductionViewPresenter');
require('./assets/script/game/ui/presenter/LikeLevelSubpresenter');
require('./assets/script/game/ui/presenter/MainInfoViewSubpresenter');
require('./assets/script/game/ui/presenter/MainViewPresenter');
......@@ -156,7 +155,6 @@ require('./assets/script/game/ui/presenter/PlotStopViewPresenter');
require('./assets/script/game/ui/presenter/QRCodeViewPresenter');
require('./assets/script/game/ui/presenter/ReviewPlotViewPresenter');
require('./assets/script/game/ui/presenter/SentenceSelectorViewPresenter');
require('./assets/script/game/ui/presenter/SpecialPlotViewPresenter');
require('./assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter');
require('./assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter');
require('./assets/script/game/ui/presenter/message/ImagePreviewPresenter');
......@@ -182,8 +180,6 @@ require('./assets/script/game/ui/view/impl/PhoneCallViewImpl');
require('./assets/script/game/ui/view/impl/PlotStopViewImpl');
require('./assets/script/game/ui/view/impl/QRCodeViewImpl');
require('./assets/script/game/ui/view/impl/ReviewPlotViewImpl');
require('./assets/script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl');
require('./assets/script/game/ui/view/impl/bedroom/SpecialPlotViewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingSceneViewImpl');
......@@ -211,7 +207,6 @@ require('./assets/script/game/ui/view/type/ExtraPlotView');
require('./assets/script/game/ui/view/type/GiftListSubview');
require('./assets/script/game/ui/view/type/GuideView');
require('./assets/script/game/ui/view/type/ImagePreviewView');
require('./assets/script/game/ui/view/type/ItemIntroductionView');
require('./assets/script/game/ui/view/type/ItemView');
require('./assets/script/game/ui/view/type/LikeLevelSubview');
require('./assets/script/game/ui/view/type/MainInfoSubviewiew');
......@@ -223,7 +218,6 @@ require('./assets/script/game/ui/view/type/PlotStopView');
require('./assets/script/game/ui/view/type/QRCodeView');
require('./assets/script/game/ui/view/type/ReviewPlotView');
require('./assets/script/game/ui/view/type/SentenceSelectorView');
require('./assets/script/game/ui/view/type/SpecialPlotView');
require('./assets/script/game/ui/view/type/TabView');
require('./assets/script/game/ui/view/type/discover/DiscoverSettingView');
require('./assets/script/game/ui/view/type/discover/ProductionTeamView');
......
This diff could not be displayed because it is too large.
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"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();
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L2ltcGwvYmVkcm9vbS9JdGVtSW50cm9kdWN0aW9uVmlld0ltcGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseUVBQXVHO0FBQ3ZHL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vblZpZXcge1xuXG4gICAgQHByb3BlcnR5KGNjLlNwcml0ZSlcbiAgICBwcml2YXRlIGl0ZW1TcHJpdGUgPSBEdW1teVNwcml0ZTtcbiAgICBAcHJvcGVydHkoY2MuTm9kZSlcbiAgICBwcml2YXRlIHJlZERvdE5vZGUgPSBEdW1teU5vZGU7XG5cbiAgICBwcml2YXRlIF9jb250ZW50Q29udGFpbmVyOiBDQ1ZpZXc7XG5cbiAgICBvbkxvYWQoKSB7XG4gICAgICAgIHRoaXMuX2NvbnRlbnRDb250YWluZXIgPSB0aGlzLm5vZGUucGFyZW50LmFkZENvbXBvbmVudChDQ1ZpZXcpO1xuICAgIH1cblxuICAgIGdldEl0ZW1TcHJpdGVOb2RlKCk6IGNjLlNwcml0ZSB7XG4gICAgICAgIHJldHVybiB0aGlzLml0ZW1TcHJpdGU7XG4gICAgfVxuXG4gICAgZ2V0Q29udGFpbmVyKCk6IENDVmlldyB7XG4gICAgICAgIHJldHVybiB0aGlzLl9jb250ZW50Q29udGFpbmVyO1xuICAgIH1cblxuICAgIG9uU3BlY2lhbFBsb3RCdG5DbGlja0NhbGxCYWNrKCkge1xuICAgICAgICB0aGlzLl9wcm9wcy5vblNwZWNpYWxQbG90QnRuQ2xpY2soKTtcbiAgICB9XG5cbiAgICBvblNob3BCdG5DbGlja0NhbGxCYWNrKCkge1xuICAgICAgICB0aGlzLl9wcm9wcy5vblNob3BCdG5DbGljaygpO1xuICAgIH1cblxuICAgIG9uQ2xvc2VDbGlja0NhbGxCYWNrKCkge1xuICAgICAgICB0aGlzLmNsb3NlKCk7XG4gICAgfVxuXG4gICAgc2hvd1NwZWNpYWxQbG90QnRuUmVkRG90KGlzU2hvdzogYm9vbGVhbikge1xuICAgICAgICB0aGlzLnJlZERvdE5vZGUuYWN0aXZlID0gaXNTaG93O1xuICAgIH1cbn0iXX0=
\ No newline at end of file
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/script/game/ui/view/type/ItemIntroductionView.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '15701qRGV9JSLqbrqPClhEa', 'ItemIntroductionView');
// script/game/ui/view/type/ItemIntroductionView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ItemIntroductionViewType = void 0;
exports.ItemIntroductionViewType = "ItemIntroductionView";
cc._RF.pop();
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvSXRlbUludHJvZHVjdGlvblZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBa0JhLFFBQUEsd0JBQXdCLEdBQUcsc0JBQXNCLENBQUMiLCJmaWxlIjoiIiwic291cmNlUm9vdCI6Ii8iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDQ1ZpZXcgfSBmcm9tIFwiLi4vLi4vLi4vLi4vY29tbW9uL2NsYXNzYmFzZS9DQ1ZpZXdCYXNlXCI7XG5pbXBvcnQgeyBQdXJlVmlldyB9IGZyb20gXCIuLi8uLi8uLi8uLi9jb21tb24vY2xhc3NiYXNlL1ZpZXdCYXNlXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSXRlbUludHJvZHVjdGlvblZpZXdQcm9wcyB7XG4gICAgaXRlbUlkOiBudW1iZXI7XG4gICAgc2hvd0l0ZW1TcHI6IChpdGVtSWQ6IG51bWJlcikgPT4gdm9pZDtcbiAgICBvblNwZWNpYWxQbG90QnRuQ2xpY2s6ICgpID0+IHZvaWQ7XG4gICAgb25TaG9wQnRuQ2xpY2s6ICgpID0+IHZvaWQ7XG59XG5cbnR5cGUgSXRlbUludHJvZHVjdGlvblZpZXdCYXNlID0gUHVyZVZpZXc8SXRlbUludHJvZHVjdGlvblZpZXdQcm9wcz47XG5cbmV4cG9ydCBpbnRlcmZhY2UgSXRlbUludHJvZHVjdGlvblZpZXcgZXh0ZW5kcyBJdGVtSW50cm9kdWN0aW9uVmlld0Jhc2Uge1xuICAgIGdldEl0ZW1TcHJpdGVOb2RlOiAoKSA9PiBjYy5TcHJpdGU7XG4gICAgZ2V0Q29udGFpbmVyOiAoKSA9PiBDQ1ZpZXc7XG4gICAgc2hvd1NwZWNpYWxQbG90QnRuUmVkRG90OiAoaXNTaG93OiBib29sZWFuKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgSXRlbUludHJvZHVjdGlvblZpZXdUeXBlID0gXCJJdGVtSW50cm9kdWN0aW9uVmlld1wiOyJdfQ==
\ No newline at end of file
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/script/game/ui/view/type/SpecialPlotView.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '3aa5bKG7VhJ5685gbKw+u+S', 'SpecialPlotView');
// script/game/ui/view/type/SpecialPlotView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecialPlotViewType = void 0;
exports.SpecialPlotViewType = "SpecialPlotView";
cc._RF.pop();
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ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7XG59XG5cbnR5cGUgU3BlY2lhbFBsb3RWaWV3QmFzZSA9IFB1cmVWaWV3PFNwZWNpYWxQbG90Vmlld1Byb3BzPjtcblxuZXhwb3J0IGludGVyZmFjZSBTcGVjaWFsUGxvdFZpZXcgZXh0ZW5kcyBTcGVjaWFsUGxvdFZpZXdCYXNlIHtcbiAgICBnZXRTcGVjaWFsUGxvdFNjcm9sbFZpZXc6ICgpID0+IGNjLlNjcm9sbFZpZXc7XG4gICAgZ2V0U3BlY2lhbFBsb3RUaXRsZU5vZGU6ICgpID0+IGNjLk5vZGUgfCB1bmRlZmluZWQ7XG4gICAgZ2V0U3BlY2lhbFBsb3ROb2RlOiAoKSA9PiBjYy5Ob2RlIHwgdW5kZWZpbmVkO1xuICAgIHNob3dMZWZ0QnRuOiAoaXNTaG93OiBib29sZWFuKSA9PiB2b2lkO1xuICAgIHNob3dSaWdodEJ0bjogKGlzU2hvdzogYm9vbGVhbikgPT4gdm9pZDtcbiAgICBnZXRWaWV3Tm9kZTogKCkgPT4gY2MuTm9kZSB8IHVuZGVmaW5lZDtcbiAgICBnZXRGb3J1bUJ0bk5vZGU6ICgpID0+IGNjLk5vZGUgfCB1bmRlZmluZWQ7XG4gICAgc2hvd1JlZERvdDogKGlzU2hvdzogYm9vbGVhbikgPT4gdm9pZDtcbn1cblxuZXhwb3J0IGNvbnN0IFNwZWNpYWxQbG90Vmlld1R5cGUgPSBcIlNwZWNpYWxQbG90Vmlld1wiOyJdfQ==
\ No newline at end of file
......@@ -134,7 +134,6 @@ require('./assets/script/game/ui/presenter/ExchangeCodeViewPresenter');
require('./assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter');
require('./assets/script/game/ui/presenter/ExtraPlotViewPresenter');
require('./assets/script/game/ui/presenter/GuideViewPresenter');
require('./assets/script/game/ui/presenter/ItemIntroductionViewPresenter');
require('./assets/script/game/ui/presenter/LikeLevelSubpresenter');
require('./assets/script/game/ui/presenter/MainInfoViewSubpresenter');
require('./assets/script/game/ui/presenter/MainViewPresenter');
......@@ -145,7 +144,6 @@ require('./assets/script/game/ui/presenter/PlotStopViewPresenter');
require('./assets/script/game/ui/presenter/QRCodeViewPresenter');
require('./assets/script/game/ui/presenter/ReviewPlotViewPresenter');
require('./assets/script/game/ui/presenter/SentenceSelectorViewPresenter');
require('./assets/script/game/ui/presenter/SpecialPlotViewPresenter');
require('./assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter');
require('./assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter');
require('./assets/script/game/ui/presenter/message/ImagePreviewPresenter');
......@@ -171,8 +169,6 @@ require('./assets/script/game/ui/view/impl/PhoneCallViewImpl');
require('./assets/script/game/ui/view/impl/PlotStopViewImpl');
require('./assets/script/game/ui/view/impl/QRCodeViewImpl');
require('./assets/script/game/ui/view/impl/ReviewPlotViewImpl');
require('./assets/script/game/ui/view/impl/bedroom/ItemIntroductionViewImpl');
require('./assets/script/game/ui/view/impl/bedroom/SpecialPlotViewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl');
require('./assets/script/game/ui/view/impl/dating/DatingSceneViewImpl');
......@@ -200,7 +196,6 @@ require('./assets/script/game/ui/view/type/ExtraPlotView');
require('./assets/script/game/ui/view/type/GiftListSubview');
require('./assets/script/game/ui/view/type/GuideView');
require('./assets/script/game/ui/view/type/ImagePreviewView');
require('./assets/script/game/ui/view/type/ItemIntroductionView');
require('./assets/script/game/ui/view/type/ItemView');
require('./assets/script/game/ui/view/type/LikeLevelSubview');
require('./assets/script/game/ui/view/type/MainInfoSubviewiew');
......@@ -212,7 +207,6 @@ require('./assets/script/game/ui/view/type/PlotStopView');
require('./assets/script/game/ui/view/type/QRCodeView');
require('./assets/script/game/ui/view/type/ReviewPlotView');
require('./assets/script/game/ui/view/type/SentenceSelectorView');
require('./assets/script/game/ui/view/type/SpecialPlotView');
require('./assets/script/game/ui/view/type/TabView');
require('./assets/script/game/ui/view/type/discover/DiscoverSettingView');
require('./assets/script/game/ui/view/type/discover/ProductionTeamView');
......
{"version":3,"sources":["assets/script/game/ui/SuitItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA6C;AAC7C,gEAAiF;AACjF,gFAA6E;AAC7E,wEAAqE;AAGrE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,EAAE,CAAC,SAAS;QAAlD;;YAGI,eAAU,GAAc,4BAAW,CAAC;YAEpC,cAAS,GAAa,2BAAU,CAAC;YAEjC,iBAAY,GAAY,0BAAS,CAAC;YAElC,yBAAoB,GAAa,2BAAU,CAAC;YAEpC,sBAAiB,GAAY,IAAI,CAAC;QAiB9C,CAAC;QAhBG,KAAK,CAAC,OAAO,CAAC,UAAsB,EAAE,gBAAyB;YAC3D,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,MAAM,4BAAQ,CAAC,OAAO,CAAC,6BAAa,CAAC,kCAAkC,GAAG,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC,WAAW,CAAC,CAAA;YAC9I,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;YAChD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;YAC1C,IAAI,gBAAgB,EAAE;gBAClB,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC;gBAChC,IAAI,CAAC,oBAAoB,CAAC,MAAM,GAAG,UAAU,CAAC,eAAe,CAAC;aACjE;QACL,CAAC;QAED,UAAU;YACN,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBACxB,qBAAS,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACrC,OAAO;aACV;QACL,CAAC;KACJ,CAAA;IAzBG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;gDACtB;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;+CACvB;IAEjC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;kDACzB;IAElC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;0DACxB;IAT3B,QAAQ;QAD5B,OAAO;OACa,QAAQ,CA4B5B;IAAD,eAAC;KAAA;kBA5BoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { DummyLabel, DummyNode, DummySprite } from \"../../common/CCDummyObjects\";\nimport { GameConstData } from \"../../common/gameplay/gamedata/GameConstData\";\nimport { UIManager } from \"../../common/gameplay/managers/UIManager\";\nimport { SuitConfig } from \"../model/BedRoomCatModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class SuitItem extends cc.Component {\n\n @property({ type: cc.Sprite, displayName: \"Icon sprite\" })\n iconSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Label, displayName: \"Name label\" })\n nameLabel: cc.Label = DummyLabel;\n @property({ type: cc.Node, displayName: \"Lock root node\" })\n lockRootNode: cc.Node = DummyNode;\n @property({ type: cc.Label, displayName: \"Unlock condition label\" })\n unlockConditionLabel: cc.Label = DummyLabel;\n\n private _showLockRootNode: boolean = true;\n async setData(suitConfig: SuitConfig, showLockRootNode: boolean) {\n this.iconSprite.spriteFrame = await ResUtils.loadRes(GameConstData.GAME_CONST_BEDROOMCAT_SUIT_SPR_DIR + suitConfig.clothingId, cc.SpriteFrame)\n this.nameLabel.string = suitConfig.clothingName;\n this._showLockRootNode = showLockRootNode;\n if (showLockRootNode) {\n this.lockRootNode.active = true;\n this.unlockConditionLabel.string = suitConfig.unlockCondition;\n }\n }\n\n onBtnClick() {\n if (this._showLockRootNode) {\n UIManager.showToast(\"快去完成任务,领取服装吧!\");\n return;\n }\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/WardrobeViewFix.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAAwD;AAExD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,EAAE,CAAC,SAAS;QAAzD;;YAGI,cAAS,GAAY,0BAAS,CAAC;YAE/B,qBAAgB,GAAY,0BAAS,CAAC;YAEtC,oBAAe,GAAY,0BAAS,CAAC;YAErC,qBAAgB,GAAY,0BAAS,CAAC;QA+B1C,CAAC;QA7BG,MAAM;YACF,iBAAiB;YACjB,IAAI,aAAa,GAAG,GAAG,CAAC;YACxB,IAAI,cAAc,GAAG,IAAI,CAAC;YAC1B,IAAI,kBAAkB,GAAG,cAAc,GAAG,aAAa,CAAC;YACxD,IAAI,WAAW,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YACnC,IAAI,YAAY,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;YACrC,IAAI,gBAAgB,GAAG,YAAY,GAAG,WAAW,CAAC;YAClD,IAAI,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YAC7D,IAAI,qBAAqB,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACzE,IAAI,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YAC3E,IAAI,gBAAgB,IAAI,GAAG,EAAE;gBACzB,eAAe,CAAC,cAAc,GAAG,GAAG,CAAC;gBACrC,eAAe,CAAC,eAAe,EAAE,CAAC;gBAClC,qBAAqB,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC;gBAC5C,qBAAqB,CAAC,eAAe,EAAE,CAAC;gBACxC,sBAAsB,CAAC,GAAG,GAAG,GAAG,CAAC;gBACjC,sBAAsB,CAAC,eAAe,EAAE,CAAC;aAC5C;YACD,IAAI,gBAAgB,IAAI,GAAG,EAAE;gBACzB,eAAe,CAAC,cAAc,GAAG,GAAG,CAAC;gBACrC,eAAe,CAAC,eAAe,EAAE,CAAC;gBAClC,qBAAqB,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC;gBAC5C,qBAAqB,CAAC,eAAe,EAAE,CAAC;gBACxC,sBAAsB,CAAC,GAAG,GAAG,GAAG,CAAC;gBACjC,sBAAsB,CAAC,eAAe,EAAE,CAAC;gBACzC,IAAI,CAAC,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAC;aACrC;QACL,CAAC;KACJ,CAAA;IArCG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;sDACxB;IAE/B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;6DACzB;IAEtC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;4DAC1B;IAErC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;6DACxB;IATrB,eAAe;QADnC,OAAO;OACa,eAAe,CAwCnC;IAAD,sBAAC;KAAA;kBAxCoB,eAAe","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode } from \"../../common/CCDummyObjects\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class WardrobeViewFix extends cc.Component {\n \n @property({ type: cc.Node, displayName: \"Title node\" })\n titleNode: cc.Node = DummyNode;\n @property({ type: cc.Node, displayName: \"Wardrobe root node\" })\n wardrobeRootNode: cc.Node = DummyNode;\n @property({ type: cc.Node, displayName: \"Suit tab root node\" })\n suitTabRootNode: cc.Node = DummyNode;\n @property({ type: cc.Node, displayName: \"Introduction node\" })\n introductionNode: cc.Node = DummyNode;\n\n onLoad() {\n //界面设计尺寸为720*1080\n let originalWigth = 720;\n let originalHeight = 1080;\n let originalProportion = originalHeight / originalWigth;\n let actualWidth = cc.winSize.width;\n let actualHeight = cc.winSize.height;\n let actualProportion = actualHeight / actualWidth;\n let titleNodeWidget = this.titleNode.getComponent(cc.Widget);\n let suitTabRootNodeWidget = this.suitTabRootNode.getComponent(cc.Widget);\n let introductionNodeWidget = this.introductionNode.getComponent(cc.Widget);\n if (actualProportion >= 1.9) {\n titleNodeWidget.verticalCenter = 590;\n titleNodeWidget.updateAlignment();\n suitTabRootNodeWidget.verticalCenter = -600;\n suitTabRootNodeWidget.updateAlignment();\n introductionNodeWidget.top = 200;\n introductionNodeWidget.updateAlignment();\n }\n if (actualProportion <= 1.5) {\n titleNodeWidget.verticalCenter = 370;\n titleNodeWidget.updateAlignment();\n suitTabRootNodeWidget.verticalCenter = -390;\n suitTabRootNodeWidget.updateAlignment();\n introductionNodeWidget.top = 100;\n introductionNodeWidget.updateAlignment();\n this.wardrobeRootNode.scale = 0.7;\n }\n }\n}"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '4c1e17C5h5HTbTikmi4pSSl', 'ItemIntroductionViewPresenter');
// script/game/ui/presenter/ItemIntroductionViewPresenter.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 });
const simba_cc_resutils_1 = require("simba-cc-resutils");
const simba_config_manager_1 = require("simba-config-manager");
const simba_sdk_1 = require("simba-sdk");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const GameConstData_1 = require("../../../common/gameplay/gamedata/GameConstData");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const ItemTbl_1 = require("../../../config/ItemTbl");
const GameConfig_1 = require("../../../GameConfig");
const GameDotMgr_1 = require("../../GameDotMgr");
const GameModelManager_1 = require("../../model/GameModelManager");
const UnlockItemModelManager_1 = require("../../model/UnlockItemModelManager");
const UnlockSpecialPlotEventManager_1 = require("../../model/UnlockSpecialPlotEventManager");
const UnlockSpecialPlotModelManager_1 = require("../../model/UnlockSpecialPlotModelManager");
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const ItemIntroductionView_1 = require("../view/type/ItemIntroductionView");
const SpecialPlotViewPresenter_1 = require("./SpecialPlotViewPresenter");
let ItemIntroductionViewPresenter = /** @class */ (() => {
let ItemIntroductionViewPresenter = class ItemIntroductionViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this.specialPresenter = undefined;
this.showItemSpr = async (itemId) => {
try {
let cfg = undefined;
if (itemId) {
cfg = simba_config_manager_1.ConfigManager.getConfig(ItemTbl_1.itemTbl, itemId);
if (cfg) {
//如果没有模糊图,那么直接展示简介图
if (cfg.foggy === 0) {
UnlockItemModelManager_1.UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
//如果有模糊图,那么就判断是否已经解锁了清晰的简介图
else {
let unlockedIntroduction = false;
let unlockedIntroductionItems = UnlockItemModelManager_1.UnlockItemModelManager.unlockedIntroductionItems;
for (let i = 0; i < unlockedIntroductionItems.length; i++) {
if (itemId == unlockedIntroductionItems[i]) {
unlockedIntroduction = true;
}
}
if (!unlockedIntroduction) {
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.foggyPicture;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
else {
UnlockItemModelManager_1.UnlockItemModelManager.saveUnlockedIntroductionItemIdToGameRecord(itemId);
let path = GameConstData_1.GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + cfg.type;
let itemSpriteFrame = await simba_cc_resutils_1.ResUtils.loadRes(path, cc.SpriteFrame);
this.view.getItemSpriteNode().spriteFrame = itemSpriteFrame;
}
}
}
}
this.updateSpecialPlotBtnRedDotStatus();
}
catch (error) {
console.error(error);
}
};
this.onSpecialPlotClickCallBack = () => {
let itemCfg = undefined;
itemCfg = simba_config_manager_1.ConfigManager.getConfig(ItemTbl_1.itemTbl, this._viewProps.itemId);
let unlockedSpecialPlots = UnlockSpecialPlotModelManager_1.UnlockSpecialPlotModelManager.unlockedSpecialPlotIdByItemId(this._viewProps.itemId);
if (itemCfg) {
let unlockedSpecialPlot = false;
if (unlockedSpecialPlots.length > 0) {
unlockedSpecialPlot = true;
}
if (unlockedSpecialPlot) {
this.openSpecialPlotView(this._viewProps.itemId, unlockedSpecialPlots);
}
else {
UIManager_1.UIManager.showToast(itemCfg.toastMsg);
return;
}
}
this.view.close();
};
this.onShopBtnClickCallBack = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_introduction");
let type = GameModelManager_1.GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(type);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
}
else if (GameConfig_1.channel == "android") {
if (type) {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
}
onOpen(props) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.showItemSpr = this.showItemSpr;
this._viewProps.onSpecialPlotBtnClick = this.onSpecialPlotClickCallBack;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this.view.setProps(this._viewProps);
this.onShow();
PresenterBase_1.createPresenter(SpecialPlotViewPresenter_1.default).then((presenter) => {
this.specialPresenter = presenter;
});
}
onShow() {
super.onShow();
this.showItemSpr(this._viewProps.itemId);
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
openSpecialPlotView(itemId, specialPlotIds) {
if (this.specialPresenter) {
let temp = {
itemId: itemId,
specialPlotIds: specialPlotIds,
onLeftBtnClick: () => { },
onRightBtnClick: () => { },
createGameClubBtn: () => { },
onShopBtnClick: () => { },
onCloseBtnClick: () => { }
};
this.specialPresenter.open(this.view.getContainer(), temp);
}
}
updateSpecialPlotBtnRedDotStatus() {
this.view.showSpecialPlotBtnRedDot(UnlockSpecialPlotEventManager_1.default.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
};
ItemIntroductionViewPresenter.uuid = "ItemIntroductionViewPresenter";
ItemIntroductionViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(ItemIntroductionView_1.ItemIntroductionViewType)
], ItemIntroductionViewPresenter);
return ItemIntroductionViewPresenter;
})();
exports.default = ItemIntroductionViewPresenter;
cc._RF.pop();
\ No newline at end of file
"use strict";
cc._RF.push(module, '75c44LQpEpHf4CkJXDWy0Xc', 'SpecialPlotViewPresenter');
// script/game/ui/presenter/SpecialPlotViewPresenter.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 });
const simba_config_manager_1 = require("simba-config-manager");
const simba_sdk_1 = require("simba-sdk");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const StoryTbl_1 = require("../../../config/StoryTbl");
const GameConfig_1 = require("../../../GameConfig");
const GameDotMgr_1 = require("../../GameDotMgr");
const GameModelManager_1 = require("../../model/GameModelManager");
const UnlockSpecialPlotEventManager_1 = require("../../model/UnlockSpecialPlotEventManager");
const UnlockSpecialPlotModelManager_1 = require("../../model/UnlockSpecialPlotModelManager");
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const SpecialPlotView_1 = require("../view/type/SpecialPlotView");
let SpecialPlotViewPresenter = /** @class */ (() => {
let SpecialPlotViewPresenter = class SpecialPlotViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this._value = 0;
this._cfg = undefined;
this.onLeftBtnClickCallBack = () => {
if (this._value <= 0) {
return;
}
else {
this._value -= 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
};
this.onRightBtnClickCallBack = () => {
if (this._value >= this._viewProps.specialPlotIds.length - 1) {
UIManager_1.UIManager.showToast(this._cfg.toastMsg);
return;
}
else {
this._value += 1;
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
}
};
this.createGameClubBtn = () => {
this.view.getViewNode().getComponent(cc.Widget).updateAlignment();
let info = simba_sdk_1.SDK.systemInfo.displayInfo;
let aspect = info.windowSize.height / cc.view.getVisibleSize().height;
this.view.getViewNode().getComponent(cc.Widget).updateAlignment();
let pos = this.view.getForumBtnNode().convertToWorldSpaceAR(cc.v2(0, 0));
pos.x += cc.view.getViewportRect().x / cc.view.getScaleX();
let xPos = pos.x * aspect;
let yPos = info.windowSize.height - pos.y * aspect;
let width = this.view.getForumBtnNode().width * aspect;
let height = this.view.getForumBtnNode().height * aspect;
let left = xPos - width / 2;
let top = yPos - height / 2;
simba_sdk_1.SDK.createGameClubButton({
type: "text",
text: "",
style: {
left: left,
top: top,
width: width,
height: height
},
icon: "green"
});
};
this.onShopBtnClickCallBack = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_specoalPlot");
let type = GameModelManager_1.GameModelManager.getTypeByBedroomItemId(this._viewProps.itemId);
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
if (type) {
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(type);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
}
else if (GameConfig_1.channel == "android") {
if (type) {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(type);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
this.onCloseBtnClick = () => {
this.view.close();
GameModelManager_1.GameModelManager.BackToBedRoom.emit();
};
}
onOpen(props) {
super.onOpen(props);
this._viewProps = props;
this._viewProps.onLeftBtnClick = this.onLeftBtnClickCallBack;
this._viewProps.onRightBtnClick = this.onRightBtnClickCallBack;
this._viewProps.createGameClubBtn = this.createGameClubBtn;
this._viewProps.onShopBtnClick = this.onShopBtnClickCallBack;
this._viewProps.onCloseBtnClick = this.onCloseBtnClick;
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.showSpecialPlot(this._viewProps.specialPlotIds[this._value]);
this.createGameClubBtn();
this.showGameClubBtn();
}
onClose() {
super.onClose();
simba_sdk_1.SDK.destroyGameClubButton();
}
onEnterBackground() {
super.onEnterBackground();
this.hideGameClubBtn();
}
onEnterForeground() {
super.onEnterForeground();
this.showGameClubBtn();
}
showGameClubBtn() {
simba_sdk_1.SDK.showGameClubButton();
}
hideGameClubBtn() {
simba_sdk_1.SDK.hideGameClubButton();
}
showSpecialPlot(specialPlotId) {
try {
if (specialPlotId) {
this._cfg = simba_config_manager_1.ConfigManager.getConfig(StoryTbl_1.storyTbl, specialPlotId);
if (this._cfg) {
this.view.getSpecialPlotTitleNode().getComponent(cc.Label).string = this._cfg.title;
let cfgStr = this._cfg.content.split("%%");
let specialPlotNodeStr = "";
for (let i = 0; i < cfgStr.length; i++) {
specialPlotNodeStr = specialPlotNodeStr + cfgStr[i] + "\n";
}
this.view.getSpecialPlotNode().getComponent(cc.Label).string = specialPlotNodeStr;
UnlockSpecialPlotModelManager_1.UnlockSpecialPlotModelManager.saveClickedSpecialPlotIdByItemIdToGameRecord(specialPlotId);
}
this.updateLeftOrRightBtnStatus();
this.updateRightBtnRedDotStatus();
this.view.getSpecialPlotScrollView().scrollToTop();
}
}
catch (error) {
console.error(error);
}
}
updateLeftOrRightBtnStatus() {
//处理左按钮显隐,右按钮暂不处理
if (this._value <= 0) {
this.view.showLeftBtn(false);
}
else {
this.view.showLeftBtn(true);
}
}
updateRightBtnRedDotStatus() {
this.view.showRedDot(UnlockSpecialPlotEventManager_1.default.getInstance().isShowBedRoomRedDotStatus(this._viewProps.itemId));
}
};
SpecialPlotViewPresenter.uuid = "SpecialPlotViewPresenter";
SpecialPlotViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(SpecialPlotView_1.SpecialPlotViewType)
], SpecialPlotViewPresenter);
return SpecialPlotViewPresenter;
})();
exports.default = SpecialPlotViewPresenter;
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/bedroom/PromptAlertDialogViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA6C;AAC7C,8EAAuE;AACvE,yEAA4D;AAC5D,iFAAqI;AAGrI;IAAA,IAAqB,8BAA8B,GAAnD,MAAqB,8BAA+B,SAAQ,yBAA4D;QAIpH;YACI,KAAK,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,CAAC,KAAiC;YACpC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,IAAI,CAAC,MAAM,EAAE,CAAC;QAClB,CAAC;QAED,MAAM;YACF,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED,KAAK,CAAC,eAAe;YACjB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,WAAW,GAAG,MAAM,4BAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;YAC/G,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;QACtE,CAAC;KACJ,CAAA;IAvBU,mCAAI,GAAG,uBAAuB,CAAC;IADrB,8BAA8B;QADlD,qCAAY,CAAC,iDAAyB,CAAC;OACnB,8BAA8B,CAwBlD;IAAD,qCAAC;KAAA;kBAxBoB,8BAA8B","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\r\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\r\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\r\nimport { PromptAlertDialogViewType, PromptAlertDialogViewProps, PromptAlertDialogView } from \"../../view/type/PromptAlertDialogView\";\r\n\r\n@RegPresenter(PromptAlertDialogViewType)\r\nexport default class PromptAlertDialogViewPresenter extends Presenter<PromptAlertDialogViewProps, PromptAlertDialogView>{\r\n static uuid = \"PromptAlertDialogView\";\r\n private _viewProps: PromptAlertDialogViewProps;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n onOpen(props: PromptAlertDialogViewProps) {\r\n super.onOpen(props);\r\n this._viewProps = props;\r\n this.view.setProps(this._viewProps);\r\n this.onShow();\r\n }\r\n\r\n onShow() {\r\n super.onShow();\r\n this.setPromptConfig();\r\n }\r\n\r\n async setPromptConfig() {\r\n this.view.getIconSprite().spriteFrame = await ResUtils.loadRes(this._viewProps.iconSpritePath, cc.SpriteFrame);\r\n this.view.getContentLable().string = this._viewProps.contentLabel;\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/bedroom/ShareSuitViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA6C;AAC7C,oFAA6E;AAC7E,8EAAuE;AACvE,8EAA2E;AAC3E,yEAA4D;AAC5D,iEAAqG;AAGrG;IAAA,IAAqB,sBAAsB,GAA3C,MAAqB,sBAAuB,SAAQ,yBAA4C;QAK5F;YACI,KAAK,EAAE,CAAC;YAHJ,YAAO,GAAY,KAAK,CAAC;YAoGjC,4BAAuB,GAAG,GAAG,EAAE;gBAC3B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBAClB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACzB,CAAC,CAAA;QAnGD,CAAC;QAED,MAAM,CAAC,KAAyB;YAC5B,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAC;YACtE,IAAI,CAAC,UAAU,CAAC,uBAAuB,GAAG,IAAI,CAAC,uB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8B;YAC9B,iEAAiE;YACjE,wDAAwD;YACxD,sDAAsD;YACtD,0CAA0C;YAC1C,SAAS;YACT,kCAAkC;YAClC,qEAAqE;YACrE,QAAQ;YACR,KAAK;QACT,CAAC;KAMJ,CAAA;IA1GU,2BAAI,GAAG,wBAAwB,CAAC;IADtB,sBAAsB;QAD1C,qCAAY,CAAC,iCAAiB,CAAC;OACX,sBAAsB,CA2G1C;IAAD,6BAAC;KAAA;kBA3GoB,sBAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport CCWechatScreenShotMgr from \"../../../../common/CCWechatScreenShotMgr\";\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\nimport { ShareSuitViewType, ShareSuitViewProps, ShareSuitView } from \"../../view/type/ShareSuitView\";\n\n@RegPresenter(ShareSuitViewType)\nexport default class ShareSuitViewPresenter extends Presenter<ShareSuitViewProps, ShareSuitView>{\n static uuid = \"ShareSuitViewPresenter\";\n private _viewProps: ShareSuitViewProps;\n private _onShow: boolean = false;\n\n constructor() {\n super();\n }\n\n onOpen(props: ShareSuitViewProps) {\n super.onOpen(props);\n this._viewProps = props;\n this._viewProps.bgSpritePath = props.bgSpritePath;\n this._viewProps.rolePortraitSpritePath = props.rolePortraitSpritePath;\n this._viewProps.onCloseBtnClickCallback = this.onCloseBtnClickCallback;\n this.view.setProps(this._viewProps);\n this.onShow();\n }\n\n onShow() {\n super.onShow();\n this.showShareSuitRolePortrait();\n }\n\n onClose() {\n super.onClose();\n }\n\n onEnterBackground() {\n super.onEnterBackground();\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n }\n\n async showShareSuitRolePortrait() {\n this._onShow = true;\n this.view.getShareSuitViewBgSprite().spriteFrame = await ResUtils.loadRes(this._viewProps.bgSpritePath, cc.SpriteFrame);\n this.view.getShareSuitViewRolePortraitSprite().spriteFrame = await ResUtils.loadRes(this._viewProps.rolePortraitSpritePath, cc.SpriteFrame);\n let shareNode = this.view.getShareNode();\n let shareNodeWorldSpace = shareNode.convertToWorldSpaceAR(cc.v2(0, 0));\n CCWechatScreenShotMgr.getInstance().doShot(shareNodeWorldSpace, shareNode.width, shareNode.height,\n () => { // successCallback\n // 延迟2s退出\n cc.tween(this.view.getViewNode()).delay(2).call(() => {\n this.onCloseBtnClickCallback();\n this._viewProps.shareSuitViewCallback(true);\n console.log('ShowShareSuitRolePortrait successCallback');\n }).start();\n },\n (): boolean => { // successCheckCallback\n console.log('ShowShareSuitRolePortrait successCheckCallback: ', this._onShow);\n return this._onShow;\n },\n () => { // shareFailCallback\n console.log('ShowShareSuitRolePortrait shareFailCallback');\n this._viewProps.shareSuitViewCallback(false);\n UIManager.showSceneToast(\"自动截图失败,请升级微信哦~\");\n this.onCloseBtnClickCallback();\n },\n () => { // failCallback\n console.log('ShowShareSuitRolePortrait failCallback');\n this._viewProps.shareSuitViewCallback(false);\n UIManager.showSceneToast(\"自动截图失败,请稍后重试哦~\");\n this.onCloseBtnClickCallback();\n },\n () => { // completeCallback\n console.log('ShowShareSuitRolePortrait completeCallback');\n }\n );\n\n // CCWechatScreenShotMgr.getInstance().shotFullScreen(\n // () => { // successCallback\n // // 延迟2s退出\n // cc.tween(this.view.getViewNode()).delay(2).call(() => {\n // this.onCloseBtnClickCallback();\n // this._viewProps.shareSuitViewCallback(true);\n // console.log('ShowShareSuitRolePortrait successCallback');\n // }).start();\n // },\n // (): boolean => { // successCheckCallback\n // console.log('ShowShareSuitRolePortrait successCheckCallback: ', this._onShow);\n // return this._onShow;\n // },\n // () => { // shareFailCallback\n // console.log('ShowShareSuitRolePortrait shareFailCallback');\n // this._viewProps.shareSuitViewCallback(false);\n // UIManager.showSceneToast(\"自动截图失败,请升级微信哦~\");\n // this.onCloseBtnClickCallback();\n // },\n // () => { // failCallback\n // console.log('ShowShareSuitRolePortrait failCallback');\n // this._viewProps.shareSuitViewCallback(false);\n // UIManager.showSceneToast(\"自动截图失败,请稍后重试哦~\");\n // this.onCloseBtnClickCallback();\n // },\n // () => { // completeCallback\n // console.log('ShowShareSuitRolePortrait completeCallback');\n // }\n // );\n }\n\n onCloseBtnClickCallback = () => {\n this.view.close();\n this._onShow = false;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/BedroomCatRewardViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAA0H;AAC1H,2EAAwE;AAExE,4EAA0D;AAC1D,0EAA4H;AAE5H,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,uBAAqC;QAAnF;;YAGY,2BAAsB,GAAc,4BAAW,CAAC;YAEhD,iCAA4B,GAAqB,EAAE,CAAC;YAEpD,0BAAqB,GAAa,2BAAU,CAAC;YAE7C,oBAAe,GAAG,0BAAS,CAAC;YAE5B,eAAU,GAAG,gCAAe,CAAC;YAE7B,gBAAW,GAAG,0BAAS,CAAC;YAExB,sBAAiB,GAAgB,EAAE,CAAC;YAEpC,gBAAW,GAAG,0BAAS,CAAC;YAExB,kBAAa,GAAgB,EAAE,CAAC;YAEhC,uBAAkB,GAAqB,EAAE,CAAC;YAE1C,gBAAW,GAAc,EAAE,CAAC;YAE5B,sBAAiB,GAAY,0BAAS,CAAC;QA8DnD,CAAC;QA5DG,eAAe;YACX,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;QAED,yBAAyB;YACrB,OAAO,IAAI,CAAC,sBAAsB,CAAC;QACvC,CAAC;QAED,+BAA+B;YAC3B,OAAO,IAAI,CAAC,4BAA4B,CAAC;QAC7C,CAAC;QAED,wBAAwB;YACpB,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;QAED,kBAAkB;YACd,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC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AE,qBAAqB,EAAE,CAAC;uEACxB;IAE5C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;iEACc;IAEhC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;mEACvB;IAExC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;wEACvB;IAElD;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;iEACvB;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;uEAClB;IAzBtC,wBAAwB;QAFpC,OAAO;QACP,gCAAO,CAAC,+CAAwB,EAAE,2CAA2C,CAAC;OAClE,wBAAwB,CAuFpC;IAAD,+BAAC;KAAA;AAvFY,4DAAwB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyNode, DummyRichText, DummyScrollView, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport Typewriter from \"../../../../../common/components/Typewriter\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { BedroomCatRewardView, BedroomCatRewardViewProps, BedroomCatRewardViewType } from \"../../type/BedroomCatRewardView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(BedroomCatRewardViewType, \"prefab/ui/bedroomCat/BedroomCatRewardView\")\nexport class BedroomCatRewardViewImpl extends CCPureView<BedroomCatRewardViewProps> implements BedroomCatRewardView {\n\n @property(cc.Sprite)\n private rewardPanelTitleSprite: cc.Sprite = DummySprite;\n @property({ type: [cc.SpriteFrame], displayName: \"Reward panel title spriteFrames\" })\n private rewardPanelTitleSpriteFrames: cc.SpriteFrame[] = [];\n @property(cc.Label)\n private rewardPanelTitleLabel: cc.Label = DummyLabel;\n @property(cc.Node)\n private rewardPanelNode = DummyNode;\n @property(cc.ScrollView)\n private scrollView = DummyScrollView;\n @property(cc.Node)\n private contentNode = DummyNode;\n @property({ type: [cc.Prefab], displayName: \"Reward item prefabs\" })\n private rewardItemPrefabs: cc.Prefab[] = [];\n @property(cc.Node)\n private welfareNode = DummyNode;\n @property({ type: [cc.Button], displayName: \"Tabbar Buttons\" })\n private tabbarButtons: cc.Button[] = [];\n @property({ type: [cc.SpriteFrame], displayName: \"Tabbar Spriteframes\" })\n private tabbarSpriteFrames: cc.SpriteFrame[] = [];\n @property({ type: [cc.Node], displayName: \"RedDot nodes\" })\n private redDotNodes: cc.Node[] = [];\n @property({ type: cc.Node, displayName: \"Close tip label node\" })\n private closeTipLabelNode: cc.Node = DummyNode;\n\n getThisViewNode() {\n return this.node;\n }\n\n getRewardPanelTitleSprite(): cc.Sprite {\n return this.rewardPanelTitleSprite;\n }\n\n getRewardPanelTitleSpriteFrames(): cc.SpriteFrame[] {\n return this.rewardPanelTitleSpriteFrames;\n }\n\n getRewardPanelTitleLabel(): cc.Label {\n return this.rewardPanelTitleLabel;\n }\n\n getRewardPanelNode(): cc.Node {\n return this.rewardPanelNode;\n }\n\n getScrollView(): cc.ScrollView {\n return this.scrollView;\n }\n\n getScrollViewContentNode(): cc.Node {\n return this.contentNode;\n }\n\n getRewardItemPrefabs(): cc.Prefab[] {\n return this.rewardItemPrefabs;\n }\n\n getWelfareNode(): cc.Node {\n return this.welfareNode;\n }\n\n getTabbarButtons(): cc.Button[] {\n return this.tabbarButtons;\n }\n\n getTabbarSpriteFrames(): cc.SpriteFrame[] {\n return this.tabbarSpriteFrames;\n }\n\n getRedDotNodes(): cc.Node[] {\n return this.redDotNodes;\n }\n\n getCloseTipLabelNode(): cc.Node {\n return this.closeTipLabelNode;\n }\n\n onClickTabbarBtn(event, customEventData) {\n let tabbarId = Number(customEventData);\n this._props.onClickTabbarBtn(tabbarId);\n }\n\n onCloseClickCallBack() {\n this._props.onCloseBtnClick();\n }\n}"]}
\ No newline at end of file
"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();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/PromptAlertDialogViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAsH;AACtH,2EAAwE;AACxE,4EAA0D;AAC1D,4EAAgI;AAGhI,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,uBAAsC;QAA7F;;YAGI,eAAU,GAAc,4BAAW,CAAC;YAEpC,iBAAY,GAAgB,8BAAa,CAAC;QAa9C,CAAC;QAXG,aAAa;YACT,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,eAAe;YACX,OAAO,IAAI,CAAC,YAAY,CAAA;QAC5B,CAAC;QAED,YAAY;YACR,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;KACJ,CAAA;IAfG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;iEACgB;IAEpC;QADC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC;mEACoB;IALzB,yBAAyB;QAF7C,OAAO;QACP,gCAAO,CAAC,iDAAyB,EAAE,4CAA4C,CAAC;OAC5D,yBAAyB,CAkB7C;IAAD,gCAAC;KAAA;kBAlBoB,yBAAyB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyRichText, DummyNode, DummyButton, DummySprite } from \"../../../../../common/CCDummyObjects\";\r\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\r\nimport { RegView } from \"../../../PresenterCCViewFactory\";\r\nimport { PromptAlertDialogViewProps, PromptAlertDialogView, PromptAlertDialogViewType } from \"../../type/PromptAlertDialogView\";\r\n\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\n@RegView(PromptAlertDialogViewType, \"prefab/ui/bedroomCat/PromptAlertDialogView\")\r\nexport default class PromptAlertDialogViewImpl extends CCPureView<PromptAlertDialogViewProps> implements PromptAlertDialogView {\r\n\r\n @property(cc.Sprite)\r\n iconSprite: cc.Sprite = DummySprite;\r\n @property(cc.RichText)\r\n contentLabel: cc.RichText = DummyRichText;\r\n\r\n getIconSprite(): cc.Sprite {\r\n return this.iconSprite;\r\n }\r\n\r\n getContentLable(): cc.RichText {\r\n return this.contentLabel\r\n }\r\n\r\n onOkBtnClick() {\r\n this.close();\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/ShareSuitViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAA8E;AAC9E,2EAAwE;AACxE,4EAA0D;AAC1D,4DAAgG;AAEhG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YAGI,cAAS,GAAY,0BAAS,CAAC;YAE/B,0BAAqB,GAAc,4BAAW,CAAC;YAE/C,oCAA+B,GAAc,4BAAW,CAAC;QAqB7D,CAAC;QAnBG,WAAW;YACP,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;QAED,YAAY;YACR,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;QAED,wBAAwB;YACpB,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;QAED,kCAAkC;YAC9B,OAAO,IAAI,CAAC,+BAA+B,CAAC;QAChD,CAAC;QAED,eAAe;YACX,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE,CAAC;QAC1C,CAAC;KACJ,CAAA;IAzBG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;wDACtC;IAE/B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;oEAC/B;IAE/C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;8EACtB;IAPhD,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,oCAAoC,CAAC;OACpD,iBAAiB,CA4B7B;IAAD,wBAAC;KAAA;AA5BY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { ShareSuitView, ShareSuitViewProps, ShareSuitViewType } from \"../../type/ShareSuitView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(ShareSuitViewType, \"prefab/ui/bedroomCat/ShareSuitView\")\nexport class ShareSuitViewImpl extends CCPureView<ShareSuitViewProps> implements ShareSuitView {\n\n @property({ type: cc.Node, displayName: \"ShareSuitView share node\" })\n shareNode: cc.Node = DummyNode;\n @property({ type: cc.Sprite, displayName: \"ShareSuitView background sprite\" })\n shareSuitViewBgSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Sprite, displayName: \"ShareSuitViewRolePortrait sprite\" })\n shareSuitViewRolePortraitSprite: cc.Sprite = DummySprite;\n\n getViewNode(): cc.Node {\n return this.node;\n }\n\n getShareNode(): cc.Node {\n return this.shareNode;\n }\n\n getShareSuitViewBgSprite(): cc.Sprite {\n return this.shareSuitViewBgSprite;\n }\n\n getShareSuitViewRolePortraitSprite(): cc.Sprite {\n return this.shareSuitViewRolePortraitSprite;\n }\n\n onCloseBtnClick() {\n this._props.onCloseBtnClickCallback();\n }\n}"]}
\ No newline at end of file
"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();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/WardrobeViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAmI;AACnI,2EAAwE;AAExE,4EAA0D;AAC1D,0DAA4F;AAE5F,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AA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,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;sDACzB;IAElC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;yDAC/B;IAE9B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;+DAChC;IAEzC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;yDAC3C;IAE5B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;mEACzB;IAE3C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;sDACtB;IAElC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;0DACvB;IAEtC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;2DACzB;IA7B1B,gBAAgB;QAF5B,OAAO;QACP,gCAAO,CAAC,+BAAgB,EAAE,mCAAmC,CAAC;OAClD,gBAAgB,CAuG5B;IAAD,uBAAC;KAAA;AAvGY,4CAAgB","file":"","sourceRoot":"/","sourcesContent":["import { DummyButton, DummyLabel, DummyNode, DummyPrefab, DummyRichText, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport Typewriter from \"../../../../../common/components/Typewriter\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { WardrobeView, WardrobeViewProps, WardrobeViewType } from \"../../type/WardrobeView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(WardrobeViewType, \"prefab/ui/bedroomCat/WardrobeView\")\nexport class WardrobeViewImpl extends CCPureView<WardrobeViewProps> implements WardrobeView {\n\n @property({ type: cc.Node, displayName: \"Introduction icon node\" })\n introductionIconNode: cc.Node = DummyNode;\n @property({ type: cc.Node, displayName: \"Introduction node\" })\n introductionNode: cc.Node = DummyNode;\n @property({ type: cc.Sprite, displayName: \"Role Portrait\" })\n rolePortrait: cc.Sprite = DummySprite;\n @property({ type: cc.Sprite, displayName: \"Role Portrait lock\" })\n rolePortraitLock: cc.Sprite = DummySprite;\n @property({ type: cc.Label, displayName: \"Role Portrait lock label\" })\n rolePortraitLockLabel: cc.Label = DummyLabel;\n @property({ type: cc.Button, displayName: \"Wear button\" })\n wearBtn: cc.Button = DummyButton;\n @property({ type: cc.Button, displayName: \"Share button\" })\n shareBtn: cc.Button = DummyButton;\n @property({ type: [cc.Button], displayName: \"Suit buttons\" })\n suitButtons: cc.Button[] = [];\n @property({ type: [cc.SpriteFrame], displayName: \"Suit button sprites\" })\n suitButtonSprites: cc.SpriteFrame[] = [];\n @property({ type: [cc.Node], displayName: \"Suit button reddot nodes\" })\n redDotNodes: cc.Node[] = [];\n @property({ type: cc.Node, displayName: \"ScrollView content node\" })\n scrollViewContentNode: cc.Node = DummyNode;\n @property({ type: cc.Prefab, displayName: \"Suit item\" })\n suitItem: cc.Prefab = DummyPrefab;\n @property({ type: cc.Prefab, displayName: \"Suit item null\" })\n suitItemNull: cc.Prefab = DummyPrefab;\n @property({ type: cc.Node, displayName: \"Stay tuned node\" })\n stayTunedNode: cc.Node = DummyNode;\n\n getIntroductionIconNode(): cc.Node {\n return this.introductionIconNode;\n }\n\n getIntroductionNode(): cc.Node {\n return this.introductionNode;\n }\n\n getRolePortrait(): cc.Sprite {\n return this.rolePortrait;\n }\n\n getRolePortraitLock(): cc.Sprite {\n return this.rolePortraitLock;\n }\n\n getRolePortraitLockLabel(): cc.Label {\n return this.rolePortraitLockLabel;\n }\n\n getWearBtn(): cc.Button {\n return this.wearBtn;\n }\n\n getShareBtn(): cc.Button {\n return this.shareBtn;\n }\n\n getSuitButtons(): cc.Button[] {\n return this.suitButtons;\n }\n\n getSuitButtonSprites(): cc.SpriteFrame[] {\n return this.suitButtonSprites;\n }\n\n getRedDotNodes(): cc.Node[] {\n return this.redDotNodes;\n }\n\n getScrollViewContentNode(): cc.Node {\n return this.scrollViewContentNode;\n }\n\n getSuitItem(): cc.Prefab {\n return this.suitItem;\n }\n\n getSuitItemNull(): cc.Prefab {\n return this.suitItemNull;\n }\n\n getStayTunedNode(): cc.Node {\n return this.stayTunedNode;\n }\n\n onWearBtnClick() {\n this._props.onWearBtnClickCallBack();\n }\n\n onShareBtnClick() {\n this._props.onShareBtnClickCallBack();\n }\n\n onTabBtnClick(event, customEventData) {\n let suitId = Number(customEventData);\n this._props.onTabBtnClickCallBack(suitId);\n }\n\n onBackBtnClick() {\n this._props.onBackBtnClickCallBack();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/BedroomCatRewardView.ts"],"names":[],"mappings":";;;;;;;AA6Ba,QAAA,wBAAwB,GAAG,sBAAsB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\ntype onClickTabbarBtn = (tabbarId: number) => void;\ntype onCloseBtnClick = () => void;\ntype onCloseNoviceGuideBtnClickCallBack = () => void;\nexport interface BedroomCatRewardViewProps {\n onClickTabbarBtn: onClickTabbarBtn;\n onCloseBtnClick: onCloseBtnClick;\n}\n\ntype BedroomCatRewardViewBase = PureView<BedroomCatRewardViewProps>;\n\nexport interface BedroomCatRewardView extends BedroomCatRewardViewBase {\n getThisViewNode: () => cc.Node;\n getRewardPanelTitleSprite: () => cc.Sprite;\n getRewardPanelTitleSpriteFrames: () => cc.SpriteFrame[];\n getRewardPanelTitleLabel: () => cc.Label;\n getRewardPanelNode: () => cc.Node;\n getScrollView: () => cc.ScrollView;\n getScrollViewContentNode: () => cc.Node;\n getRewardItemPrefabs: () => cc.Prefab[];\n getWelfareNode: () => cc.Node;\n getTabbarButtons: () => cc.Button[];\n getTabbarSpriteFrames: () => cc.SpriteFrame[];\n getRedDotNodes: () => cc.Node[];\n getCloseTipLabelNode: () => cc.Node;\n}\n\nexport const BedroomCatRewardViewType = \"BedroomCatRewardView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/BedroomView.ts"],"names":[],"mappings":";;;;;;;AA8Ca,QAAA,eAAe,GAAG,aAAa,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\nexport interface BedroomViewProps {\n onClickItem: (itemId: number) => void;\n onBackBtnClickCallBack: () => void;\n onClickTopAddBtn: (foodId: number) => void;\n onRewardBtnClickCallBack: () => void;\n onWardrobeBtnClickCallBack: () => void;\n onCatBtnClickCallBack: () => void;\n onBowlBtnClickCallBack: () => void;\n onFoodBtnClickCallBack: (foodId: number) => void;\n onFeedCloseBtnClickCallBack: () => void;\n onChangeBackgroundBtnClickCallBack: () => void;\n}\ntype BedroomViewBase = PureView<BedroomViewProps>;\n\nexport interface BedroomView extends BedroomViewBase {\n getThisNode: () => cc.Node;\n getItemNodes: () => cc.Node[];\n getTopBtnRootNodes: () => cc.Node[];\n getTopBtnNodes: () => cc.Node[];\n getTopBtnNumberLabels: () => cc.Label[];\n getIntroductionNodes: () => cc.Node[];\n getIntroductionIcons: () => cc.Sprite[];\n getIntroductionNameLabels: () => cc.Label[];\n getIntroductionLabels: () => cc.Label[];\n getCatButtonSkeletonNode: () => cc.Node;\n getCatBubbleNode: () => cc.Node;\n getCatBubbleLabel: () => cc.Label;\n getCatFeedRootNode: () => cc.Node;\n getCatBlowBtnNode: () => cc.Node;\n getFoodBtnNodes: () => cc.Node[];\n getFoodNumberLabels: () => cc.Label[];\n getCatLevelLabel: () => cc.Label;\n getCatExpLabel: () => cc.Label;\n getCatExpProgressBar: () => cc.ProgressBar;\n getRewardBtnNode: () => cc.Node;\n getRewardRedDotNode: () => cc.Node;\n getWardrobeBtnNode: () => cc.Node;\n getWardrobeRedDotNode: () => cc.Node;\n getBackgroundSpriteFrames: () => cc.SpriteFrame[];\n getBackground: () => cc.Sprite;\n getChangeBgSpriteFrames: () => cc.SpriteFrame[];\n getChangeBackground: () => cc.Sprite;\n}\nexport const BedroomViewType = \"BedroomView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DebugView.ts"],"names":[],"mappings":";;;;;;;AA0Ba,QAAA,aAAa,GAAG,WAAW,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\r\n\r\ntype onCopyIdBtnClickCallback = () => void;\r\ntype onClearRecordBtnClickCallback = () => void;\r\ntype onCopyRecordBtnClickCallback = () => void;\r\ntype onYouHuaBtnClickCallback = () => void;\r\ntype onShouBiaoBtnClickCallback = () => void;\r\ntype onCatFoodBtnClickCallback = (foodNumber: number) => void;\r\ntype onCannedBtnClickCallback = (foodNumber: number) => void;\r\ntype onClearSuitShareRecordBtnClickCallback = () => void;\r\nexport interface DebugViewProps {\r\n playerID: string;\r\n onCopyIdBtnClickCallback: onCopyIdBtnClickCallback;\r\n onClearRecordBtnClickCallback: onClearRecordBtnClickCallback;\r\n onCopyRecordBtnClickCallback: onCopyRecordBtnClickCallback;\r\n onYouHuaBtnClickCallback: onYouHuaBtnClickCallback;\r\n onShouBiaoBtnClickCallback: onShouBiaoBtnClickCallback;\r\n onCatFoodBtnClickCallback: onCatFoodBtnClickCallback;\r\n onCannedBtnClickCallback: onCannedBtnClickCallback;\r\n onClearSuitShareRecordBtnClickCallback: onClearSuitShareRecordBtnClickCallback;\r\n}\r\n\r\ntype DebugViewBase = PureView<DebugViewProps>;\r\n\r\nexport interface DebugView extends DebugViewBase { }\r\n\r\nexport const DebugViewType = \"DebugView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DebugView.ts"],"names":[],"mappings":";;;;;;;AAoBa,QAAA,aAAa,GAAG,WAAW,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\r\n\r\ntype onCopyIdBtnClickCallback = () => void;\r\ntype onClearRecordBtnClickCallback = () => void;\r\ntype onCopyRecordBtnClickCallback = () => void;\r\ntype onYouHuaBtnClickCallback = () => void;\r\ntype onShouBiaoBtnClickCallback = () => void;\r\nexport interface DebugViewProps {\r\n playerID: string;\r\n onCopyIdBtnClickCallback: onCopyIdBtnClickCallback;\r\n onClearRecordBtnClickCallback: onClearRecordBtnClickCallback;\r\n onCopyRecordBtnClickCallback: onCopyRecordBtnClickCallback;\r\n onYouHuaBtnClickCallback: onYouHuaBtnClickCallback;\r\n onShouBiaoBtnClickCallback: onShouBiaoBtnClickCallback;\r\n}\r\n\r\ntype DebugViewBase = PureView<DebugViewProps>;\r\n\r\nexport interface DebugView extends DebugViewBase { }\r\n\r\nexport const DebugViewType = \"DebugView\";"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '15701qRGV9JSLqbrqPClhEa', 'ItemIntroductionView');
// script/game/ui/view/type/ItemIntroductionView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ItemIntroductionViewType = void 0;
exports.ItemIntroductionViewType = "ItemIntroductionView";
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/MainView.ts"],"names":[],"mappings":";;;;;;;AAoCa,QAAA,YAAY,GAAG,UAAU,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { TabViewProps, TabView } from \"./TabView\";\nimport { PureView } from \"../../../../common/classbase/ViewBase\";\nimport { GuideViewParamModel } from \"../../presenter/GuideViewPresenter\";\n\ntype onDebugClickCallback = () => void;\ntype onUrgentNoticeClickCallback = () => void;\ntype onGoToShopClickCallback = () => void;\ntype onCommonProblemClickCallback = () => void;\ntype onRewardBtnClickCallback = () => void;\nexport interface MainViewProps extends TabViewProps {\n messageRedDot: boolean;\n datingEventRedDot: boolean;\n waitRedDot: boolean; //商城红点\n discoverRedDot: boolean; //任务红点 \n onDebugClick: onDebugClickCallback;\n onUrgentNoticeClick: onUrgentNoticeClickCallback;\n onGoToShopClick: onGoToShopClickCallback;\n onCommonProblemClick: onCommonProblemClickCallback;\n onRewardBtnClickCallback: onRewardBtnClickCallback;\n}\n\ntype MainViewBase = PureView<MainViewProps> & TabView;\n\nexport interface MainView extends MainViewBase {\n getGuideTabParam(index: number): GuideViewParamModel | undefined;\n hideClickAniByIndex: (index: number) => void;\n showRewardBtn: (isShow: boolean) => void;\n showBottonsNode: (isShow: boolean) => void;\n showSubGameNode: (isShow: boolean) => void;\n updateBedRoomRedDot: () => void;\n onTabButtonClick: (event: any, index: string) => void;\n showTabBar: (isShow: boolean) => void;\n showWaitingView: (isShow: boolean) => void;\n getRewardRedDotNode: () => cc.Node;\n}\n\nexport const MainViewType = \"MainView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/MainView.ts"],"names":[],"mappings":";;;;;;;AAyBa,QAAA,YAAY,GAAG,UAAU,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { TabViewProps, TabView } from \"./TabView\";\nimport { PureView } from \"../../../../common/classbase/ViewBase\";\nimport { GuideViewParamModel } from \"../../presenter/GuideViewPresenter\";\n\ntype onDebugClickCallback = () => void;\ntype onUrgentNoticeClickCallback = () => void;\ntype onGoToShopClickCallback = () => void;\ntype onCommonProblemClickCallback = () => void;\ntype onRewardBtnClickCallback = () => void;\nexport interface MainViewProps extends TabViewProps {\n messageRedDot: boolean;\n datingEventRedDot: boolean;\n discoverRedDot: boolean; //任务红点 \n onDebugClick: onDebugClickCallback;\n}\n\ntype MainViewBase = PureView<MainViewProps> & TabView;\n\nexport interface MainView extends MainViewBase {\n getGuideTabParam(index: number): GuideViewParamModel | undefined;\n hideClickAniByIndex: (index: number) => void;\n onTabButtonClick: (event: any, index: string) => void;\n showWaitingView: (isShow: boolean) => void;\n}\n\nexport const MainViewType = \"MainView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/PromptAlertDialogView.ts"],"names":[],"mappings":";;;;;;;AAea,QAAA,yBAAyB,GAAG,uBAAuB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\r\n\r\n\r\nexport interface PromptAlertDialogViewProps {\r\n iconSpritePath: string;\r\n contentLabel: string;\r\n}\r\n\r\ntype PromptAlertDialogViewBase = PureView<PromptAlertDialogViewProps>;\r\n\r\nexport interface PromptAlertDialogView extends PromptAlertDialogViewBase {\r\n getIconSprite: () => cc.Sprite;\r\n getContentLable: () => cc.RichText;\r\n}\r\n\r\nexport const PromptAlertDialogViewType = \"PromptAlertDialogView\";\r\n\r\n\r\n\r\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/ShareSuitView.ts"],"names":[],"mappings":";;;;;;;AAoBa,QAAA,iBAAiB,GAAG,eAAe,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\n\nexport type ShareSuitViewCallback = (result: boolean, param?: any) => void;\nexport type onCloseBtnClickCallback = () => void;\nexport interface ShareSuitViewProps {\n bgSpritePath: string,\n rolePortraitSpritePath: string,\n shareSuitViewCallback: ShareSuitViewCallback;\n onCloseBtnClickCallback: onCloseBtnClickCallback;\n}\n\ntype ShareSuitViewBase = PureView<ShareSuitViewProps>;\n\nexport interface ShareSuitView extends ShareSuitViewBase {\n getViewNode: () => cc.Node;\n getShareNode: () => cc.Node;\n getShareSuitViewBgSprite: () => cc.Sprite;\n getShareSuitViewRolePortraitSprite: () => cc.Sprite;\n}\n\nexport const ShareSuitViewType = \"ShareSuitView\";"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '3aa5bKG7VhJ5685gbKw+u+S', 'SpecialPlotView');
// script/game/ui/view/type/SpecialPlotView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecialPlotViewType = void 0;
exports.SpecialPlotViewType = "SpecialPlotView";
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/WardrobeView.ts"],"names":[],"mappings":";;;;;;;AAmCa,QAAA,gBAAgB,GAAG,cAAc,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\ntype onWearBtnClickCallBack = () => void;\ntype onShareBtnClickCallBack = () => void;\ntype onTabBtnClickCallBack = (suitId: number) => void;\ntype onBackBtnClickCallBack = () => void;\ntype onCloseNoviceGuideBtnClickCallBack = () => void;\nexport interface WardrobeViewProps {\n onWearBtnClickCallBack: onWearBtnClickCallBack;\n onShareBtnClickCallBack: onShareBtnClickCallBack;\n onTabBtnClickCallBack: onTabBtnClickCallBack;\n onBackBtnClickCallBack: onBackBtnClickCallBack;\n onCloseNoviceGuideBtnClickCallBack: onCloseNoviceGuideBtnClickCallBack;\n}\n\ntype WardrobeViewBase = PureView<WardrobeViewProps>;\n\nexport interface WardrobeView extends WardrobeViewBase {\n getIntroductionIconNode: () => cc.Node;\n getIntroductionNode: () => cc.Node;\n getRolePortrait: () => cc.Sprite;\n getRolePortraitLock: () => cc.Sprite;\n getRolePortraitLockLabel: () => cc.Label;\n getWearBtn: () => cc.Button;\n getShareBtn: () => cc.Button;\n getSuitButtons: () => cc.Button[];\n getSuitButtonSprites: () => cc.SpriteFrame[];\n getRedDotNodes: () => cc.Node[];\n getScrollViewContentNode: () => cc.Node;\n getSuitItem: () => cc.Prefab;\n getSuitItemNull: () => cc.Prefab;\n getStayTunedNode: () => cc.Node;\n}\n\nexport const WardrobeViewType = \"WardrobeView\";"]}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!