Commit eeda0317 by 张树文

删除警告相关

1 parent 02cd8f68
Showing with 70 additions and 2123 deletions
......@@ -39,17 +39,17 @@
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 98
},
{
"__id__": 100
"__id__": 99
},
{
"__id__": 101
"__id__": 100
}
],
"_prefab": {
"__id__": 102
"__id__": 101
},
"_opacity": 255,
"_color": {
......@@ -3471,13 +3471,10 @@
"_components": [
{
"__id__": 96
},
{
"__id__": 97
}
],
"_prefab": {
"__id__": 98
"__id__": 97
},
"_opacity": 255,
"_color": {
......@@ -3569,19 +3566,6 @@
"_id": ""
},
{
"__type__": "3479d5hTA1BFbz3xze6Hk4D",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": false,
"clip": {
"__uuid__": "db04d80c-424e-438b-a3b3-2ba0447dd7f5"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
......
......@@ -478,7 +478,7 @@
1,
1,
1,
0
1
]
},
"_eulerAngles": {
......@@ -521,8 +521,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 26,
"height": 26
"width": 31,
"height": 31
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -532,7 +532,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 407.74,
"width": 406,
"height": 45.36
},
"_anchorPoint": {
......
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "guideNode",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
115.128,
-307,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "spine",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 231.66,
"height": 202.71
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "sp.Skeleton",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
}
],
"paused": false,
"defaultSkin": "default",
"defaultAnimation": "idle",
"_preCacheMode": 0,
"_cacheMode": 0,
"loop": true,
"premultipliedAlpha": true,
"timeScale": 0.7,
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_skeletonCache": null,
"_animationName": "idle",
"_animationQueue": [],
"_headAniInfo": null,
"_playTimes": 0,
"_isAniComplete": true,
"_N$skeletonData": {
"__uuid__": "6188a5ee-d399-44ed-93cc-800f42c51b08"
},
"_N$_defaultCacheMode": 0,
"_N$debugSlots": false,
"_N$debugBones": false,
"_N$debugMesh": false,
"_N$useTint": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8aVZBKmmVNar7Menpmxd5l",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tiips",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 6
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-123.643,
-204.284,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "tipsBg",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [
{
"__id__": 7
}
],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 471,
"height": 129
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
40.038,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 177,
"g": 207,
"b": 248,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-25.807,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "点击屏幕继续",
"_N$string": "点击屏幕继续",
"_fontSize": 32,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "105hQJg61IFYd4Io6YOGt4",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6c02371c-75f2-461e-aa57-d9e52c2e8f0f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1dscdGFlxI6o+4zZ6WaTZ+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0eUHXwERtA+6QA88EX9Ybu",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 178.792,
"_top": 0,
"_bottom": 333,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e9VCI01nBI3awLc7L9h7iM",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "ff516f17-f278-47d9-befc-ef7bfb4c0459",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "e0b242f1-c53c-4b8e-91fe-268c053b2d8f",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
import { AudioManager } from "simba-cc-audio-manager";
import { ConfigManager } from "simba-config-manager";
import { HttpClient } from "simba-httpclient";
import { SDK } from "simba-sdk";
import { DeepReadonly, delay } from "simba-utils";
import { Action, ActionManager, ActionType, GameRecord, Plot, PlotManager, richNodesToCocosString, SentenceType, SpecialPlotId } from "../../../avg/AVG";
import { DateType, FaceType } from "../../../avg/EditorEnums";
......@@ -10,10 +8,7 @@ import { Presenter } from "../../../common/classbase/PresenterBase";
import { GameConstData } from "../../../common/gameplay/gamedata/GameConstData";
import { UIManager } from "../../../common/gameplay/managers/UIManager";
import { dateSceneConfig } from "../../../config/DateSceneConfig";
import GameCenter from "../../../cooperation/script/GameCenter";
import { channel, GameConfig } from "../../../GameConfig";
import { PlotSceneType } from "../../Enums";
import GameDotMgr from "../../GameDotMgr";
import CDKeyEventManager from "../../model/CDKeyEventManager";
import { DatingEventSceneModel, DatingEventStatus } from "../../model/DatingEventSceneModel";
import { GameModelManager } from "../../model/GameModelManager";
......@@ -26,8 +21,6 @@ import { AlertDialogViewProps } from "../view/type/AlertDialogView";
import { DatingSceneView, DatingSceneViewType } from "../view/type/DatingSceneView";
import { SentenceSelectorViewProps } from "../view/type/SentenceSelectorView";
import AlertDialogViewPresenter from "./AlertDialogViewPresenter";
import UrgentNoticeViewPresenter from "./notice/UrgentNoticeViewPresenter";
import NoticeViewPresenter from "./NoticeViewPresenter";
import ReviewPlotViewPresenter, { ReviewPlotViewParam } from "./ReviewPlotViewPresenter";
import SentenceSelectorViewPresenter from "./SentenceSelectorViewPresenter";
......@@ -62,10 +55,7 @@ export class DatingScenePresenter extends Presenter<DatingEventSceneModel, Datin
this._isDotTutorial = false;
this._reviewPlot = "";
this.view.completePlotCallback = this.completePlot;
this.view.onUrgentBtnClickCallback = this.onUrgentBtnClickCallback;
this.view.onGoToShopBtnCallback = this.onGoToShopBtnCallback;
this.view.onRollBackBtnCallback = this.onRollBackBtnCallback;
this.view.onCommonProblemBtnClickCallback = this.onCommonProblemBtnClickCallback;
this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;
this._model = param;
if (this._model.status === DatingEventStatus.New) {
......@@ -173,8 +163,6 @@ export class DatingScenePresenter extends Presenter<DatingEventSceneModel, Datin
} else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
await this.view.setContent(sentence.roleId === GameConstData.GAME_CONST_PLAYER_ROLE_VALUE,
richNodesToCocosString(content.value),
sentence.roleId === 1 ? "" : roleData.getNameIcon(),
......@@ -191,8 +179,6 @@ export class DatingScenePresenter extends Presenter<DatingEventSceneModel, Datin
} else if (content.type === SentenceType.SELECT) {
this.view.showBackBtn(false);
this.view.showRollBackBtn(false);
this.view.showGoToShopBtn(false);
this.view.showCommonProblemBtn(false);
let setSelection = async () => {
let value = content.value[this._currSelect!];
let str = value.summary;
......@@ -263,8 +249,6 @@ export class DatingScenePresenter extends Presenter<DatingEventSceneModel, Datin
} else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
let Plot = PlotManager.getCurrentPlots()[0];
let isToBeContinued = Plot.id == SpecialPlotId.ToBeContinued;
let isEnd = Plot.id == SpecialPlotId.End;
......@@ -397,43 +381,6 @@ export class DatingScenePresenter extends Presenter<DatingEventSceneModel, Datin
}
}
onCommonProblemBtnClickCallback = async () => {
try {
let resStr = await new HttpClient(GameConfig.commonProblemConfigUrl).get() as string;
let res = JSON.parse(resStr);
if (res) {
UIManager.pushPresenter(NoticeViewPresenter, {
title: res.title,
content: res.content
});
}
} catch (error) {
console.error(error);
}
}
onUrgentBtnClickCallback = () => {
UIManager.pushPresenter(UrgentNoticeViewPresenter, undefined);
}
onGoToShopBtnCallback = () => {
GameDotMgr.getInstance().dotClickUI("shop_btn_DatingScene");
if (channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
let link = GameModelManager.getYouZanShopUrlByType(8);
if (link) {
SDK.openProgramV2(GameConfig.youZanShopAppId, link);
}
} else if (channel == "android") {
let link = GameModelManager.getTaoBaoShopUrlByType(8);
if (link) {
GameModelManager.jumpToTaobaoShop(link);
}
} else {
UIManager.showToast("该功能在当前平台不可使用");
}
}
CreateOrUpdateChapterBtns() {
this.view.getScrollViewContentNode().removeAllChildren();
let ret: { chapterId: number, chapterName: number, chapterStartPlotId: number }[] = [];
......
......@@ -4,7 +4,6 @@ import { DateType } from "../../../avg/EditorEnums";
import { Presenter } from "../../../common/classbase/PresenterBase";
import { UIManager } from "../../../common/gameplay/managers/UIManager";
import { dateSceneConfig } from "../../../config/DateSceneConfig";
import GameCenter from "../../../cooperation/script/GameCenter";
import { channel, GameConfig } from "../../../GameConfig";
import { DatingEventStatus } from "../../model/DatingEventSceneModel";
import { ExtraStoryModelManager } from "../../model/ExtraStoryModelManager";
......@@ -58,7 +57,6 @@ export default class ExtraPlotViewPresenter extends Presenter<undefined, ExtraPl
initViewDate() {
this._viewState = ExtraPlotViewState.Choose;
this.view.getButtonsNode().active = false;
this.setMarkButtonsPosition();
this.dropAction();
this.updateRedDot();
......@@ -100,7 +98,6 @@ export default class ExtraPlotViewPresenter extends Presenter<undefined, ExtraPl
if (i == (this.view.getMarkButtonNodes().length - 1)) {
GameModelManager.RefreshExtraPlotByType.emit(this._tabbarId);
this.view.getMaskNode().active = false;
this.view.getButtonsNode().active = true;
}
})
.start();
......
......@@ -33,7 +33,6 @@ import { DateType, PageIndex } from "../../../avg/EditorEnums";
import NewNoticeViewPresenter from "./notice/NewNoticeViewPresenter";
import { SourceView } from "../view/type/notice/NewNoticeView";
import ExtraPlotViewPresenter from "./ExtraPlotViewPresenter";
import UrgentNoticeViewPresenter from "./notice/UrgentNoticeViewPresenter";
import { SDK } from "simba-sdk";
const TabPresenterFactory: ({ new(): Presenter } & { uuid: string })[] = [
......@@ -73,10 +72,6 @@ export default class MainViewPresenter extends Presenter<undefined, MainView> {
UIManager.pushPresenter(DebugViewPresenter, undefined);
}
onUrgentNoticeClickCallback = () => {
UIManager.pushPresenter(UrgentNoticeViewPresenter, undefined);
}
onGoToShopClickCallback = () => {
GameDotMgr.getInstance().dotClickUI("shop_btn_MainView");
if (channel == "wechat") {
......@@ -379,11 +374,6 @@ export default class MainViewPresenter extends Presenter<undefined, MainView> {
UIManager.pushPresenter(NewNoticeViewPresenter, SourceView.MessageView);
}
break;
case AutoPopViewType.UrgentNotice:
{
UIManager.pushPresenter(UrgentNoticeViewPresenter, undefined);
}
break;
case AutoPopViewType.PlotStop:
{
UIManager.pushPresenter(PlotStopViewPresenter, undefined);
......
import { Presenter } from "../../../../common/classbase/PresenterBase";
import { GameModelManager } from "../../../model/GameModelManager";
import { RegPresenter } from "../../PresenterCCViewFactory";
import { UrgentNoticeViewType, UrgentNoticeView, UrgentNoticeViewProps } from "../../view/type/notice/UrgentNoticeView";
@RegPresenter(UrgentNoticeViewType)
export default class UrgentNoticeViewPresenter extends Presenter<undefined, UrgentNoticeView>{
static uuid = "UrgentNoticeViewPresenter"
private _viewProps: UrgentNoticeViewProps;
private _delayTime: number = 0;
private _closeTimeTicker: number = -1;
private _canClose: boolean = false;
constructor() {
super();
this._viewProps = {
onCloseButtonClickCalback: this.onCloseButtonClickCalback,
};
}
onOpen() {
super.onOpen(undefined);
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.initView();
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
initView() {
//重置可关闭状态为false
this._canClose = false;
//根据是否是第一次弹起紧急公告判断延迟时间
this._delayTime = GameModelManager.getUrgentNoticeInfo().readed ? 0 : 3;
//重置提示文本状态
this.view.getCloseTipsLabel().string = "";
//根据存档初始化“今日不再提示”的选择框
let autoShow = GameModelManager.getUrgentNoticeInfo().autoShow;
this.view.getTipsToggle().isChecked = !autoShow;
this.startTimeTicker();
}
/**
* 开启可关闭定时器
*/
startTimeTicker() {
if (this._delayTime == 0) {
this._canClose = true;
this.view.getCloseTipsLabel().string = "点击空白区域可关闭";
} else {
this.view.getCloseTipsLabel().string = this._delayTime + "秒后可关闭";
this._closeTimeTicker = window.setTimeout(() => {
this._delayTime -= 1;
this.startTimeTicker();
}, 1000);
}
}
/**
* 检查“今日不再提示”单选框的选择状态
*/
checkTipsToggleState() {
let isChecked = this.view.getTipsToggle().isChecked;
GameModelManager.setUrgentNoticeInfo({ readed: true, autoShow: !isChecked });
}
/**关闭界面按钮的点击事件 */
onCloseButtonClickCalback = () => {
if (this._canClose) {
this.checkTipsToggleState();
clearTimeout(this._closeTimeTicker);
this.view.close();
}
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "e01b2ad0-0f6b-4985-b2f4-4241d95712a6",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -15,9 +15,6 @@ export class ExtraPlotViewImpl extends CCPureView<ExtraPlotViewProps> implements
@property({ type: cc.Node, displayName: "Mask node" })
maskNode: cc.Node = DummyNode;
@property({ type: cc.Node, displayName: "Buttons node" })
buttonsNode: cc.Node = DummyNode;
getMarkButtonNodes(): cc.Node[] {
return this.markButtonNodes;
}
......@@ -26,19 +23,11 @@ export class ExtraPlotViewImpl extends CCPureView<ExtraPlotViewProps> implements
return this.maskNode;
}
getButtonsNode(): cc.Node {
return this.buttonsNode;
}
onMarkButtonClick(event, customEventData) {
let tabbarId = Number(customEventData);
this._props.onMarkButtonClickCallback(tabbarId);
}
onGotoShopButtonClick() {
this._props.onGotoShopButtonClickCallback();
}
onCloseButtonClick() {
this._props.onCloseButtonClickCallback();
}
......
......@@ -61,12 +61,6 @@ export class DatingSceneViewImpl extends CCView implements DatingSceneView {
@property(cc.Node)
private rollBackBtn = DummyNode;
@property(cc.Node)
private urgentBtnNode = DummyNode;
@property(cc.Node)
private goToShopBtn = DummyNode;
@property(cc.Node)
private commonProblemBtn = DummyNode;
@property(cc.Prefab)
private chapterBtn = DummyPrefab;
@property(cc.Node)
......@@ -147,14 +141,10 @@ export class DatingSceneViewImpl extends CCView implements DatingSceneView {
//#endregion
completePlotCallback: () => Promise<void>;
onUrgentBtnClickCallback: () => void;
onGoToShopBtnCallback: () => void;
onRollBackBtnCallback: () => void;
onCommonProblemBtnClickCallback: () => void;
onReviewButtonClickCallback: () => void;
onEnable() {
this.urgentBtnNode.active = false;
this.resetAutoPlayButtonState();
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);
}
......@@ -493,36 +483,11 @@ export class DatingSceneViewImpl extends CCView implements DatingSceneView {
getChapterBtn = (): cc.Prefab => {
return this.chapterBtn;
}
onUrgentBtnClick() {
this.resetAutoPlayButtonState();
this.onUrgentBtnClickCallback();
}
onGoToShopClick() {
this.resetAutoPlayButtonState();
this.onGoToShopBtnCallback();
}
onCommonProblemBtnClick() {
this.resetAutoPlayButtonState();
this.onCommonProblemBtnClickCallback();
}
onRollBackBtnClick() {
this.resetAutoPlayButtonState();
this.onRollBackBtnCallback();
}
showGoToShopBtn = (isShow: boolean) => {
this.goToShopBtn.active = isShow;
}
showCommonProblemBtn = (isShow: boolean) => {
this.urgentBtnNode.active = false;
this.commonProblemBtn.active = isShow;
}
showRollBackBtn = (isShow: boolean) => {
this.rollBackBtn.active = isShow;
}
......
import { DummyLabel, DummyNode, DummyPrefab, DummyRichText } from "../../../../../common/CCDummyObjects";
import { CCPureView } from "../../../../../common/classbase/CCViewBase";
import { RegView } from "../../../PresenterCCViewFactory";
import { UrgentNoticeViewType, UrgentNoticeViewProps, UrgentNoticeView } from "../../type/notice/UrgentNoticeView";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(UrgentNoticeViewType, "prefab/ui/notice/UrgentNoticeView")
export class UrgentNoticeViewImpl extends CCPureView<UrgentNoticeViewProps> implements UrgentNoticeView {
@property({ type: cc.Toggle, displayName: "Tips toggle" })
tipsToggle: cc.Toggle;
@property({ type: cc.Label, displayName: "CloseTips label" })
closeTipsLabel: cc.Label;
getTipsToggle(): cc.Toggle {
return this.tipsToggle;
}
getCloseTipsLabel(): cc.Label {
return this.closeTipsLabel;
}
onCloseButtonClick() {
this._props.onCloseButtonClickCalback();
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "9e18b3c0-2540-426e-b1ee-be3f3b66ca30",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -21,13 +21,8 @@ export interface DatingSceneView extends View {
/**关闭ui */
closeView: () => void;
showGoToShopBtn: (isShow: boolean) => void;
showRollBackBtn: (isShow: boolean) => void;
showCommonProblemBtn: (isShow: boolean) => void;
onUrgentBtnClickCallback: () => void;
onGoToShopBtnCallback: () => void;
onRollBackBtnCallback: () => void;
onCommonProblemBtnClickCallback: () => void;
onReviewButtonClickCallback: () => void;
}
......
......@@ -19,7 +19,6 @@ type ExtraPlotViewBase = PureView<ExtraPlotViewProps>;
export interface ExtraPlotView extends ExtraPlotViewBase {
getMarkButtonNodes: () => cc.Node[];
getMaskNode: () => cc.Node;
getButtonsNode: () => cc.Node;
}
export const ExtraPlotViewType = "ExtraPlotView";
\ No newline at end of file
......@@ -3,10 +3,6 @@ import { PureView } from "../../../../common/classbase/ViewBase";
import { GuideViewParamModel } from "../../presenter/GuideViewPresenter";
type onDebugClickCallback = () => void;
type onUrgentNoticeClickCallback = () => void;
type onGoToShopClickCallback = () => void;
type onCommonProblemClickCallback = () => void;
type onRewardBtnClickCallback = () => void;
export interface MainViewProps extends TabViewProps {
messageRedDot: boolean;
datingEventRedDot: boolean;
......
import { PureView } from "../../../../../common/classbase/ViewBase";
export interface UrgentNoticeViewProps {
onCloseButtonClickCalback: () => void;
}
type UrgentNoticeViewBase = PureView<UrgentNoticeViewProps>;
export interface UrgentNoticeView extends UrgentNoticeViewBase {
getTipsToggle: () => cc.Toggle;
getCloseTipsLabel: () => cc.Label;
}
export const UrgentNoticeViewType = "UrgentNoticeView";
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "e9fee715-b849-473d-8547-3c5d6d3d3cab",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -22,7 +22,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
super(...arguments);
this.markButtonNodes = [];
this.maskNode = CCDummyObjects_1.DummyNode;
this.buttonsNode = CCDummyObjects_1.DummyNode;
}
getMarkButtonNodes() {
return this.markButtonNodes;
......@@ -30,16 +29,10 @@ let ExtraPlotViewImpl = /** @class */ (() => {
getMaskNode() {
return this.maskNode;
}
getButtonsNode() {
return this.buttonsNode;
}
onMarkButtonClick(event, customEventData) {
let tabbarId = Number(customEventData);
this._props.onMarkButtonClickCallback(tabbarId);
}
onGotoShopButtonClick() {
this._props.onGotoShopButtonClickCallback();
}
onCloseButtonClick() {
this._props.onCloseButtonClickCallback();
}
......@@ -50,9 +43,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
__decorate([
property({ type: cc.Node, displayName: "Mask node" })
], ExtraPlotViewImpl.prototype, "maskNode", void 0);
__decorate([
property({ type: cc.Node, displayName: "Buttons node" })
], ExtraPlotViewImpl.prototype, "buttonsNode", void 0);
ExtraPlotViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(ExtraPlotView_1.ExtraPlotViewType, "prefab/ui/ExtraPlotView")
......
{"version":3,"sources":["assets/script/game/ui/view/impl/ExtraPlotViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sEAA8D;AAC9D,wEAAqE;AACrE,yEAAuD;AACvD,yDAA6F;AAE7F,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YAGI,oBAAe,GAAc,EAAE,CAAC;YAGhC,aAAQ,GAAY,0BAAS,CAAC;YAG9B,gBAAW,GAAY,0BAAS,CAAC;QA0BrC,CAAC;QAxBG,kBAAkB;YACd,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;QAED,WAAW;YACP,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;QAED,cAAc;YACV,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;QAED,iBAAiB,CAAC,KAAK,EAAE,eAAe;YACpC,IAAI,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;YACvC,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,qBAAqB;YACjB,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,CAAC;QAChD,CAAC;QAED,kBAAkB;YACd,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,CAAC;QAC7C,CAAC;KACJ,CAAA;IAhCG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;8DAC7B;IAGhC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;uDACxB;IAG9B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;0DACxB;IATxB,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,yBAAyB,CAAC;OACzC,iBAAiB,CAmC7B;IAAD,wBAAC;KAAA;AAnCY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { ExtraPlotView, ExtraPlotViewProps, ExtraPlotViewType } from \"../type/ExtraPlotView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(ExtraPlotViewType, \"prefab/ui/ExtraPlotView\")\nexport class ExtraPlotViewImpl extends CCPureView<ExtraPlotViewProps> implements ExtraPlotView {\n\n @property({ type: [cc.Node], displayName: \"Countdown node\" })\n markButtonNodes: cc.Node[] = [];\n\n @property({ type: cc.Node, displayName: \"Mask node\" })\n maskNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"Buttons node\" })\n buttonsNode: cc.Node = DummyNode;\n\n getMarkButtonNodes(): cc.Node[] {\n return this.markButtonNodes;\n }\n\n getMaskNode(): cc.Node {\n return this.maskNode;\n }\n\n getButtonsNode(): cc.Node {\n return this.buttonsNode;\n }\n\n onMarkButtonClick(event, customEventData) {\n let tabbarId = Number(customEventData);\n this._props.onMarkButtonClickCallback(tabbarId);\n }\n\n onGotoShopButtonClick() {\n this._props.onGotoShopButtonClickCallback();\n }\n \n onCloseButtonClick() {\n this._props.onCloseButtonClickCallback();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/ExtraPlotViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sEAA8D;AAC9D,wEAAqE;AACrE,yEAAuD;AACvD,yDAA6F;AAE7F,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YAGI,oBAAe,GAAc,EAAE,CAAC;YAGhC,aAAQ,GAAY,0BAAS,CAAC;QAkBlC,CAAC;QAhBG,kBAAkB;YACd,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;QAED,WAAW;YACP,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;QAED,iBAAiB,CAAC,KAAK,EAAE,eAAe;YACpC,IAAI,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;YACvC,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,kBAAkB;YACd,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,CAAC;QAC7C,CAAC;KACJ,CAAA;IArBG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;8DAC7B;IAGhC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;uDACxB;IANrB,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,yBAAyB,CAAC;OACzC,iBAAiB,CAwB7B;IAAD,wBAAC;KAAA;AAxBY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { ExtraPlotView, ExtraPlotViewProps, ExtraPlotViewType } from \"../type/ExtraPlotView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(ExtraPlotViewType, \"prefab/ui/ExtraPlotView\")\nexport class ExtraPlotViewImpl extends CCPureView<ExtraPlotViewProps> implements ExtraPlotView {\n\n @property({ type: [cc.Node], displayName: \"Countdown node\" })\n markButtonNodes: cc.Node[] = [];\n\n @property({ type: cc.Node, displayName: \"Mask node\" })\n maskNode: cc.Node = DummyNode;\n\n getMarkButtonNodes(): cc.Node[] {\n return this.markButtonNodes;\n }\n\n getMaskNode(): cc.Node {\n return this.maskNode;\n }\n\n onMarkButtonClick(event, customEventData) {\n let tabbarId = Number(customEventData);\n this._props.onMarkButtonClickCallback(tabbarId);\n }\n \n onCloseButtonClick() {\n this._props.onCloseButtonClickCallback();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DatingSceneView.ts"],"names":[],"mappings":";;;;;;;AAiCa,QAAA,mBAAmB,GAAG,iBAAiB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { View } from \"../../../../common/classbase/ViewBase\";\n\nexport interface DatingSceneView extends View {\n /**\n * 完成当前剧情回调函数\n */\n completePlotCallback: () => Promise<void>;\n setContent(isSelf: boolean, text: string, nameSpr: string, name?: string, portraitImg?: string, otherPortraitImg?: string, showRouge?: boolean): Promise<void>;\n setBackground(path: string): Promise<void>;\n setBackgroundEffect(path: string): Promise<void>;\n setIsRunningAction: (isRunning: boolean) => void;\n /**引导返回 */\n guideBack(): void;\n /**是否显示返回按钮*/\n showBackBtn: (show: boolean) => void;\n setRunCloseAction: (run: boolean) => void;\n\n getScrollViewRootNode: () => cc.Node;\n getScrollViewContentNode: () => cc.Node;\n getChapterBtn: () => cc.Prefab;\n\n /**关闭ui */\n closeView: () => void;\n showGoToShopBtn: (isShow: boolean) => void;\n showRollBackBtn: (isShow: boolean) => void;\n showCommonProblemBtn: (isShow: boolean) => void;\n onUrgentBtnClickCallback: () => void;\n onGoToShopBtnCallback: () => void;\n onRollBackBtnCallback: () => void;\n onCommonProblemBtnClickCallback: () => void;\n onReviewButtonClickCallback: () => void;\n}\n\nexport const DatingSceneViewType = \"DatingSceneView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DatingSceneView.ts"],"names":[],"mappings":";;;;;;;AA4Ba,QAAA,mBAAmB,GAAG,iBAAiB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { View } from \"../../../../common/classbase/ViewBase\";\n\nexport interface DatingSceneView extends View {\n /**\n * 完成当前剧情回调函数\n */\n completePlotCallback: () => Promise<void>;\n setContent(isSelf: boolean, text: string, nameSpr: string, name?: string, portraitImg?: string, otherPortraitImg?: string, showRouge?: boolean): Promise<void>;\n setBackground(path: string): Promise<void>;\n setBackgroundEffect(path: string): Promise<void>;\n setIsRunningAction: (isRunning: boolean) => void;\n /**引导返回 */\n guideBack(): void;\n /**是否显示返回按钮*/\n showBackBtn: (show: boolean) => void;\n setRunCloseAction: (run: boolean) => void;\n\n getScrollViewRootNode: () => cc.Node;\n getScrollViewContentNode: () => cc.Node;\n getChapterBtn: () => cc.Prefab;\n\n /**关闭ui */\n closeView: () => void;\n showRollBackBtn: (isShow: boolean) => void;\n onRollBackBtnCallback: () => void;\n onReviewButtonClickCallback: () => void;\n}\n\nexport const DatingSceneViewType = \"DatingSceneView\";"]}
\ No newline at end of file
......@@ -13,8 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.DatingScenePresenter = void 0;
const simba_cc_audio_manager_1 = require("simba-cc-audio-manager");
const simba_config_manager_1 = require("simba-config-manager");
const simba_httpclient_1 = require("simba-httpclient");
const simba_sdk_1 = require("simba-sdk");
const simba_utils_1 = require("simba-utils");
const AVG_1 = require("../../../avg/AVG");
const EditorEnums_1 = require("../../../avg/EditorEnums");
......@@ -23,9 +21,7 @@ const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const GameConstData_1 = require("../../../common/gameplay/gamedata/GameConstData");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const DateSceneConfig_1 = require("../../../config/DateSceneConfig");
const GameConfig_1 = require("../../../GameConfig");
const Enums_1 = require("../../Enums");
const GameDotMgr_1 = require("../../GameDotMgr");
const CDKeyEventManager_1 = require("../../model/CDKeyEventManager");
const DatingEventSceneModel_1 = require("../../model/DatingEventSceneModel");
const GameModelManager_1 = require("../../model/GameModelManager");
......@@ -34,8 +30,6 @@ const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const VerbView_1 = require("../VerbView");
const DatingSceneView_1 = require("../view/type/DatingSceneView");
const AlertDialogViewPresenter_1 = require("./AlertDialogViewPresenter");
const UrgentNoticeViewPresenter_1 = require("./notice/UrgentNoticeViewPresenter");
const NoticeViewPresenter_1 = require("./NoticeViewPresenter");
const ReviewPlotViewPresenter_1 = require("./ReviewPlotViewPresenter");
const SentenceSelectorViewPresenter_1 = require("./SentenceSelectorViewPresenter");
let DatingScenePresenter = /** @class */ (() => {
......@@ -110,43 +104,6 @@ let DatingScenePresenter = /** @class */ (() => {
this.view.getScrollViewContentNode().removeAllChildren();
}
};
this.onCommonProblemBtnClickCallback = async () => {
try {
let resStr = await new simba_httpclient_1.HttpClient(GameConfig_1.GameConfig.commonProblemConfigUrl).get();
let res = JSON.parse(resStr);
if (res) {
UIManager_1.UIManager.pushPresenter(NoticeViewPresenter_1.default, {
title: res.title,
content: res.content
});
}
}
catch (error) {
console.error(error);
}
};
this.onUrgentBtnClickCallback = () => {
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
};
this.onGoToShopBtnCallback = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_DatingScene");
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(8);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
else if (GameConfig_1.channel == "android") {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(8);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
this.onClickRollBackBtn = (pid) => {
CDKeyEventManager_1.default.getInstance().shiftCDKeyRemovePlotAD();
let removeAdCardNum = CDKeyEventManager_1.default.getInstance().checkCDKeyRemovePlotAD();
......@@ -264,10 +221,7 @@ let DatingScenePresenter = /** @class */ (() => {
this._isDotTutorial = false;
this._reviewPlot = "";
this.view.completePlotCallback = this.completePlot;
this.view.onUrgentBtnClickCallback = this.onUrgentBtnClickCallback;
this.view.onGoToShopBtnCallback = this.onGoToShopBtnCallback;
this.view.onRollBackBtnCallback = this.onRollBackBtnCallback;
this.view.onCommonProblemBtnClickCallback = this.onCommonProblemBtnClickCallback;
this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;
this._model = param;
if (this._model.status === DatingEventSceneModel_1.DatingEventStatus.New) {
......@@ -375,8 +329,6 @@ let DatingScenePresenter = /** @class */ (() => {
else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
await this.view.setContent(sentence.roleId === GameConstData_1.GameConstData.GAME_CONST_PLAYER_ROLE_VALUE, AVG_1.richNodesToCocosString(content.value), sentence.roleId === 1 ? "" : roleData.getNameIcon(), sentence.roleId === 1 ? undefined : roleData.getConfig().name,
// sentence.roleId === 1 ? otherPortrait : roleData.getPortrait(this._currPlot.face,),
sentence.roleId === 1 ? otherPortrait : this.getPortraitByRole(roleData, this._currPlot.face), otherPortrait, isShowRouge);
......@@ -390,8 +342,6 @@ let DatingScenePresenter = /** @class */ (() => {
else if (content.type === AVG_1.SentenceType.SELECT) {
this.view.showBackBtn(false);
this.view.showRollBackBtn(false);
this.view.showGoToShopBtn(false);
this.view.showCommonProblemBtn(false);
let setSelection = async () => {
let value = content.value[this._currSelect];
let str = value.summary;
......@@ -468,8 +418,6 @@ let DatingScenePresenter = /** @class */ (() => {
else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
let Plot = AVG_1.PlotManager.getCurrentPlots()[0];
let isToBeContinued = Plot.id == AVG_1.SpecialPlotId.ToBeContinued;
let isEnd = Plot.id == AVG_1.SpecialPlotId.End;
......
{"version":3,"sources":["assets/script/game/ui/view/type/ExtraPlotView.ts"],"names":[],"mappings":";;;;;;;AAEA;;GAEG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,+DAAM,CAAA;IACN,2DAAI,CAAA;AACR,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAgBY,QAAA,iBAAiB,GAAG,eAAe,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\n\n/**\n * 番外界面状态枚举器,选择状态和列表状态\n */\nexport enum ExtraPlotViewState {\n Choose,\n List\n}\n\nexport interface ExtraPlotViewProps {\n onMarkButtonClickCallback: (tabbarId: number) => void,\n onCloseButtonClickCallback: () => void,\n onGotoShopButtonClickCallback: () => void,\n}\n\ntype ExtraPlotViewBase = PureView<ExtraPlotViewProps>;\n\nexport interface ExtraPlotView extends ExtraPlotViewBase {\n getMarkButtonNodes: () => cc.Node[];\n getMaskNode: () => cc.Node;\n getButtonsNode: () => cc.Node;\n}\n\nexport const ExtraPlotViewType = \"ExtraPlotView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/ExtraPlotView.ts"],"names":[],"mappings":";;;;;;;AAEA;;GAEG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,+DAAM,CAAA;IACN,2DAAI,CAAA;AACR,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAeY,QAAA,iBAAiB,GAAG,eAAe,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\n\n/**\n * 番外界面状态枚举器,选择状态和列表状态\n */\nexport enum ExtraPlotViewState {\n Choose,\n List\n}\n\nexport interface ExtraPlotViewProps {\n onMarkButtonClickCallback: (tabbarId: number) => void,\n onCloseButtonClickCallback: () => void,\n onGotoShopButtonClickCallback: () => void,\n}\n\ntype ExtraPlotViewBase = PureView<ExtraPlotViewProps>;\n\nexport interface ExtraPlotView extends ExtraPlotViewBase {\n getMarkButtonNodes: () => cc.Node[];\n getMaskNode: () => cc.Node;\n}\n\nexport const ExtraPlotViewType = \"ExtraPlotView\";"]}
\ 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/MainView.ts"],"names":[],"mappings":";;;;;;;AAqBa,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;\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
......@@ -43,7 +43,6 @@ const EditorEnums_1 = require("../../../avg/EditorEnums");
const NewNoticeViewPresenter_1 = require("./notice/NewNoticeViewPresenter");
const NewNoticeView_1 = require("../view/type/notice/NewNoticeView");
const ExtraPlotViewPresenter_1 = require("./ExtraPlotViewPresenter");
const UrgentNoticeViewPresenter_1 = require("./notice/UrgentNoticeViewPresenter");
const simba_sdk_1 = require("simba-sdk");
const TabPresenterFactory = [
MessageViewPresenter_1.default,
......@@ -67,9 +66,6 @@ let MainViewPresenter = /** @class */ (() => {
this.onDebugClickCallback = () => {
UIManager_1.UIManager.pushPresenter(DebugViewPresenter_1.default, undefined);
};
this.onUrgentNoticeClickCallback = () => {
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
};
this.onGoToShopClickCallback = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_MainView");
if (GameConfig_1.channel == "wechat") {
......@@ -220,11 +216,6 @@ let MainViewPresenter = /** @class */ (() => {
UIManager_1.UIManager.pushPresenter(NewNoticeViewPresenter_1.default, NewNoticeView_1.SourceView.MessageView);
}
break;
case Enums_1.AutoPopViewType.UrgentNotice:
{
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
}
break;
case Enums_1.AutoPopViewType.PlotStop:
{
UIManager_1.UIManager.pushPresenter(PlotStopViewPresenter_1.default, undefined);
......
"use strict";
cc._RF.push(module, '9e18bPAJUBCbrHuvj87Zsow', 'UrgentNoticeViewImpl');
// script/game/ui/view/impl/notice/UrgentNoticeViewImpl.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.UrgentNoticeViewImpl = void 0;
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const UrgentNoticeView_1 = require("../../type/notice/UrgentNoticeView");
const { ccclass, property } = cc._decorator;
let UrgentNoticeViewImpl = /** @class */ (() => {
let UrgentNoticeViewImpl = class UrgentNoticeViewImpl extends CCViewBase_1.CCPureView {
getTipsToggle() {
return this.tipsToggle;
}
getCloseTipsLabel() {
return this.closeTipsLabel;
}
onCloseButtonClick() {
this._props.onCloseButtonClickCalback();
}
};
__decorate([
property({ type: cc.Toggle, displayName: "Tips toggle" })
], UrgentNoticeViewImpl.prototype, "tipsToggle", void 0);
__decorate([
property({ type: cc.Label, displayName: "CloseTips label" })
], UrgentNoticeViewImpl.prototype, "closeTipsLabel", void 0);
UrgentNoticeViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(UrgentNoticeView_1.UrgentNoticeViewType, "prefab/ui/notice/UrgentNoticeView")
], UrgentNoticeViewImpl);
return UrgentNoticeViewImpl;
})();
exports.UrgentNoticeViewImpl = UrgentNoticeViewImpl;
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/notice/UrgentNoticeViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2EAAwE;AACxE,4EAA0D;AAC1D,yEAAmH;AAEnH,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,uBAAiC;QAOvE,aAAa;YACT,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,iBAAiB;YACb,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;QAED,kBAAkB;YACd,IAAI,CAAC,MAAM,CAAC,yBAAyB,EAAE,CAAC;QAC5C,CAAC;KACJ,CAAA;IAfG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;4DACpC;IAEtB;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;gEACpC;IALhB,oBAAoB;QAFhC,OAAO;QACP,gCAAO,CAAC,uCAAoB,EAAE,mCAAmC,CAAC;OACtD,oBAAoB,CAkBhC;IAAD,2BAAC;KAAA;AAlBY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyNode, DummyPrefab, DummyRichText } from \"../../../../../common/CCDummyObjects\";\r\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\r\nimport { RegView } from \"../../../PresenterCCViewFactory\";\r\nimport { UrgentNoticeViewType, UrgentNoticeViewProps, UrgentNoticeView } from \"../../type/notice/UrgentNoticeView\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n@ccclass\r\n@RegView(UrgentNoticeViewType, \"prefab/ui/notice/UrgentNoticeView\")\r\nexport class UrgentNoticeViewImpl extends CCPureView<UrgentNoticeViewProps> implements UrgentNoticeView {\r\n\r\n @property({ type: cc.Toggle, displayName: \"Tips toggle\" })\r\n tipsToggle: cc.Toggle;\r\n @property({ type: cc.Label, displayName: \"CloseTips label\" })\r\n closeTipsLabel: cc.Label;\r\n\r\n getTipsToggle(): cc.Toggle {\r\n return this.tipsToggle;\r\n }\r\n\r\n getCloseTipsLabel(): cc.Label {\r\n return this.closeTipsLabel;\r\n }\r\n\r\n onCloseButtonClick() {\r\n this._props.onCloseButtonClickCalback();\r\n }\r\n}"]}
\ No newline at end of file
......@@ -103,7 +103,6 @@ let ExtraPlotViewPresenter = /** @class */ (() => {
}
initViewDate() {
this._viewState = ExtraPlotView_1.ExtraPlotViewState.Choose;
this.view.getButtonsNode().active = false;
this.setMarkButtonsPosition();
this.dropAction();
this.updateRedDot();
......@@ -142,7 +141,6 @@ let ExtraPlotViewPresenter = /** @class */ (() => {
if (i == (this.view.getMarkButtonNodes().length - 1)) {
GameModelManager_1.GameModelManager.RefreshExtraPlotByType.emit(this._tabbarId);
this.view.getMaskNode().active = false;
this.view.getButtonsNode().active = true;
}
})
.start();
......
......@@ -478,7 +478,7 @@
1,
1,
1,
0
1
]
},
"_eulerAngles": {
......@@ -521,8 +521,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 26,
"height": 26
"width": 31,
"height": 31
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -52,9 +52,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.otherNameSpr = CCDummyObjects_1.DummySprite;
this.typewriter = undefined;
this.rollBackBtn = CCDummyObjects_1.DummyNode;
this.urgentBtnNode = CCDummyObjects_1.DummyNode;
this.goToShopBtn = CCDummyObjects_1.DummyNode;
this.commonProblemBtn = CCDummyObjects_1.DummyNode;
this.chapterBtn = CCDummyObjects_1.DummyPrefab;
this.scrollViewRootNode = CCDummyObjects_1.DummyNode;
this.skipButtonNode = CCDummyObjects_1.DummyNode;
......@@ -97,13 +94,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.getChapterBtn = () => {
return this.chapterBtn;
};
this.showGoToShopBtn = (isShow) => {
this.goToShopBtn.active = isShow;
};
this.showCommonProblemBtn = (isShow) => {
this.urgentBtnNode.active = false;
this.commonProblemBtn.active = isShow;
};
this.showRollBackBtn = (isShow) => {
this.rollBackBtn.active = isShow;
};
......@@ -150,7 +140,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.close();
}
onEnable() {
this.urgentBtnNode.active = false;
this.resetAutoPlayButtonState();
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);
}
......@@ -452,18 +441,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
// let seq = cc.sequence(spawnMF, spawnSR, call);
// this.closeActNode.runAction(seq);
}
onUrgentBtnClick() {
this.resetAutoPlayButtonState();
this.onUrgentBtnClickCallback();
}
onGoToShopClick() {
this.resetAutoPlayButtonState();
this.onGoToShopBtnCallback();
}
onCommonProblemBtnClick() {
this.resetAutoPlayButtonState();
this.onCommonProblemBtnClickCallback();
}
onRollBackBtnClick() {
this.resetAutoPlayButtonState();
this.onRollBackBtnCallback();
......@@ -550,15 +527,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
property(cc.Node)
], DatingSceneViewImpl.prototype, "rollBackBtn", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "urgentBtnNode", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "goToShopBtn", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "commonProblemBtn", void 0);
__decorate([
property(cc.Prefab)
], DatingSceneViewImpl.prototype, "chapterBtn", void 0);
__decorate([
......
"use strict";
cc._RF.push(module, 'e01b2rQD2tJhbL0QkHZVxKm', 'UrgentNoticeViewPresenter');
// script/game/ui/presenter/notice/UrgentNoticeViewPresenter.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 PresenterBase_1 = require("../../../../common/classbase/PresenterBase");
const GameModelManager_1 = require("../../../model/GameModelManager");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const UrgentNoticeView_1 = require("../../view/type/notice/UrgentNoticeView");
let UrgentNoticeViewPresenter = /** @class */ (() => {
let UrgentNoticeViewPresenter = class UrgentNoticeViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this._delayTime = 0;
this._closeTimeTicker = -1;
this._canClose = false;
/**关闭界面按钮的点击事件 */
this.onCloseButtonClickCalback = () => {
if (this._canClose) {
this.checkTipsToggleState();
clearTimeout(this._closeTimeTicker);
this.view.close();
}
};
this._viewProps = {
onCloseButtonClickCalback: this.onCloseButtonClickCalback,
};
}
onOpen() {
super.onOpen(undefined);
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.initView();
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
initView() {
//重置可关闭状态为false
this._canClose = false;
//根据是否是第一次弹起紧急公告判断延迟时间
this._delayTime = GameModelManager_1.GameModelManager.getUrgentNoticeInfo().readed ? 0 : 3;
//重置提示文本状态
this.view.getCloseTipsLabel().string = "";
//根据存档初始化“今日不再提示”的选择框
let autoShow = GameModelManager_1.GameModelManager.getUrgentNoticeInfo().autoShow;
this.view.getTipsToggle().isChecked = !autoShow;
this.startTimeTicker();
}
/**
* 开启可关闭定时器
*/
startTimeTicker() {
if (this._delayTime == 0) {
this._canClose = true;
this.view.getCloseTipsLabel().string = "点击空白区域可关闭";
}
else {
this.view.getCloseTipsLabel().string = this._delayTime + "秒后可关闭";
this._closeTimeTicker = window.setTimeout(() => {
this._delayTime -= 1;
this.startTimeTicker();
}, 1000);
}
}
/**
* 检查“今日不再提示”单选框的选择状态
*/
checkTipsToggleState() {
let isChecked = this.view.getTipsToggle().isChecked;
GameModelManager_1.GameModelManager.setUrgentNoticeInfo({ readed: true, autoShow: !isChecked });
}
};
UrgentNoticeViewPresenter.uuid = "UrgentNoticeViewPresenter";
UrgentNoticeViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(UrgentNoticeView_1.UrgentNoticeViewType)
], UrgentNoticeViewPresenter);
return UrgentNoticeViewPresenter;
})();
exports.default = UrgentNoticeViewPresenter;
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/notice/UrgentNoticeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAAuE;AACvE,sEAAmE;AACnE,yEAA4D;AAC5D,8EAAwH;AAGxH;IAAA,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,yBAAsC;QAOzF;YACI,KAAK,EAAE,CAAC;YALJ,eAAU,GAAW,CAAC,CAAC;YACvB,qBAAgB,GAAW,CAAC,CAAC,CAAC;YAC9B,cAAS,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AAC,aAAa,EAAE,CAAC,SAAS,GAAG,CAAC,QAAQ,CAAC;YAChD,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED;;WAEG;QACH,eAAe;YACX,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,EAAE;gBACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;gBACtB,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,WAAW,CAAC;aACtD;iBAAM;gBACH,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;gBACjE,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;oBAC3C,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC;oBACrB,IAAI,CAAC,eAAe,EAAE,CAAC;gBAC3B,CAAC,EAAE,IAAI,CAAC,CAAC;aACZ;QACL,CAAC;QAED;;WAEG;QACH,oBAAoB;YAChB,IAAI,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,SAAS,CAAC;YACpD,mCAAgB,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;QACjF,CAAC;KAUJ,CAAA;IAjFU,8BAAI,GAAG,2BAA2B,CAAA;IADxB,yBAAyB;QAD7C,qCAAY,CAAC,uCAAoB,CAAC;OACd,yBAAyB,CAkF7C;IAAD,gCAAC;KAAA;kBAlFoB,yBAAyB","file":"","sourceRoot":"/","sourcesContent":["import { Presenter } from \"../../../../common/classbase/PresenterBase\";\r\nimport { GameModelManager } from \"../../../model/GameModelManager\";\r\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\r\nimport { UrgentNoticeViewType, UrgentNoticeView, UrgentNoticeViewProps } from \"../../view/type/notice/UrgentNoticeView\";\r\n\r\n@RegPresenter(UrgentNoticeViewType)\r\nexport default class UrgentNoticeViewPresenter extends Presenter<undefined, UrgentNoticeView>{\r\n static uuid = \"UrgentNoticeViewPresenter\"\r\n private _viewProps: UrgentNoticeViewProps;\r\n private _delayTime: number = 0;\r\n private _closeTimeTicker: number = -1;\r\n private _canClose: boolean = false;\r\n\r\n constructor() {\r\n super();\r\n this._viewProps = {\r\n onCloseButtonClickCalback: this.onCloseButtonClickCalback,\r\n };\r\n }\r\n\r\n onOpen() {\r\n super.onOpen(undefined);\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.initView();\r\n }\r\n\r\n onEnterBackground() {\r\n super.onEnterBackground();\r\n }\r\n\r\n onEnterForeground() {\r\n super.onEnterForeground();\r\n }\r\n\r\n onClose() {\r\n super.onClose();\r\n }\r\n\r\n initView() {\r\n //重置可关闭状态为false\r\n this._canClose = false;\r\n //根据是否是第一次弹起紧急公告判断延迟时间\r\n this._delayTime = GameModelManager.getUrgentNoticeInfo().readed ? 0 : 3;\r\n //重置提示文本状态\r\n this.view.getCloseTipsLabel().string = \"\";\r\n //根据存档初始化“今日不再提示”的选择框\r\n let autoShow = GameModelManager.getUrgentNoticeInfo().autoShow;\r\n this.view.getTipsToggle().isChecked = !autoShow;\r\n this.startTimeTicker();\r\n }\r\n\r\n /**\r\n * 开启可关闭定时器\r\n */\r\n startTimeTicker() {\r\n if (this._delayTime == 0) {\r\n this._canClose = true;\r\n this.view.getCloseTipsLabel().string = \"点击空白区域可关闭\";\r\n } else {\r\n this.view.getCloseTipsLabel().string = this._delayTime + \"秒后可关闭\";\r\n this._closeTimeTicker = window.setTimeout(() => {\r\n this._delayTime -= 1;\r\n this.startTimeTicker();\r\n }, 1000);\r\n }\r\n }\r\n\r\n /**\r\n * 检查“今日不再提示”单选框的选择状态\r\n */\r\n checkTipsToggleState() {\r\n let isChecked = this.view.getTipsToggle().isChecked;\r\n GameModelManager.setUrgentNoticeInfo({ readed: true, autoShow: !isChecked });\r\n }\r\n\r\n /**关闭界面按钮的点击事件 */\r\n onCloseButtonClickCalback = () => {\r\n if (this._canClose) {\r\n this.checkTipsToggleState();\r\n clearTimeout(this._closeTimeTicker);\r\n this.view.close();\r\n }\r\n }\r\n}"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, 'e9feecVuElHPYVHPF1tPTyr', 'UrgentNoticeView');
// script/game/ui/view/type/notice/UrgentNoticeView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UrgentNoticeViewType = void 0;
exports.UrgentNoticeViewType = "UrgentNoticeView";
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/notice/UrgentNoticeView.ts"],"names":[],"mappings":";;;;;;;AAaa,QAAA,oBAAoB,GAAG,kBAAkB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../../common/classbase/ViewBase\";\r\n\r\nexport interface UrgentNoticeViewProps {\r\n onCloseButtonClickCalback: () => void;\r\n}\r\n\r\ntype UrgentNoticeViewBase = PureView<UrgentNoticeViewProps>;\r\n\r\nexport interface UrgentNoticeView extends UrgentNoticeViewBase {\r\n getTipsToggle: () => cc.Toggle;\r\n getCloseTipsLabel: () => cc.Label;\r\n}\r\n\r\nexport const UrgentNoticeViewType = \"UrgentNoticeView\";"]}
\ No newline at end of file
......@@ -532,7 +532,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 407.74,
"width": 406,
"height": 45.36
},
"_anchorPoint": {
......
......@@ -39,17 +39,17 @@
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 98
},
{
"__id__": 100
"__id__": 99
},
{
"__id__": 101
"__id__": 100
}
],
"_prefab": {
"__id__": 102
"__id__": 101
},
"_opacity": 255,
"_color": {
......@@ -3471,13 +3471,10 @@
"_components": [
{
"__id__": 96
},
{
"__id__": 97
}
],
"_prefab": {
"__id__": 98
"__id__": 97
},
"_opacity": 255,
"_color": {
......@@ -3569,19 +3566,6 @@
"_id": ""
},
{
"__type__": "3479d5hTA1BFbz3xze6Hk4D",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": false,
"clip": {
"__uuid__": "db04d80c-424e-438b-a3b3-2ba0447dd7f5"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
......
[
{
"__type__": "cc.Prefab",
"_name": "guideNode",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "guideNode",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
115.128,
-307,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "spine",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 231.66,
"height": 202.71
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "sp.Skeleton",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
}
],
"paused": false,
"defaultSkin": "default",
"defaultAnimation": "idle",
"_preCacheMode": 0,
"_cacheMode": 0,
"loop": true,
"premultipliedAlpha": true,
"timeScale": 0.7,
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_skeletonCache": null,
"_animationName": "idle",
"_animationQueue": [],
"_headAniInfo": null,
"_playTimes": 0,
"_isAniComplete": true,
"_N$skeletonData": {
"__uuid__": "6188a5ee-d399-44ed-93cc-800f42c51b08"
},
"_N$_defaultCacheMode": 0,
"_N$debugSlots": false,
"_N$debugBones": false,
"_N$debugMesh": false,
"_N$useTint": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8aVZBKmmVNar7Menpmxd5l",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tiips",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 6
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-123.643,
-204.284,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "tipsBg",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [
{
"__id__": 7
}
],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 471,
"height": 129
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
40.038,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 177,
"g": 207,
"b": 248,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-25.807,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "点击屏幕继续",
"_N$string": "点击屏幕继续",
"_fontSize": 32,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "105hQJg61IFYd4Io6YOGt4",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6c02371c-75f2-461e-aa57-d9e52c2e8f0f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1dscdGFlxI6o+4zZ6WaTZ+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0eUHXwERtA+6QA88EX9Ybu",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 178.792,
"_top": 0,
"_bottom": 333,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e9VCI01nBI3awLc7L9h7iM",
"sync": false
}
]
\ No newline at end of file
......@@ -88,7 +88,8 @@
"inspector",
"cocos-services"
]
}
},
"worker": {}
},
"panels": {
"store": {
......
......@@ -23,26 +23,16 @@
"956aaaa1-fdd1-4829-adb0-324f2bedc5da",
"deb9ce64-8dcb-40c0-b174-5abcff84ba70",
"5a754fba-6415-42e6-9237-8947b4338bfc",
"9274f284-8ad8-4099-b4a7-d65ff8ddea51",
"102652ea-ce65-4907-8e89-4e43c5da7bfe",
"48032d4f-71e7-4488-88d0-b54af5dcb84a",
"31f7cacd-9bc7-42ee-b3d2-cbfde83002cc",
"65dd264a-75d7-443b-99f3-537ff0a01c59",
"29d240ad-2239-4093-93b1-eff667d753d1",
"7fba704a-007b-43cf-a585-05349a935476",
"a8737f59-6a1e-4727-9ade-cc421302849a",
"93b269d9-b0e4-4643-9169-0b1062cf990a",
"89d761e1-b9f3-4586-af0c-1a10b4f5106f",
"88aa7b15-efde-4df9-92bb-f544be6d2eb2",
"ba03efa2-3ae0-4cbd-b432-f2e7c851e3df",
"83d8a338-4f49-4490-b663-dd0d9aab473b",
"852fef7e-20c0-4985-a953-ed58665d4388",
"8f9dca46-2a47-48f5-8b99-7268cf6dae43",
"b38eac08-4c3c-420b-ac85-70b73d003b26",
"a8470070-f982-465f-bed8-be2dd7689f9a",
"88b09944-a1ec-486c-9775-2a655255f0c5",
"b35e3080-aef7-4819-927e-f391cc85d8fa",
"e0b242f1-c53c-4b8e-91fe-268c053b2d8f",
"e7c677eb-d529-4890-b7fa-cc433fe3d902",
"445430f5-896b-46f2-8d76-7bf942178061",
"6ad1c32a-e62c-4cd3-b2c6-f1c1b30a4660",
......@@ -54,32 +44,42 @@
"c1e50518-50fc-4392-b704-8fa2e9ffcd32",
"17490e5e-c876-437e-9e9a-c6a0b281e91f",
"9893da49-ed1c-4c88-afe6-6a5ffd8301e6",
"ece3e714-af31-46df-98f2-b7f0cb6b5bb7",
"8be8e248-caa5-4f01-a912-0e4c5e61df40",
"2d2f792f-a40c-49bb-a189-ed176a246e49",
"66d3171e-9b5e-40a6-b3aa-80205f9c7cd1",
"12b3167a-06e9-44bc-aaf4-99c7e9a22f97",
"63764aa1-7e47-4e21-a847-809b1d441c66",
"ff516f17-f278-47d9-befc-ef7bfb4c0459",
"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",
"8be8e248-caa5-4f01-a912-0e4c5e61df40",
"ece3e714-af31-46df-98f2-b7f0cb6b5bb7",
"7e3e0d01-976c-4367-8a37-dbf4809fcd6c",
"e0b242f1-c53c-4b8e-91fe-268c053b2d8f",
"b35e3080-aef7-4819-927e-f391cc85d8fa",
"88b09944-a1ec-486c-9775-2a655255f0c5",
"9274f284-8ad8-4099-b4a7-d65ff8ddea51",
"29d240ad-2239-4093-93b1-eff667d753d1",
"65dd264a-75d7-443b-99f3-537ff0a01c59",
"31f7cacd-9bc7-42ee-b3d2-cbfde83002cc",
"ba03efa2-3ae0-4cbd-b432-f2e7c851e3df",
"83d8a338-4f49-4490-b663-dd0d9aab473b",
"48032d4f-71e7-4488-88d0-b54af5dcb84a",
"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",
"0c5e5b6a-e3cd-49c8-b1f6-dd38039c121a",
"fa82047f-ca46-4900-b016-1cbc6fb8dc8a",
"9d521361-150a-4693-a6c3-867dd716037f",
"e2cefdd5-1c31-4fc8-85ac-dbd2ea35a494",
"c408c1b6-ca44-4401-a59c-7feb174a3ef2",
"bd537cf0-df73-4b2a-bb36-40e91d4875e3",
"d370020c-eb3c-48b9-b561-b423f8f8c767",
"d8c4a9af-7d3c-4560-886d-65386823f266",
"4cec8901-8eab-4765-9ec8-af64f3931bf5",
"c6e78e76-41e2-4599-a47f-297d5cfc8ee8",
"33b784bb-bcde-43b1-8caf-f97acc5a7702",
"d73d46ac-877a-459d-96f8-68c75aca6eae",
"dea832f8-800e-40bb-9155-a3759b75be17",
"d38ffd80-2c0c-4865-993b-d8ce9f6fe21d",
"12b3167a-06e9-44bc-aaf4-99c7e9a22f97"
"707817fb-30bd-49f6-b5fb-23ffa4d672ab",
"8c59299e-f7a6-4b18-bb15-ebe2570da3a3"
]
}
This diff could not be displayed because it is too large.
......@@ -159,7 +159,6 @@ require('./assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter
require('./assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter');
require('./assets/script/game/ui/presenter/message/ImagePreviewPresenter');
require('./assets/script/game/ui/presenter/notice/NewNoticeViewPresenter');
require('./assets/script/game/ui/presenter/notice/UrgentNoticeViewPresenter');
require('./assets/script/game/ui/view/impl/AlertDialogViewImpl');
require('./assets/script/game/ui/view/impl/AlertToBeContinueImpl');
require('./assets/script/game/ui/view/impl/ChatListViewImpl');
......@@ -192,7 +191,6 @@ require('./assets/script/game/ui/view/impl/message/GiftListSubviewImpl');
require('./assets/script/game/ui/view/impl/message/ImagePreviewViewImpl');
require('./assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl');
require('./assets/script/game/ui/view/impl/notice/NewNoticeViewImpl');
require('./assets/script/game/ui/view/impl/notice/UrgentNoticeViewImpl');
require('./assets/script/game/ui/view/type/AlertDialogView');
require('./assets/script/game/ui/view/type/ChatListView');
require('./assets/script/game/ui/view/type/DateCountView');
......@@ -222,7 +220,6 @@ 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');
require('./assets/script/game/ui/view/type/notice/NewNoticeView');
require('./assets/script/game/ui/view/type/notice/UrgentNoticeView');
require('./assets/script/network/HttpClient');
}
......
This diff could not be displayed because it is too large.
......@@ -33,7 +33,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
super(...arguments);
this.markButtonNodes = [];
this.maskNode = CCDummyObjects_1.DummyNode;
this.buttonsNode = CCDummyObjects_1.DummyNode;
}
getMarkButtonNodes() {
return this.markButtonNodes;
......@@ -41,16 +40,10 @@ let ExtraPlotViewImpl = /** @class */ (() => {
getMaskNode() {
return this.maskNode;
}
getButtonsNode() {
return this.buttonsNode;
}
onMarkButtonClick(event, customEventData) {
let tabbarId = Number(customEventData);
this._props.onMarkButtonClickCallback(tabbarId);
}
onGotoShopButtonClick() {
this._props.onGotoShopButtonClickCallback();
}
onCloseButtonClick() {
this._props.onCloseButtonClickCallback();
}
......@@ -61,9 +54,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
__decorate([
property({ type: cc.Node, displayName: "Mask node" })
], ExtraPlotViewImpl.prototype, "maskNode", void 0);
__decorate([
property({ type: cc.Node, displayName: "Buttons node" })
], ExtraPlotViewImpl.prototype, "buttonsNode", void 0);
ExtraPlotViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(ExtraPlotView_1.ExtraPlotViewType, "prefab/ui/ExtraPlotView")
......@@ -83,4 +73,4 @@ cc._RF.pop();
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L2ltcGwvRXh0cmFQbG90Vmlld0ltcGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsc0VBQThEO0FBQzlELHdFQUFxRTtBQUNyRSx5RUFBdUQ7QUFDdkQseURBQTZGO0FBRTdGLE1BQU0sRUFBRSxPQUFPLEVBQUUsUUFBUSxFQUFFLEdBQUcsRUFBRSxDQUFDLFVBQVUsQ0FBQztBQUk1QztJQUFBLElBQWEsaUJBQWlCLEdBQTlCLE1BQWEsaUJBQWtCLFNBQVEsdUJBQThCO1FBQXJFOztZQUdJLG9CQUFlLEdBQWMsRUFBRSxDQUFDO1lBR2hDLGFBQVEsR0FBWSwwQkFBUyxDQUFDO1lBRzlCLGdCQUFXLEdBQVksMEJBQVMsQ0FBQztRQTBCckMsQ0FBQztRQXhCRyxrQkFBa0I7WUFDZCxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUM7UUFDaEMsQ0FBQztRQUVELFdBQVc7WUFDUCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7UUFDekIsQ0FBQztRQUVELGNBQWM7WUFDVixPQUFPLElBQUksQ0FBQyxXQUFXLENBQUM7UUFDNUIsQ0FBQztRQUVELGlCQUFpQixDQUFDLEtBQUssRUFBRSxlQUFlO1lBQ3BDLElBQUksUUFBUSxHQUFHLE1BQU0sQ0FBQyxlQUFlL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NjLk5vZGUge1xuICAgICAgICByZXR1cm4gdGhpcy5tYXNrTm9kZTtcbiAgICB9XG5cbiAgICBvbk1hcmtCdXR0b25DbGljayhldmVudCwgY3VzdG9tRXZlbnREYXRhKSB7XG4gICAgICAgIGxldCB0YWJiYXJJZCA9IE51bWJlcihjdXN0b21FdmVudERhdGEpO1xuICAgICAgICB0aGlzLl9wcm9wcy5vbk1hcmtCdXR0b25DbGlja0NhbGxiYWNrKHRhYmJhcklkKTtcbiAgICB9XG4gICAgXG4gICAgb25DbG9zZUJ1dHRvbkNsaWNrKCkge1xuICAgICAgICB0aGlzLl9wcm9wcy5vbkNsb3NlQnV0dG9uQ2xpY2tDYWxsYmFjaygpO1xuICAgIH1cbn0iXX0=
\ 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/impl/notice/UrgentNoticeViewImpl.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, '9e18bPAJUBCbrHuvj87Zsow', 'UrgentNoticeViewImpl');
// script/game/ui/view/impl/notice/UrgentNoticeViewImpl.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.UrgentNoticeViewImpl = void 0;
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const UrgentNoticeView_1 = require("../../type/notice/UrgentNoticeView");
const { ccclass, property } = cc._decorator;
let UrgentNoticeViewImpl = /** @class */ (() => {
let UrgentNoticeViewImpl = class UrgentNoticeViewImpl extends CCViewBase_1.CCPureView {
getTipsToggle() {
return this.tipsToggle;
}
getCloseTipsLabel() {
return this.closeTipsLabel;
}
onCloseButtonClick() {
this._props.onCloseButtonClickCalback();
}
};
__decorate([
property({ type: cc.Toggle, displayName: "Tips toggle" })
], UrgentNoticeViewImpl.prototype, "tipsToggle", void 0);
__decorate([
property({ type: cc.Label, displayName: "CloseTips label" })
], UrgentNoticeViewImpl.prototype, "closeTipsLabel", void 0);
UrgentNoticeViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(UrgentNoticeView_1.UrgentNoticeViewType, "prefab/ui/notice/UrgentNoticeView")
], UrgentNoticeViewImpl);
return UrgentNoticeViewImpl;
})();
exports.UrgentNoticeViewImpl = UrgentNoticeViewImpl;
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L2ltcGwvbm90aWNlL1VyZ2VudE5vdGljZVZpZXdJbXBsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDJFQUF3RTtBQUN4RSw0RUFBMEQ7QUFDMUQseUVBQW1IO0FBRW5ILE1BQU0sRUFBRSxPQUFPLEVBQUUsUUFBUSxFQUFFLEdBQUcsRUFBRSxDQUFDLFVBQVUsQ0FBQztBQUc1QztJQUFBLElBQWEsb0JBQW9CLEdBQWpDLE1BQWEsb0JBQXFCLFNB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Byb3BzLm9uQ2xvc2VCdXR0b25DbGlja0NhbGJhY2soKTtcclxuICAgIH1cclxufSJdfQ==
\ No newline at end of file
......@@ -29,4 +29,4 @@ cc._RF.pop();
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvRGF0aW5nU2NlbmVWaWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQWlDYSxRQUFBLG1CQUFtQixHQUFHLGlCQUFpQixDQUFDIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIvIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVmlldyB9IGZyb20gXCIuLi8uLi8uLi8uLi9jb21tb24vY2xhc3NiYXNlL1ZpZXdCYXNlXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRGF0aW5nU2NlbmVWaWV3IGV4dGVuZHMgVmlldyB7XG4gICAgLyoqXG4gICAgICog5a6M5oiQ5b2T5YmN5Ymn5oOF5Zue6LCD5Ye95pWwXG4gICAgICovXG4gICAgY29tcGxldGVQbG90Q2FsbGJhY2s6ICgpID0+IFByb21pc2U8dm9pZD47XG4gICAgc2V0Q29udGVudChpc1NlbGY6IGJvb2xlYW4sIHRleHQ6IHN0cmluZywgbmFtZVNwcjogc3RyaW5nLCBuYW1lPzogc3RyaW5nLCBwb3J0cmFpdEltZz86IHN0cmluZywgb3RoZXJQb3J0cmFpdEltZz86IHN0cmluZywgc2hvd1JvdWdlPzogYm9vbGVhbik6IFByb21pc2U8dm9pZD47XG4gICAgc2V0QmFja2dyb3VuZChwYXRoOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+O1xuICAgIHNldEJhY2tncm91bmRFZmZlY3QocGF0aDogc3RyaW5nKTogUHJvbWlzZTx2b2lkPjtcbiAgICBzZXRJc1J1bm5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mdTY2VuZVZpZXdcIjsiXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvRGF0aW5nU2NlbmVWaWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQTRCYSxRQUFBLG1CQUFtQixHQUFHLGlCQUFpQixDQUFDIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIvIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVmlldyB9IGZyb20gXCIuLi8uLi8uLi8uLi9jb21tb24vY2xhc3NiYXNlL1ZpZXdCYXNlXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRGF0aW5nU2NlbmVWaWV3IGV4dGVuZHMgVmlldyB7XG4gICAgLyoqXG4gICAgICog5a6M5oiQ5b2T5YmN5Ymn5oOF5Zue6LCD5Ye95pWwXG4gICAgICovXG4gICAgY29tcGxldGVQbG90Q2FsbGJhY2s6ICgpID0+IFByb21pc2U8dm9pZD47XG4gICAgc2V0Q29udGVudChpc1NlbGY6IGJvb2xlYW4sIHRleHQ6IHN0cmluZywgbmFtZVNwcjogc3RyaW5nLCBuYW1lPzogc3RyaW5nLCBwb3J0cmFpdEltZz86IHN0cmluZywgb3RoZXJQb3J0cmFpdEltZz86IHN0cmluZywgc2hvd1JvdWdlPzogYm9vbGVhbik6IFByb21pc2U8dm9pZD47XG4gICAgc2V0QmFja2dyb3VuZChwYXRoOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+O1xuICAgIHNldEJhY2tncm91bmRFZmZlY3QocGF0aDogc3RyaW5nKTogUHJvbWlzZTx2b2lkPjtcbiAgICBzZXRJc1J1bm5pbmdBY3Rpb246IChpc1J1bm5pbmc6IGJvb2xlYW4pID0+IHZvaWQ7XG4gICAgLyoq5byV5a+86L+U5ZueICovXG4gICAgZ3VpZGVCYWNrKCk6IHZvaWQ7XG4gICAgLyoq5piv5ZCm5pi+56S66L+U5Zue5oyJ6ZKuKi9cbiAgICBzaG93QmFja0J0bjogKHNob3c6IGJvb2xlYW4pID0+IHZvaWQ7XG4gICAgc2V0UnVuQ2xvc2VBY3Rpb246IChydW46IGJvb2xlYW4pID0+IHZvaWQ7XG5cbiAgICBnZXRTY3JvbGxWaWV3Um9vdE5vZGU6ICgpID0+IGNjLk5vZGU7XG4gICAgZ2V0U2Nyb2xsVmlld0NvbnRlbnROb2RlOiAoKSA9PiBjYy5Ob2RlO1xuICAgIGdldENoYXB0ZXJCdG46ICgpID0+IGNjLlByZWZhYjtcblxuICAgIC8qKuWFs+mXrXVpICovXG4gICAgY2xvc2VWaWV3OiAoKSA9PiB2b2lkO1xuICAgIHNob3dSb2xsQmFja0J0bjogKGlzU2hvdzogYm9vbGVhbikgPT4gdm9pZDtcbiAgICBvblJvbGxCYWNrQnRuQ2FsbGJhY2s6ICgpID0+IHZvaWQ7XG4gICAgb25SZXZpZXdCdXR0b25DbGlja0NhbGxiYWNrOiAoKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgRGF0aW5nU2NlbmVWaWV3VHlwZSA9IFwiRGF0aW5nU2NlbmVWaWV3XCI7Il19
\ No newline at end of file
......@@ -37,4 +37,4 @@ cc._RF.pop();
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvRXh0cmFQbG90Vmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQTs7R0FFRztBQUNILElBQVksa0JBR1g7QUFIRCxXQUFZLGtCQUFrQjtJQUMxQiwrREFBTSxDQUFBO0lBQ04sMkRBQUksQ0FBQTtBQUNSLENBQUMsRUFIVyxrQkFBa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HJhUGxvdFZpZXdQcm9wcz47XG5cbmV4cG9ydCBpbnRlcmZhY2UgRXh0cmFQbG90VmlldyBleHRlbmRzIEV4dHJhUGxvdFZpZXdCYXNlIHtcbiAgICBnZXRNYXJrQnV0dG9uTm9kZXM6ICgpID0+IGNjLk5vZGVbXTtcbiAgICBnZXRNYXNrTm9kZTogKCkgPT4gY2MuTm9kZTtcbn1cblxuZXhwb3J0IGNvbnN0IEV4dHJhUGxvdFZpZXdUeXBlID0gXCJFeHRyYVBsb3RWaWV3XCI7Il19
\ No newline at end of file
......@@ -29,4 +29,4 @@ cc._RF.pop();
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvTWFpblZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBeUJhLFFBQUEsWUFBWSxHQUFHLFVBQVUsQ0FBQyIsImZpbGUiOiIiLCJzb3VyY2VSb290IjoiLyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRhYlZpZXdQcm9wcywgVGFiVmlldyB9IGZyb20gXCIuL1RhYlZpZXdcIjtcbmltcG9ydCB7IFB1cmVWaWV3IH0gZnJvbSBcIi4uLy4uLy4uLy4uL2NvbW1vbi9jbGFzc2Jhc2UvVmlld0Jhc2VcIjtcbmltcG9ydCB7IEd1aWRlVmlld1BhcmFtTW9kZWwgfSBmcm9tIFwiLi4vLi4vcHJlc2VudGVyL0d1aWRlVmlld1ByZXNlbnRlclwiO1xuXG50eXBlIG9uRGVidWdDbGlja0NhbGxiYWNrID0gKCkgPT4gdm9pZDtcbnR5cGUgb25VcmdlbnROb3RpY2VDbGlja0NhbGxiYWNrID0gKCkgPT4gdm9pZDtcbnR5cGUgb25Hb1RvU2hvcENsaWNrQ2FsbGJhY2sgPSAoKSA9PiB2b2lkO1xudHlwZSBvbkNvbW1vblByb2JsZW1DbGlja0NhbGxiYWNrID0gKCkgPT4gdm9pZDtcbnR5cGUgb25SZXdhcmRCdG5DbGlja0NhbGxiYWNrID0gKCkgPT4gdm9pZDtcbmV4cG9ydCBpbnRlcmZhY2UgTWFpblZpZXdQcm9wcyBleHRlbmRzIFRhYlZpZXdQcm9wcyB7XG4gICAgbWVzc2FnZVJlZERvdDogYm9vbGVhbjtcbiAgICBkYXRpbmdFdmVudFJlZERvdDogYm9vbGVhbjtcbiAgICBkaXNjb3ZlclJlZERvdDogYm9vbGVhbjsgICAgICAgLy/ku7vliqHnuqLngrkgXG4gICAgb25EZWJ1Z0NsaWNrOiBvbkRlYnVnQ2xpY2tDYWxsYmFjaztcbn1cblxudHlwZSBNYWluVmlld0Jhc2UgPSBQdXJlVmlldzxNYWluVmlld1Byb3BzPiAmIFRhYlZpZXc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTWFpblZpZXcgZXh0ZW5kcyBNYWluVmlld0Jhc2Uge1xuICAgIGdldEd1aWRlVGFiUGFyYW0oaW5kZXg6IG51bWJlcik6IEd1aWRlVmlld1BhcmFtTW9kZWwgfCB1bmRlZmluZWQ7XG4gICAgaGlkZUNsaWNrQW5pQnlJbmRleDogKGluZGV4OiBudW1iZXIpID0+IHZvaWQ7XG4gICAgb25UYWJCdXR0b25DbGljazogKGV2ZW50OiBhbnksIGluZGV4OiBzdHJpbmcpID0+IHZvaWQ7XG4gICAgc2hvd1dhaXRpbmdWaWV3OiAoaXNTaG93OiBib29sZWFuKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgTWFpblZpZXdUeXBlID0gXCJNYWluVmlld1wiOyJdfQ==
\ No newline at end of file
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvTWFpblZpZXcudHMiXSwibmFtZXMiOltdLCJtYXB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0b25DbGljazogKGV2ZW50OiBhbnksIGluZGV4OiBzdHJpbmcpID0+IHZvaWQ7XG4gICAgc2hvd1dhaXRpbmdWaWV3OiAoaXNTaG93OiBib29sZWFuKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgTWFpblZpZXdUeXBlID0gXCJNYWluVmlld1wiOyJdfQ==
\ 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/notice/UrgentNoticeView.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, 'e9feecVuElHPYVHPF1tPTyr', 'UrgentNoticeView');
// script/game/ui/view/type/notice/UrgentNoticeView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UrgentNoticeViewType = void 0;
exports.UrgentNoticeViewType = "UrgentNoticeView";
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS92aWV3L3R5cGUvbm90aWNlL1VyZ2VudE5vdGljZVZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBYWEsUUFBQSxvQkFBb0IsR0FBRyxrQkFBa0IsQ0FBQyIsImZpbGUiOiIiLCJzb3VyY2VSb290IjoiLyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFB1cmVWaWV3IH0gZnJvbSBcIi4uLy4uLy4uLy4uLy4uL2NvbW1vbi9jbGFzc2Jhc2UvVmlld0Jhc2VcIjtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgVXJnZW50Tm90aWNlVmlld1Byb3BzIHtcclxuICAgIG9uQ2xvc2VCdXR0b25DbGlja0NhbGJhY2s6ICgpID0+IHZvaWQ7XHJcbn1cclxuXHJcbnR5cGUgVXJnZW50Tm90aWNlVmlld0Jhc2UgPSBQdXJlVmlldzxVcmdlbnROb3RpY2VWaWV3UHJvcHM+O1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBVcmdlbnROb3RpY2VWaWV3IGV4dGVuZHMgVXJnZW50Tm90aWNlVmlld0Jhc2Uge1xyXG4gICAgZ2V0VGlwc1RvZ2dsZTogKCkgPT4gY2MuVG9nZ2xlO1xyXG4gICAgZ2V0Q2xvc2VUaXBzTGFiZWw6ICgpID0+IGNjLkxhYmVsO1xyXG59XHJcblxyXG5leHBvcnQgY29uc3QgVXJnZW50Tm90aWNlVmlld1R5cGUgPSBcIlVyZ2VudE5vdGljZVZpZXdcIjsiXX0=
\ No newline at end of file
......@@ -148,7 +148,6 @@ require('./assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter
require('./assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter');
require('./assets/script/game/ui/presenter/message/ImagePreviewPresenter');
require('./assets/script/game/ui/presenter/notice/NewNoticeViewPresenter');
require('./assets/script/game/ui/presenter/notice/UrgentNoticeViewPresenter');
require('./assets/script/game/ui/view/impl/AlertDialogViewImpl');
require('./assets/script/game/ui/view/impl/AlertToBeContinueImpl');
require('./assets/script/game/ui/view/impl/ChatListViewImpl');
......@@ -181,7 +180,6 @@ require('./assets/script/game/ui/view/impl/message/GiftListSubviewImpl');
require('./assets/script/game/ui/view/impl/message/ImagePreviewViewImpl');
require('./assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl');
require('./assets/script/game/ui/view/impl/notice/NewNoticeViewImpl');
require('./assets/script/game/ui/view/impl/notice/UrgentNoticeViewImpl');
require('./assets/script/game/ui/view/type/AlertDialogView');
require('./assets/script/game/ui/view/type/ChatListView');
require('./assets/script/game/ui/view/type/DateCountView');
......@@ -211,5 +209,4 @@ 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');
require('./assets/script/game/ui/view/type/notice/NewNoticeView');
require('./assets/script/game/ui/view/type/notice/UrgentNoticeView');
require('./assets/script/network/HttpClient');
......@@ -13,8 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.DatingScenePresenter = void 0;
const simba_cc_audio_manager_1 = require("simba-cc-audio-manager");
const simba_config_manager_1 = require("simba-config-manager");
const simba_httpclient_1 = require("simba-httpclient");
const simba_sdk_1 = require("simba-sdk");
const simba_utils_1 = require("simba-utils");
const AVG_1 = require("../../../avg/AVG");
const EditorEnums_1 = require("../../../avg/EditorEnums");
......@@ -23,9 +21,7 @@ const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const GameConstData_1 = require("../../../common/gameplay/gamedata/GameConstData");
const UIManager_1 = require("../../../common/gameplay/managers/UIManager");
const DateSceneConfig_1 = require("../../../config/DateSceneConfig");
const GameConfig_1 = require("../../../GameConfig");
const Enums_1 = require("../../Enums");
const GameDotMgr_1 = require("../../GameDotMgr");
const CDKeyEventManager_1 = require("../../model/CDKeyEventManager");
const DatingEventSceneModel_1 = require("../../model/DatingEventSceneModel");
const GameModelManager_1 = require("../../model/GameModelManager");
......@@ -34,8 +30,6 @@ const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const VerbView_1 = require("../VerbView");
const DatingSceneView_1 = require("../view/type/DatingSceneView");
const AlertDialogViewPresenter_1 = require("./AlertDialogViewPresenter");
const UrgentNoticeViewPresenter_1 = require("./notice/UrgentNoticeViewPresenter");
const NoticeViewPresenter_1 = require("./NoticeViewPresenter");
const ReviewPlotViewPresenter_1 = require("./ReviewPlotViewPresenter");
const SentenceSelectorViewPresenter_1 = require("./SentenceSelectorViewPresenter");
let DatingScenePresenter = /** @class */ (() => {
......@@ -110,43 +104,6 @@ let DatingScenePresenter = /** @class */ (() => {
this.view.getScrollViewContentNode().removeAllChildren();
}
};
this.onCommonProblemBtnClickCallback = async () => {
try {
let resStr = await new simba_httpclient_1.HttpClient(GameConfig_1.GameConfig.commonProblemConfigUrl).get();
let res = JSON.parse(resStr);
if (res) {
UIManager_1.UIManager.pushPresenter(NoticeViewPresenter_1.default, {
title: res.title,
content: res.content
});
}
}
catch (error) {
console.error(error);
}
};
this.onUrgentBtnClickCallback = () => {
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
};
this.onGoToShopBtnCallback = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_DatingScene");
if (GameConfig_1.channel == "wechat") {
// GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);
let link = GameModelManager_1.GameModelManager.getYouZanShopUrlByType(8);
if (link) {
simba_sdk_1.SDK.openProgramV2(GameConfig_1.GameConfig.youZanShopAppId, link);
}
}
else if (GameConfig_1.channel == "android") {
let link = GameModelManager_1.GameModelManager.getTaoBaoShopUrlByType(8);
if (link) {
GameModelManager_1.GameModelManager.jumpToTaobaoShop(link);
}
}
else {
UIManager_1.UIManager.showToast("该功能在当前平台不可使用");
}
};
this.onClickRollBackBtn = (pid) => {
CDKeyEventManager_1.default.getInstance().shiftCDKeyRemovePlotAD();
let removeAdCardNum = CDKeyEventManager_1.default.getInstance().checkCDKeyRemovePlotAD();
......@@ -264,10 +221,7 @@ let DatingScenePresenter = /** @class */ (() => {
this._isDotTutorial = false;
this._reviewPlot = "";
this.view.completePlotCallback = this.completePlot;
this.view.onUrgentBtnClickCallback = this.onUrgentBtnClickCallback;
this.view.onGoToShopBtnCallback = this.onGoToShopBtnCallback;
this.view.onRollBackBtnCallback = this.onRollBackBtnCallback;
this.view.onCommonProblemBtnClickCallback = this.onCommonProblemBtnClickCallback;
this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;
this._model = param;
if (this._model.status === DatingEventSceneModel_1.DatingEventStatus.New) {
......@@ -375,8 +329,6 @@ let DatingScenePresenter = /** @class */ (() => {
else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
await this.view.setContent(sentence.roleId === GameConstData_1.GameConstData.GAME_CONST_PLAYER_ROLE_VALUE, AVG_1.richNodesToCocosString(content.value), sentence.roleId === 1 ? "" : roleData.getNameIcon(), sentence.roleId === 1 ? undefined : roleData.getConfig().name,
// sentence.roleId === 1 ? otherPortrait : roleData.getPortrait(this._currPlot.face,),
sentence.roleId === 1 ? otherPortrait : this.getPortraitByRole(roleData, this._currPlot.face), otherPortrait, isShowRouge);
......@@ -390,8 +342,6 @@ let DatingScenePresenter = /** @class */ (() => {
else if (content.type === AVG_1.SentenceType.SELECT) {
this.view.showBackBtn(false);
this.view.showRollBackBtn(false);
this.view.showGoToShopBtn(false);
this.view.showCommonProblemBtn(false);
let setSelection = async () => {
let value = content.value[this._currSelect];
let str = value.summary;
......@@ -468,8 +418,6 @@ let DatingScenePresenter = /** @class */ (() => {
else {
this.view.showRollBackBtn(true);
}
this.view.showGoToShopBtn(true);
this.view.showCommonProblemBtn(true);
let Plot = AVG_1.PlotManager.getCurrentPlots()[0];
let isToBeContinued = Plot.id == AVG_1.SpecialPlotId.ToBeContinued;
let isEnd = Plot.id == AVG_1.SpecialPlotId.End;
......
......@@ -103,7 +103,6 @@ let ExtraPlotViewPresenter = /** @class */ (() => {
}
initViewDate() {
this._viewState = ExtraPlotView_1.ExtraPlotViewState.Choose;
this.view.getButtonsNode().active = false;
this.setMarkButtonsPosition();
this.dropAction();
this.updateRedDot();
......@@ -142,7 +141,6 @@ let ExtraPlotViewPresenter = /** @class */ (() => {
if (i == (this.view.getMarkButtonNodes().length - 1)) {
GameModelManager_1.GameModelManager.RefreshExtraPlotByType.emit(this._tabbarId);
this.view.getMaskNode().active = false;
this.view.getButtonsNode().active = true;
}
})
.start();
......
......@@ -43,7 +43,6 @@ const EditorEnums_1 = require("../../../avg/EditorEnums");
const NewNoticeViewPresenter_1 = require("./notice/NewNoticeViewPresenter");
const NewNoticeView_1 = require("../view/type/notice/NewNoticeView");
const ExtraPlotViewPresenter_1 = require("./ExtraPlotViewPresenter");
const UrgentNoticeViewPresenter_1 = require("./notice/UrgentNoticeViewPresenter");
const simba_sdk_1 = require("simba-sdk");
const TabPresenterFactory = [
MessageViewPresenter_1.default,
......@@ -67,9 +66,6 @@ let MainViewPresenter = /** @class */ (() => {
this.onDebugClickCallback = () => {
UIManager_1.UIManager.pushPresenter(DebugViewPresenter_1.default, undefined);
};
this.onUrgentNoticeClickCallback = () => {
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
};
this.onGoToShopClickCallback = () => {
GameDotMgr_1.default.getInstance().dotClickUI("shop_btn_MainView");
if (GameConfig_1.channel == "wechat") {
......@@ -220,11 +216,6 @@ let MainViewPresenter = /** @class */ (() => {
UIManager_1.UIManager.pushPresenter(NewNoticeViewPresenter_1.default, NewNoticeView_1.SourceView.MessageView);
}
break;
case Enums_1.AutoPopViewType.UrgentNotice:
{
UIManager_1.UIManager.pushPresenter(UrgentNoticeViewPresenter_1.default, undefined);
}
break;
case Enums_1.AutoPopViewType.PlotStop:
{
UIManager_1.UIManager.pushPresenter(PlotStopViewPresenter_1.default, undefined);
......
"use strict";
cc._RF.push(module, 'e01b2rQD2tJhbL0QkHZVxKm', 'UrgentNoticeViewPresenter');
// script/game/ui/presenter/notice/UrgentNoticeViewPresenter.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 PresenterBase_1 = require("../../../../common/classbase/PresenterBase");
const GameModelManager_1 = require("../../../model/GameModelManager");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const UrgentNoticeView_1 = require("../../view/type/notice/UrgentNoticeView");
let UrgentNoticeViewPresenter = /** @class */ (() => {
let UrgentNoticeViewPresenter = class UrgentNoticeViewPresenter extends PresenterBase_1.Presenter {
constructor() {
super();
this._delayTime = 0;
this._closeTimeTicker = -1;
this._canClose = false;
/**关闭界面按钮的点击事件 */
this.onCloseButtonClickCalback = () => {
if (this._canClose) {
this.checkTipsToggleState();
clearTimeout(this._closeTimeTicker);
this.view.close();
}
};
this._viewProps = {
onCloseButtonClickCalback: this.onCloseButtonClickCalback,
};
}
onOpen() {
super.onOpen(undefined);
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.initView();
}
onEnterBackground() {
super.onEnterBackground();
}
onEnterForeground() {
super.onEnterForeground();
}
onClose() {
super.onClose();
}
initView() {
//重置可关闭状态为false
this._canClose = false;
//根据是否是第一次弹起紧急公告判断延迟时间
this._delayTime = GameModelManager_1.GameModelManager.getUrgentNoticeInfo().readed ? 0 : 3;
//重置提示文本状态
this.view.getCloseTipsLabel().string = "";
//根据存档初始化“今日不再提示”的选择框
let autoShow = GameModelManager_1.GameModelManager.getUrgentNoticeInfo().autoShow;
this.view.getTipsToggle().isChecked = !autoShow;
this.startTimeTicker();
}
/**
* 开启可关闭定时器
*/
startTimeTicker() {
if (this._delayTime == 0) {
this._canClose = true;
this.view.getCloseTipsLabel().string = "点击空白区域可关闭";
}
else {
this.view.getCloseTipsLabel().string = this._delayTime + "秒后可关闭";
this._closeTimeTicker = window.setTimeout(() => {
this._delayTime -= 1;
this.startTimeTicker();
}, 1000);
}
}
/**
* 检查“今日不再提示”单选框的选择状态
*/
checkTipsToggleState() {
let isChecked = this.view.getTipsToggle().isChecked;
GameModelManager_1.GameModelManager.setUrgentNoticeInfo({ readed: true, autoShow: !isChecked });
}
};
UrgentNoticeViewPresenter.uuid = "UrgentNoticeViewPresenter";
UrgentNoticeViewPresenter = __decorate([
PresenterCCViewFactory_1.RegPresenter(UrgentNoticeView_1.UrgentNoticeViewType)
], UrgentNoticeViewPresenter);
return UrgentNoticeViewPresenter;
})();
exports.default = UrgentNoticeViewPresenter;
cc._RF.pop();
\ No newline at end of file
......@@ -22,7 +22,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
super(...arguments);
this.markButtonNodes = [];
this.maskNode = CCDummyObjects_1.DummyNode;
this.buttonsNode = CCDummyObjects_1.DummyNode;
}
getMarkButtonNodes() {
return this.markButtonNodes;
......@@ -30,16 +29,10 @@ let ExtraPlotViewImpl = /** @class */ (() => {
getMaskNode() {
return this.maskNode;
}
getButtonsNode() {
return this.buttonsNode;
}
onMarkButtonClick(event, customEventData) {
let tabbarId = Number(customEventData);
this._props.onMarkButtonClickCallback(tabbarId);
}
onGotoShopButtonClick() {
this._props.onGotoShopButtonClickCallback();
}
onCloseButtonClick() {
this._props.onCloseButtonClickCallback();
}
......@@ -50,9 +43,6 @@ let ExtraPlotViewImpl = /** @class */ (() => {
__decorate([
property({ type: cc.Node, displayName: "Mask node" })
], ExtraPlotViewImpl.prototype, "maskNode", void 0);
__decorate([
property({ type: cc.Node, displayName: "Buttons node" })
], ExtraPlotViewImpl.prototype, "buttonsNode", void 0);
ExtraPlotViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(ExtraPlotView_1.ExtraPlotViewType, "prefab/ui/ExtraPlotView")
......
{"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
{"version":3,"sources":["assets/script/game/ui/view/impl/bedroom/SpecialPlotViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAkF;AAClF,2EAAwE;AACxE,4EAA0D;AAC1D,gEAAwG;AAExG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,uBAAgC;QAAzE;;YAGY,0BAAqB,GAAG,gCAAe,CAAC;YAExC,yBAAoB,GAAG,0BAAS,CAAC;YAEjC,oBAAe,GAAG,0BAAS,CAAC;YAE5B,YAAO,GAAG,0BAAS,CAAC;YAEpB,aAAQ,GAAG,0BAAS,CAAC;YAErB,mBAAc,GAAG,0BAAS,CAAC;YAE3B,aAAQ,GAAY,0BAAS,CAAC;YAE9B,YAAO,GAAY,0BAAS,CAAC;QAoDzC,CAAC;QAlDG,MAAM;QACN,CAAC;QAED,wBAAwB;YACpB,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;QAED,uBAAuB;YACnB,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;QAED,k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E,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
......@@ -52,9 +52,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.otherNameSpr = CCDummyObjects_1.DummySprite;
this.typewriter = undefined;
this.rollBackBtn = CCDummyObjects_1.DummyNode;
this.urgentBtnNode = CCDummyObjects_1.DummyNode;
this.goToShopBtn = CCDummyObjects_1.DummyNode;
this.commonProblemBtn = CCDummyObjects_1.DummyNode;
this.chapterBtn = CCDummyObjects_1.DummyPrefab;
this.scrollViewRootNode = CCDummyObjects_1.DummyNode;
this.skipButtonNode = CCDummyObjects_1.DummyNode;
......@@ -97,13 +94,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.getChapterBtn = () => {
return this.chapterBtn;
};
this.showGoToShopBtn = (isShow) => {
this.goToShopBtn.active = isShow;
};
this.showCommonProblemBtn = (isShow) => {
this.urgentBtnNode.active = false;
this.commonProblemBtn.active = isShow;
};
this.showRollBackBtn = (isShow) => {
this.rollBackBtn.active = isShow;
};
......@@ -150,7 +140,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
this.close();
}
onEnable() {
this.urgentBtnNode.active = false;
this.resetAutoPlayButtonState();
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);
}
......@@ -452,18 +441,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
// let seq = cc.sequence(spawnMF, spawnSR, call);
// this.closeActNode.runAction(seq);
}
onUrgentBtnClick() {
this.resetAutoPlayButtonState();
this.onUrgentBtnClickCallback();
}
onGoToShopClick() {
this.resetAutoPlayButtonState();
this.onGoToShopBtnCallback();
}
onCommonProblemBtnClick() {
this.resetAutoPlayButtonState();
this.onCommonProblemBtnClickCallback();
}
onRollBackBtnClick() {
this.resetAutoPlayButtonState();
this.onRollBackBtnCallback();
......@@ -550,15 +527,6 @@ let DatingSceneViewImpl = /** @class */ (() => {
property(cc.Node)
], DatingSceneViewImpl.prototype, "rollBackBtn", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "urgentBtnNode", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "goToShopBtn", void 0);
__decorate([
property(cc.Node)
], DatingSceneViewImpl.prototype, "commonProblemBtn", void 0);
__decorate([
property(cc.Prefab)
], DatingSceneViewImpl.prototype, "chapterBtn", void 0);
__decorate([
......
"use strict";
cc._RF.push(module, '9e18bPAJUBCbrHuvj87Zsow', 'UrgentNoticeViewImpl');
// script/game/ui/view/impl/notice/UrgentNoticeViewImpl.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.UrgentNoticeViewImpl = void 0;
const CCViewBase_1 = require("../../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../../PresenterCCViewFactory");
const UrgentNoticeView_1 = require("../../type/notice/UrgentNoticeView");
const { ccclass, property } = cc._decorator;
let UrgentNoticeViewImpl = /** @class */ (() => {
let UrgentNoticeViewImpl = class UrgentNoticeViewImpl extends CCViewBase_1.CCPureView {
getTipsToggle() {
return this.tipsToggle;
}
getCloseTipsLabel() {
return this.closeTipsLabel;
}
onCloseButtonClick() {
this._props.onCloseButtonClickCalback();
}
};
__decorate([
property({ type: cc.Toggle, displayName: "Tips toggle" })
], UrgentNoticeViewImpl.prototype, "tipsToggle", void 0);
__decorate([
property({ type: cc.Label, displayName: "CloseTips label" })
], UrgentNoticeViewImpl.prototype, "closeTipsLabel", void 0);
UrgentNoticeViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(UrgentNoticeView_1.UrgentNoticeViewType, "prefab/ui/notice/UrgentNoticeView")
], UrgentNoticeViewImpl);
return UrgentNoticeViewImpl;
})();
exports.UrgentNoticeViewImpl = UrgentNoticeViewImpl;
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
{"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, 'e9feecVuElHPYVHPF1tPTyr', 'UrgentNoticeView');
// script/game/ui/view/type/notice/UrgentNoticeView.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UrgentNoticeViewType = void 0;
exports.UrgentNoticeViewType = "UrgentNoticeView";
cc._RF.pop();
\ 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!