Commit 9333c738 by 张树文

修改月影

1 parent 14caa921
Showing with 243 additions and 257 deletions
{
"e8bbac7c-a9f6-499f-8269-be679ba2d278": {
"asset": 1642668301641,
"meta": 1642668336791,
"asset": 1643274457837,
"meta": 1644991324386,
"relativePath": "resources"
},
"b39e35b6-3d9f-4e60-bf27-b4a47a2aa967": {
......@@ -565,8 +565,8 @@
"relativePath": "resources/plotsJson/17359.json"
},
"e095417c-abe9-4244-868c-b368f81afa57": {
"asset": 1642668335795,
"meta": 1642668337211,
"asset": 1643274456736,
"meta": 1644991324387,
"relativePath": "resources/prefab"
},
"252f2715-6f4f-4992-8c74-7a0144e95427": {
......@@ -590,8 +590,8 @@
"relativePath": "resources/prefab/cooperation/GameCenterMomentItem.prefab"
},
"bc599480-9fa3-4263-907e-4e3462979b98": {
"asset": 1643262529537,
"meta": 1643265944732,
"asset": 1643274783615,
"meta": 1644991324388,
"relativePath": "resources/prefab/ui"
},
"2797df35-2019-4232-a04b-c9cde8744a7d": {
......@@ -831,502 +831,502 @@
},
"9836134e-b892-4283-b6b2-78b5acf3ed45": {
"asset": 1595909994000,
"meta": 1643262113994,
"meta": 1644991319213,
"relativePath": "effects"
},
"430eccbf-bf2c-4e6e-8c0c-884bbb487f32": {
"asset": 1595909994000,
"meta": 1643262114028,
"meta": 1644991319250,
"relativePath": "effects/__builtin-editor-gizmo-line.effect"
},
"6c5cf6e1-b044-4eac-9431-835644d57381": {
"asset": 1595909994000,
"meta": 1643262114041,
"meta": 1644991319260,
"relativePath": "effects/__builtin-editor-gizmo-unlit.effect"
},
"115286d1-2e10-49ee-aab4-341583f607e8": {
"asset": 1595909994000,
"meta": 1643262114075,
"meta": 1644991319294,
"relativePath": "effects/__builtin-editor-gizmo.effect"
},
"abc2cb62-7852-4525-a90d-d474487b88f2": {
"asset": 1595909994000,
"meta": 1643262114162,
"meta": 1644991319379,
"relativePath": "effects/builtin-phong.effect"
},
"e2f00085-c597-422d-9759-52c360279106": {
"asset": 1595909994000,
"meta": 1643262114220,
"meta": 1644991319442,
"relativePath": "effects/builtin-toon.effect"
},
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
"asset": 1595909994000,
"meta": 1643262114235,
"meta": 1644991319446,
"relativePath": "image"
},
"71561142-4c83-4933-afca-cb7a17f67053": {
"asset": 1595909994000,
"meta": 1643262114264,
"meta": 1644991319494,
"relativePath": "image/default_btn_disabled.png"
},
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
"asset": 1595909994000,
"meta": 1643262114265,
"meta": 1644991319492,
"relativePath": "image/default_btn_normal.png"
},
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
"asset": 1595909994000,
"meta": 1643262114278,
"meta": 1644991319510,
"relativePath": "image/default_btn_pressed.png"
},
"edd215b9-2796-4a05-aaf5-81f96c9281ce": {
"asset": 1595909994000,
"meta": 1643262114283,
"meta": 1644991319511,
"relativePath": "image/default_editbox_bg.png"
},
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
"asset": 1595909994000,
"meta": 1643262114299,
"meta": 1644991319524,
"relativePath": "image/default_panel.png"
},
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
"asset": 1595909994000,
"meta": 1643262114298,
"meta": 1644991319523,
"relativePath": "image/default_progressbar_bg.png"
},
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
"asset": 1595909994000,
"meta": 1643262114310,
"meta": 1644991319537,
"relativePath": "image/default_progressbar.png"
},
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
"asset": 1595909994000,
"meta": 1643262114311,
"meta": 1644991319538,
"relativePath": "image/default_radio_button_off.png"
},
"4bab67cb-18e6-4099-b840-355f0473f890": {
"asset": 1595909994000,
"meta": 1643262114325,
"meta": 1644991319550,
"relativePath": "image/default_scrollbar_bg.png"
},
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
"asset": 1595909994000,
"meta": 1643262114326,
"meta": 1644991319552,
"relativePath": "image/default_radio_button_on.png"
},
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
"asset": 1595909994000,
"meta": 1643262114341,
"meta": 1644991319610,
"relativePath": "image/default_scrollbar_vertical.png"
},
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
"asset": 1595909994000,
"meta": 1643262114340,
"meta": 1644991319609,
"relativePath": "image/default_scrollbar_vertical_bg.png"
},
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
"asset": 1595909994000,
"meta": 1643262114354,
"meta": 1644991319648,
"relativePath": "image/default_sprite_splash.png"
},
"0291c134-b3da-4098-b7b5-e397edbe947f": {
"asset": 1595909994000,
"meta": 1643262114355,
"meta": 1644991319655,
"relativePath": "image/default_scrollbar.png"
},
"6e056173-d285-473c-b206-40a7fff5386e": {
"asset": 1595909994000,
"meta": 1643262114375,
"meta": 1644991319665,
"relativePath": "image/default_sprite.png"
},
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
"asset": 1595909994000,
"meta": 1643262114373,
"meta": 1644991319670,
"relativePath": "image/default_toggle_checkmark.png"
},
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
"asset": 1595909994000,
"meta": 1643262114412,
"meta": 1644991319682,
"relativePath": "image/default_toggle_disabled.png"
},
"d29077ba-1627-4a72-9579-7b56a235340c": {
"asset": 1595909994000,
"meta": 1643262114413,
"meta": 1644991319683,
"relativePath": "image/default_toggle_normal.png"
},
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
"asset": 1595909994000,
"meta": 1643262114447,
"meta": 1644991319694,
"relativePath": "image/default_toggle_pressed.png"
},
"5c3eedba-6c41-4c0c-9ba7-d91f813cbd1c": {
"asset": 1595909994000,
"meta": 1643262114448,
"meta": 1644991319695,
"relativePath": "materials"
},
"c4480a0a-6ac5-443f-8b40-361a14257fc8": {
"asset": 1595909994000,
"meta": 1643262114902,
"meta": 1644991320165,
"relativePath": "materials/builtin-phong.mtl"
},
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
"asset": 1595909994000,
"meta": 1643262114452,
"meta": 1644991319699,
"relativePath": "misc"
},
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
"asset": 1595909994000,
"meta": 1643262114456,
"meta": 1644991319705,
"relativePath": "misc/default_video.mp4"
},
"db019bf7-f71c-4111-98cf-918ea180cb48": {
"asset": 1595909994000,
"meta": 1643262114457,
"meta": 1644991319706,
"relativePath": "model"
},
"e39e96e6-6f6e-413f-bcf1-ac7679bb648a": {
"asset": 1595909994000,
"meta": 1643262114459,
"meta": 1644991319707,
"relativePath": "model/prefab"
},
"600301aa-3357-4a10-b086-84f011fa32ba": {
"asset": 1595909994000,
"meta": 1643262114464,
"meta": 1644991319713,
"relativePath": "image/default-particle.png"
},
"a87cc147-01b2-43f8-8e42-a7ca90b0c757": {
"asset": 1643262114462,
"meta": 1643262114463,
"asset": 1644991319711,
"meta": 1644991319712,
"relativePath": "model/prefab/box.prefab"
},
"fe1417b6-fe6b-46a4-ae7c-9fd331f33a2a": {
"asset": 1643262114466,
"meta": 1643262114466,
"asset": 1644991319714,
"meta": 1644991319715,
"relativePath": "model/prefab/capsule.prefab"
},
"b5fc2cf2-7942-483d-be1f-bbeadc4714ad": {
"asset": 1643262114467,
"meta": 1643262114468,
"asset": 1644991319716,
"meta": 1644991319717,
"relativePath": "model/prefab/cone.prefab"
},
"1c5e4038-953a-44c2-b620-0bbfc6170477": {
"asset": 1643262114470,
"meta": 1643262114470,
"asset": 1644991319719,
"meta": 1644991319719,
"relativePath": "model/prefab/cylinder.prefab"
},
"3f376125-a699-40ca-ad05-04d662eaa1f2": {
"asset": 1643262114471,
"meta": 1643262114472,
"asset": 1644991319721,
"meta": 1644991319721,
"relativePath": "model/prefab/plane.prefab"
},
"6c9ef10d-b479-420b-bfe6-39cdda6a8ae0": {
"asset": 1643262114473,
"meta": 1643262114474,
"asset": 1644991319723,
"meta": 1644991319724,
"relativePath": "model/prefab/quad.prefab"
},
"2d9a4b85-b0ab-4c46-84c5-18f393ab2058": {
"asset": 1643262114475,
"meta": 1643262114475,
"asset": 1644991319725,
"meta": 1644991319725,
"relativePath": "model/prefab/sphere.prefab"
},
"de510076-056b-484f-b94c-83bef217d0e1": {
"asset": 1643262114489,
"meta": 1643262114489,
"asset": 1644991319755,
"meta": 1644991319756,
"relativePath": "model/prefab/torus.prefab"
},
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
"asset": 1595909994000,
"meta": 1643262114490,
"meta": 1644991319757,
"relativePath": "obsolete"
},
"8a96b965-2dc0-4e03-aa90-3b79cb93b5b4": {
"asset": 1595909994000,
"meta": 1643262114506,
"meta": 1644991319773,
"relativePath": "obsolete/atom.png"
},
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
"asset": 1595909994000,
"meta": 1643262114507,
"meta": 1644991319774,
"relativePath": "particle"
},
"b8223619-7e38-47c4-841f-9160c232495a": {
"asset": 1595909994000,
"meta": 1643262114926,
"meta": 1644991320183,
"relativePath": "obsolete/atom.plist"
},
"d0a82d39-bede-46c4-b698-c81ff0dedfff": {
"asset": 1595909994000,
"meta": 1643262114518,
"meta": 1644991319786,
"relativePath": "particle/atom.png"
},
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
"asset": 1595909994000,
"meta": 1643262114520,
"meta": 1644991319786,
"relativePath": "prefab"
},
"897ef7a1-4860-4f64-968d-f5924b18668a": {
"asset": 1643262114521,
"meta": 1643262114522,
"asset": 1644991319788,
"meta": 1644991319788,
"relativePath": "prefab/2d-camera.prefab"
},
"b2687ac4-099e-403c-a192-ff477686f4f5": {
"asset": 1595909994000,
"meta": 1643262114928,
"meta": 1644991320184,
"relativePath": "particle/atom.plist"
},
"70d7cdb0-04cd-41bb-9480-c06a4785f386": {
"asset": 1643262114523,
"meta": 1643262114524,
"asset": 1644991319790,
"meta": 1644991319790,
"relativePath": "prefab/3d-camera.prefab"
},
"70bbeb73-6dc2-4ee4-8faf-76b3a0e34ec4": {
"asset": 1643262114528,
"meta": 1643262114529,
"asset": 1644991319793,
"meta": 1644991319795,
"relativePath": "prefab/3d-particle.prefab"
},
"ed88f13d-fcad-4848-aa35-65a2cb973584": {
"asset": 1643262114532,
"meta": 1643262114533,
"asset": 1644991319797,
"meta": 1644991319798,
"relativePath": "prefab/3d-stage.prefab"
},
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
"asset": 1643262114536,
"meta": 1643262114537,
"asset": 1644991319801,
"meta": 1644991319802,
"relativePath": "prefab/button.prefab"
},
"2c937608-2562-40ea-b264-7395df6f0cea": {
"asset": 1643262114539,
"meta": 1643262114540,
"asset": 1644991319804,
"meta": 1644991319805,
"relativePath": "prefab/canvas.prefab"
},
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
"asset": 1643262114542,
"meta": 1643262114542,
"asset": 1644991319808,
"meta": 1644991319808,
"relativePath": "prefab/editbox.prefab"
},
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
"asset": 1643262114544,
"meta": 1643262114544,
"asset": 1644991319810,
"meta": 1644991319810,
"relativePath": "prefab/label.prefab"
},
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
"asset": 1643262114546,
"meta": 1643262114546,
"asset": 1644991319811,
"meta": 1644991319812,
"relativePath": "prefab/layout.prefab"
},
"a3ee0214-b432-4865-9666-4a3211814282": {
"asset": 1595909994000,
"meta": 1643262114547,
"meta": 1644991319812,
"relativePath": "prefab/light"
},
"61906da3-7003-4bda-9abc-5769c76faee4": {
"asset": 1643262114548,
"meta": 1643262114549,
"asset": 1644991319814,
"meta": 1644991319814,
"relativePath": "prefab/light/ambient.prefab"
},
"ddb99b39-7004-47cd-9705-751905c43c46": {
"asset": 1643262114550,
"meta": 1643262114551,
"asset": 1644991319815,
"meta": 1644991319815,
"relativePath": "prefab/light/directional.prefab"
},
"0cf30284-9073-46bc-9eba-e62b69dbbff3": {
"asset": 1643262114552,
"meta": 1643262114552,
"asset": 1644991319816,
"meta": 1644991319817,
"relativePath": "prefab/light/point.prefab"
},
"f5331fd2-bf42-4ee3-a3fd-3e1657600eff": {
"asset": 1643262114554,
"meta": 1643262114554,
"asset": 1644991319818,
"meta": 1644991319818,
"relativePath": "prefab/light/spot.prefab"
},
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
"asset": 1643262114556,
"meta": 1643262114556,
"asset": 1644991319820,
"meta": 1644991319821,
"relativePath": "prefab/pageview.prefab"
},
"cd33edea-55f5-46c2-958d-357a01384a36": {
"asset": 1643262114558,
"meta": 1643262114558,
"asset": 1644991319823,
"meta": 1644991319823,
"relativePath": "prefab/particlesystem.prefab"
},
"5965ffac-69da-4b55-bcde-9225d0613c28": {
"asset": 1643262114560,
"meta": 1643262114561,
"asset": 1644991319825,
"meta": 1644991319825,
"relativePath": "prefab/progressBar.prefab"
},
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
"asset": 1643262114562,
"meta": 1643262114562,
"asset": 1644991319827,
"meta": 1644991319827,
"relativePath": "prefab/richtext.prefab"
},
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
"asset": 1643262114564,
"meta": 1643262114564,
"asset": 1644991319829,
"meta": 1644991319829,
"relativePath": "prefab/scrollview.prefab"
},
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
"asset": 1643262114566,
"meta": 1643262114566,
"asset": 1644991319831,
"meta": 1644991319831,
"relativePath": "prefab/slider.prefab"
},
"1f55e3be-b89b-4b79-88de-47fd31018044": {
"asset": 1643262114567,
"meta": 1643262114568,
"asset": 1644991319832,
"meta": 1644991319833,
"relativePath": "prefab/sprite_splash.prefab"
},
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
"asset": 1643262114569,
"meta": 1643262114569,
"asset": 1644991319834,
"meta": 1644991319834,
"relativePath": "prefab/sprite.prefab"
},
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
"asset": 1643262114571,
"meta": 1643262114571,
"asset": 1644991319836,
"meta": 1644991319836,
"relativePath": "prefab/tiledmap.prefab"
},
"0e42ba95-1fa1-46aa-b2cf-143cd1bcee2c": {
"asset": 1643262114575,
"meta": 1643262114576,
"asset": 1644991319837,
"meta": 1644991319838,
"relativePath": "prefab/tiledtile.prefab"
},
"0d784963-d024-4ea6-a7db-03be0ad63010": {
"asset": 1643262114578,
"meta": 1643262114578,
"asset": 1644991319839,
"meta": 1644991319840,
"relativePath": "prefab/toggle.prefab"
},
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
"asset": 1643262114588,
"meta": 1643262114588,
"asset": 1644991319871,
"meta": 1644991319872,
"relativePath": "prefab/toggleContainer.prefab"
},
"d1b8be49-b0a0-435c-83b7-552bed4bbe35": {
"asset": 1643262114614,
"meta": 1643262114614,
"asset": 1644991319891,
"meta": 1644991319892,
"relativePath": "prefab/toggleGroup.prefab"
},
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
"asset": 1643262114625,
"meta": 1643262114625,
"asset": 1644991319910,
"meta": 1644991319911,
"relativePath": "prefab/videoplayer.prefab"
},
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
"asset": 1643262114649,
"meta": 1643262114649,
"asset": 1644991319919,
"meta": 1644991319920,
"relativePath": "prefab/webview.prefab"
},
"d8afc78c-4eac-4a9f-83dd-67bc70344d33": {
"asset": 1595909994000,
"meta": 1643262114650,
"meta": 1644991319921,
"relativePath": "resources"
},
"294c1663-4adf-4a1e-a795-53808011a38a": {
"asset": 1595909994000,
"meta": 1643262114652,
"meta": 1644991319923,
"relativePath": "resources/effects"
},
"30682f87-9f0d-4f17-8a44-72863791461b": {
"asset": 1595909994000,
"meta": 1643262114674,
"meta": 1644991319936,
"relativePath": "resources/effects/builtin-2d-graphics.effect"
},
"144c3297-af63-49e8-b8ef-1cfa29b3be28": {
"asset": 1595909994000,
"meta": 1643262114683,
"meta": 1644991319957,
"relativePath": "resources/effects/builtin-2d-gray-sprite.effect"
},
"f18742d7-56d2-4eb5-ae49-2d9d710b37c8": {
"asset": 1595909994000,
"meta": 1643262114694,
"meta": 1644991319968,
"relativePath": "resources/effects/builtin-2d-label.effect"
},
"0e93aeaa-0b53-4e40-b8e0-6268b4e07bd7": {
"asset": 1595909994000,
"meta": 1643262114704,
"meta": 1644991319977,
"relativePath": "resources/effects/builtin-2d-spine.effect"
},
"2874f8dd-416c-4440-81b7-555975426e93": {
"asset": 1595909994000,
"meta": 1643262114712,
"meta": 1644991319988,
"relativePath": "resources/effects/builtin-2d-sprite.effect"
},
"829a282c-b049-4019-bd38-5ace8d8a6417": {
"asset": 1595909994000,
"meta": 1643262114800,
"meta": 1644991320087,
"relativePath": "resources/effects/builtin-3d-particle.effect"
},
"2a7c0036-e0b3-4fe1-8998-89a54b8a2bec": {
"asset": 1595909994000,
"meta": 1643262114824,
"meta": 1644991320107,
"relativePath": "resources/effects/builtin-3d-trail.effect"
},
"c0040c95-c57f-49cd-9cbc-12316b73d0d4": {
"asset": 1595909994000,
"meta": 1643262114830,
"meta": 1644991320113,
"relativePath": "resources/effects/builtin-clear-stencil.effect"
},
"6d91e591-4ce0-465c-809f-610ec95019c6": {
"asset": 1595909994000,
"meta": 1643262114857,
"meta": 1644991320131,
"relativePath": "resources/effects/builtin-unlit.effect"
},
"bbee2217-c261-49bd-a8ce-708d6bcc3500": {
"asset": 1595909994000,
"meta": 1643262114859,
"meta": 1644991320133,
"relativePath": "resources/materials"
},
"6f801092-0c37-4f30-89ef-c8d960825b36": {
"asset": 1595909994000,
"meta": 1643262114959,
"meta": 1644991320217,
"relativePath": "resources/materials/builtin-2d-base.mtl"
},
"a153945d-2511-4c14-be7b-05d242f47d57": {
"asset": 1595909994000,
"meta": 1643262114961,
"meta": 1644991320216,
"relativePath": "resources/materials/builtin-2d-graphics.mtl"
},
"3a7bb79f-32fd-422e-ada2-96f518fed422": {
"asset": 1595909994000,
"meta": 1643262114963,
"meta": 1644991320218,
"relativePath": "resources/materials/builtin-2d-gray-sprite.mtl"
},
"e02d87d4-e599-4d16-8001-e14891ac6506": {
"asset": 1595909994000,
"meta": 1643262114962,
"meta": 1644991320218,
"relativePath": "resources/materials/builtin-2d-label.mtl"
},
"7afd064b-113f-480e-b793-8817d19f63c3": {
"asset": 1595909994000,
"meta": 1643262114964,
"meta": 1644991320220,
"relativePath": "resources/materials/builtin-2d-spine.mtl"
},
"432fa09c-cf03-4cff-a186-982604408a07": {
"asset": 1595909994000,
"meta": 1643262114966,
"meta": 1644991320221,
"relativePath": "resources/materials/builtin-3d-particle.mtl"
},
"eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432": {
"asset": 1595909994000,
"meta": 1643262114963,
"meta": 1644991320219,
"relativePath": "resources/materials/builtin-2d-sprite.mtl"
},
"466d4f9b-e5f4-4ea8-85d5-3c6e9a65658a": {
"asset": 1595909994000,
"meta": 1643262114965,
"meta": 1644991320221,
"relativePath": "resources/materials/builtin-3d-trail.mtl"
},
"cf7e0bb8-a81c-44a9-ad79-d28d43991032": {
"asset": 1595909994000,
"meta": 1643262114968,
"meta": 1644991320223,
"relativePath": "resources/materials/builtin-clear-stencil.mtl"
},
"2a296057-247c-4a1c-bbeb-0548b6c98650": {
"asset": 1595909994000,
"meta": 1643262114967,
"meta": 1644991320224,
"relativePath": "resources/materials/builtin-unlit.mtl"
},
"954fec8b-cd16-4bb9-a3b7-7719660e7558": {
"asset": 1595909994000,
"meta": 1643262117159,
"meta": 1644991322222,
"relativePath": "model/primitives.fbx"
},
"45968bc5-73ad-403b-96bc-d89136ea06d6": {
......@@ -2395,8 +2395,8 @@
"relativePath": "resources/textures/bigSpr/qiangp.png"
},
"377c30ce-6660-4a25-80bb-225f1f9e8dd0": {
"asset": 1643274457198,
"meta": 1643274493280,
"asset": 1643352093302,
"meta": 1644991324389,
"relativePath": "resources/textures/common"
},
"a0e82462-8a3f-4f15-8a45-56bad960a932": {
......@@ -2434,11 +2434,6 @@
"meta": 1643274493323,
"relativePath": "resources/textures/common/btn_normal_light.png"
},
"d0ab5015-ed3e-4df0-a34a-acac1993ef95": {
"asset": 1643274457186,
"meta": 1643274493336,
"relativePath": "resources/textures/common/ea.png"
},
"85c78a3e-c7f2-45df-a18c-d9a2169ab90d": {
"asset": 1643274457185,
"meta": 1643274493337,
......@@ -2474,16 +2469,6 @@
"meta": 1643274493377,
"relativePath": "resources/textures/common/loading.png"
},
"8963c578-4281-4e6d-81b2-05ff9171dba7": {
"asset": 1643274457193,
"meta": 1643274493389,
"relativePath": "resources/textures/common/portalBtn.png"
},
"fc0949c4-7c29-461f-a8cd-f6c6c949b201": {
"asset": 1643274457192,
"meta": 1643274493394,
"relativePath": "resources/textures/common/portalBg.png"
},
"7ceb53bc-4c3b-49ad-bbcd-6627add826e8": {
"asset": 1643274457194,
"meta": 1643274493400,
......@@ -5735,8 +5720,8 @@
"relativePath": "script/game/network/HttpRequests.ts"
},
"d95793ed-9790-444e-ae18-9e685d899f58": {
"asset": 1643274457940,
"meta": 1643274500112,
"asset": 1643342425031,
"meta": 1644991324389,
"relativePath": "script/game/ui"
},
"af19548b-fcd7-44fd-9640-8c3fa40cb0ae": {
......
......@@ -5,8 +5,8 @@
"main": true,
"url": "app://editor/index.html",
"windowType": "dockable",
"x": -1920,
"y": 25,
"x": -1884,
"y": 58,
"width": 1920,
"height": 1055,
"layout": {
......@@ -88,7 +88,8 @@
"inspector",
"cocos-services"
]
}
},
"worker": {}
},
"panels": {
"store": {
......
{
"last-edit": null,
"last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49",
"recent-items": [
"b8065da7-5527-4122-8cb2-8b0b67918e7c",
"6f5e58c9-b034-4462-bedd-ed81a6812825",
......
{
"nodeFoldStates": [
"8afKZIUSFO2Lm9XGyjfpbe",
"b7MzRkN+pAToq7a9yUEBu+",
"89ANX2KahHHrUMTTPZZEc+",
"d3Mc4UQaVEbJuPZZUa9K1x",
"e1bOlaCUlCLIu/pYLr23zq",
"b8fk2kGm9EBLp171Aloq6E",
"99iL+ZSf5CVI+G3DTcnETS",
"e9n8pZTp1IB4/3BR3zxD8e",
"37Gj78WNZEioejzpL8H50W",
"3739yFhBxIw48VUN09pS7N",
"37n+hSFUFNApNhVA8Ucged",
"4bvworoUdN5bYZNfewXt1h",
"e1R54/r3VCOIiMjMztIAvp",
"aakRSK+cpEd7iLpAI2g/oE",
"7bdBIYWMxLpqLXi33IJBIm",
"d8PFAmujpPrI5oNbfyNUUB",
"b2bQmpCe1PpoZzo7ZAe/q9",
"c2CwmA1eJBWplvzEy+lB2k",
"15MnHtjZZN2KKemfZsmTUU",
"5175Gc4R1PAau5RQiBbwjP",
"3et9M+ojtBD7j/T5RjsI6x",
"5e9I9UW0FAu5B+z/RdfN7a",
"89EizEj3hCGpY760/bllgS",
"05TL+WHo1Ja6oJF13BSnV+",
"54NKJQIedFvriGGVVwBOEu",
"28X+G3DPpOHLJihadsll4/",
"f960LtU3JFb4u0EgHJv9CG",
"88oGniEi1E8p5xYYYlik2N",
"0dRGQvWmhJ/pESbkE6in35",
"90sWWLFYxG/7yODLKz95Dq",
"c8iDgtZexA2pY7QdsN3qfN",
"edqnDpXZtBn4SPzKgU8LPi",
"0bkZ0Ey0lH5ZHLWWojLWzE",
"1a34F7s65FU7Xv6MGxPSPL",
......@@ -499,6 +468,37 @@
"09HoLh2gxDlon1lL1tpdlo",
"5akEUZLdlGBqfkExgdL+3r",
"c8C8qXU+lLKKsNruC4u5po",
"5cSqoyLCtOwYp5vE6CcP+E"
"5cSqoyLCtOwYp5vE6CcP+E",
"9bao2b8shFBK+T11JG1AGB",
"a1Fd2DyKtK+7xkOccRnIWV",
"90o5IJ0VtE678iHtkOThbO",
"61z3JcjjNEK4MBuwo69yPK",
"6f3lXZ0R5JnooWM56tVdHC",
"27PRq05y9MGahK3GyrzeAn",
"18ItXUcTJASoxVh2shVhhd",
"c8ryBkXoNI4qsoMcvP5hSz",
"35xeY48ElBKool8y27Aa01",
"58EVAMC2BOIof6k9+E60nT",
"2bVLg065NNOZ4pjyg+umkq",
"7fzaaVwu9FM65OtynsUmSm",
"b97g0sj35EOYuOoHWqtrKe",
"3dAxBEajtAKK+K3Q14l5xx",
"f6pUhsmKZG3bEKf8vPwWig",
"2decv0kkdCOI9OJ2vNeUnr",
"b6SkTFyG1L6ZZDQ9Ij7A3x",
"41KYWppa9EqJkQ9VqK4Q2D",
"f6xpVAVKFBcb5EZ3RNi1Er",
"b7MzRkN+pAToq7a9yUEBu+",
"89ANX2KahHHrUMTTPZZEc+",
"d0G+u+SXRNhbEJLL+Ct7fG",
"5037T0pOJHuZd1hhsEd28q",
"caC5iMMIdJ/rQnTWQYBHTb",
"ccStbHmoFJMqgzr5oMPv1j",
"d8A+C4Z99OX6PJx977cdVR",
"c3YxD7XydJdJo2jukMfavp",
"fepsLEkoNEsLBzq5XNB71f",
"23vtfNdZtGaqESSu7HO6kF",
"ddyJGBUMxPn6Am+xDuWFhN",
"8fXZyivWJMZodjXO3/OZOF"
]
}
{"version":"1.0.8","stats":{"/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/__qc_index__.js":"2022-01-28T04:00:20.639Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter.js":"2022-01-27T09:27:49.156Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/StringUtils.js":"2022-01-27T09:08:22.355Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/GameRoleDataModel.js":"2022-01-27T09:08:22.379Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/GameConfig.js":"2022-01-27T09:08:22.430Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ChatListViewImpl.js":"2022-01-27T09:08:22.401Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameTextData.js":"2022-01-27T09:08:22.351Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingSceneViewImpl.js":"2022-01-27T09:15:28.191Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/game-data/GameVariables.js":"2022-01-27T09:08:22.345Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DatingEventViewPresenter.js":"2022-01-28T03:54:08.312Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ChatListViewPresenter.js":"2022-01-27T09:27:48.744Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/MainViewPresenter.js":"2022-01-28T03:54:08.474Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListItemImpl.js":"2022-01-27T09:08:22.382Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/notice/NewNoticeViewPresenter.js":"2022-01-28T03:54:08.556Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/UIManager.js":"2022-01-27T09:08:22.352Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/PhoneCallViewImpl.js":"2022-01-27T09:27:49.308Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/GameDotMgr.js":"2022-01-27T09:08:22.374Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/HotUpdate.js":"2022-01-27T09:08:22.374Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/Launcher.js":"2022-01-27T09:08:22.375Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/md5.js":"2022-01-27T09:08:22.376Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/Enums.js":"2022-01-27T09:08:22.373Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockSpecialPlotModelManager.js":"2022-01-27T09:08:22.381Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/VerbView.js":"2022-01-27T09:08:22.399Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DatingScenePresenter.js":"2022-01-28T03:54:08.396Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExchangeCodeViewPresenter.js":"2022-01-27T09:27:49.075Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/MessageViewPresenter.js":"2022-01-27T09:08:22.393Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExtraPlotViewPresenter.js":"2022-01-27T09:08:22.391Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/customerService/script/CustomerServiceDataCenter.js":"2022-01-27T09:08:22.371Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/ChatBubbleView.js":"2022-01-27T09:08:22.407Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/discover/ProductionTeamView.js":"2022-01-27T09:08:22.417Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/AlertDialogViewImpl.js":"2022-01-27T09:08:22.400Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/CCViewBase.js":"2022-01-27T09:08:22.346Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/PortraitFixComponent.js":"2022-01-27T09:08:22.348Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/type/TypeTest.js":"2022-01-27T09:08:22.353Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/event/BaseEvents.js":"2022-01-27T09:08:22.350Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ActivitiesTypeConfig.js":"2022-01-27T09:08:22.355Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/event/EventKit.js":"2022-01-27T09:08:22.372Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/network/HttpRequests.js":"2022-01-27T09:08:22.381Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/list/ListView1.js":"2022-01-27T09:08:22.385Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/message/ImagePreviewPresenter.js":"2022-01-27T09:08:22.393Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter.js":"2022-01-27T09:08:22.389Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/network/HttpClient.js":"2022-01-27T09:08:22.430Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/discover/ProductionTeamViewImpl.js":"2022-01-27T09:08:22.404Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/notice/NewNoticeViewImpl.js":"2022-01-27T09:16:59.786Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl.js":"2022-01-27T09:08:22.408Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/notice/NewNoticeView.js":"2022-01-27T09:08:22.426Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/AVG.js":"2022-01-27T09:08:22.344Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/ToBeContinueFix.js":"2022-01-27T09:08:22.352Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/EditorEnums.js":"2022-01-27T09:08:22.344Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/EditorEvents.js":"2022-01-27T09:08:22.345Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/CCDummyObjects.js":"2022-01-27T09:16:59.691Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/CCWechatScreenShotMgr.js":"2022-01-27T09:08:22.346Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/PresenterBase.js":"2022-01-27T09:08:22.346Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/game-data/EditorGameVariables.js":"2022-01-27T09:08:22.345Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/ViewBase.js":"2022-01-27T09:08:22.347Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/FrameAnimation.js":"2022-01-27T09:08:22.347Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/Typewriter.js":"2022-01-27T09:08:22.349Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/SoundEffectButton.js":"2022-01-27T09:08:22.348Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/TouchSpecialEffComp.js":"2022-01-27T09:08:22.349Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/UIButton.js":"2022-01-27T09:08:22.350Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/SVButton.js":"2022-01-27T09:08:22.348Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/ScheduleUtils.js":"2022-01-27T09:08:22.354Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/AnimationUtils.js":"2022-01-27T09:08:22.353Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/AlterAnim.js":"2022-01-27T09:08:22.347Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/ResUtils.js":"2022-01-27T09:08:22.354Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/type/Type.js":"2022-01-27T09:08:22.353Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/NodePoolFactory.js":"2022-01-27T09:08:22.354Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/BedroomItemConfig.js":"2022-01-27T09:08:22.356Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatRewardConfig.js":"2022-01-27T09:08:22.358Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionConfig.js":"2022-01-27T09:08:22.358Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionUnlockConfig.js":"2022-01-27T09:08:22.359Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionEventConfig.js":"2022-01-27T09:08:22.359Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatLevelConfig.js":"2022-01-27T09:08:22.357Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionRewardConfig.js":"2022-01-27T09:08:22.359Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/DateSceneConfig.js":"2022-01-27T09:08:22.360Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/GuideManagerConfig.js":"2022-01-27T09:08:22.360Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/I18nConfig.js":"2022-01-27T09:08:22.360Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ItemConfig.js":"2022-01-27T09:08:22.361Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/MessageSceneConfig.js":"2022-01-27T09:08:22.361Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ItemTbl.js":"2022-01-27T09:08:22.361Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerClothesConfig.js":"2022-01-27T09:08:22.362Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerConfig.js":"2022-01-27T09:08:22.362Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerGiftConfig.js":"2022-01-27T09:08:22.363Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerMemoirsConfiig.js":"2022-01-27T09:08:22.365Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerTitleConfig.js":"2022-01-27T09:08:22.366Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerLevelConfig.js":"2022-01-27T09:08:22.364Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PowerConfig.js":"2022-01-27T09:08:22.366Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/Role.js":"2022-01-27T09:08:22.368Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/SceneType.js":"2022-01-27T09:08:22.368Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ShopConfig.js":"2022-01-27T09:08:22.369Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/RelationLevelConfig.js":"2022-01-27T09:08:22.367Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerSpeakConfig.js":"2022-01-27T09:08:22.365Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/SuitConfig.js":"2022-01-27T09:08:22.370Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/StoryTbl.js":"2022-01-27T09:08:22.370Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/TaoBaoShopUrlConfig.js":"2022-01-27T09:08:22.371Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ActivitiesConifg.js":"2022-01-27T09:08:22.355Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/GameEvents.js":"2022-01-27T07:35:49.616Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/event/EventCenter.js":"2022-01-27T09:08:22.372Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatFoodConfig.js":"2022-01-27T09:08:22.357Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CharacterVoiceConfig.js":"2022-01-27T09:08:22.358Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/CDKeyEventManager.js":"2022-01-27T09:08:22.377Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/DatingEventSceneModel.js":"2022-01-27T09:08:22.378Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockSpecialPlotEventManager.js":"2022-01-27T09:08:22.380Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockItemModelManager.js":"2022-01-27T09:08:22.380Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/PlotBranchManager.js":"2022-01-27T09:08:22.379Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/MessageSceneModel.js":"2022-01-27T09:08:22.379Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/ExtraStoryModelManager.js":"2022-01-27T09:08:22.378Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatBubbleConfig.js":"2022-01-27T09:08:22.356Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/MoveAction.js":"2022-01-27T09:08:22.386Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/ActivitiesItemModelManager.js":"2022-01-27T09:08:22.376Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemBreathAction.js":"2022-01-27T09:08:22.384Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PageViewIndicatorEx.js":"2022-01-27T09:08:22.386Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PlaySoundEffectOnEnabled.js":"2022-01-27T09:08:22.387Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PresenterCCViewFactory.js":"2022-01-27T09:08:22.397Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/MoveRepeatAction.js":"2022-01-27T09:08:22.386Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ChapterBtn.js":"2022-01-27T07:35:49.677Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ScaleAction.js":"2022-01-27T09:08:22.397Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ScaleDisplayAction.js":"2022-01-27T09:08:22.398Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SurroundMotionStreakAction.js":"2022-01-27T09:08:22.399Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemBaiFadeOut.js":"2022-01-27T09:08:22.384Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemFix.js":"2022-01-27T09:08:22.385Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SpecialToast.js":"2022-01-27T09:08:22.399Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/UIUtils.js":"2022-01-27T07:35:49.586Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/ListView.js":"2022-01-27T09:08:22.383Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SectionBtn.js":"2022-01-27T09:08:22.398Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/BreathAction.js":"2022-01-27T09:08:22.383Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ActivitiesNoticeItem.js":"2022-01-27T09:08:22.382Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/list/ChatListView1.js":"2022-01-27T09:08:22.385Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DebugViewPresenter.js":"2022-01-27T09:08:22.389Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DiscoverViewPresenter.js":"2022-01-27T09:27:49.003Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListViewImpl.js":"2022-01-27T09:08:22.383Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListSubviewImpl.js":"2022-01-27T09:08:22.382Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/GuideViewPresenter.js":"2022-01-27T09:08:22.391Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/PlotStopViewPresenter.js":"2022-01-27T09:08:22.395Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/NoticeViewPresenter.js":"2022-01-27T09:08:22.394Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/LikeLevelSubpresenter.js":"2022-01-27T09:08:22.392Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/QRCodeViewPresenter.js":"2022-01-27T09:08:22.395Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/PhoneCallViewPresenter.js":"2022-01-27T09:26:18.158Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/SentenceSelectorViewPresenter.js":"2022-01-27T09:08:22.396Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ReviewPlotViewPresenter.js":"2022-01-27T09:08:22.395Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/AlertDialogViewPresenter.js":"2022-01-27T09:08:22.387Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/AlertManager.js":"2022-01-27T09:08:22.351Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/ToastManager.js":"2022-01-27T09:08:22.352Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/TaskManager.js":"2022-01-27T09:08:22.351Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameConstData.js":"2022-01-27T09:08:22.350Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter.js":"2022-01-27T09:08:22.389Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DateCountViewImpl.js":"2022-01-27T09:08:22.401Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameEnumData.js":"2022-01-27T09:08:22.350Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DatingEventViewImpl.js":"2022-01-27T09:08:22.403Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DebugViewImpl.js":"2022-01-27T09:08:22.403Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ExchangeCodeViewImpl.js":"2022-01-27T09:08:22.404Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/LikeLevelSubviewImpl.js":"2022-01-27T09:08:22.406Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DiscoverViewImpl.js":"2022-01-27T09:08:22.404Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/GuideViewImpl.js":"2022-01-27T09:08:22.405Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ExtraPlotViewImpl.js":"2022-01-27T09:08:22.405Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MessageEntryItem.js":"2022-01-27T09:08:22.409Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MainInfoSubviewImpl.js":"2022-01-27T09:08:22.406Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MainViewImpl.js":"2022-01-27T09:08:22.406Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MessageViewImpl.js":"2022-01-27T09:08:22.409Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/NoticeViewImpl.js":"2022-01-27T09:08:22.410Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/PlotStopViewImpl.js":"2022-01-27T09:08:22.411Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/QRCodeViewImpl.js":"2022-01-27T09:08:22.411Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ReviewPlotViewImpl.js":"2022-01-27T09:08:22.411Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl.js":"2022-01-27T09:08:22.402Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl.js":"2022-01-27T09:08:22.401Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/AlertToBeContinueImpl.js":"2022-01-27T09:08:22.400Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/ExtraPlotDatingEventSubViewImpl.js":"2022-01-27T09:08:22.402Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/GiftListSubviewImpl.js":"2022-01-27T09:08:22.408Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/discover/DiscoverSettingViewImpl.js":"2022-01-27T09:08:22.403Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/GiftListItemImpl.js":"2022-01-27T09:08:22.407Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ChatListView.js":"2022-01-27T09:08:22.413Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingEventView.js":"2022-01-27T09:08:22.415Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DateCountView.js":"2022-01-27T09:08:22.414Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DiscoverView.js":"2022-01-27T09:08:22.418Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExChangeCodeView.js":"2022-01-27T09:08:22.419Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DebugView.js":"2022-01-27T09:08:22.416Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingEventSubview.js":"2022-01-28T03:54:08.637Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/ImagePreviewViewImpl.js":"2022-01-27T09:08:22.408Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingSceneView.js":"2022-01-27T09:15:28.272Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExtraPlotDatingEventSubView.js":"2022-01-27T09:08:22.420Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExtraPlotView.js":"2022-01-27T09:08:22.420Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/GuideView.js":"2022-01-27T09:08:22.421Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MainView.js":"2022-01-27T09:08:22.424Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/PhoneCallView.js":"2022-01-27T09:08:22.427Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/LikeLevelSubview.js":"2022-01-27T09:08:22.423Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/NoticeView.js":"2022-01-27T09:08:22.426Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/TabView.js":"2022-01-27T09:08:22.429Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/PlotStopView.js":"2022-01-27T09:08:22.428Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/QRCodeView.js":"2022-01-27T09:08:22.428Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/SentenceSelectorView.js":"2022-01-27T09:08:22.429Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MessageView.js":"2022-01-27T09:08:22.425Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MainInfoSubviewiew.js":"2022-01-27T09:08:22.424Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/AlertDialogView.js":"2022-01-27T09:08:22.412Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ReviewPlotView.js":"2022-01-27T09:08:22.428Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ItemView.js":"2022-01-27T09:08:22.423Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/GiftListSubview.js":"2022-01-27T09:08:22.421Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ImagePreviewView.js":"2022-01-27T09:08:22.422Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/discover/DiscoverSettingView.js":"2022-01-27T09:08:22.417Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/GameModelManager.js":"2022-01-28T03:54:08.213Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-httpclient/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-dummy/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-resutils/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-config-manager/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-eventkit/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKEvents.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/TimeManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKBase.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-ccsvbutton/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-utils/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/AudioManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/AudioSettings.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/ExchangeCodeDataCenter.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/EventEmitter.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/game-data/PlotsData.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/PlotManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/game-data/GameRecord.js":"2021-11-19T02:43:38.599Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKServer.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKRecordsData.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SVConfig.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-utils/dist/Md5.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/ExchangeCodeClassBase.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/PlotModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/utils/PlotUtils.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/ActionManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/ActionModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/ConditionModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/inflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/deflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/utils/common.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/constants.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-localstorage/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-random/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/utils/strings.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/messages.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/zstream.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/gzheader.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/deflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/adler32.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/crc32.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inffast.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inftrees.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/trees.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/RichTextModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/utils/RichTextUtils.js":"1985-10-26T08:15:00.000Z"}}
{"version":"1.0.8","stats":{"/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/__qc_index__.js":"2022-02-16T06:02:05.146Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/StringUtils.js":"2022-02-16T06:02:05.065Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/Launcher.js":"2022-02-16T06:02:05.056Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/GameRoleDataModel.js":"2022-02-16T06:02:04.872Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/VerbView.js":"2022-02-16T06:02:04.867Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExchangeCodeViewPresenter.js":"2022-02-16T06:02:05.024Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/notice/NewNoticeViewPresenter.js":"2022-02-16T06:02:05.017Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/UIManager.js":"2022-02-16T06:02:04.916Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/PhoneCallViewImpl.js":"2022-02-16T06:02:04.869Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/EditorEvents.js":"2022-02-16T06:02:04.857Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/CCViewBase.js":"2022-02-16T06:02:04.905Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/HotUpdate.js":"2022-02-16T06:02:04.950Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/Enums.js":"2022-02-16T06:02:05.040Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/md5.js":"2022-02-16T06:02:05.035Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockSpecialPlotModelManager.js":"2022-02-16T06:02:04.917Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListViewImpl.js":"2022-02-16T06:02:04.890Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExtraPlotViewPresenter.js":"2022-02-16T06:02:05.013Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/MessageViewPresenter.js":"2022-02-16T06:02:05.052Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameConstData.js":"2022-02-16T06:02:05.038Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/customerService/script/CustomerServiceDataCenter.js":"2022-02-16T06:02:05.027Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/AlertDialogViewImpl.js":"2022-02-16T06:02:04.987Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingSceneViewImpl.js":"2022-02-16T06:02:05.032Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl.js":"2022-02-16T06:02:05.001Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/discover/DiscoverSettingView.js":"2022-02-16T06:02:05.050Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/GameConfig.js":"2022-02-16T06:02:05.043Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/SVButton.js":"2022-02-16T06:02:05.042Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/event/BaseEvents.js":"2022-02-16T06:02:05.049Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/type/TypeTest.js":"2022-02-16T06:02:05.046Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ActivitiesTypeConfig.js":"2022-02-16T06:02:04.974Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/event/EventKit.js":"2022-02-16T06:02:04.998Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/network/HttpRequests.js":"2022-02-16T06:02:04.888Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter.js":"2022-02-16T06:02:04.943Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/discover/ProductionTeamViewPresenter.js":"2022-02-16T06:02:04.989Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/network/HttpClient.js":"2022-02-16T06:02:04.922Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/message/ImagePreviewPresenter.js":"2022-02-16T06:02:04.860Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DateCountViewImpl.js":"2022-02-16T06:02:04.870Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/discover/ProductionTeamViewImpl.js":"2022-02-16T06:02:04.936Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/ChatBubbleView.js":"2022-02-16T06:02:04.897Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/notice/NewNoticeViewImpl.js":"2022-02-16T06:02:05.011Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/notice/NewNoticeView.js":"2022-02-16T06:02:05.016Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/Typewriter.js":"2022-02-16T06:02:04.901Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/CCWechatScreenShotMgr.js":"2022-02-16T06:02:04.913Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/UIButton.js":"2022-02-16T06:02:05.050Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/SoundEffectButton.js":"2022-02-16T06:02:04.940Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/TouchSpecialEffComp.js":"2022-02-16T06:02:04.986Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/ScheduleUtils.js":"2022-02-16T06:02:04.893Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/NodePoolFactory.js":"2022-02-16T06:02:04.900Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/ResUtils.js":"2022-02-16T06:02:05.019Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/AlterAnim.js":"2022-02-16T06:02:04.963Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/type/Type.js":"2022-02-16T06:02:04.949Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/utils/AnimationUtils.js":"2022-02-16T06:02:05.007Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatBubbleConfig.js":"2022-02-16T06:02:05.047Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatFoodConfig.js":"2022-02-16T06:02:05.020Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/BedroomItemConfig.js":"2022-02-16T06:02:05.051Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionEventConfig.js":"2022-02-16T06:02:04.968Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatRewardConfig.js":"2022-02-16T06:02:04.927Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionRewardConfig.js":"2022-02-16T06:02:05.023Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/DateSceneConfig.js":"2022-02-16T06:02:04.984Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/I18nConfig.js":"2022-02-16T06:02:04.864Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ItemConfig.js":"2022-02-16T06:02:05.034Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ItemTbl.js":"2022-02-16T06:02:05.048Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionUnlockConfig.js":"2022-02-16T06:02:05.010Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/MessageSceneConfig.js":"2022-02-16T06:02:04.914Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerGiftConfig.js":"2022-02-16T06:02:04.881Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerConfig.js":"2022-02-16T06:02:04.931Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerClothesConfig.js":"2022-02-16T06:02:05.030Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/GuideManagerConfig.js":"2022-02-16T06:02:04.973Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerLevelConfig.js":"2022-02-16T06:02:05.063Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerMemoirsConfiig.js":"2022-02-16T06:02:05.008Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerSpeakConfig.js":"2022-02-16T06:02:04.923Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CommissionConfig.js":"2022-02-16T06:02:04.971Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CatLevelConfig.js":"2022-02-16T06:02:05.018Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/SceneType.js":"2022-02-16T06:02:04.960Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/CharacterVoiceConfig.js":"2022-02-16T06:02:04.876Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PlayerTitleConfig.js":"2022-02-16T06:02:04.954Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ShopConfig.js":"2022-02-16T06:02:04.909Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/SuitConfig.js":"2022-02-16T06:02:05.058Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/StoryTbl.js":"2022-02-16T06:02:05.036Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/TaoBaoShopUrlConfig.js":"2022-02-16T06:02:05.026Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/ActivitiesConifg.js":"2022-02-16T06:02:05.061Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/Role.js":"2022-02-16T06:02:04.932Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/GameDotMgr.js":"2022-02-16T06:02:04.928Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/event/EventCenter.js":"2022-02-16T06:02:04.898Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/PowerConfig.js":"2022-02-16T06:02:04.966Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/DatingEventSceneModel.js":"2022-02-16T06:02:04.891Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/MessageSceneModel.js":"2022-02-16T06:02:04.981Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockSpecialPlotEventManager.js":"2022-02-16T06:02:05.055Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/config/RelationLevelConfig.js":"2022-02-16T06:02:04.980Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/PlotBranchManager.js":"2022-02-16T06:02:05.022Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/ActivitiesItemModelManager.js":"2022-02-16T06:02:04.911Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/ExtraStoryModelManager.js":"2022-02-16T06:02:04.972Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/UnlockItemModelManager.js":"2022-02-16T06:02:04.999Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/BreathAction.js":"2022-02-16T06:02:04.993Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemBaiFadeOut.js":"2022-02-16T06:02:04.859Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/MoveAction.js":"2022-02-16T06:02:05.036Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemBreathAction.js":"2022-02-16T06:02:04.961Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ItemFix.js":"2022-02-16T06:02:04.952Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PageViewIndicatorEx.js":"2022-02-16T06:02:05.002Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/CDKeyEventManager.js":"2022-02-16T06:02:04.934Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ScaleDisplayAction.js":"2022-02-16T06:02:05.015Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PresenterCCViewFactory.js":"2022-02-16T06:02:05.028Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/PlaySoundEffectOnEnabled.js":"2022-02-16T06:02:04.918Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/MoveRepeatAction.js":"2022-02-16T06:02:04.906Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/ListView.js":"2022-02-16T06:02:05.043Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ScaleAction.js":"2022-02-16T06:02:05.030Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/ActivitiesNoticeItem.js":"2022-02-16T06:02:05.012Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SectionBtn.js":"2022-02-16T06:02:05.037Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SpecialToast.js":"2022-02-16T06:02:04.994Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/AlertDialogViewPresenter.js":"2022-02-16T06:02:04.977Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DiscoverViewPresenter.js":"2022-02-16T06:02:04.930Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/SurroundMotionStreakAction.js":"2022-02-16T06:02:04.979Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DatingScenePresenter.js":"2022-02-16T06:02:04.938Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DatingEventViewPresenter.js":"2022-02-16T06:02:04.957Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListItemImpl.js":"2022-02-16T06:02:04.894Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/DebugViewPresenter.js":"2022-02-16T06:02:05.057Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/MainViewPresenter.js":"2022-02-16T06:02:04.965Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/baseview/impl/ListSubviewImpl.js":"2022-02-16T06:02:04.959Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/LikeLevelSubpresenter.js":"2022-02-16T06:02:05.062Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/GuideViewPresenter.js":"2022-02-16T06:02:04.884Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/PlotStopViewPresenter.js":"2022-02-16T06:02:04.995Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/NoticeViewPresenter.js":"2022-02-16T06:02:04.939Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/PhoneCallViewPresenter.js":"2022-02-16T06:02:05.059Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ReviewPlotViewPresenter.js":"2022-02-16T06:02:04.886Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/QRCodeViewPresenter.js":"2022-02-16T06:02:05.009Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameEnumData.js":"2022-02-16T06:02:04.982Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/EditorEnums.js":"2022-02-16T06:02:05.014Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/ChatListViewPresenter.js":"2022-02-16T06:02:05.031Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter.js":"2022-02-16T06:02:05.060Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/AlertManager.js":"2022-02-16T06:02:04.862Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/presenter/SentenceSelectorViewPresenter.js":"2022-02-16T06:02:04.910Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/TaskManager.js":"2022-02-16T06:02:05.064Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ChatListViewImpl.js":"2022-02-16T06:02:04.990Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/managers/ToastManager.js":"2022-02-16T06:02:05.029Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DiscoverViewImpl.js":"2022-02-16T06:02:04.882Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DatingEventViewImpl.js":"2022-02-16T06:02:04.924Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/DebugViewImpl.js":"2022-02-16T06:02:05.041Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ExchangeCodeViewImpl.js":"2022-02-16T06:02:05.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ExtraPlotViewImpl.js":"2022-02-16T06:02:04.866Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/LikeLevelSubviewImpl.js":"2022-02-16T06:02:04.977Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MainInfoSubviewImpl.js":"2022-02-16T06:02:04.973Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/GuideViewImpl.js":"2022-02-16T06:02:05.004Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MainViewImpl.js":"2022-02-16T06:02:04.967Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MessageEntryItem.js":"2022-02-16T06:02:05.025Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/PlotStopViewImpl.js":"2022-02-16T06:02:04.951Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/MessageViewImpl.js":"2022-02-16T06:02:04.874Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl.js":"2022-02-16T06:02:04.969Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/QRCodeViewImpl.js":"2022-02-16T06:02:04.856Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/GiftListItemImpl.js":"2022-02-16T06:02:04.875Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/ExtraPlotDatingEventSubViewImpl.js":"2022-02-16T06:02:05.016Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/NoticeViewImpl.js":"2022-02-16T06:02:05.053Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/ReviewPlotViewImpl.js":"2022-02-16T06:02:04.932Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl.js":"2022-02-16T06:02:04.948Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/GiftListSubviewImpl.js":"2022-02-16T06:02:05.044Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/message/ImagePreviewViewImpl.js":"2022-02-16T06:02:04.988Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ChatListView.js":"2022-02-16T06:02:04.992Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/discover/DiscoverSettingViewImpl.js":"2022-02-16T06:02:05.006Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DateCountView.js":"2022-02-16T06:02:04.926Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DiscoverView.js":"2022-02-16T06:02:05.021Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingEventSubview.js":"2022-02-16T06:02:04.970Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DebugView.js":"2022-02-16T06:02:04.997Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExChangeCodeView.js":"2022-02-16T06:02:05.039Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExtraPlotDatingEventSubView.js":"2022-02-16T06:02:04.920Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ExtraPlotView.js":"2022-02-16T06:02:04.942Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingEventView.js":"2022-02-16T06:02:05.033Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/DatingSceneView.js":"2022-02-16T06:02:04.919Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ItemView.js":"2022-02-16T06:02:04.962Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MainInfoSubviewiew.js":"2022-02-16T06:02:04.895Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MainView.js":"2022-02-16T06:02:04.964Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/NoticeView.js":"2022-02-16T06:02:04.978Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/MessageView.js":"2022-02-16T06:02:04.883Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/LikeLevelSubview.js":"2022-02-16T06:02:04.956Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/PlotStopView.js":"2022-02-16T06:02:04.947Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/PhoneCallView.js":"2022-02-16T06:02:04.925Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ReviewPlotView.js":"2022-02-16T06:02:04.871Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/GiftListSubview.js":"2022-02-16T06:02:05.054Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/GuideView.js":"2022-02-16T06:02:04.941Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/ImagePreviewView.js":"2022-02-16T06:02:04.877Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/QRCodeView.js":"2022-02-16T06:02:04.904Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/AlertDialogView.js":"2022-02-16T06:02:04.955Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/SentenceSelectorView.js":"2022-02-16T06:02:04.907Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/TabView.js":"2022-02-16T06:02:04.933Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/type/discover/ProductionTeamView.js":"2022-02-16T06:02:04.945Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/ui/view/impl/AlertToBeContinueImpl.js":"2022-02-16T06:02:04.929Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/gameplay/gamedata/GameTextData.js":"2022-02-16T06:02:04.903Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/game-data/GameVariables.js":"2022-02-16T06:02:04.996Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/game/model/GameModelManager.js":"2022-02-16T06:02:04.879Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/AVG.js":"2022-02-16T06:02:04.863Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/CCDummyObjects.js":"2022-02-16T06:02:05.045Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/ToBeContinueFix.js":"2022-02-16T06:02:04.946Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/ViewBase.js":"2022-02-16T06:02:05.048Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/classbase/PresenterBase.js":"2022-02-16T06:02:04.983Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/FrameAnimation.js":"2022-02-16T06:02:04.976Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/common/components/PortraitFixComponent.js":"2022-02-16T06:02:04.985Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/temp/quick-scripts/src/assets/script/avg/game-data/EditorGameVariables.js":"2022-02-16T06:02:04.991Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-dummy/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-httpclient/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-config-manager/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-resutils/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKEvents.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/TimeManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKBase.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-eventkit/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-ccsvbutton/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/AudioManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-cc-audio-manager/dist/AudioSettings.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-utils/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/EventEmitter.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/ExchangeCodeDataCenter.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/game-data/PlotsData.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/PlotManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/game-data/GameRecord.js":"2021-11-19T02:43:38.599Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKServer.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SVConfig.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk/dist/SDKRecordsData.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-utils/dist/Md5.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-sdk-exchangecode/dist/ExchangeCodeClassBase.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/PlotModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/utils/PlotUtils.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/ActionManager.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/ActionModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/ConditionModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/inflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/utils/common.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-localstorage/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/deflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/constants.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-random/dist/index.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/messages.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/utils/strings.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/gzheader.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/zstream.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/deflate.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/crc32.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/adler32.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inffast.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/inftrees.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/pako/lib/zlib/trees.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/model/RichTextModel.js":"1985-10-26T08:15:00.000Z","/Users/zhangshuwen/Documents/mvp_xhc/vampire_copy/node_modules/simba-avg-core/dist/utils/RichTextUtils.js":"1985-10-26T08:15:00.000Z"}}
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"version":3,"sources":["assets/script/common/CCDummyObjects.ts"],"names":[],"mappings":";;;;;;;AAAa,QAAA,SAAS,GAAG,SAA+B,CAAC;AAC5C,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,UAAU,GAAG,SAAgC,CAAC;AAC9C,QAAA,aAAa,GAAG,SAAmC,CAAC;AACpD,QAAA,eAAe,GAAG,SAAqC,CAAC;AACxD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,gBAAgB,GAAG,SAAsC,CAAC;AAC1D,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,oBAAoB,GAAG,SAA0C,CAAC;AAClE,QAAA,YAAY,GAAG,SAAkC,CAAC;AAClD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,gBAAgB,GAAG,SAAsC,CAAC;AAC1D,QAAA,aAAa,GAAG,SAAmC,CAAC;AACpD,QAAA,UAAU,GAAG,SAAgC,CAAC;AAC9C,QAAA,WAAW,GAAG,SAAiC,CAAC","file":"","sourceRoot":"/","sourcesContent":["export const DummyNode = undefined as unknown as cc.Node;\nexport const DummySprite = undefined as unknown as cc.Sprite;\nexport const DummyLayout = undefined as unknown as cc.Layout;\nexport const DummyLabel = undefined as unknown as cc.Label;\nexport const DummyRichText = undefined as unknown as cc.RichText;\nexport const DummyScrollView = undefined as unknown as cc.ScrollView;\nexport const DummyPrefab = undefined as unknown as cc.Prefab;\nexport const DummyProgressBar = undefined as unknown as cc.ProgressBar;\nexport const DummyButton = undefined as unknown as cc.Button;\nexport const DummyToggleContainer = undefined as unknown as cc.ToggleContainer;\nexport const DymmyEditBox = undefined as unknown as cc.EditBox;\nexport const DymmyToggle = undefined as unknown as cc.Toggle;\nexport const DummySpriteFrame = undefined as unknown as cc.SpriteFrame;\nexport const DummyPageView = undefined as unknown as cc.PageView;\nexport const DummyColor = undefined as unknown as cc.Color;\nexport const DummyWidget = undefined as unknown as cc.Widget;\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/common/CCDummyObjects.ts"],"names":[],"mappings":";;;;;;;AAAa,QAAA,SAAS,GAAG,SAA+B,CAAC;AAC5C,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,UAAU,GAAG,SAAgC,CAAC;AAC9C,QAAA,aAAa,GAAG,SAAmC,CAAC;AACpD,QAAA,eAAe,GAAG,SAAqC,CAAC;AACxD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,gBAAgB,GAAG,SAAsC,CAAC;AAC1D,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,oBAAoB,GAAG,SAA0C,CAAC;AAClE,QAAA,YAAY,GAAG,SAAkC,CAAC;AAClD,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,gBAAgB,GAAG,SAAsC,CAAC;AAC1D,QAAA,aAAa,GAAG,SAAmC,CAAC;AACpD,QAAA,UAAU,GAAG,SAAgC,CAAC;AAC9C,QAAA,WAAW,GAAG,SAAiC,CAAC;AAChD,QAAA,WAAW,GAAG,SAAiC,CAAC","file":"","sourceRoot":"/","sourcesContent":["export const DummyNode = undefined as unknown as cc.Node;\nexport const DummySprite = undefined as unknown as cc.Sprite;\nexport const DummyLayout = undefined as unknown as cc.Layout;\nexport const DummyLabel = undefined as unknown as cc.Label;\nexport const DummyRichText = undefined as unknown as cc.RichText;\nexport const DummyScrollView = undefined as unknown as cc.ScrollView;\nexport const DummyPrefab = undefined as unknown as cc.Prefab;\nexport const DummyProgressBar = undefined as unknown as cc.ProgressBar;\nexport const DummyButton = undefined as unknown as cc.Button;\nexport const DummyToggleContainer = undefined as unknown as cc.ToggleContainer;\nexport const DymmyEditBox = undefined as unknown as cc.EditBox;\nexport const DymmyToggle = undefined as unknown as cc.Toggle;\nexport const DummySpriteFrame = undefined as unknown as cc.SpriteFrame;\nexport const DummyPageView = undefined as unknown as cc.PageView;\nexport const DummyColor = undefined as unknown as cc.Color;\nexport const DummyWidget = undefined as unknown as cc.Widget;\nexport const DummyToggle = undefined as unknown as cc.Toggle;\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/GameDotMgr.ts"],"names":[],"mappings":";;;;;;AAAA,yC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EAAE,QAAuB;YACtE,IAAI,QAAQ,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,GAAG,QAAQ,CAAC;YACjB,IAAI,IAAI,GAAG,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAClB,mCAAmC;YACnC,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC;QAEM,KAAK,CAAC,cAAc,CAAC,OAAe,EAAE,MAAc,EAAE,WAAmB,EAAE,UAAkC,EAAE,aAAuC;YACzJ,IAAI,QAAQ,GAAG,cAAc,CAAC;YAC9B,IAAI,IAAI,GAAG;gBACP,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,WAAW;gBACnB,UAAU,EAAE,UAAU;gBACtB,MAAM,EAAE,aAAa;aACxB,CAAA;YACD,0CAA0C;YAC1C,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACnD,CAAC;;IAxSuB,oBAAS,GAAe,IAAI,UAAU,EAAE,CAAC;IA0SrE,iBAAC;KAAA;kBA3SoB,UAAU","file":"","sourceRoot":"/","sourcesContent":["import { SDK, TimeManager } from \"simba-sdk\";\nimport { RoleType } from \"../avg/EditorEnums\";\nimport { GameRecord } from \"../avg/AVG\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { role } from \"../config/Role\";\nimport { channel, GameConfig } from \"../GameConfig\";\nimport { CostType, DotShopTotalType, DotShopType, EventLocation, EventOperationType, ExposureType, GuideLocation, GuideOperationType, LoadingState, MomentOptionType, PlotSessionState, ShareLocation, ShowType, SpecialDateContentStatus, SpecialDateContentType, TaskDotType, TutorialState, TutorialType } from \"./Enums\";\nimport { GameModelManager } from \"./model/GameModelManager\";\n\ninterface BaseDotElements {\n energy: number,\n gold: number,\n silver: number,\n grace: { roleId: number, grace: number }[],\n user_register_version: string,\n login_duration: number,\n total_duration: number,\n daily_duration: number,\n}\n\nexport default class GameDotMgr {\n private static readonly _instance: GameDotMgr = new GameDotMgr();\n private _majorIds: number[] = [];\n\n public static getInstance(): GameDotMgr {\n return GameDotMgr._instance;\n }\n\n public async dot(eventKey: string, data: any, category?: string) {\n // if (channel === \"dummy\") return;\n // category = category ? category : \"yybs_event\";\n // let baseElements = this.getBaseElements();\n // let biRet = await SDK.bi(category, eventKey, baseElements, data);\n }\n\n private getBaseElements(): BaseDotElements {\n let regV = GameRecord.globalVariables[\"register_version\"];\n if (!regV) {\n regV = GameConfig.gameVersion;\n GameRecord.globalVariables[\"register_version\"] = regV;\n GameRecord.saveRecord();\n }\n let player = GameModelManager.getPlayerData();\n let base: BaseDotElements = {\n energy: player.getEnergy(),\n gold: player.getGoldCoin(),\n silver: player.getClothCoin(),\n grace: [],\n user_register_version: regV,\n login_duration: TimeManager.getGameTime(),\n total_duration: TimeManager.getTotalGameTime(),\n daily_duration: TimeManager.getTodayGameTime(),\n };\n let gArr: { roleId: number, grace: number }[] = [];\n if (!this._majorIds || 0 === this._majorIds.length) {\n let r = ConfigManager.getAllConfig(role);\n for (let id in r) {\n let c = r[id];\n if (c && c.RoleType === RoleType.Role_Major) {\n this._majorIds.push(c.id);\n }\n }\n }\n for (let i = 0; i < this._majorIds.length; i++) {\n let rid = this._majorIds[i];\n let role = GameModelManager.getRoleData(rid);\n let gv = role?.getRoleLike();\n gv = gv ? gv : 0;\n let item: { roleId: number, grace: number } = {\n roleId: rid,\n grace: gv\n }\n gArr.push(item);\n }\n base.grace = gArr;\n return base;\n }\n\n public async dotClickUI(uiName: string) {\n let eventKey = \"click_ui\";\n let recordKey = \"click_ui_count_\" + uiName + \"_t_\" + GameModelManager.getCurDayStr();\n let clickCount = GameRecord.globalVariables[recordKey] as number;\n if (undefined === clickCount) {\n clickCount = 0;\n }\n clickCount += 1;\n GameRecord.globalVariables[recordKey] = clickCount;\n GameRecord.saveRecord();\n // console.log(\"dotClickUI = \", { click_ui: clickCount, ui_location: uiName });\n await this.dot(eventKey, { click_ui: clickCount, ui_location: uiName }, \"click_ui\");\n }\n\n public async dotLoading(state: LoadingState) {\n let eventKey = \"loading\";\n await this.dot(eventKey, { loading: state }, \"loading\");\n }\n\n /**\n * \n * @param playerId 玩家的PlayerId\n * @param gameConstData 兑换码兑换的道具ID\n */\n public async dotExchangeCodeSuccess(playerId: string, gameConstData?: string) {\n let eventKey = \"exchange_code_success\";\n await this.dot(eventKey, { exchange_code_success: playerId, gameConstData: gameConstData }, \"exchange_code_success\");\n }\n\n public async dotCost(cType: CostType, cNum: number) {\n // let eventKey = \"cost\";\n // let recordKey = cType + GameModelManager.getCurDayStr();\n // let count = GameRecord.globalVariables[recordKey] as number;\n // if (undefined === count) {\n // count = 0;\n // }\n // count = count + cNum;\n // GameRecord.globalVariables[recordKey] = count;\n // GameRecord.saveRecord();\n // let data = {};\n // data[cType] = count;\n // // console.log(\"dotCost = \", data);\n // await this.dot(eventKey, data, \"cost\");\n }\n\n public async dotPlot(session: number, state: PlotSessionState) {\n let eventKey = \"plot\";\n let v = session + \"_\" + state;\n // console.log(\"dotPlot = \", { plot_state: v });\n await this.dot(eventKey, { plot_state: v }, \"plot\");\n }\n\n public async dotExposure(eType: ExposureType | string) {\n // let eventKey = \"show\";\n // // console.log(\"dotExposure = \", { show: eType });\n // await this.dot(eventKey, { show: eType }, \"show\");\n }\n\n public async dotShop(sType: DotShopType, param?: any) {\n // let eventKey = \"shop\";\n // let data = {};\n\n // switch (sType) {\n // case DotShopType.LuckyDraw:\n // {\n // data[sType] = param.location;\n // }\n // break;\n // case DotShopType.Clothes:\n // {\n // if (param.isWear) {\n // data[sType] = \"wear_\" + param.sid + \"_\" + param.rid;\n // } else {\n // data[sType] = \"have_\" + param.sid + \"_\" + param.rid;\n // }\n // }\n // break;\n // }\n // // console.log(\"dotShop = \", data);\n // await this.dot(eventKey, data, \"shop\");\n }\n\n public async dotShopTotal(sType: DotShopTotalType, param?: any) {\n // let eventKey = \"shop_total\";\n // let data = {};\n // switch (sType) {\n // case DotShopTotalType.ShowGift:\n // {\n // let rKey = \"g_i_t_show_c\" + GameModelManager.getCurDayStr();;\n // let total = GameRecord.globalVariables[rKey] as number;\n // total = total ? total : 0;\n // total++;\n // data[sType] = {\n // show_id: \"show_item_\" + param.id,\n // total_show: total\n // }\n // GameRecord.globalVariables[rKey] = total;\n // }\n // break;\n // case DotShopTotalType.BuyItem:\n // {\n // let rKey = \"g_i_t_buy_c\" + GameModelManager.getCurDayStr();;\n // let total = GameRecord.globalVariables[rKey] as number;\n // total = total ? total : 0;\n // total++;\n // data[sType] = {\n // buy_id: \"buy_\" + param.id,\n // total_buy: total\n // }\n // GameRecord.globalVariables[rKey] = total;\n // }\n // break;\n // case DotShopTotalType.SendGift:\n // {\n // let rKey = \"g_i_t_send_c\" + GameModelManager.getCurDayStr();;\n // let total = GameRecord.globalVariables[rKey] as number;\n // total = total ? total : 0;\n // total++;\n // data[sType] =\n // {\n // send_id: param.gid,\n // role_id: param.rid,\n // total_send: total\n // };\n // GameRecord.globalVariables[rKey] = total;\n // }\n // break;\n // case DotShopTotalType.Popup:\n // {\n // data[sType] = param.popType;\n // }\n // break;\n // }\n // GameRecord.autoSave();\n // // console.log(\"dotShopTotal = \", data);\n // await this.dot(eventKey, data, \"shop_total\");\n }\n\n public async dotTask(taskDotType: TaskDotType, tId: number) {\n // let eventKey = \"task\";\n // let data = {};\n // data[\"daily_task\"] = {};\n // switch (taskDotType) {\n // case TaskDotType.CompleteTask:\n // {\n // data[\"daily_task\"] = \"completed_\" + tId;\n // }\n // break;\n // case TaskDotType.GetTaskRewards:\n // {\n // data[\"daily_task\"] = \"get_rewards_\" + tId;\n // }\n // break;\n // }\n // await this.dot(eventKey, data, \"task\");\n }\n\n public async dotMoment(id: number, optionType: MomentOptionType) {\n // let eventKey = \"circle_of_friends\";\n // let v = \"circle_\" + optionType;\n // await this.dot(eventKey, { circle: v }, \"circle_of_friends\");\n }\n\n public async dotTutorial(tType: TutorialType, state: TutorialState, param: any) {\n let eventKey = \"tutorial\";\n let k = \"\" + tType;\n let v = \"\" + param.session;\n switch (state) {\n case TutorialState.SelectSentence:\n {\n v += state + param.plotId;\n }\n break;\n case TutorialState.SelectSentenceRet:\n {\n k += \"_plot_select\";\n v += TutorialState.SelectSentence + param.plotId + state + param.select;\n }\n break;\n case TutorialState.Progress:\n {\n k += \"_plot_progress\";\n v += state + param.progress;\n }\n break;\n }\n let data = {};\n data[k] = v;\n // console.log(\"dotTutorial = \", data);\n await this.dot(eventKey, data, \"tutorial\");\n }\n\n public async dotShare(shareType: ShowType, shareLocation: ShareLocation | string) {\n let eventKey = \"share\";\n // console.log(\"dotShare = \", { share_type: shareType, share_location: shareLocation });\n await this.dot(eventKey, { share_type: shareType, share_location: shareLocation }, \"share\");\n }\n\n public async dotVideo(videoType: ShowType, videoLocation: string) {\n let eventKey = \"video\";\n // console.log(\"dotVideo = \", { video_type: videoType, video_location: videoLocation });\n await this.dot(eventKey, { video_type: videoType, video_location: videoLocation }, \"video\")\n }\n\n //todo\n public async dotShareRes(location: ShareLocation, titleId: number, imgId: number) {\n let eventKey = \"share_source\";\n let v = location + \"_\" + titleId + \"_\" + imgId;\n await this.dot(eventKey, { share_source: v }, \"share_source\");\n }\n\n public async dotGuide(oprType: GuideOperationType, location: GuideLocation) {\n let eventKey = \"guide\";\n let v = location + oprType;\n // console.log(\"dotGuide = \",{ guide: v });\n await this.dot(eventKey, { guide: v }, \"guide\");\n }\n\n\n public async dotEvent(oprType: EventOperationType, location: EventLocation) {\n let eventKey = 'event';\n let v = location;\n let data = {};\n data[oprType] = v;\n // console.log(\"dotEvent = \",data);\n await this.dot(eventKey, data, 'event');\n }\n\n public async dotSpecialPlot(sceneId: number, plotId: number, selectIndex: number, contenType: SpecialDateContentType, contentStatus: SpecialDateContentStatus) {\n let eventKey = 'special_plot';\n let data = {\n scene: sceneId,\n plot: plotId,\n select: selectIndex,\n contentype: contenType,\n status: contentStatus\n }\n // console.log(\"dotSpecialPlot = \", data);\n await this.dot(eventKey, data, 'special_plot');\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/GameDotMgr.ts"],"names":[],"mappings":";;;;;;AACA,oCAAwC;AACxC,+DAA4D;AAE5D;IAAA,MAAqB,UAAU;QAGpB,MAAM,CAAC,WAAW;YACrB,OAAO,UAAU,CAAC,SAAS,CAAC;QAChC,CAAC;QAEM,KAAK,CAAC,UAAU,CAAC,MAAc;YAClC,IAAI,SAAS,GAAG,iBAAiB,GAAG,MAAM,GAAG,KAAK,GAAG,mCAAgB,CAAC,YAAY,EAAE,CAAC;YACrF,IAAI,UAAU,GAAG,gBAAU,CAAC,eAAe,CAAC,SAAS,CAAW,CAAC;YACjE,IAAI,SAAS,KAAK,UAAU,EAAE;gBAC1B,UAAU,GAAG,CAAC,CAAC;aAClB;YACD,UAAU,IAAI,CAAC,CAAC;YAChB,gBAAU,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC;YACnD,gBAAU,CAAC,UAAU,EAAE,CAAC;QAC5B,CAAC;;IAfuB,oBAAS,GAAe,IAAI,UAAU,EAAE,CAAC;IAiBrE,iBAAC;KAAA;kBAlBoB,UAAU","file":"","sourceRoot":"/","sourcesContent":["\nimport { GameRecord } from \"../avg/AVG\";\nimport { GameModelManager } from \"./model/GameModelManager\";\n\nexport default class GameDotMgr {\n private static readonly _instance: GameDotMgr = new GameDotMgr();\n\n public static getInstance(): GameDotMgr {\n return GameDotMgr._instance;\n }\n\n public async dotClickUI(uiName: string) {\n let recordKey = \"click_ui_count_\" + uiName + \"_t_\" + GameModelManager.getCurDayStr();\n let clickCount = GameRecord.globalVariables[recordKey] as number;\n if (undefined === clickCount) {\n clickCount = 0;\n }\n clickCount += 1;\n GameRecord.globalVariables[recordKey] = clickCount;\n GameRecord.saveRecord();\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/Launcher.ts"],"names":[],"mappings":";;;;;;;;;;;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iDACR;IAG/C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;mDACf;IAGrC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;gDAClB;IAGhC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;qDACnB;IAGrC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;iDAClB;IAGjC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;qDACf;IAGrC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;8CACE;IAG9B;QADC,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;sDACA;IAGlC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;iDACjB;IAGnC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;mDACd;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;2CACW;IAjCd,QAAQ;QAD5B,OAAO;OACa,QAAQ,CA6Q5B;IAAD,eAAC;KAAA;kBA7QoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport { GameRecord, initAVG, PlotManager } from \"../avg/AVG\";\nimport { DummyLabel, DummyNode, DummyProgressBar, DummySprite } from \"../common/CCDummyObjects\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { UIManager } from \"../common/gameplay/managers/UIManager\";\nimport { AnimationUtils } from \"../common/utils/AnimationUtils\";\nimport { GameConfig } from \"../GameConfig\";\nimport { LoadingState } from \"./Enums\";\nimport GameDotMgr from \"./GameDotMgr\";\nimport { GameModelManager } from \"./model/GameModelManager\";\nimport AlertDialogViewPresenter from \"./ui/presenter/AlertDialogViewPresenter\";\nimport MainViewPresenter from \"./ui/presenter/MainViewPresenter\";\nimport { AlertDialogViewProps } from \"./ui/view/type/AlertDialogView\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport CustomerServiceDataCenter from \"../customerService/script/CustomerServiceDataCenter\";\nimport UnlockSpecialPlotEventManager from \"./model/UnlockSpecialPlotEventManager\";\nimport { initExchangeCode } from \"simba-sdk-exchangecode\";\nimport { CompositeDisposable } from \"../event/EventKit\";\nimport { EventCenter } from \"../event/EventCenter\";\n\nconst { ccclass, property } = cc._decorator;\n\n\n@ccclass\nexport default class Launcher extends cc.Component {\n\n @property({ type: cc.ProgressBar, displayName: \"进度条\" })\n progressBar: cc.ProgressBar = DummyProgressBar;\n\n @property({ type: cc.Label, displayName: \"进度展示文本\" })\n progressLabel: cc.Label = DummyLabel;\n\n @property({ type: cc.Node, displayName: \"UI根结点\" })\n uiRootNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"场景最上层弱提示根结点\" })\n toastParentNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"加载界面节点\" })\n loadingNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"加载界面人物图\" })\n loadingRoleNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node })\n VerbRoot: cc.Node = DummyNode;\n\n @property({ tooltip: \"是否加载导量UI\" })\n isLoadGameCenter: boolean = false;\n\n @property({ type: cc.Label, displayName: \"玩家ID文本\" })\n userIdLabel: cc.Label = DummyLabel;\n\n @property({ type: cc.Node, displayName: \"热更节点\" })\n hotUpdateNode: cc.Node = DummyNode;\n\n @property(cc.Sprite)\n bgSpr: cc.Sprite = DummySprite;\n\n loginCount: number = 0;\n private _gameCenterViewNode: cc.Node = DummyNode;\n private _disposable: CompositeDisposable = new CompositeDisposable;\n\n async onLoad() {\n this.screenAdapter();\n if (cc.sys.isNative) {\n this._disposable.add(EventCenter.GameStart.on(this.onGameStart));\n let hotNode = await ResUtils.createWithPrefab('prefab/HotUpdate');\n hotNode.parent = this.hotUpdateNode;\n }\n\n this.scheduleOnce(() => {\n this.preloadView();\n this.preloadDir();\n });\n //关闭fps展示\n cc.debug.setDisplayStats(GameConfig.showFPS);\n /**关闭多点触摸 特效层将不能使用 */\n cc.macro.ENABLE_MULTI_TOUCH = false;\n this.fixScreenSize();\n this.scheduleOnce(async () => {\n try {\n let node = await ResUtils.createWithPrefab('prefab/ui/VerbView');\n node.parent = this.VerbRoot;\n } catch (error) {\n console.error(error);\n }\n });\n CustomerServiceDataCenter.getInstance().init();\n ResUtils.loadRes(\"audio/bgm/bayinhe\", cc.AudioClip);\n ResUtils.loadRes(\"audio/bgm/wanshengj\", cc.AudioClip);\n }\n\n /**创建prefab对应的节点 */\n createNode(gameCenterViewPrefab: cc.Prefab) {\n if (!gameCenterViewPrefab) {\n cc.error(\"gameCenterViewPrefab is not set , please check it over\");\n } else {\n this._gameCenterViewNode = cc.instantiate(gameCenterViewPrefab);\n }\n let parentNode: cc.Node = cc.director.getScene();\n this._gameCenterViewNode.parent = parentNode;\n this._gameCenterViewNode.position = cc.v3(cc.winSize.width / 2, cc.winSize.height / 2, 0);\n }\n /**控制游戏列表是否展示 */\n onShowGameCenterListView = (isShow: boolean) => {\n if (!this._gameCenterViewNode) {\n return;\n }\n this._gameCenterViewNode.active = isShow;\n }\n fixScreenSize() {\n let sf = this.bgSpr.spriteFrame;\n this.node.getComponent(cc.Widget).updateAlignment();\n let sizeSF = sf.getOriginalSize();\n let nodeSize = cc.size(this.node.width, this.node.height);\n let scaleTemp = 1;\n let scaleX = nodeSize.width / sizeSF.width;\n let scaleY = nodeSize.height / sizeSF.height;\n scaleTemp = Math.max(scaleX, scaleY);\n this.bgSpr.node.scale = scaleTemp;\n }\n\n preloadView() {\n let viewList: string[] = [\n 'prefab/ui/MainView',\n 'prefab/ui/MessageView',\n 'prefab/ui/message/MessageEntryItem'\n ]\n cc.resources.preload(viewList, (error: Error, items: any[]) => {\n });\n }\n\n preloadDir() {\n cc.resources.preloadDir('plots');//剧情数据\n cc.resources.preloadDir('userdata/language');//语言配置\n cc.resources.preloadDir('config');//剧情配置\n // cc.resources.preloadDir('textures/items');\n }\n\n screenAdapter() {\n let winSize = cc.winSize;\n if (winSize.width / winSize.height > 720 / 1280) {\n let canvas = this.node.getComponent(cc.Canvas);\n canvas.fitWidth = true;\n canvas.fitHeight = true;\n }\n }\n\n start() {\n if (!cc.sys.isNative)\n this.initializeGame();\n }\n\n onGameStart = () => {\n this.initializeGame();\n }\n\n async initializeGame() {\n AudioManager.init(\"audio/bgm/\", \"audio/effect/\", \"audio/voice/\");\n while (true) {\n try {\n await UIManager.init(this.uiRootNode!, this.toastParentNode!);\n break;\n } catch (e) {\n console.error(e);\n }\n }\n\n AnimationUtils.animateProgress(this.progressBar!, 0.2);\n let ret = false;\n let tryCount = 0;\n while (!ret && tryCount < 3) {\n tryCount++;\n ret = await SDK.init();\n // initExchangeCode();\n }\n if (!ret) {\n UIManager.showToast(\"SDK init failed. sdk初始化失败\");\n return;\n }\n AnimationUtils.animateProgress(this.progressBar, 0.4, 1, this.progressLabel);\n await this.loginGame();\n }\n\n lateInit = async () => {\n let mainViewPromise = UIManager.pushPresenter(MainViewPresenter, undefined);\n AnimationUtils.animateProgress(this.progressBar, 0.6, 1, this.progressLabel);\n if (CC_DEV) {\n globalThis['PlotManager'] = PlotManager;\n globalThis['GameRecord'] = GameRecord;\n let ConfigManager = require('simba-config-manager')\n globalThis['ConfigManager'] = ConfigManager;\n }\n await initAVG();\n //解决清档\n await this.dealEmptyRecord();\n if (GameConfig.EMPTY_RECORD_WHEN_LOGIN) {\n PlotManager.stop();\n await GameRecord.emptyRecords();\n }\n AnimationUtils.animateProgress(this.progressBar, 0.8, 1, this.progressLabel);\n await PlotManager.start(0, false);\n AnimationUtils.animateProgress(this.progressBar, 0.9, 1, this.progressLabel);\n await initExchangeCode();\n // init game data\n await GameModelManager.init((value: number) => {\n AnimationUtils.animateProgress(this.progressBar, value, 1, this.progressLabel);\n });\n GameDotMgr.getInstance().dotLoading(LoadingState.LoadingStart);\n AnimationUtils.animateProgress(this.progressBar, 0.95, 1, this.progressLabel);\n GameDotMgr.getInstance().dotLoading(LoadingState.LoadingEnd);\n (await mainViewPromise).start();\n AnimationUtils.animateProgress(this.progressBar, 1.0, 1, this.progressLabel);\n // GameDotMgr.getInstance().dotLoading(LoadingState.EnterLobby);\n this.loadingNode.active = false;\n //检查是否解锁手表次留番外\n UnlockSpecialPlotEventManager.getInstance().nextDayUnlockedSpecialPlot(4);\n }\n\n loginGame = async () => {\n return new Promise<void>(async (resolve, reject) => {\n this.loginCount++;\n try {\n let ret = await SDK.login();\n if (ret) {\n this.userIdLabel.string = ret.playerId;\n await this.lateInit();\n resolve();\n }\n } catch (error) {\n if (this.loginCount > 3) {\n this.showLoginFailed();\n reject(new Error(\"登录失败\"));\n } else if (error == \"timeout\") {\n this.loginGame();\n }\n }\n });\n }\n\n showLoginFailed() {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"网络错误\",\n content: \"是否重新连接?\",\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n hasBanner: false,\n callback: (type, ret) => {\n if (ret) {\n this.loginCount = 0;\n this.loginGame();\n } else {\n cc.director.end();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n async dealEmptyRecord() {\n /**此次执行清档操作的版本号 */\n let optionV = \"1.0.2\";\n /**需要清档的玩家注册版本号列表 */\n let needEmptyRegVersionArr: string[] = [\"1.0.0\", \"1.0.1\"];\n let emptyVersionRecordKey = \"empty_record_versions\";\n let needEmpty: boolean = this.checkIsNeedEmptyRecord(optionV, emptyVersionRecordKey, needEmptyRegVersionArr);\n console.log(\"是否需要清档操作:\", needEmpty);\n if (needEmpty) {\n await GameRecord.emptyRecords();\n GameRecord.globalVariables[emptyVersionRecordKey] = optionV;\n GameRecord.saveRecord();\n }\n }\n\n checkIsNeedEmptyRecord(optionV: string, emptyVersionRecordKey: string, needEmptyRegVersionArr: string[]): boolean {\n let empty = false;\n let regV = GameRecord.globalVariables[\"register_version\"] as string;\n //不存在或者当前注册版本不在需要清档的版本内容中,则直接返回不需要清档\n if (!regV || needEmptyRegVersionArr.findIndex((v) => v == regV) === (-1)) {\n return false;\n }\n\n let emptyRecordVersionString: string = GameRecord.globalVariables[emptyVersionRecordKey] as string;\n if (!emptyRecordVersionString || \"\" === emptyRecordVersionString.trim()) {\n return true;\n }\n empty = emptyRecordVersionString != optionV;\n return empty;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/Launcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAChC,oCAA8D;AAC9D,6DAAgG;AAChG,mEAAsD;AACtD,qEAAkE;AAClE,mEAAgE;AAChE,8CAA2C;AAC3C,+DAA4D;AAC5D,sFAA+E;AAC/E,wEAAiE;AAEjE,yDAA6C;AAC7C,mGAA4F;AAC5F,yFAAkF;AAClF,mEAA0D;AAC1D,gDAAwD;AACxD,sDAAmD;AAEnD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,EAAE,CAAC,SAAS;QAAlD;;YAGI,gBAAW,GAAmB,iCAAgB,CAAC;YAG/C,kBAAa,GAAa,2BAAU,CAAC;YAGrC,eAAU,GAAY,0BAAS,CAAC;YAGhC,oBAAe,GAAY,0BAAS,CAAC;YAGrC,gBAAW,GAAY,0BAAS,CAAC;YAGjC,oBAAe,GAAY,0BAAS,CAAC;YAGrC,aAAQ,GAAY,0BAAS,CAAC;YAG9B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AAW,EAAE,MAAM,EAAE,CAAC;mDACd;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;2CACW;IAjCd,QAAQ;QAD5B,OAAO;OACa,QAAQ,CA0Q5B;IAAD,eAAC;KAAA;kBA1QoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport { GameRecord, initAVG, PlotManager } from \"../avg/AVG\";\nimport { DummyLabel, DummyNode, DummyProgressBar, DummySprite } from \"../common/CCDummyObjects\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { UIManager } from \"../common/gameplay/managers/UIManager\";\nimport { AnimationUtils } from \"../common/utils/AnimationUtils\";\nimport { GameConfig } from \"../GameConfig\";\nimport { GameModelManager } from \"./model/GameModelManager\";\nimport AlertDialogViewPresenter from \"./ui/presenter/AlertDialogViewPresenter\";\nimport MainViewPresenter from \"./ui/presenter/MainViewPresenter\";\nimport { AlertDialogViewProps } from \"./ui/view/type/AlertDialogView\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport CustomerServiceDataCenter from \"../customerService/script/CustomerServiceDataCenter\";\nimport UnlockSpecialPlotEventManager from \"./model/UnlockSpecialPlotEventManager\";\nimport { initExchangeCode } from \"simba-sdk-exchangecode\";\nimport { CompositeDisposable } from \"../event/EventKit\";\nimport { EventCenter } from \"../event/EventCenter\";\n\nconst { ccclass, property } = cc._decorator;\n\n\n@ccclass\nexport default class Launcher extends cc.Component {\n\n @property({ type: cc.ProgressBar, displayName: \"进度条\" })\n progressBar: cc.ProgressBar = DummyProgressBar;\n\n @property({ type: cc.Label, displayName: \"进度展示文本\" })\n progressLabel: cc.Label = DummyLabel;\n\n @property({ type: cc.Node, displayName: \"UI根结点\" })\n uiRootNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"场景最上层弱提示根结点\" })\n toastParentNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"加载界面节点\" })\n loadingNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node, displayName: \"加载界面人物图\" })\n loadingRoleNode: cc.Node = DummyNode;\n\n @property({ type: cc.Node })\n VerbRoot: cc.Node = DummyNode;\n\n @property({ tooltip: \"是否加载导量UI\" })\n isLoadGameCenter: boolean = false;\n\n @property({ type: cc.Label, displayName: \"玩家ID文本\" })\n userIdLabel: cc.Label = DummyLabel;\n\n @property({ type: cc.Node, displayName: \"热更节点\" })\n hotUpdateNode: cc.Node = DummyNode;\n\n @property(cc.Sprite)\n bgSpr: cc.Sprite = DummySprite;\n\n loginCount: number = 0;\n private _gameCenterViewNode: cc.Node = DummyNode;\n private _disposable: CompositeDisposable = new CompositeDisposable;\n\n async onLoad() {\n this.screenAdapter();\n if (cc.sys.isNative) {\n this._disposable.add(EventCenter.GameStart.on(this.onGameStart));\n let hotNode = await ResUtils.createWithPrefab('prefab/HotUpdate');\n hotNode.parent = this.hotUpdateNode;\n }\n\n this.scheduleOnce(() => {\n this.preloadView();\n this.preloadDir();\n });\n //关闭fps展示\n cc.debug.setDisplayStats(GameConfig.showFPS);\n /**关闭多点触摸 特效层将不能使用 */\n cc.macro.ENABLE_MULTI_TOUCH = false;\n this.fixScreenSize();\n this.scheduleOnce(async () => {\n try {\n let node = await ResUtils.createWithPrefab('prefab/ui/VerbView');\n node.parent = this.VerbRoot;\n } catch (error) {\n console.error(error);\n }\n });\n CustomerServiceDataCenter.getInstance().init();\n ResUtils.loadRes(\"audio/bgm/bayinhe\", cc.AudioClip);\n ResUtils.loadRes(\"audio/bgm/wanshengj\", cc.AudioClip);\n }\n\n /**创建prefab对应的节点 */\n createNode(gameCenterViewPrefab: cc.Prefab) {\n if (!gameCenterViewPrefab) {\n cc.error(\"gameCenterViewPrefab is not set , please check it over\");\n } else {\n this._gameCenterViewNode = cc.instantiate(gameCenterViewPrefab);\n }\n let parentNode: cc.Node = cc.director.getScene();\n this._gameCenterViewNode.parent = parentNode;\n this._gameCenterViewNode.position = cc.v3(cc.winSize.width / 2, cc.winSize.height / 2, 0);\n }\n /**控制游戏列表是否展示 */\n onShowGameCenterListView = (isShow: boolean) => {\n if (!this._gameCenterViewNode) {\n return;\n }\n this._gameCenterViewNode.active = isShow;\n }\n fixScreenSize() {\n let sf = this.bgSpr.spriteFrame;\n this.node.getComponent(cc.Widget).updateAlignment();\n let sizeSF = sf.getOriginalSize();\n let nodeSize = cc.size(this.node.width, this.node.height);\n let scaleTemp = 1;\n let scaleX = nodeSize.width / sizeSF.width;\n let scaleY = nodeSize.height / sizeSF.height;\n scaleTemp = Math.max(scaleX, scaleY);\n this.bgSpr.node.scale = scaleTemp;\n }\n\n preloadView() {\n let viewList: string[] = [\n 'prefab/ui/MainView',\n 'prefab/ui/MessageView',\n 'prefab/ui/message/MessageEntryItem'\n ]\n cc.resources.preload(viewList, (error: Error, items: any[]) => {\n });\n }\n\n preloadDir() {\n cc.resources.preloadDir('plots');//剧情数据\n cc.resources.preloadDir('userdata/language');//语言配置\n cc.resources.preloadDir('config');//剧情配置\n // cc.resources.preloadDir('textures/items');\n }\n\n screenAdapter() {\n let winSize = cc.winSize;\n if (winSize.width / winSize.height > 720 / 1280) {\n let canvas = this.node.getComponent(cc.Canvas);\n canvas.fitWidth = true;\n canvas.fitHeight = true;\n }\n }\n\n start() {\n if (!cc.sys.isNative)\n this.initializeGame();\n }\n\n onGameStart = () => {\n this.initializeGame();\n }\n\n async initializeGame() {\n AudioManager.init(\"audio/bgm/\", \"audio/effect/\", \"audio/voice/\");\n while (true) {\n try {\n await UIManager.init(this.uiRootNode!, this.toastParentNode!);\n break;\n } catch (e) {\n console.error(e);\n }\n }\n\n AnimationUtils.animateProgress(this.progressBar!, 0.2);\n let ret = false;\n let tryCount = 0;\n while (!ret && tryCount < 3) {\n tryCount++;\n ret = await SDK.init();\n // initExchangeCode();\n }\n if (!ret) {\n UIManager.showToast(\"SDK init failed. sdk初始化失败\");\n return;\n }\n AnimationUtils.animateProgress(this.progressBar, 0.4, 1, this.progressLabel);\n await this.loginGame();\n }\n\n lateInit = async () => {\n let mainViewPromise = UIManager.pushPresenter(MainViewPresenter, undefined);\n AnimationUtils.animateProgress(this.progressBar, 0.6, 1, this.progressLabel);\n if (CC_DEV) {\n globalThis['PlotManager'] = PlotManager;\n globalThis['GameRecord'] = GameRecord;\n let ConfigManager = require('simba-config-manager')\n globalThis['ConfigManager'] = ConfigManager;\n }\n await initAVG();\n //解决清档\n await this.dealEmptyRecord();\n if (GameConfig.EMPTY_RECORD_WHEN_LOGIN) {\n PlotManager.stop();\n await GameRecord.emptyRecords();\n }\n AnimationUtils.animateProgress(this.progressBar, 0.8, 1, this.progressLabel);\n await PlotManager.start(0, false);\n AnimationUtils.animateProgress(this.progressBar, 0.9, 1, this.progressLabel);\n await initExchangeCode();\n // init game data\n await GameModelManager.init((value: number) => {\n AnimationUtils.animateProgress(this.progressBar, value, 1, this.progressLabel);\n });\n AnimationUtils.animateProgress(this.progressBar, 0.95, 1, this.progressLabel);\n (await mainViewPromise).start();\n AnimationUtils.animateProgress(this.progressBar, 1.0, 1, this.progressLabel);\n this.loadingNode.active = false;\n //检查是否解锁手表次留番外\n UnlockSpecialPlotEventManager.getInstance().nextDayUnlockedSpecialPlot(4);\n }\n\n loginGame = async () => {\n return new Promise<void>(async (resolve, reject) => {\n this.loginCount++;\n try {\n let ret = await SDK.login();\n if (ret) {\n this.userIdLabel.string = ret.playerId;\n await this.lateInit();\n resolve();\n }\n } catch (error) {\n if (this.loginCount > 3) {\n this.showLoginFailed();\n reject(new Error(\"登录失败\"));\n } else if (error == \"timeout\") {\n this.loginGame();\n }\n }\n });\n }\n\n showLoginFailed() {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"网络错误\",\n content: \"是否重新连接?\",\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n hasBanner: false,\n callback: (type, ret) => {\n if (ret) {\n this.loginCount = 0;\n this.loginGame();\n } else {\n cc.director.end();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n async dealEmptyRecord() {\n /**此次执行清档操作的版本号 */\n let optionV = \"1.0.2\";\n /**需要清档的玩家注册版本号列表 */\n let needEmptyRegVersionArr: string[] = [\"1.0.0\", \"1.0.1\"];\n let emptyVersionRecordKey = \"empty_record_versions\";\n let needEmpty: boolean = this.checkIsNeedEmptyRecord(optionV, emptyVersionRecordKey, needEmptyRegVersionArr);\n console.log(\"是否需要清档操作:\", needEmpty);\n if (needEmpty) {\n await GameRecord.emptyRecords();\n GameRecord.globalVariables[emptyVersionRecordKey] = optionV;\n GameRecord.saveRecord();\n }\n }\n\n checkIsNeedEmptyRecord(optionV: string, emptyVersionRecordKey: string, needEmptyRegVersionArr: string[]): boolean {\n let empty = false;\n let regV = GameRecord.globalVariables[\"register_version\"] as string;\n //不存在或者当前注册版本不在需要清档的版本内容中,则直接返回不需要清档\n if (!regV || needEmptyRegVersionArr.findIndex((v) => v == regV) === (-1)) {\n return false;\n }\n\n let emptyRecordVersionString: string = GameRecord.globalVariables[emptyVersionRecordKey] as string;\n if (!emptyRecordVersionString || \"\" === emptyRecordVersionString.trim()) {\n return true;\n }\n empty = emptyRecordVersionString != optionV;\n return empty;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/model/GameRoleDataModel.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAqD;AAErD,uCAAwD;AACxD,uDAA2D;AAC3D,8EAA2E;AAC3E,wEAAqE;AACrE,gEAA6D;AAC7D,0EAAuE;AAIvE,yDAAsD;AAEtD,MAAqB,iBAAiB;IAAtC;QACY,SAAI,GAA8B,SAAiD,CAAC;QACpF,aAAQ,GAAW,CAAC,CAAC,CAAC;QACtB,cAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC3C,cAAS,GAAW,EAAE,CAAC;QAEvB,cAAS,GAAwB,IAAI,GAAG,EAAkB,CAAC;IAsOvE,CAAC;IApOU,SAAS,CAAC,GAA8B;QAC3C,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,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AAoB,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;SAEjG;aAAM;YACH,OAAO,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,sBAAQ,CAAC,MAAM,CAAC;SAE/G;IACL,CAAC;CAEJ;AA5OD,oCA4OC","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\r\nimport { DeepReadonlyObject } from \"simba-utils\";\r\nimport { GameRecord, PlotManager } from \"../../avg/AVG\";\r\nimport { FaceType, RoleType } from \"../../avg/EditorEnums\";\r\nimport { GameTextData } from \"../../common/gameplay/gamedata/GameTextData\";\r\nimport { UIManager } from \"../../common/gameplay/managers/UIManager\";\r\nimport { StringUtils } from \"../../common/utils/StringUtils\";\r\nimport { relationLevelConfig } from \"../../config/RelationLevelConfig\";\r\nimport { IRole } from \"../../config/Role\";\r\nimport { CostType, GamePropType } from \"../Enums\";\r\nimport GameDotMgr from \"../GameDotMgr\";\r\nimport { GameModelManager } from \"./GameModelManager\";\r\n\r\nexport default class GameRoleDataModel {\r\n private _cfg: DeepReadonlyObject<IRole> = undefined as unknown as DeepReadonlyObject<IRole>;\r\n private _curSkin: number = -1;\r\n private _skinMaps: Set<number> = new Set<number>();\r\n private _roleName: string = \"\";\r\n\r\n private _itemMaps: Map<number, number> = new Map<number, number>();\r\n\r\n public setConfig(cfg: DeepReadonlyObject<IRole>) {\r\n this._cfg = cfg;\r\n this.initDate();\r\n }\r\n\r\n public getConfig() {\r\n return this._cfg;\r\n }\r\n\r\n initDate() {\r\n this.initSkin();\r\n this.initData();\r\n this.initVariablesChange();\r\n }\r\n\r\n initVariablesChange() {\r\n let func = (scope: string, varName: string, prevValue: string | number, value: string | number) => {\r\n value = value === undefined ? 0 : value;\r\n prevValue = prevValue === undefined ? 0 : prevValue;\r\n let newLike = (value as number) - (prevValue as number);\r\n UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_LIKE_CHANGE_VALUE), this._cfg.name, newLike));\r\n }\r\n\r\n GameRecord.onRecordVariableChange(\"like\" + this._cfg.id, func);\r\n\r\n GameRecord.onGlobalVariableChange(\"like\" + this._cfg.id, func);\r\n }\r\n\r\n hasSkin(id: number) {\r\n return this._skinMaps.has(id);\r\n }\r\n\r\n getRoleLike(): number {\r\n let g = GameRecord.globalVariables[\"like\" + this._cfg.id];\r\n g = g ? g : 0;\r\n // let r = GameRecord.recordVariables[\"like\" + this._cfg.id];\r\n let r = PlotManager.getAllRecordVariableValue(\"like\" + this._cfg.id);\r\n r = r ? r : 0;\r\n let l = g + r;\r\n return l;\r\n }\r\n\r\n addRoleLike(like: number, globalRecord: boolean = true) {\r\n let pre = this.getRoleLike();\r\n let after = pre + like;\r\n after = after > 0 ? after : 0;\r\n let offset = after - pre;\r\n if (globalRecord) {\r\n let g = GameRecord.globalVariables[\"like\" + this._cfg.id];\r\n g = g ? g : 0;\r\n g += offset;\r\n GameRecord.globalVariables[\"like\" + this._cfg.id] = g;\r\n } else {\r\n let r = GameRecord.recordVariables[\"like\" + this._cfg.id] as number;\r\n r = r ? r : 0;\r\n r += offset;\r\n GameRecord.recordVariables[\"like\" + this._cfg.id] = r;\r\n }\r\n GameRecord.saveRecord();\r\n }\r\n\r\n getPortrait(face = FaceType.Normal, skin?: number) { // TODO 默认皮肤更改?\r\n if (skin === undefined && this._curSkin > 0) skin = this._curSkin;\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + face;\r\n }\r\n\r\n getBust(skin?: number) {\r\n if (skin === undefined && this._curSkin > 0) skin = this._curSkin;\r\n let ret = \"textures/bust/\" + this._cfg.id;\r\n if (skin) {\r\n ret += skin;\r\n }\r\n return ret;\r\n }\r\n\r\n getHeadIcon() {\r\n let ret = \"/textures/head_icon/\" + this._cfg.id;\r\n if (this._curSkin > 0) {\r\n ret += \"_\" + this._curSkin;\r\n }\r\n return ret;\r\n }\r\n\r\n getNameIcon() {\r\n let ret = \"/textures/name_icon/\" + this._cfg.id;\r\n return ret;\r\n }\r\n\r\n getRoleLikeLevel() {\r\n let configs = ConfigManager.getAllConfig(relationLevelConfig);\r\n let level = 0;\r\n let like = this.getRoleLike();\r\n const maxLevel = Object.keys(configs).length;\r\n let levelValue = 0;\r\n for (let id = 1; id <= maxLevel; id++) {\r\n levelValue = configs[id].relation_value;\r\n if (like >= levelValue) {\r\n like -= levelValue;\r\n level = id;\r\n } else {\r\n break;\r\n }\r\n }\r\n return { level, currLike: like, nextLevelLike: levelValue, maxLevel };\r\n }\r\n\r\n addSkin(id: number) {\r\n this._skinMaps.add(id);\r\n let skinsstr = \"\";\r\n let index = 0;\r\n for (let value of this._skinMaps) {\r\n skinsstr += value;\r\n if (index != this._skinMaps.size - 1) {\r\n skinsstr += \",\";\r\n }\r\n ++index;\r\n }\r\n\r\n GameRecord.globalVariables[\"skins_\" + this._cfg.id + \"_skins\"] = skinsstr;\r\n GameRecord.autoSave();\r\n }\r\n\r\n setCurSkin(id: number) {\r\n this._curSkin = id;\r\n GameRecord.globalVariables[\"curskin_\" + this._cfg.id + \"_skin\"] = id;\r\n GameRecord.autoSave();\r\n }\r\n\r\n getCurSkin(): number {\r\n return this._curSkin;\r\n }\r\n\r\n initSkin() {\r\n this._curSkin = GameRecord.globalVariables[\"curskin_\" + this._cfg.id + \"_skin\"];\r\n\r\n let skins = GameRecord.globalVariables[\"skins_\" + this._cfg.id + \"_skins\"] as string;\r\n skins = skins === undefined ? \"\" : skins;\r\n let skinSpilt = skins.split(\",\");\r\n for (let index = 0; index < skinSpilt.length; ++index) {\r\n this._skinMaps.add(parseInt(skinSpilt[index]));\r\n }\r\n }\r\n\r\n getOwnedSkins(): Set<number> {\r\n return this._skinMaps;\r\n }\r\n\r\n initData() {\r\n this._itemMaps.clear();\r\n let props = GameModelManager.getItemConfigs();\r\n for (let key in props) {\r\n let value = props[key];\r\n let recordNum = GameRecord.globalVariables[\"prop_\" + this._cfg.id + \"_\" + value.id + \"_num\"] as number;\r\n recordNum = recordNum === undefined ? 0 : recordNum;\r\n this._itemMaps.set(value.id, recordNum);\r\n }\r\n }\r\n\r\n public getProps(id: number) {\r\n return this._itemMaps.get(id);\r\n }\r\n\r\n public addProps(id: number, num: number): { result: boolean, errorinfo: string } {\r\n let ret: { result: boolean, errorinfo: string } = { result: false, errorinfo: \"\" };\r\n let cfg = GameModelManager.getItemConfig(id);\r\n let validProp: boolean = cfg ? true : false;\r\n if (!validProp) {\r\n ret.errorinfo = \"prop id \" + id + \" not exist\";\r\n return ret;\r\n }\r\n let max = cfg['max_num'] ? cfg['max_num'] : Number.MAX_VALUE;\r\n if (Math.abs(num) > max) {\r\n ret.errorinfo = \"input num over max , num abs value limit \" + max;\r\n return ret;\r\n }\r\n let value = this._itemMaps.get(id) as number;\r\n if (value >= max && num > 0) {\r\n ret.result = false;\r\n ret.errorinfo = \"cur value over or equal max value limit \" + max;\r\n return ret;\r\n } else {\r\n value += num;\r\n ret.result = true;\r\n }\r\n if (value > max) {\r\n ret.errorinfo = \"value over max , set num as max\";\r\n } else if (value === max) {\r\n ret.errorinfo = \"value equal max\";\r\n } else if (value < 0) {\r\n ret.errorinfo = \"value less 0 , set num as 0\";\r\n } else {\r\n ret.errorinfo = \"succeed\";\r\n }\r\n value = value > max ? max : value;\r\n value = value < 0 ? 0 : value;\r\n this._itemMaps.set(id, value);\r\n GameRecord.globalVariables[\"prop_\" + this._cfg.id + \"_\" + id + \"_num\"] = value;\r\n GameRecord.saveRecord();\r\n return ret;\r\n }\r\n\r\n\r\n public getRoleName() {\r\n if (!this._roleName || this._roleName === \"\") {\r\n return this._cfg.name;\r\n } else {\r\n return this._roleName;\r\n }\r\n }\r\n\r\n public setRoleName(name: string) {\r\n this._roleName = name;\r\n }\r\n\r\n /**\r\n * \r\n * @param skin 皮肤id\r\n */\r\n public getBagPortraitByRoleId(skin?: number) {\r\n if (this._cfg.id == 2) { //自己\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + 7;\r\n\r\n } else {\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + FaceType.Normal;\r\n\r\n }\r\n }\r\n\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/model/GameRoleDataModel.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAqD;AAErD,uCAAwD;AACxD,uDAA2D;AAC3D,8EAA2E;AAC3E,wEAAqE;AACrE,gEAA6D;AAC7D,0EAAuE;AAEvE,yDAAsD;AAEtD,MAAqB,iBAAiB;IAAtC;QACY,SAAI,GAA8B,SAAiD,CAAC;QACpF,aAAQ,GAAW,CAAC,CAAC,CAAC;QACtB,cAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC3C,cAAS,GAAW,EAAE,CAAC;QAEvB,cAAS,GAAwB,IAAI,GAAG,EAAkB,CAAC;IAsOvE,CAAC;IApOU,SAAS,CAAC,GAA8B;QAC3C,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,QAAQ;QACJ,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC/B,CAAC;IAED,mBAAmB;QACf,IAAI,IAAI,GAAG,CAAC,KAAa,EAAE,OAAe,EAAE,SAA0B,EAAE,KAAsB,EAAE,EAAE;YAC9F,KAAK,GA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,sBAAQ,CAAC,MAAM,CAAC;SAE/G;IACL,CAAC;CAEJ;AA5OD,oCA4OC","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\r\nimport { DeepReadonlyObject } from \"simba-utils\";\r\nimport { GameRecord, PlotManager } from \"../../avg/AVG\";\r\nimport { FaceType, RoleType } from \"../../avg/EditorEnums\";\r\nimport { GameTextData } from \"../../common/gameplay/gamedata/GameTextData\";\r\nimport { UIManager } from \"../../common/gameplay/managers/UIManager\";\r\nimport { StringUtils } from \"../../common/utils/StringUtils\";\r\nimport { relationLevelConfig } from \"../../config/RelationLevelConfig\";\r\nimport { IRole } from \"../../config/Role\";\r\nimport { GameModelManager } from \"./GameModelManager\";\r\n\r\nexport default class GameRoleDataModel {\r\n private _cfg: DeepReadonlyObject<IRole> = undefined as unknown as DeepReadonlyObject<IRole>;\r\n private _curSkin: number = -1;\r\n private _skinMaps: Set<number> = new Set<number>();\r\n private _roleName: string = \"\";\r\n\r\n private _itemMaps: Map<number, number> = new Map<number, number>();\r\n\r\n public setConfig(cfg: DeepReadonlyObject<IRole>) {\r\n this._cfg = cfg;\r\n this.initDate();\r\n }\r\n\r\n public getConfig() {\r\n return this._cfg;\r\n }\r\n\r\n initDate() {\r\n this.initSkin();\r\n this.initData();\r\n this.initVariablesChange();\r\n }\r\n\r\n initVariablesChange() {\r\n let func = (scope: string, varName: string, prevValue: string | number, value: string | number) => {\r\n value = value === undefined ? 0 : value;\r\n prevValue = prevValue === undefined ? 0 : prevValue;\r\n let newLike = (value as number) - (prevValue as number);\r\n UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_LIKE_CHANGE_VALUE), this._cfg.name, newLike));\r\n }\r\n\r\n GameRecord.onRecordVariableChange(\"like\" + this._cfg.id, func);\r\n\r\n GameRecord.onGlobalVariableChange(\"like\" + this._cfg.id, func);\r\n }\r\n\r\n hasSkin(id: number) {\r\n return this._skinMaps.has(id);\r\n }\r\n\r\n getRoleLike(): number {\r\n let g = GameRecord.globalVariables[\"like\" + this._cfg.id];\r\n g = g ? g : 0;\r\n // let r = GameRecord.recordVariables[\"like\" + this._cfg.id];\r\n let r = PlotManager.getAllRecordVariableValue(\"like\" + this._cfg.id);\r\n r = r ? r : 0;\r\n let l = g + r;\r\n return l;\r\n }\r\n\r\n addRoleLike(like: number, globalRecord: boolean = true) {\r\n let pre = this.getRoleLike();\r\n let after = pre + like;\r\n after = after > 0 ? after : 0;\r\n let offset = after - pre;\r\n if (globalRecord) {\r\n let g = GameRecord.globalVariables[\"like\" + this._cfg.id];\r\n g = g ? g : 0;\r\n g += offset;\r\n GameRecord.globalVariables[\"like\" + this._cfg.id] = g;\r\n } else {\r\n let r = GameRecord.recordVariables[\"like\" + this._cfg.id] as number;\r\n r = r ? r : 0;\r\n r += offset;\r\n GameRecord.recordVariables[\"like\" + this._cfg.id] = r;\r\n }\r\n GameRecord.saveRecord();\r\n }\r\n\r\n getPortrait(face = FaceType.Normal, skin?: number) { // TODO 默认皮肤更改?\r\n if (skin === undefined && this._curSkin > 0) skin = this._curSkin;\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + face;\r\n }\r\n\r\n getBust(skin?: number) {\r\n if (skin === undefined && this._curSkin > 0) skin = this._curSkin;\r\n let ret = \"textures/bust/\" + this._cfg.id;\r\n if (skin) {\r\n ret += skin;\r\n }\r\n return ret;\r\n }\r\n\r\n getHeadIcon() {\r\n let ret = \"/textures/head_icon/\" + this._cfg.id;\r\n if (this._curSkin > 0) {\r\n ret += \"_\" + this._curSkin;\r\n }\r\n return ret;\r\n }\r\n\r\n getNameIcon() {\r\n let ret = \"/textures/name_icon/\" + this._cfg.id;\r\n return ret;\r\n }\r\n\r\n getRoleLikeLevel() {\r\n let configs = ConfigManager.getAllConfig(relationLevelConfig);\r\n let level = 0;\r\n let like = this.getRoleLike();\r\n const maxLevel = Object.keys(configs).length;\r\n let levelValue = 0;\r\n for (let id = 1; id <= maxLevel; id++) {\r\n levelValue = configs[id].relation_value;\r\n if (like >= levelValue) {\r\n like -= levelValue;\r\n level = id;\r\n } else {\r\n break;\r\n }\r\n }\r\n return { level, currLike: like, nextLevelLike: levelValue, maxLevel };\r\n }\r\n\r\n addSkin(id: number) {\r\n this._skinMaps.add(id);\r\n let skinsstr = \"\";\r\n let index = 0;\r\n for (let value of this._skinMaps) {\r\n skinsstr += value;\r\n if (index != this._skinMaps.size - 1) {\r\n skinsstr += \",\";\r\n }\r\n ++index;\r\n }\r\n\r\n GameRecord.globalVariables[\"skins_\" + this._cfg.id + \"_skins\"] = skinsstr;\r\n GameRecord.autoSave();\r\n }\r\n\r\n setCurSkin(id: number) {\r\n this._curSkin = id;\r\n GameRecord.globalVariables[\"curskin_\" + this._cfg.id + \"_skin\"] = id;\r\n GameRecord.autoSave();\r\n }\r\n\r\n getCurSkin(): number {\r\n return this._curSkin;\r\n }\r\n\r\n initSkin() {\r\n this._curSkin = GameRecord.globalVariables[\"curskin_\" + this._cfg.id + \"_skin\"];\r\n\r\n let skins = GameRecord.globalVariables[\"skins_\" + this._cfg.id + \"_skins\"] as string;\r\n skins = skins === undefined ? \"\" : skins;\r\n let skinSpilt = skins.split(\",\");\r\n for (let index = 0; index < skinSpilt.length; ++index) {\r\n this._skinMaps.add(parseInt(skinSpilt[index]));\r\n }\r\n }\r\n\r\n getOwnedSkins(): Set<number> {\r\n return this._skinMaps;\r\n }\r\n\r\n initData() {\r\n this._itemMaps.clear();\r\n let props = GameModelManager.getItemConfigs();\r\n for (let key in props) {\r\n let value = props[key];\r\n let recordNum = GameRecord.globalVariables[\"prop_\" + this._cfg.id + \"_\" + value.id + \"_num\"] as number;\r\n recordNum = recordNum === undefined ? 0 : recordNum;\r\n this._itemMaps.set(value.id, recordNum);\r\n }\r\n }\r\n\r\n public getProps(id: number) {\r\n return this._itemMaps.get(id);\r\n }\r\n\r\n public addProps(id: number, num: number): { result: boolean, errorinfo: string } {\r\n let ret: { result: boolean, errorinfo: string } = { result: false, errorinfo: \"\" };\r\n let cfg = GameModelManager.getItemConfig(id);\r\n let validProp: boolean = cfg ? true : false;\r\n if (!validProp) {\r\n ret.errorinfo = \"prop id \" + id + \" not exist\";\r\n return ret;\r\n }\r\n let max = cfg['max_num'] ? cfg['max_num'] : Number.MAX_VALUE;\r\n if (Math.abs(num) > max) {\r\n ret.errorinfo = \"input num over max , num abs value limit \" + max;\r\n return ret;\r\n }\r\n let value = this._itemMaps.get(id) as number;\r\n if (value >= max && num > 0) {\r\n ret.result = false;\r\n ret.errorinfo = \"cur value over or equal max value limit \" + max;\r\n return ret;\r\n } else {\r\n value += num;\r\n ret.result = true;\r\n }\r\n if (value > max) {\r\n ret.errorinfo = \"value over max , set num as max\";\r\n } else if (value === max) {\r\n ret.errorinfo = \"value equal max\";\r\n } else if (value < 0) {\r\n ret.errorinfo = \"value less 0 , set num as 0\";\r\n } else {\r\n ret.errorinfo = \"succeed\";\r\n }\r\n value = value > max ? max : value;\r\n value = value < 0 ? 0 : value;\r\n this._itemMaps.set(id, value);\r\n GameRecord.globalVariables[\"prop_\" + this._cfg.id + \"_\" + id + \"_num\"] = value;\r\n GameRecord.saveRecord();\r\n return ret;\r\n }\r\n\r\n\r\n public getRoleName() {\r\n if (!this._roleName || this._roleName === \"\") {\r\n return this._cfg.name;\r\n } else {\r\n return this._roleName;\r\n }\r\n }\r\n\r\n public setRoleName(name: string) {\r\n this._roleName = name;\r\n }\r\n\r\n /**\r\n * \r\n * @param skin 皮肤id\r\n */\r\n public getBagPortraitByRoleId(skin?: number) {\r\n if (this._cfg.id == 2) { //自己\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + 7;\r\n\r\n } else {\r\n return \"textures/portrait/\" + this._cfg.id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + FaceType.Normal;\r\n\r\n }\r\n }\r\n\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/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,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,EAAE;wBAC3C,MAAM;qBACT;iBACJ;gBACD,IAAI,YAAY,CAAC,MAAM,GAAG,WAAW,EAAE;oBACnC,MAAM;iBACT;aACJ;YACD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC;YAC9B,2FAA2F;YAC3F,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QAChE,CAAC;QAiEO,QAAQ;YACZ,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;QAC7B,CAAC;QA4BD,gBAAgB;YACZ,IAAI,CAAC,GAAW,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,GAAG,oCAAa,CAAC,YAAY,CAAC,yCAAmB,CAAC,CAAC;YACxD,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE;gBACd,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3B;YACD,OAAO,CAAC,CAAC;QACb,CAAC;KAgFJ,CAAA;IAvfU,0BAAI,GAAG,uBAAuB,CAAC;IAD7B,qBAAqB;QADjC,qCAAY,CAAC,+BAAgB,CAAC;OAClB,qBAAqB,CAwfjC;IAAD,4BAAC;KAAA;AAxfY,sDAAqB","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { CompositeDisposable } from \"simba-eventkit\";\nimport { DeepReadonly, delay } from \"simba-utils\";\nimport { ActionManager, GameRecord, getPlot, PlotManager, ReadonlyPlot, ReadonlyPlots, SentenceSelectContent, SentenceType } from \"../../../avg/AVG\";\nimport { RoleType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { relationLevelConfig } from \"../../../config/RelationLevelConfig\";\nimport { role } from \"../../../config/Role\";\nimport { GuideLocation, GuideOperationType, GuideState, PlotSceneType, TutorialState, TutorialType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { MessageSceneModel } from \"../../model/MessageSceneModel\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { ChatListAutoNextPlot, ChatListItemProps, ChatListView, ChatListViewProps, ChatListViewType } from \"../view/type/ChatListView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport GuideViewPresenter from \"./GuideViewPresenter\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\nconst MAX_HISTORY = 50;\n@RegPresenter(ChatListViewType)\nexport class ChatListViewPresenter extends Presenter<MessageSceneModel, ChatListView> {\n static uuid = \"ChatListViewPresenter\";\n private _chatList: ChatListItemProps[];\n private _sceneModel: MessageSceneModel;\n get sceneModel() { return this._sceneModel; }\n private _historyMessages: { [id: number]: ChatListItemProps[] } = {};\n private _currPlot?: ReadonlyPlot;\n private _currPlotShowed = false;\n private _itemKey = 0;\n private _plotExecuting = false;\n private _excutedPlots: { [key: number]: boolean } = {};\n private _selectIndex?: number;\n private _plotChangeLike?: number;\n\n private _viewProps: ChatListViewProps;\n\n private _gLevelMax: number = -1;\n\n private _cachePId: number = NaN;\n\n constructor() {\n super();\n PlotManager.PlotsRollbackEvent.on(() => {\n this._excutedPlots = {};\n this.onResumeChatListView();\n })\n }\n\n getRoleId() {\n if (this.sceneModel.config.roles.length == 1)\n return this.sceneModel.config.roles[0];\n return 1;\n }\n\n onSelectIndexCallback = (index: number) => {\n this.selectSentence(index);\n }\n\n onSetContent = (content: DeepReadonly<SentenceSelectContent>) => {\n if (content != undefined) {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"textures/message/selector_bg\",\n clickcausehide: false,\n onSelectIndexCallback: this.onSelectIndexCallback\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n let t = GameModelManager.checkIsDotTutorial();\n if (t) {\n let plotScenTypeSession = GameRecord.globalVariables[\"p_s_t_s\" + PlotSceneType.Message] as number;\n GameDotMgr.getInstance().dotTutorial(TutorialType.Message, TutorialState.SelectSentence, { session: plotScenTypeSession, plotId: this._currPlot!.id });\n }\n }\n }\n\n isSentenceSelectVisible = (): boolean => {\n let preset = UIManager.getTopPresenter();\n if (preset instanceof SentenceSelectorViewPresenter) {\n let selectorPresenter = preset as SentenceSelectorViewPresenter;\n return !selectorPresenter.view.isHidden;\n }\n return false;\n }\n\n async onOpen(scene: MessageSceneModel) {\n super.onOpen(scene);\n this._sceneModel = scene;\n this._disposable.add(PlotManager.PlotStartEvent.on(this.handlePlotsStart));\n this._currPlot = PlotManager.getCurrentPlots().find(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === scene.id);\n\n if (this._historyMessages[scene.id]) {\n this._chatList = this._historyMessages[scene.id];\n } else {\n this._chatList = [];\n }\n\n let canSendGift = false;\n let isMajor = false;\n if (scene.config.roles.length === 1) {\n let roleConfig = ConfigManager.getConfig(role, scene.config.roles[0]);\n if (roleConfig.RoleType === RoleType.Role_Major) {\n isMajor = true;\n }\n }\n canSendGift = isMajor;\n if (this._chatList && this._chatList.length) {\n this.organizeViewProps(scene, isMajor);\n this._view.setProps(this._viewProps);\n }\n else {\n this._viewProps = {\n msgSceneId: scene.id, title: GameModelManager.getConfigLanguageTxt(scene.config.title),\n items: [], historyMsgCount: 0,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n this._view.setProps(this._viewProps);\n await this.loadChatList();\n this.organizeViewProps(scene, isMajor);\n this._view.setProps(this._viewProps);\n }\n\n if (this._currPlot) {\n if (GameModelManager.isChangePlotSceneType()) {\n GameModelManager.dotMainLinePlotStart();\n }\n this._currPlotShowed = false;\n let item = this.convertPlotToViewModel(this._currPlot);\n await this.showCurrPlot();\n if (this._plotChangeLike) {\n item = { ...this._chatList.pop()! };\n if (item.type === \"plot\") {\n item.addLike = this._plotChangeLike;\n }\n this._chatList.push(item);\n this.view.updateProps({ items: this._chatList });\n }\n if (item) {\n if (this._cachePId !== this._currPlot.id && !this._excutedPlots[this._currPlot.id] && !this._plotExecuting && !this._currPlotShowed) {\n this._chatList.push(item);\n this._cachePId = this._currPlot.id;\n this.view.updateProps({ items: this._chatList });\n }\n }\n\n }\n }\n\n organizeViewProps(scene: MessageSceneModel, isMajor: boolean) {\n let canSendGift = false;\n if (scene.config.roles.length === 1) {\n let roleConfig = ConfigManager.getConfig(role, scene.config.roles[0]);\n if (roleConfig.RoleType === RoleType.Role_Major) {\n isMajor = true;\n }\n }\n canSendGift = isMajor;\n if (this._chatList!.length !== 0) {\n if (this._chatList[this._chatList.length - 1].type === \"end\") { // 上一次的结束改为历史\n let item = this._chatList.pop();\n this._chatList.push({ key: item!.key, type: \"history\" });\n for (let i = this._chatList.length - 2; i >= 0; i--) { // 删除之前的历史分割,只保留最后一个\n let item = this._chatList[i];\n if (item.type === \"history\") {\n this._chatList.splice(i, 1);\n break;\n }\n }\n }\n }\n this._viewProps = {\n msgSceneId: scene.id, title: GameModelManager.getConfigLanguageTxt(scene.config.title),\n items: this._chatList, historyMsgCount: this._chatList.length,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n }\n\n closeAction = () => {\n if (this._plotExecuting) return;\n UIManager.popToPresenter(this);\n this._view.closeAnimation().then(() => {\n this._view.close();\n GameModelManager.CheckMainTabGuide.emit();\n });\n }\n\n selectChapter = () => {\n\n }\n\n selectSentence = (index: number) => {\n if (!this._currPlot) throw new Error(\"ChatList: ePlot error! No currnt plot!\");\n this.completePlot(index, ChatListAutoNextPlot);\n }\n\n showCurrPlot = async () => {\n if (this._currPlot && !this._excutedPlots[this._currPlot.id] && !this._plotExecuting && !this._currPlotShowed) {\n let item = this.convertPlotToViewModel(this._currPlot);\n if (item && this._currPlot.sentences[0].roleId !== 1 && item.type !== \"customplot\") { // 除了旁白,扣体力\n if (!this._currPlot) return;\n }\n this._excutedPlots[this._currPlot.id] = true;\n this._plotExecuting = true;\n let disposable = new CompositeDisposable;\n this._plotChangeLike = undefined;\n GameRecord.onRecordVariableChange(\"like\" + this._currPlot!.sentences[0].roleId, (scope, varName, preValue, value) => {\n this._plotChangeLike = (value as number) - (preValue as number);\n });\n await ActionManager.executeActions(this._currPlot!.sentences[0].actions); // TODO 处理加好感\n disposable.dispose();\n this._plotExecuting = false;\n if (item) {\n if (this._chatList.length > MAX_HISTORY) {\n this._chatList.shift();\n }\n let exist = false;\n for (let i = 0; i < this._chatList.length; i++) {\n if (this._chatList[i][\"id\"] === item[\"id\"]) {\n exist = true;\n break;\n }\n }\n if (!exist) {\n this._chatList.push(item);\n }\n\n if ((item.type === \"plot\" || item.type === \"customplot\") && this._plotChangeLike && this._plotChangeLike !== NaN) {\n item.addLike = this._plotChangeLike;\n }\n this._view.updateProps({ items: this._chatList });\n }\n this._currPlotShowed = true;\n let effectName = \"se_npc_send\";\n if (this._currPlot && this._currPlot.sentences[0].roleId === GameModelManager.getPlayerData().getConfig().id) {\n effectName = \"se_player_send\";\n }\n AudioManager.playEffect(effectName);\n } else if (this._currPlot && this._excutedPlots[this._currPlot.id]) {\n this._currPlotShowed = true;\n }\n }\n\n completePlot = async (index?: number, proceedNext = true) => {\n if (!this._currPlot) return;\n if (!this._currPlotShowed) { this.showCurrPlot(); return; }\n GameModelManager.setIsMainPlotSceneType(true);\n if (index !== undefined) { // 刷新界面剧情选择\n let lastItem = this._chatList.pop()!;\n if (lastItem.type === \"plot\") {\n this._chatList.push({ ...lastItem, select: index });\n } else {\n throw new Error(\"ChatList: Plot error!\");\n }\n this._view.updateProps({ items: this._chatList });\n }\n // await this.execCurrPlot(); // 改为开始的时候执行\n if (proceedNext) {\n this.sceneModel.lastPlot = this._currPlot;\n if (this._selectIndex !== undefined) {\n index = this._selectIndex;\n this._selectIndex = undefined;\n }\n if (ChatListAutoNextPlot) await delay(0.5);\n await this.nextPlot(index);\n } else {\n this._selectIndex = index;\n }\n }\n\n private nextPlot = async (index?: number) => {\n if (this.isClosed()) return;\n if (this._currPlot) {\n GameModelManager.dotPlotProgress();\n await PlotManager.completePlot(this._currPlot!, index, this._plotChangeLike ? { addlike: this._plotChangeLike } : undefined);\n } else {\n console.error(\"ChatList: Plot error! No current plot!\");\n }\n }\n\n private async loadChatList() {\n if (this._historyMessages[this._sceneModel.id] && this._historyMessages[this._sceneModel.id]) {\n this._view.updateProps({ items: this._chatList });\n return;\n }\n this._historyMessages[this._sceneModel.id] = [];\n\n let historyPlots: ChatListItemProps[] = [];\n let records = GameRecord.getCurrentRecordItems();\n let pushHistory = false;\n let hasHistory = false;\n let lastPlotId: number = Number.MAX_SAFE_INTEGER;\n for (let i = records.length - 1; i >= 0; i--) {\n let item = records[i];\n for (let j = 0; j < item.p.length; j++) {\n let plotId = item.p[j];\n if (plotId === lastPlotId) break;\n let plot = (await getPlot(plotId))! as ReadonlyPlot;\n if (!plot) continue;\n if (plot.plotSceneType === PlotSceneType.Message && plot.plotSceneTypeId === this._sceneModel.id) {\n lastPlotId = plotId;\n if (i === records.length - 1) continue;\n if (pushHistory && !hasHistory) {\n historyPlots.unshift({ key: (this._itemKey++).toString(), type: \"history\" });\n hasHistory = true;\n }\n let select: number | undefined = undefined;\n if (item.s) select = item.s[j];\n let customData: object | undefined = undefined;\n if (item.c) customData = item.c[j];\n let vm = this.convertPlotToViewModel(plot, select, customData);\n if (vm) historyPlots.unshift(vm);\n } else { // TODO process branch plots if needed.\n if (!pushHistory && !hasHistory) {\n pushHistory = true;\n }\n }\n if (plot.id === this._sceneModel.firstPlot.id) {\n break;\n }\n }\n if (historyPlots.length > MAX_HISTORY) {\n break;\n }\n }\n this._chatList = historyPlots;\n // this._view.updateProps({ items: historyPlots, historyMsgCount: this._chatList.length });\n this._historyMessages[this._sceneModel.id] = this._chatList;\n }\n\n private convertPlotToViewModel = (plot: ReadonlyPlot, select?: number, customData?: object): ChatListItemProps | undefined => {\n let role = GameModelManager.getRoleData(plot.sentences[0].roleId)!;\n let content = plot.sentences[0].content;\n if (plot.id >= 0) {\n if (!content) return undefined;\n let nameSpr = role.getNameIcon();\n if (role.getConfig().id === 3) {\n nameSpr = \"/textures/name_icon/laoda\";\n }\n return { id: plot.id, key: (this._itemKey++).toString(), type: \"plot\", nameSpr: nameSpr, name: role.getConfig().RoleType === RoleType.Role_Blank ? \"\" : role.getConfig().name, icon: role.getHeadIcon(), isSelf: role.getConfig().RoleType === RoleType.Role_Player, content, select, addLike: customData ? customData[\"addlike\"] : undefined };\n } else { // custom plot\n let giftId = plot.customData?.giftId;\n if (giftId) {// 送礼\n } else {\n if (content && content.type !== SentenceType.SELECT && content.type !== SentenceType.EMPTY) {\n let addLike = plot.customData?.addLike;\n return { id: plot.id, key: (this._itemKey++).toString(), type: \"customplot\", name: role.getConfig().name, icon: role.getHeadIcon(), isSelf: false, content, addLike }\n } else {\n throw new Error(\"This cannot happen!\");\n }\n }\n }\n }\n\n private handlePlotsStart = async (plots: ReadonlyPlots) => {\n let plot = plots.find(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === this._sceneModel.id);\n if (plot) {\n if (this._currPlot && plot === this._currPlot) return; // 有分支剧情的情况\n this._currPlot = plot;\n this._currPlotShowed = false;\n await this.showCurrPlot();\n } else if (this._currPlot && this._currPlot.id >= 0) {//剧情结束\n this._currPlot = undefined;\n this._chatList.push({ key: (this._itemKey++).toString(), type: \"end\" });\n if (this._chatList.length > MAX_HISTORY) {\n this._chatList.shift();\n }\n this._view.updateProps({ items: this._chatList, backRedDot: true });\n // this.checkGuideBack();\n GameModelManager.dotMainLinePlotEnd();\n }\n }\n\n checkGuideBack = () => {\n let r = GameRecord.globalVariables[\"guide_chat_back\"] as number;\n r = r ? r : GuideState.Open;\n if (r !== GuideState.Open) {\n return;\n }\n let m = this._view.getGuideBackParam();\n if (m) {\n let location = GuideLocation.ChatBack;\n m.call = () => {\n GameRecord.globalVariables[\"guide_chat_back\"] = GuideState.Complete;\n GameRecord.saveRecord();\n this.closeAction();\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Click, location);\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Show, location);\n }\n }\n\n private isClosed() {\n return !this._disposable;\n }\n\n onNameTitleClick = () => {\n if (!this._sceneModel) {\n return;\n }\n let rids = this._sceneModel.config.roles;\n if (!rids.length || rids!.length !== 1) {\n return;\n }\n let r = GameModelManager.getRoleData(rids[0]);\n if (!r || r!.getConfig().RoleType !== RoleType.Role_Major) {\n return;\n }\n let l = r.getRoleLikeLevel();\n if (this._gLevelMax < 0) {\n this._gLevelMax = this.getGraceLevelMax();\n }\n if (this._gLevelMax === l.level) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_MAX_VALUE));\n }\n else {\n let v = l.nextLevelLike - l.currLike;\n UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_UP_TIP_VALUE), v));\n }\n\n }\n\n getGraceLevelMax(): number {\n let m: number = -1;\n let t = ConfigManager.getAllConfig(relationLevelConfig);\n for (let id in t) {\n let c = t[id];\n m = m < c.id ? c.id : m;\n }\n return m;\n }\n\n // async updateHistoryMessages() {\n // this._historyMessages[this._sceneModel.id] = [];\n\n // let historyPlots: ChatListItemProps[] = [];\n // let records = GameRecord.getCurrentRecordItems();\n // let pushHistory = false;\n // let hasHistory = false;\n // let lastPlotId: number = Number.MAX_SAFE_INTEGER;\n // for (let i = records.length - 1; i >= 0; i--) {\n // let item = records[i];\n // for (let j = 0; j < item.p.length; j++) {\n // let plotId = item.p[j];\n // if (plotId === lastPlotId) break;\n // let plot = (await getPlot(plotId))! as ReadonlyPlot;\n // if (!plot) continue;\n // if (plot.plotSceneType === PlotSceneType.Message && plot.plotSceneTypeId === this._sceneModel.id) {\n // lastPlotId = plotId;\n // if (i === records.length - 1) continue;\n // if (pushHistory && !hasHistory) {\n // historyPlots.unshift({ key: (this._itemKey++).toString(), type: \"history\" });\n // hasHistory = true;\n // }\n // let select: number | undefined = undefined;\n // if (item.s) select = item.s[j];\n // let customData: object | undefined = undefined;\n // if (item.c) customData = item.c[j];\n // let vm = this.convertPlotToViewModel(plot, select, customData);\n // if (vm) historyPlots.unshift(vm);\n // } else { // TODO process branch plots if needed.\n // if (!pushHistory && !hasHistory) {\n // pushHistory = true;\n // }\n // }\n // if (plot.id === this._sceneModel.firstPlot.id) {\n // break;\n // }\n // }\n // if (historyPlots.length > MAX_HISTORY) {\n // break;\n // }\n // }\n // this._chatList = historyPlots;\n // // this._view.updateProps({ items: historyPlots, historyMsgCount: this._chatList.length });\n // this._historyMessages[this._sceneModel.id] = this._chatList;\n // }\n\n onResumeChatListView = () => {\n this._chatList = [];\n // this._sceneModel = undefined;\n this._historyMessages = {};\n this._currPlot = undefined;\n this._currPlotShowed = false;\n this._itemKey = 0;\n this._plotExecuting = false;\n this._excutedPlots = {};\n this._selectIndex = undefined;\n this._plotChangeLike = 0;\n this._viewProps = {\n msgSceneId: -1, title: \"\",\n items: [], historyMsgCount: 0,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n this._view.setProps(this._viewProps);\n\n // this._viewProps = [];\n\n this._gLevelMax = -1;\n\n this._cachePId = NaN;\n this.view.resumeAll();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/ChatListViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAsD;AACtD,+DAAqD;AACrD,mDAAqD;AACrD,6CAAkD;AAClD,0CAAqJ;AACrJ,0DAAoD;AACpD,2EAAoE;AACpE,iFAA8E;AAC9E,2EAAwE;AACxE,mEAAgE;AAChE,6EAA0E;AAC1E,+CAA4C;AAC5C,uCAAwH;AACxH,mEAAgE;AAEhE,sEAAyD;AACzD,4DAAuI;AAEvI,6DAAsD;AACtD,mFAA4E;AAE5E,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB;IAAA,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,yBAA0C;QAoBjF;YACI,KAAK,EAAE,CAAC;YAhBJ,qBAAgB,GAA0C,EAAE,CAAC;YAE7D,oBAAe,GAAG,KAAK,CAAC;YACxB,aAAQ,GAAG,CAAC,CAAC;YACb,mBAAc,GAAG,KAAK,CAAC;YACvB,kBAAa,GAA+B,EAAE,CAAC;YAM/C,eAAU,GAAW,CAAC,CAAC,CAAC;YAExB,cAAS,GAAW,GAAG,CAAC;YAgBhC,0BAAqB,GAAG,CAAC,KAAa,EAAE,EAAE;gBACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC/B,CAAC,CAAA;YAED,iBAAY,GAAG,CAAC,OAA4C,EAAE,EAAE;gBAC5D,IAAI,OAAO,IAAI,SAAS,EAAE;oBACtB,IAAI,KAAK,GACT;wBACI,QAAQ,EAAE,OAAO;wBACjB,cAAc,EAAE,8BA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,gBAAgB;YACZ,IAAI,CAAC,GAAW,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,GAAG,oCAAa,CAAC,YAAY,CAAC,yCAAmB,CAAC,CAAC;YACxD,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE;gBACd,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3B;YACD,OAAO,CAAC,CAAC;QACb,CAAC;KAgFJ,CAAA;IA9eU,0BAAI,GAAG,uBAAuB,CAAC;IAD7B,qBAAqB;QADjC,qCAAY,CAAC,+BAAgB,CAAC;OAClB,qBAAqB,CA+ejC;IAAD,4BAAC;KAAA;AA/eY,sDAAqB","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { CompositeDisposable } from \"simba-eventkit\";\nimport { DeepReadonly, delay } from \"simba-utils\";\nimport { ActionManager, GameRecord, getPlot, PlotManager, ReadonlyPlot, ReadonlyPlots, SentenceSelectContent, SentenceType } from \"../../../avg/AVG\";\nimport { RoleType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { relationLevelConfig } from \"../../../config/RelationLevelConfig\";\nimport { role } from \"../../../config/Role\";\nimport { GuideLocation, GuideOperationType, GuideState, PlotSceneType, TutorialState, TutorialType } from \"../../Enums\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { MessageSceneModel } from \"../../model/MessageSceneModel\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { ChatListAutoNextPlot, ChatListItemProps, ChatListView, ChatListViewProps, ChatListViewType } from \"../view/type/ChatListView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport GuideViewPresenter from \"./GuideViewPresenter\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\nconst MAX_HISTORY = 50;\n@RegPresenter(ChatListViewType)\nexport class ChatListViewPresenter extends Presenter<MessageSceneModel, ChatListView> {\n static uuid = \"ChatListViewPresenter\";\n private _chatList: ChatListItemProps[];\n private _sceneModel: MessageSceneModel;\n get sceneModel() { return this._sceneModel; }\n private _historyMessages: { [id: number]: ChatListItemProps[] } = {};\n private _currPlot?: ReadonlyPlot;\n private _currPlotShowed = false;\n private _itemKey = 0;\n private _plotExecuting = false;\n private _excutedPlots: { [key: number]: boolean } = {};\n private _selectIndex?: number;\n private _plotChangeLike?: number;\n\n private _viewProps: ChatListViewProps;\n\n private _gLevelMax: number = -1;\n\n private _cachePId: number = NaN;\n\n constructor() {\n super();\n PlotManager.PlotsRollbackEvent.on(() => {\n this._excutedPlots = {};\n this.onResumeChatListView();\n })\n }\n\n getRoleId() {\n if (this.sceneModel.config.roles.length == 1)\n return this.sceneModel.config.roles[0];\n return 1;\n }\n\n onSelectIndexCallback = (index: number) => {\n this.selectSentence(index);\n }\n\n onSetContent = (content: DeepReadonly<SentenceSelectContent>) => {\n if (content != undefined) {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"textures/message/selector_bg\",\n clickcausehide: false,\n onSelectIndexCallback: this.onSelectIndexCallback\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n }\n }\n\n isSentenceSelectVisible = (): boolean => {\n let preset = UIManager.getTopPresenter();\n if (preset instanceof SentenceSelectorViewPresenter) {\n let selectorPresenter = preset as SentenceSelectorViewPresenter;\n return !selectorPresenter.view.isHidden;\n }\n return false;\n }\n\n async onOpen(scene: MessageSceneModel) {\n super.onOpen(scene);\n this._sceneModel = scene;\n this._disposable.add(PlotManager.PlotStartEvent.on(this.handlePlotsStart));\n this._currPlot = PlotManager.getCurrentPlots().find(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === scene.id);\n\n if (this._historyMessages[scene.id]) {\n this._chatList = this._historyMessages[scene.id];\n } else {\n this._chatList = [];\n }\n\n let canSendGift = false;\n let isMajor = false;\n if (scene.config.roles.length === 1) {\n let roleConfig = ConfigManager.getConfig(role, scene.config.roles[0]);\n if (roleConfig.RoleType === RoleType.Role_Major) {\n isMajor = true;\n }\n }\n canSendGift = isMajor;\n if (this._chatList && this._chatList.length) {\n this.organizeViewProps(scene, isMajor);\n this._view.setProps(this._viewProps);\n }\n else {\n this._viewProps = {\n msgSceneId: scene.id, title: GameModelManager.getConfigLanguageTxt(scene.config.title),\n items: [], historyMsgCount: 0,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n this._view.setProps(this._viewProps);\n await this.loadChatList();\n this.organizeViewProps(scene, isMajor);\n this._view.setProps(this._viewProps);\n }\n\n if (this._currPlot) {\n if (GameModelManager.isChangePlotSceneType()) {\n GameModelManager.dotMainLinePlotStart();\n }\n this._currPlotShowed = false;\n let item = this.convertPlotToViewModel(this._currPlot);\n await this.showCurrPlot();\n if (this._plotChangeLike) {\n item = { ...this._chatList.pop()! };\n if (item.type === \"plot\") {\n item.addLike = this._plotChangeLike;\n }\n this._chatList.push(item);\n this.view.updateProps({ items: this._chatList });\n }\n if (item) {\n if (this._cachePId !== this._currPlot.id && !this._excutedPlots[this._currPlot.id] && !this._plotExecuting && !this._currPlotShowed) {\n this._chatList.push(item);\n this._cachePId = this._currPlot.id;\n this.view.updateProps({ items: this._chatList });\n }\n }\n\n }\n }\n\n organizeViewProps(scene: MessageSceneModel, isMajor: boolean) {\n let canSendGift = false;\n if (scene.config.roles.length === 1) {\n let roleConfig = ConfigManager.getConfig(role, scene.config.roles[0]);\n if (roleConfig.RoleType === RoleType.Role_Major) {\n isMajor = true;\n }\n }\n canSendGift = isMajor;\n if (this._chatList!.length !== 0) {\n if (this._chatList[this._chatList.length - 1].type === \"end\") { // 上一次的结束改为历史\n let item = this._chatList.pop();\n this._chatList.push({ key: item!.key, type: \"history\" });\n for (let i = this._chatList.length - 2; i >= 0; i--) { // 删除之前的历史分割,只保留最后一个\n let item = this._chatList[i];\n if (item.type === \"history\") {\n this._chatList.splice(i, 1);\n break;\n }\n }\n }\n }\n this._viewProps = {\n msgSceneId: scene.id, title: GameModelManager.getConfigLanguageTxt(scene.config.title),\n items: this._chatList, historyMsgCount: this._chatList.length,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n }\n\n closeAction = () => {\n if (this._plotExecuting) return;\n UIManager.popToPresenter(this);\n this._view.closeAnimation().then(() => {\n this._view.close();\n });\n }\n\n selectChapter = () => {\n\n }\n\n selectSentence = (index: number) => {\n if (!this._currPlot) throw new Error(\"ChatList: ePlot error! No currnt plot!\");\n this.completePlot(index, ChatListAutoNextPlot);\n }\n\n showCurrPlot = async () => {\n if (this._currPlot && !this._excutedPlots[this._currPlot.id] && !this._plotExecuting && !this._currPlotShowed) {\n let item = this.convertPlotToViewModel(this._currPlot);\n if (item && this._currPlot.sentences[0].roleId !== 1 && item.type !== \"customplot\") { // 除了旁白,扣体力\n if (!this._currPlot) return;\n }\n this._excutedPlots[this._currPlot.id] = true;\n this._plotExecuting = true;\n let disposable = new CompositeDisposable;\n this._plotChangeLike = undefined;\n GameRecord.onRecordVariableChange(\"like\" + this._currPlot!.sentences[0].roleId, (scope, varName, preValue, value) => {\n this._plotChangeLike = (value as number) - (preValue as number);\n });\n await ActionManager.executeActions(this._currPlot!.sentences[0].actions); // TODO 处理加好感\n disposable.dispose();\n this._plotExecuting = false;\n if (item) {\n if (this._chatList.length > MAX_HISTORY) {\n this._chatList.shift();\n }\n let exist = false;\n for (let i = 0; i < this._chatList.length; i++) {\n if (this._chatList[i][\"id\"] === item[\"id\"]) {\n exist = true;\n break;\n }\n }\n if (!exist) {\n this._chatList.push(item);\n }\n\n if ((item.type === \"plot\" || item.type === \"customplot\") && this._plotChangeLike && this._plotChangeLike !== NaN) {\n item.addLike = this._plotChangeLike;\n }\n this._view.updateProps({ items: this._chatList });\n }\n this._currPlotShowed = true;\n let effectName = \"se_npc_send\";\n if (this._currPlot && this._currPlot.sentences[0].roleId === GameModelManager.getPlayerData().getConfig().id) {\n effectName = \"se_player_send\";\n }\n AudioManager.playEffect(effectName);\n } else if (this._currPlot && this._excutedPlots[this._currPlot.id]) {\n this._currPlotShowed = true;\n }\n }\n\n completePlot = async (index?: number, proceedNext = true) => {\n if (!this._currPlot) return;\n if (!this._currPlotShowed) { this.showCurrPlot(); return; }\n GameModelManager.setIsMainPlotSceneType(true);\n if (index !== undefined) { // 刷新界面剧情选择\n let lastItem = this._chatList.pop()!;\n if (lastItem.type === \"plot\") {\n this._chatList.push({ ...lastItem, select: index });\n } else {\n throw new Error(\"ChatList: Plot error!\");\n }\n this._view.updateProps({ items: this._chatList });\n }\n // await this.execCurrPlot(); // 改为开始的时候执行\n if (proceedNext) {\n this.sceneModel.lastPlot = this._currPlot;\n if (this._selectIndex !== undefined) {\n index = this._selectIndex;\n this._selectIndex = undefined;\n }\n if (ChatListAutoNextPlot) await delay(0.5);\n await this.nextPlot(index);\n } else {\n this._selectIndex = index;\n }\n }\n\n private nextPlot = async (index?: number) => {\n if (this.isClosed()) return;\n if (this._currPlot) {\n await PlotManager.completePlot(this._currPlot!, index, this._plotChangeLike ? { addlike: this._plotChangeLike } : undefined);\n } else {\n console.error(\"ChatList: Plot error! No current plot!\");\n }\n }\n\n private async loadChatList() {\n if (this._historyMessages[this._sceneModel.id] && this._historyMessages[this._sceneModel.id]) {\n this._view.updateProps({ items: this._chatList });\n return;\n }\n this._historyMessages[this._sceneModel.id] = [];\n\n let historyPlots: ChatListItemProps[] = [];\n let records = GameRecord.getCurrentRecordItems();\n let pushHistory = false;\n let hasHistory = false;\n let lastPlotId: number = Number.MAX_SAFE_INTEGER;\n for (let i = records.length - 1; i >= 0; i--) {\n let item = records[i];\n for (let j = 0; j < item.p.length; j++) {\n let plotId = item.p[j];\n if (plotId === lastPlotId) break;\n let plot = (await getPlot(plotId))! as ReadonlyPlot;\n if (!plot) continue;\n if (plot.plotSceneType === PlotSceneType.Message && plot.plotSceneTypeId === this._sceneModel.id) {\n lastPlotId = plotId;\n if (i === records.length - 1) continue;\n if (pushHistory && !hasHistory) {\n historyPlots.unshift({ key: (this._itemKey++).toString(), type: \"history\" });\n hasHistory = true;\n }\n let select: number | undefined = undefined;\n if (item.s) select = item.s[j];\n let customData: object | undefined = undefined;\n if (item.c) customData = item.c[j];\n let vm = this.convertPlotToViewModel(plot, select, customData);\n if (vm) historyPlots.unshift(vm);\n } else { // TODO process branch plots if needed.\n if (!pushHistory && !hasHistory) {\n pushHistory = true;\n }\n }\n if (plot.id === this._sceneModel.firstPlot.id) {\n break;\n }\n }\n if (historyPlots.length > MAX_HISTORY) {\n break;\n }\n }\n this._chatList = historyPlots;\n // this._view.updateProps({ items: historyPlots, historyMsgCount: this._chatList.length });\n this._historyMessages[this._sceneModel.id] = this._chatList;\n }\n\n private convertPlotToViewModel = (plot: ReadonlyPlot, select?: number, customData?: object): ChatListItemProps | undefined => {\n let role = GameModelManager.getRoleData(plot.sentences[0].roleId)!;\n let content = plot.sentences[0].content;\n if (plot.id >= 0) {\n if (!content) return undefined;\n let nameSpr = role.getNameIcon();\n if (role.getConfig().id === 3) {\n nameSpr = \"/textures/name_icon/laoda\";\n }\n return { id: plot.id, key: (this._itemKey++).toString(), type: \"plot\", nameSpr: nameSpr, name: role.getConfig().RoleType === RoleType.Role_Blank ? \"\" : role.getConfig().name, icon: role.getHeadIcon(), isSelf: role.getConfig().RoleType === RoleType.Role_Player, content, select, addLike: customData ? customData[\"addlike\"] : undefined };\n } else { // custom plot\n let giftId = plot.customData?.giftId;\n if (giftId) {// 送礼\n } else {\n if (content && content.type !== SentenceType.SELECT && content.type !== SentenceType.EMPTY) {\n let addLike = plot.customData?.addLike;\n return { id: plot.id, key: (this._itemKey++).toString(), type: \"customplot\", name: role.getConfig().name, icon: role.getHeadIcon(), isSelf: false, content, addLike }\n } else {\n throw new Error(\"This cannot happen!\");\n }\n }\n }\n }\n\n private handlePlotsStart = async (plots: ReadonlyPlots) => {\n let plot = plots.find(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === this._sceneModel.id);\n if (plot) {\n if (this._currPlot && plot === this._currPlot) return; // 有分支剧情的情况\n this._currPlot = plot;\n this._currPlotShowed = false;\n await this.showCurrPlot();\n } else if (this._currPlot && this._currPlot.id >= 0) {//剧情结束\n this._currPlot = undefined;\n this._chatList.push({ key: (this._itemKey++).toString(), type: \"end\" });\n if (this._chatList.length > MAX_HISTORY) {\n this._chatList.shift();\n }\n this._view.updateProps({ items: this._chatList, backRedDot: true });\n // this.checkGuideBack();\n GameModelManager.dotMainLinePlotEnd();\n }\n }\n\n checkGuideBack = () => {\n let r = GameRecord.globalVariables[\"guide_chat_back\"] as number;\n r = r ? r : GuideState.Open;\n if (r !== GuideState.Open) {\n return;\n }\n let m = this._view.getGuideBackParam();\n if (m) {\n let location = GuideLocation.ChatBack;\n m.call = () => {\n GameRecord.globalVariables[\"guide_chat_back\"] = GuideState.Complete;\n GameRecord.saveRecord();\n this.closeAction();\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n\n private isClosed() {\n return !this._disposable;\n }\n\n onNameTitleClick = () => {\n if (!this._sceneModel) {\n return;\n }\n let rids = this._sceneModel.config.roles;\n if (!rids.length || rids!.length !== 1) {\n return;\n }\n let r = GameModelManager.getRoleData(rids[0]);\n if (!r || r!.getConfig().RoleType !== RoleType.Role_Major) {\n return;\n }\n let l = r.getRoleLikeLevel();\n if (this._gLevelMax < 0) {\n this._gLevelMax = this.getGraceLevelMax();\n }\n if (this._gLevelMax === l.level) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_MAX_VALUE));\n }\n else {\n let v = l.nextLevelLike - l.currLike;\n UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_UP_TIP_VALUE), v));\n }\n\n }\n\n getGraceLevelMax(): number {\n let m: number = -1;\n let t = ConfigManager.getAllConfig(relationLevelConfig);\n for (let id in t) {\n let c = t[id];\n m = m < c.id ? c.id : m;\n }\n return m;\n }\n\n // async updateHistoryMessages() {\n // this._historyMessages[this._sceneModel.id] = [];\n\n // let historyPlots: ChatListItemProps[] = [];\n // let records = GameRecord.getCurrentRecordItems();\n // let pushHistory = false;\n // let hasHistory = false;\n // let lastPlotId: number = Number.MAX_SAFE_INTEGER;\n // for (let i = records.length - 1; i >= 0; i--) {\n // let item = records[i];\n // for (let j = 0; j < item.p.length; j++) {\n // let plotId = item.p[j];\n // if (plotId === lastPlotId) break;\n // let plot = (await getPlot(plotId))! as ReadonlyPlot;\n // if (!plot) continue;\n // if (plot.plotSceneType === PlotSceneType.Message && plot.plotSceneTypeId === this._sceneModel.id) {\n // lastPlotId = plotId;\n // if (i === records.length - 1) continue;\n // if (pushHistory && !hasHistory) {\n // historyPlots.unshift({ key: (this._itemKey++).toString(), type: \"history\" });\n // hasHistory = true;\n // }\n // let select: number | undefined = undefined;\n // if (item.s) select = item.s[j];\n // let customData: object | undefined = undefined;\n // if (item.c) customData = item.c[j];\n // let vm = this.convertPlotToViewModel(plot, select, customData);\n // if (vm) historyPlots.unshift(vm);\n // } else { // TODO process branch plots if needed.\n // if (!pushHistory && !hasHistory) {\n // pushHistory = true;\n // }\n // }\n // if (plot.id === this._sceneModel.firstPlot.id) {\n // break;\n // }\n // }\n // if (historyPlots.length > MAX_HISTORY) {\n // break;\n // }\n // }\n // this._chatList = historyPlots;\n // // this._view.updateProps({ items: historyPlots, historyMsgCount: this._chatList.length });\n // this._historyMessages[this._sceneModel.id] = this._chatList;\n // }\n\n onResumeChatListView = () => {\n this._chatList = [];\n // this._sceneModel = undefined;\n this._historyMessages = {};\n this._currPlot = undefined;\n this._currPlotShowed = false;\n this._itemKey = 0;\n this._plotExecuting = false;\n this._excutedPlots = {};\n this._selectIndex = undefined;\n this._plotChangeLike = 0;\n this._viewProps = {\n msgSceneId: -1, title: \"\",\n items: [], historyMsgCount: 0,\n onCloseBtnClick: this.closeAction,\n onSelectChapter: this.selectChapter,\n onCompletePlot: this.completePlot,\n onSelectSentence: this.selectSentence,\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible,\n onNameTitleClick: this.onNameTitleClick,\n backRedDot: !this._currPlot\n };\n this._view.setProps(this._viewProps);\n\n // this._viewProps = [];\n\n this._gLevelMax = -1;\n\n this._cachePId = NaN;\n this.view.resumeAll();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DatingEventViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA6C;AAC7C,+DAAqD;AACrD,0CAA0E;AAC1E,0DAAoD;AACpD,2EAAkF;AAClF,iFAA8E;AAC9E,2EAAwE;AACxE,mEAAgE;AAChE,qEAAkE;AAClE,oDAAiD;AACjD,uCAA8K;AAC9K,iDAA0C;AAC1C,qEAA8D;AAC9D,6EAA6F;AAC7F,+EAA4E;AAC5E,mEAAgE;AAChE,sEAA0E;AAC1E,8CAAuC;AAEvC,wEAAmH;AACnH,kEAA0G;AAE1G,yEAAkE;AAClE,iEAA8D;AAC9D,qEAA8D;AAC9D,6DAA+E;AAG/E;IAAA,IAAqB,wBAAwB,GAA7C,MAAqB,wBAAyB,SAAQ,yBAAqC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3B;aACJ;YACD,MAAM,+CAAsB,CAAC,aAAa,CAAC,YAAY,EAAC,CAAC,KAAY,EAAC,WAAkB,EAAC,EAAE;gBACvF,IAAI,YAAY,GAAG,+CAAsB,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,CAAC;gBACtF,IAAI,YAAY,IAAI,yCAAiB,CAAC,GAAG,IAAI,YAAY,IAAI,yCAAiB,CAAC,UAAU,EAAE;oBACvF,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;iBAC/E;YACL,CAAC,CAAC,CAAC;YACH,MAAM,+CAAsB,CAAC,cAAc,EAAE,CAAC;YAC9C,mCAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAC/C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;KA8DJ,CAAA;IAtlBY,uBAAuB;QADnC,wCAAe,CAAC,2CAAsB,CAAC;OAC3B,uBAAuB,CAslBnC;IAAD,8BAAC;KAAA;AAtlBY,0DAAuB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, PlotManager, ReadonlyPlots } from \"../../../avg/AVG\";\nimport { DateType } from \"../../../avg/EditorEnums\";\nimport { Presenter, Subpresenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { GameConfig } from \"../../../GameConfig\";\nimport { CommonLocation, DatePrefabDirectType, DirectionType, EventLocation, EventOperationType, GuideLocation, GuideOperationType, GuideState, StepType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { ExtraStoryModelManager } from \"../../model/ExtraStoryModelManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter, RegSubpresenter } from \"../PresenterCCViewFactory\";\nimport SectionBtn from \"../SectionBtn\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { DatingEventItemProps, DatingEventSubview, DatingEventSubviewType } from \"../view/type/DatingEventSubview\";\nimport { DatingEventView, DatingEventViewProps, DatingEventViewType } from \"../view/type/DatingEventView\";\nimport { ExtraPlotViewProps } from \"../view/type/ExtraPlotView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport ExtraPlotViewPresenter from \"./ExtraPlotViewPresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\n\n@RegPresenter(DatingEventViewType)\nexport default class DatingEventViewPresenter extends Presenter<undefined, DatingEventView> {\n static uuid = \"DatingEventViewPresenter\";\n\n private _viewProps: DatingEventViewProps;\n constructor() {\n super();\n this._viewProps = {\n }\n }\n\n onOpen() {\n super.onOpen(undefined);\n this._disposable.add(GameModelManager.ShowDatingEventArrowGuide.on(this.onShowDatingEventArrowGuide));\n this.onShow();\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n }\n\n onShow() {\n super.onShow();\n this.view.setProps(this._viewProps);\n if (GameConfig.debug) {\n this.view.showRoleLikeLabel();\n this.view.showMaskLabel();\n }\n }\n\n onClose() {\n super.onClose();\n }\n\n onShowDatingEventArrowGuide = (isShow: boolean, wordPos?: cc.Vec3) => {\n this.view.showArrowGuide(isShow, wordPos);\n }\n}\n\n@RegSubpresenter(DatingEventSubviewType)\nexport class DatingEventSubpresenter extends Subpresenter<DatingEventSubview> {\n // private _items: DatingEventItemProps[];\n private _lineStyle: 0 | 1 = 0;\n private _modelMap: { [key: string]: DatingEventSceneModel } = {};\n private _dailySceneNum: number = -1;\n private _curChapterIndex: number = 1;\n private _maxChapterIndex: number = 1;\n private _maxChapterIsChange: boolean = false;\n private _isStartBranches: boolean = false;\n private _clickKey: string = \"\";\n isReview: boolean;\n\n private sceneModelToViewModel(item: DatingEventSceneModel, index: number): DatingEventItemProps {\n this._modelMap[item.id.toString()] = item;\n // let cfg = ConfigManager.getConfig(dateSceneConfig, item.id);\n // let progress = GameModelManager.getDateSceneKeyPlotsProgress(item.id);\n let direct = DatePrefabDirectType.Left;\n if (this._curChapterIndex % 2 === 1) {\n direct = (index + 1) % 2 === 1 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n } else {\n direct = (index + 1) % 2 === 0 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n }\n return {\n key: item.id + \"\",\n title: GameModelManager.getConfigLanguageTxt(item.config.name),\n // date: item.config.date,\n // time: item.config.time,\n status: item.status,\n coverImage: \"textures/dating_event/cover/\" + item.config.background,\n // lineStyle: this._lineStyle,\n // progress: progress,\n // showItemClear: item.status === DatingEventStatus.Completed && progress === 100,\n // showProgress: item.status === DatingEventStatus.Completed,\n // firstCostNum: cfg.first_energy_cost,\n // reviewCostNum: cfg.memory_energy_cost,\n itype: direct\n }\n }\n\n refreshItems() {\n let items: DatingEventItemProps[] = [];\n let srcModels = GameModelManager.getMainDatingEventScenesModelByChapterindex(this._curChapterIndex);\n // let srcModels = GameModelManager.getMainDatingEventScenesModel();\n for (let i = srcModels.length - 1; i >= 0; i--) {\n items.push(this.sceneModelToViewModel(srcModels[i], i));\n }\n // if (items.length) {\n // items[0].lineStyle = \"none\";\n // }\n //count dailySceneNum from table\n if (this._dailySceneNum == -1) {\n let maxItemsNum: number = 0;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfg) {\n let c = cfg[id];\n if (c) {\n maxItemsNum++;\n }\n }\n this._dailySceneNum = maxItemsNum;\n }\n let showContinue = false;\n if (srcModels.length !== 0) {\n let c = 0;\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfgs) {\n let cfg = cfgs[id];\n if (cfg) {\n c++;\n }\n }\n let last = srcModels[srcModels.length - 1];\n showContinue = last.id === c;\n }\n this.view.setProps({\n items,\n onItemClick: this.onItemAdModeClick,\n // onItemClick: this.onItemEnergyCostClick,\n showContinue: showContinue,\n chapterName: this.getChapterName(this._curChapterIndex),\n showLeft: this._curChapterIndex !== 1,\n showRight: this._curChapterIndex !== this._maxChapterIndex,\n showChapterClear: this.checkChapterClear(items, this._curChapterIndex),\n onOptionChapter: this.onOptionChapter,\n chapterIndex: this._curChapterIndex,\n onScrollBegin: this.onScrollBegin,\n onScrollEnd: this.onScrollEnd,\n onLeftButtonClickCallback: this.onLeftButtonClickCallback,\n onRightButtonClickCallback: this.onRightButtonClickCallback,\n onNameButtonClickCallback: this.onNameButtonClickCallback,\n onExtraPlotButtonClickCallback: this.onExtraPlotButtonClickCallback,\n onCloseSectionViewCallBack: this.onCloseSectionViewCallBack\n });\n }\n\n onScrollBegin = () => {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n\n onScrollEnd = () => {\n this.refreshArrowGuide();\n }\n\n checkChapterClear(items: DatingEventItemProps[], chapterIndex: number): boolean {\n let showClear: boolean = true;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let cnt = 0;\n for (let id in cfg) {\n let c = cfg[id]\n if (c && c.chapter_index === chapterIndex) {\n cnt++;\n }\n }\n if (cnt !== items.length) {\n return false;\n }\n // for (let i = 0; i < items.length; i++) {\n // if (items[i].showItemClear === false) {\n // showClear = false;\n // break;\n // }\n // }\n return showClear;\n }\n\n getChapterName(chapterIndex: number): string {\n chapterIndex -= 1;\n let nameArr: string[] =\n [\n \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", \"十\",\n \"十一\", \"十二\", \"十三\", \"十四\", \"十五\", \"十六\", \"十七\", \"十八\", \"十九\", \"二十\"\n ];\n let name = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CHAPTER_NAME), nameArr[chapterIndex]);\n return name\n }\n\n onItemAdModeClick = (key: string) => {\n GameModelManager.setGuideEventItemRecord(key, GuideState.Complete);\n let m = this._modelMap[key];\n let hasRecord = this.checkIsSceneHasAdRecord(m.id);\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n if (m.status !== DatingEventStatus.Completed) {\n GameDotMgr.getInstance().dotClickUI(\"click_date_card\" + m.config.id);\n }\n let showAdAlert: boolean = !(removeAdCardNum > 0) && !hasRecord && m.config.ads === 1 && m.status == DatingEventStatus.New;\n if (showAdAlert) {\n let temp: AlertDialogViewProps =\n {\n dataptr: { key },\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WAIT_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SHOW_AD_UNLOCK_DATE_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n location: CommonLocation.Event,\n callback: this.showAdCallBack,\n hasBanner: false,\n isthreebtn: true\n };\n console.log(\"Push AlertDialogViewPros data end\");\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n console.log(\"pushPresenter=========\");\n } else {\n this.enterDatingScene(key);\n }\n }\n\n showAdCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n //if (type === \"video\" || channel == \"dummy\") {\n if (true) {\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n } else {\n UIManager.popPresenter();\n setTimeout(() => {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"今天广告君太累了,休息啦~~可以点击去除广告,或者明天再来哦(*•̀ᴗ•́*)و ̑̑\",\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n callback: () => {\n\n },\n hasBanner: false,\n isadlimit: true\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }, 500);\n }\n } else {\n if (type === \"video\") {\n UIManager.showToast(\"解锁失败,请完整观看视频,不可点击跳过\");\n }\n }\n }\n\n checkIsSceneHasAdRecord(id: number): boolean {\n let ret: boolean = false;\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n if (record) {\n let a: number[] = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n ret = i !== -1;\n }\n return ret;\n }\n\n pushSceneAdToRecord(id: number) {\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n let isExsit: boolean = false;\n if (record) {\n a = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n if (i >= 0) {\n isExsit = true;\n }\n }\n if (!isExsit) {\n a.push(id);\n a.reverse();\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n GameRecord.autoSave();\n }\n }\n\n enterDatingScene(key: string) {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n UIManager.pushPresenter(DatingScenePresenter, this._modelMap[key], true);\n }\n\n onOwnerShow() {\n if (!this.view.isHidden) {\n this.selectCurChapter();\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n this.onCloseSectionViewCallBack();\n }\n }\n\n onOwnerEnterForeground() {\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n }\n if (this._maxChapterIsChange) {\n this.selectCurChapter();\n }\n }\n\n onOpen() {\n super.onOpen();\n this._disposable.add(GameModelManager.CheckDateGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.RefreshDateSceneProgress.on(this.onRefreshDateSceneProgress));\n this._disposable.add(GameModelManager.ForceClickDatingItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n this._disposable.add(GameModelManager.CloseDatingSceneView.on(this.onCloseDatingSceneView));\n this._disposable.add(GameModelManager.CloseExtraSceneView.on(this.onCloseExtraSceneView));\n this._disposable.add(GameModelManager.OpenExtraPlotView.on(this.onExtraPlotButtonClickCallback));\n // let isNeedEnterCurChapter = GameModelManager.checkIsNeedEnterCurDateChapter();\n // if (isNeedEnterCurChapter) {\n // this.selectCurChapter();\n // }\n this.selectCurChapter();\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.onShow();\n }\n }\n\n async onShow() {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.checkGuideItem();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n await this.updateExtraPlotButtonRedDot();\n }\n\n onHide() {\n\n }\n\n selectCurChapter() {\n let models = GameModelManager.getMainDatingEventScenesModel();\n if (models && models.length) {\n let last = models[models.length - 1];\n this._curChapterIndex = last.config.chapter_index;\n if (this._curChapterIndex !== 1) {\n GameModelManager.setNotNeedEnterCurDateChapter();\n }\n }\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getEventItemGuideKey();\n if (k && \"\" !== k) {\n let node = this.view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemAdModeClick(k);\n // this.onItemEnergyCostClick(k);\n GameModelManager.setGuideEventItemRecord(k, GuideState.Complete);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Show, GuideLocation.EventItem);\n }\n }\n this.refreshArrowGuide();\n }\n\n refreshMaxChapterIndex() {\n let maxChapterIndex = this._maxChapterIndex;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let dId = arr[arr.length - 1].id;\n let cfg = ConfigManager.getConfig(dateSceneConfig, dId);\n this._maxChapterIndex = cfg.chapter_index;\n }\n this._maxChapterIsChange = maxChapterIndex == this._maxChapterIndex ? false : true;\n }\n\n onOptionChapter = (stepType: StepType) => {\n let tempIndex = stepType === StepType.Add ? this._curChapterIndex + 1 : this._curChapterIndex - 1;\n this._curChapterIndex = tempIndex >= 1 && tempIndex <= this._maxChapterIndex ? tempIndex : this._curChapterIndex;\n this.refreshItems();\n }\n\n onRefreshDateSceneProgress = () => {\n this.refreshItems();\n }\n\n costEnergyCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n let oprType = this.isReview ? EventOperationType.memory : EventOperationType.event;\n let location = EventLocation.ClickEnergyCost;\n GameDotMgr.getInstance().dotEvent(oprType, location);\n let role = GameModelManager.getPlayerData();\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n }\n }\n\n\n refreshArrowGuide() {\n let srcModels = GameModelManager.getMainDatingEventScenesModelByChapterindex(this._curChapterIndex);\n if (!srcModels || srcModels.length === 0) {\n return;\n }\n let model = srcModels[srcModels.length - 1];\n if (model.status !== DatingEventStatus.Completed) {\n let key = model.id + \"\";\n let node = this.view.getItemNode(key);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n //世界坐标y是否在屏幕区域内\n if (wp.y > 120 && wp.y < cc.winSize.height - 200) {\n GameModelManager.ShowDatingEventArrowGuide.emit(true, cc.v3(wp.x, wp.y, 0));\n } else {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n }\n } else {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"DatingEventSubpresenter onForceClickItem id = \", id);\n let k = id + \"\";\n if (!this._modelMap || !this._modelMap[k]) {\n return;\n }\n this._clickKey = k;\n if (!this._isStartBranches) {\n this.onItemAdModeClick(k);\n } else {\n //@ts-ignore\n this.view.schedule(this.checkCanEnterDatingScene, 0.1);\n }\n }\n\n checkCanEnterDatingScene = () => {\n if (!this._isStartBranches) {\n this.onItemAdModeClick(this._clickKey);\n //@ts-ignore\n this.view.unschedule(this.checkCanEnterDatingScene);\n }\n }\n\n onRefreshAllStatus = () => {\n this.selectCurChapter();\n this.onShow();\n }\n\n onCloseDatingSceneView = (eventId: number) => {\n // this.view.setCurrEventId(eventId);\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (cfg[id].id == eventId) {\n this._curChapterIndex = cfg[id].chapter_index;\n }\n }\n this.refreshItems();\n this.checkGuideItem();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n }\n\n onCloseExtraSceneView = async () => {\n await this.updateExtraPlotButtonRedDot();\n }\n\n changeButtonState() {\n let nameSprite = this.view.getNameButton().node.getComponent(cc.Sprite);\n nameSprite.scheduleOnce(async () => {\n let spritePath = \"textures/main_view/dating/chapterIcon/chapter\";\n nameSprite.spriteFrame = await ResUtils.loadRes(spritePath + this._curChapterIndex, cc.SpriteFrame);\n if (this._curChapterIndex == this._maxChapterIndex) {\n this.view.getRightButton().node.opacity = 0;\n } else {\n this.view.getRightButton().node.opacity = 255;\n }\n if (this._curChapterIndex == 1) {\n this.view.getLeftButton().node.opacity = 0;\n } else {\n this.view.getLeftButton().node.opacity = 255;\n }\n });\n }\n\n checkLastChapterIsOver() {\n let isOver = false;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let lastChapter = arr[arr.length - 1];\n isOver = lastChapter.status == DatingEventStatus.Completed ? true : false;\n }\n if (!isOver && this._curChapterIndex !== this._maxChapterIndex) {\n this.view.getRightButton().node.getChildByName(\"RedDotSprite\").active = true;\n this.startButtonAction(this.view.getRightButton().node);\n } else {\n this.view.getRightButton().node.getChildByName(\"RedDotSprite\").active = false;\n this.stopButtonAction(this.view.getRightButton().node);\n }\n }\n\n startButtonAction(node: cc.Node) {\n let fadeInAct = cc.fadeTo(1, 255);\n let fadeOutAct = cc.fadeTo(1, 100);\n let scaleInAct = cc.scaleTo(1, 1.2);\n let scaleOutAct = cc.scaleTo(1, 1);\n node.stopAllActions();\n node.runAction(cc.repeatForever(cc.sequence(fadeInAct, fadeOutAct)));\n node.runAction(cc.repeatForever(cc.sequence(scaleInAct, scaleOutAct)));\n }\n\n stopButtonAction(node: cc.Node) {\n node.stopAllActions();\n node.scale = 1;\n node.opacity = 255;\n }\n\n getAllChapterInfo(): { chapterIndex: number, chapterName: string }[] {\n let chapterIndex: number[] = [];\n let chapterName: string[] = [];\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (chapterIndex.indexOf(cfg[id].chapter_index) == -1 && cfg[id].chapter_index <= this._maxChapterIndex) {\n chapterIndex.push(cfg[id].chapter_index);\n chapterName.push(cfg[id].chapter_name);\n }\n }\n let chapterInfo: { chapterIndex: number, chapterName: string }[] = [];\n for (let i = 0; i < chapterIndex.length; i++) {\n if (chapterName[i]) {\n chapterInfo.push({\n chapterIndex: chapterIndex[i],\n chapterName: chapterName[i]\n });\n }\n }\n return chapterInfo;\n }\n\n async updateExtraPlotButtonRedDot() {\n //return;\n this._isStartBranches = true;\n this.view.getExtraPlotButton().getChildByName(\"RedDotSprite\").active = false;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let startPlotIds: number[] = [];\n let cfgIds:number[] = [];\n for (const id in cfg) {\n if (cfg[id].DateType == DateType.Date_Sp) {\n startPlotIds.push(cfg[id].start_plot_id);\n cfgIds.push(Number(id));\n }\n }\n await ExtraStoryModelManager.startBranches(startPlotIds,(index:number,startPlotId:number)=>{\n let branchStatus = ExtraStoryModelManager.getBranchStatus(cfgIds[index], startPlotId);\n if (branchStatus == DatingEventStatus.New || branchStatus == DatingEventStatus.InProgress) {\n this.view.getExtraPlotButton().getChildByName(\"RedDotSprite\").active = true;\n }\n });\n await ExtraStoryModelManager.exitExtraStory();\n GameModelManager.setIsMainPlotSceneType(false);\n this._isStartBranches = false;\n }\n\n onLeftButtonClickCallback = () => {\n GameModelManager.setIsMainPlotSceneType(false);\n if (this._curChapterIndex == 1) {\n this.view.getLeftButton().node.opacity = 0;\n } else {\n this._curChapterIndex--;\n this.view.getLeftButton().node.opacity = 255;\n this.onShow();\n }\n }\n\n onRightButtonClickCallback = () => {\n GameModelManager.setIsMainPlotSceneType(false);\n if (this._curChapterIndex == this._maxChapterIndex) {\n this.view.getRightButton().node.opacity = 0;\n } else {\n this._curChapterIndex++;\n this.view.getRightButton().node.opacity = 255;\n this.onShow();\n }\n }\n\n onNameButtonClickCallback = () => {\n let allChapterInfo = this.getAllChapterInfo();\n // console.log(\"allChapterInfo\", allChapterInfo);\n this.view.getScrollViewRoot().active = true;\n let scrollView = this.view.getScrollViewRoot().getChildByName(\"ScrollView\");\n scrollView.scaleY = 0;\n cc.tween(scrollView)\n .to(0.2, { scaleY: 1 })\n .call(() => {\n this.view.getScrollViewContent().removeAllChildren();\n for (let i = 0; i < allChapterInfo.length; ++i) {\n let btn = cc.instantiate(this.view.getSectionBtn());\n let isCurrChapter = allChapterInfo[i].chapterIndex == this._curChapterIndex;\n btn.getComponent(SectionBtn).setData(allChapterInfo[i].chapterIndex, allChapterInfo[i].chapterName, isCurrChapter, () => {\n this._curChapterIndex = allChapterInfo[i].chapterIndex;\n this.onShow();\n this.onCloseSectionViewCallBack();\n });\n btn.parent = this.view.getScrollViewContent();\n }\n })\n .start();\n }\n\n onCloseSectionViewCallBack = () => {\n this.view.getScrollViewContent().removeAllChildren();\n let scrollView = this.view.getScrollViewRoot().getChildByName(\"ScrollView\");\n cc.tween(scrollView)\n .to(0.2, { scaleY: 0 })\n .call(() => {\n this.view.getScrollViewRoot().active = false;\n })\n .start();\n }\n\n onExtraPlotButtonClickCallback = () => {\n UIManager.pushPresenter(ExtraPlotViewPresenter, undefined);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DatingEventViewPresenter.ts"],"names":[],"mappings":";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AAC,kBAAkB,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;iBAC/E;YACL,CAAC,CAAC,CAAC;YACH,MAAM,+CAAsB,CAAC,cAAc,EAAE,CAAC;YAC9C,mCAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAC/C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAClC,CAAC;KA0DJ,CAAA;IAtkBY,uBAAuB;QADnC,wCAAe,CAAC,2CAAsB,CAAC;OAC3B,uBAAuB,CAskBnC;IAAD,8BAAC;KAAA;AAtkBY,0DAAuB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, PlotManager, ReadonlyPlots } from \"../../../avg/AVG\";\nimport { DateType } from \"../../../avg/EditorEnums\";\nimport { Presenter, Subpresenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { GameConfig } from \"../../../GameConfig\";\nimport { CommonLocation, DatePrefabDirectType, DirectionType, EventLocation, EventOperationType, GuideLocation, GuideOperationType, GuideState, StepType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { ExtraStoryModelManager } from \"../../model/ExtraStoryModelManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter, RegSubpresenter } from \"../PresenterCCViewFactory\";\nimport SectionBtn from \"../SectionBtn\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { DatingEventItemProps, DatingEventSubview, DatingEventSubviewType } from \"../view/type/DatingEventSubview\";\nimport { DatingEventView, DatingEventViewProps, DatingEventViewType } from \"../view/type/DatingEventView\";\nimport { ExtraPlotViewProps } from \"../view/type/ExtraPlotView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport ExtraPlotViewPresenter from \"./ExtraPlotViewPresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\n\n@RegPresenter(DatingEventViewType)\nexport default class DatingEventViewPresenter extends Presenter<undefined, DatingEventView> {\n static uuid = \"DatingEventViewPresenter\";\n\n private _viewProps: DatingEventViewProps;\n constructor() {\n super();\n this._viewProps = {\n }\n }\n\n onOpen() {\n super.onOpen(undefined);\n this._disposable.add(GameModelManager.ShowDatingEventArrowGuide.on(this.onShowDatingEventArrowGuide));\n this.onShow();\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n }\n\n onShow() {\n super.onShow();\n this.view.setProps(this._viewProps);\n if (GameConfig.debug) {\n this.view.showRoleLikeLabel();\n this.view.showMaskLabel();\n }\n }\n\n onClose() {\n super.onClose();\n }\n\n onShowDatingEventArrowGuide = (isShow: boolean, wordPos?: cc.Vec3) => {\n this.view.showArrowGuide(isShow, wordPos);\n }\n}\n\n@RegSubpresenter(DatingEventSubviewType)\nexport class DatingEventSubpresenter extends Subpresenter<DatingEventSubview> {\n // private _items: DatingEventItemProps[];\n private _lineStyle: 0 | 1 = 0;\n private _modelMap: { [key: string]: DatingEventSceneModel } = {};\n private _dailySceneNum: number = -1;\n private _curChapterIndex: number = 1;\n private _maxChapterIndex: number = 1;\n private _maxChapterIsChange: boolean = false;\n private _isStartBranches: boolean = false;\n private _clickKey: string = \"\";\n isReview: boolean;\n\n private sceneModelToViewModel(item: DatingEventSceneModel, index: number): DatingEventItemProps {\n this._modelMap[item.id.toString()] = item;\n // let cfg = ConfigManager.getConfig(dateSceneConfig, item.id);\n // let progress = GameModelManager.getDateSceneKeyPlotsProgress(item.id);\n let direct = DatePrefabDirectType.Left;\n if (this._curChapterIndex % 2 === 1) {\n direct = (index + 1) % 2 === 1 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n } else {\n direct = (index + 1) % 2 === 0 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n }\n return {\n key: item.id + \"\",\n title: GameModelManager.getConfigLanguageTxt(item.config.name),\n // date: item.config.date,\n // time: item.config.time,\n status: item.status,\n coverImage: \"textures/dating_event/cover/\" + item.config.background,\n // lineStyle: this._lineStyle,\n // progress: progress,\n // showItemClear: item.status === DatingEventStatus.Completed && progress === 100,\n // showProgress: item.status === DatingEventStatus.Completed,\n // firstCostNum: cfg.first_energy_cost,\n // reviewCostNum: cfg.memory_energy_cost,\n itype: direct\n }\n }\n\n refreshItems() {\n let items: DatingEventItemProps[] = [];\n let srcModels = GameModelManager.getMainDatingEventScenesModelByChapterindex(this._curChapterIndex);\n // let srcModels = GameModelManager.getMainDatingEventScenesModel();\n for (let i = srcModels.length - 1; i >= 0; i--) {\n items.push(this.sceneModelToViewModel(srcModels[i], i));\n }\n // if (items.length) {\n // items[0].lineStyle = \"none\";\n // }\n //count dailySceneNum from table\n if (this._dailySceneNum == -1) {\n let maxItemsNum: number = 0;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfg) {\n let c = cfg[id];\n if (c) {\n maxItemsNum++;\n }\n }\n this._dailySceneNum = maxItemsNum;\n }\n let showContinue = false;\n if (srcModels.length !== 0) {\n let c = 0;\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfgs) {\n let cfg = cfgs[id];\n if (cfg) {\n c++;\n }\n }\n let last = srcModels[srcModels.length - 1];\n showContinue = last.id === c;\n }\n this.view.setProps({\n items,\n onItemClick: this.onItemAdModeClick,\n // onItemClick: this.onItemEnergyCostClick,\n showContinue: showContinue,\n chapterName: this.getChapterName(this._curChapterIndex),\n showLeft: this._curChapterIndex !== 1,\n showRight: this._curChapterIndex !== this._maxChapterIndex,\n showChapterClear: this.checkChapterClear(items, this._curChapterIndex),\n onOptionChapter: this.onOptionChapter,\n chapterIndex: this._curChapterIndex,\n onScrollBegin: this.onScrollBegin,\n onScrollEnd: this.onScrollEnd,\n onLeftButtonClickCallback: this.onLeftButtonClickCallback,\n onRightButtonClickCallback: this.onRightButtonClickCallback,\n onNameButtonClickCallback: this.onNameButtonClickCallback,\n onCloseSectionViewCallBack: this.onCloseSectionViewCallBack\n });\n }\n\n onScrollBegin = () => {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n\n onScrollEnd = () => {\n this.refreshArrowGuide();\n }\n\n checkChapterClear(items: DatingEventItemProps[], chapterIndex: number): boolean {\n let showClear: boolean = true;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let cnt = 0;\n for (let id in cfg) {\n let c = cfg[id]\n if (c && c.chapter_index === chapterIndex) {\n cnt++;\n }\n }\n if (cnt !== items.length) {\n return false;\n }\n // for (let i = 0; i < items.length; i++) {\n // if (items[i].showItemClear === false) {\n // showClear = false;\n // break;\n // }\n // }\n return showClear;\n }\n\n getChapterName(chapterIndex: number): string {\n chapterIndex -= 1;\n let nameArr: string[] =\n [\n \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", \"十\",\n \"十一\", \"十二\", \"十三\", \"十四\", \"十五\", \"十六\", \"十七\", \"十八\", \"十九\", \"二十\"\n ];\n let name = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CHAPTER_NAME), nameArr[chapterIndex]);\n return name\n }\n\n onItemAdModeClick = (key: string) => {\n GameModelManager.setGuideEventItemRecord(key, GuideState.Complete);\n let m = this._modelMap[key];\n let hasRecord = this.checkIsSceneHasAdRecord(m.id);\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n if (m.status !== DatingEventStatus.Completed) {\n GameDotMgr.getInstance().dotClickUI(\"click_date_card\" + m.config.id);\n }\n let showAdAlert: boolean = !(removeAdCardNum > 0) && !hasRecord && m.config.ads === 1 && m.status == DatingEventStatus.New;\n if (showAdAlert) {\n let temp: AlertDialogViewProps =\n {\n dataptr: { key },\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WAIT_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SHOW_AD_UNLOCK_DATE_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n location: CommonLocation.Event,\n callback: this.showAdCallBack,\n hasBanner: false,\n isthreebtn: true\n };\n console.log(\"Push AlertDialogViewPros data end\");\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n console.log(\"pushPresenter=========\");\n } else {\n this.enterDatingScene(key);\n }\n }\n\n showAdCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n //if (type === \"video\" || channel == \"dummy\") {\n if (true) {\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n } else {\n UIManager.popPresenter();\n setTimeout(() => {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"今天广告君太累了,休息啦~~可以点击去除广告,或者明天再来哦(*•̀ᴗ•́*)و ̑̑\",\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n callback: () => {\n\n },\n hasBanner: false,\n isadlimit: true\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }, 500);\n }\n } else {\n if (type === \"video\") {\n UIManager.showToast(\"解锁失败,请完整观看视频,不可点击跳过\");\n }\n }\n }\n\n checkIsSceneHasAdRecord(id: number): boolean {\n let ret: boolean = false;\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n if (record) {\n let a: number[] = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n ret = i !== -1;\n }\n return ret;\n }\n\n pushSceneAdToRecord(id: number) {\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n let isExsit: boolean = false;\n if (record) {\n a = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n if (i >= 0) {\n isExsit = true;\n }\n }\n if (!isExsit) {\n a.push(id);\n a.reverse();\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n GameRecord.autoSave();\n }\n }\n\n enterDatingScene(key: string) {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n UIManager.pushPresenter(DatingScenePresenter, this._modelMap[key], true);\n }\n\n onOwnerShow() {\n if (!this.view.isHidden) {\n this.selectCurChapter();\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n this.onCloseSectionViewCallBack();\n }\n }\n\n onOwnerEnterForeground() {\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n }\n if (this._maxChapterIsChange) {\n this.selectCurChapter();\n }\n }\n\n onOpen() {\n super.onOpen();\n this._disposable.add(GameModelManager.CheckDateGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.ForceClickDatingItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n this._disposable.add(GameModelManager.CloseDatingSceneView.on(this.onCloseDatingSceneView));\n this._disposable.add(GameModelManager.CloseExtraSceneView.on(this.onCloseExtraSceneView));\n\n this.selectCurChapter();\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.onShow();\n }\n }\n\n async onShow() {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n this.checkGuideItem();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n await this.updateExtraPlotButtonRedDot();\n }\n\n onHide() {\n\n }\n\n selectCurChapter() {\n let models = GameModelManager.getMainDatingEventScenesModel();\n if (models && models.length) {\n let last = models[models.length - 1];\n this._curChapterIndex = last.config.chapter_index;\n if (this._curChapterIndex !== 1) {\n GameModelManager.setNotNeedEnterCurDateChapter();\n }\n }\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getEventItemGuideKey();\n if (k && \"\" !== k) {\n let node = this.view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemAdModeClick(k);\n // this.onItemEnergyCostClick(k);\n GameModelManager.setGuideEventItemRecord(k, GuideState.Complete);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n this.refreshArrowGuide();\n }\n\n refreshMaxChapterIndex() {\n let maxChapterIndex = this._maxChapterIndex;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let dId = arr[arr.length - 1].id;\n let cfg = ConfigManager.getConfig(dateSceneConfig, dId);\n this._maxChapterIndex = cfg.chapter_index;\n }\n this._maxChapterIsChange = maxChapterIndex == this._maxChapterIndex ? false : true;\n }\n\n onOptionChapter = (stepType: StepType) => {\n let tempIndex = stepType === StepType.Add ? this._curChapterIndex + 1 : this._curChapterIndex - 1;\n this._curChapterIndex = tempIndex >= 1 && tempIndex <= this._maxChapterIndex ? tempIndex : this._curChapterIndex;\n this.refreshItems();\n }\n\n costEnergyCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n let oprType = this.isReview ? EventOperationType.memory : EventOperationType.event;\n let location = EventLocation.ClickEnergyCost;\n let role = GameModelManager.getPlayerData();\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n }\n }\n\n\n refreshArrowGuide() {\n let srcModels = GameModelManager.getMainDatingEventScenesModelByChapterindex(this._curChapterIndex);\n if (!srcModels || srcModels.length === 0) {\n return;\n }\n let model = srcModels[srcModels.length - 1];\n if (model.status !== DatingEventStatus.Completed) {\n let key = model.id + \"\";\n let node = this.view.getItemNode(key);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n //世界坐标y是否在屏幕区域内\n if (wp.y > 120 && wp.y < cc.winSize.height - 200) {\n GameModelManager.ShowDatingEventArrowGuide.emit(true, cc.v3(wp.x, wp.y, 0));\n } else {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n }\n } else {\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n }\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"DatingEventSubpresenter onForceClickItem id = \", id);\n let k = id + \"\";\n if (!this._modelMap || !this._modelMap[k]) {\n return;\n }\n this._clickKey = k;\n if (!this._isStartBranches) {\n this.onItemAdModeClick(k);\n } else {\n //@ts-ignore\n this.view.schedule(this.checkCanEnterDatingScene, 0.1);\n }\n }\n\n checkCanEnterDatingScene = () => {\n if (!this._isStartBranches) {\n this.onItemAdModeClick(this._clickKey);\n //@ts-ignore\n this.view.unschedule(this.checkCanEnterDatingScene);\n }\n }\n\n onRefreshAllStatus = () => {\n this.selectCurChapter();\n this.onShow();\n }\n\n onCloseDatingSceneView = (eventId: number) => {\n // this.view.setCurrEventId(eventId);\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (cfg[id].id == eventId) {\n this._curChapterIndex = cfg[id].chapter_index;\n }\n }\n this.refreshItems();\n this.checkGuideItem();\n this.refreshArrowGuide();\n this.changeButtonState();\n this.checkLastChapterIsOver();\n }\n\n onCloseExtraSceneView = async () => {\n await this.updateExtraPlotButtonRedDot();\n }\n\n changeButtonState() {\n let nameSprite = this.view.getNameButton().node.getComponent(cc.Sprite);\n nameSprite.scheduleOnce(async () => {\n let spritePath = \"textures/main_view/dating/chapterIcon/chapter\";\n nameSprite.spriteFrame = await ResUtils.loadRes(spritePath + this._curChapterIndex, cc.SpriteFrame);\n if (this._curChapterIndex == this._maxChapterIndex) {\n this.view.getRightButton().node.opacity = 0;\n } else {\n this.view.getRightButton().node.opacity = 255;\n }\n if (this._curChapterIndex == 1) {\n this.view.getLeftButton().node.opacity = 0;\n } else {\n this.view.getLeftButton().node.opacity = 255;\n }\n });\n }\n\n checkLastChapterIsOver() {\n let isOver = false;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let lastChapter = arr[arr.length - 1];\n isOver = lastChapter.status == DatingEventStatus.Completed ? true : false;\n }\n if (!isOver && this._curChapterIndex !== this._maxChapterIndex) {\n this.view.getRightButton().node.getChildByName(\"RedDotSprite\").active = true;\n this.startButtonAction(this.view.getRightButton().node);\n } else {\n this.view.getRightButton().node.getChildByName(\"RedDotSprite\").active = false;\n this.stopButtonAction(this.view.getRightButton().node);\n }\n }\n\n startButtonAction(node: cc.Node) {\n let fadeInAct = cc.fadeTo(1, 255);\n let fadeOutAct = cc.fadeTo(1, 100);\n let scaleInAct = cc.scaleTo(1, 1.2);\n let scaleOutAct = cc.scaleTo(1, 1);\n node.stopAllActions();\n node.runAction(cc.repeatForever(cc.sequence(fadeInAct, fadeOutAct)));\n node.runAction(cc.repeatForever(cc.sequence(scaleInAct, scaleOutAct)));\n }\n\n stopButtonAction(node: cc.Node) {\n node.stopAllActions();\n node.scale = 1;\n node.opacity = 255;\n }\n\n getAllChapterInfo(): { chapterIndex: number, chapterName: string }[] {\n let chapterIndex: number[] = [];\n let chapterName: string[] = [];\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (chapterIndex.indexOf(cfg[id].chapter_index) == -1 && cfg[id].chapter_index <= this._maxChapterIndex) {\n chapterIndex.push(cfg[id].chapter_index);\n chapterName.push(cfg[id].chapter_name);\n }\n }\n let chapterInfo: { chapterIndex: number, chapterName: string }[] = [];\n for (let i = 0; i < chapterIndex.length; i++) {\n if (chapterName[i]) {\n chapterInfo.push({\n chapterIndex: chapterIndex[i],\n chapterName: chapterName[i]\n });\n }\n }\n return chapterInfo;\n }\n\n async updateExtraPlotButtonRedDot() {\n //return;\n this._isStartBranches = true;\n this.view.getExtraPlotButton().getChildByName(\"RedDotSprite\").active = false;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let startPlotIds: number[] = [];\n let cfgIds:number[] = [];\n for (const id in cfg) {\n if (cfg[id].DateType == DateType.Date_Sp) {\n startPlotIds.push(cfg[id].start_plot_id);\n cfgIds.push(Number(id));\n }\n }\n await ExtraStoryModelManager.startBranches(startPlotIds,(index:number,startPlotId:number)=>{\n let branchStatus = ExtraStoryModelManager.getBranchStatus(cfgIds[index], startPlotId);\n if (branchStatus == DatingEventStatus.New || branchStatus == DatingEventStatus.InProgress) {\n this.view.getExtraPlotButton().getChildByName(\"RedDotSprite\").active = true;\n }\n });\n await ExtraStoryModelManager.exitExtraStory();\n GameModelManager.setIsMainPlotSceneType(false);\n this._isStartBranches = false;\n }\n\n onLeftButtonClickCallback = () => {\n GameModelManager.setIsMainPlotSceneType(false);\n if (this._curChapterIndex == 1) {\n this.view.getLeftButton().node.opacity = 0;\n } else {\n this._curChapterIndex--;\n this.view.getLeftButton().node.opacity = 255;\n this.onShow();\n }\n }\n\n onRightButtonClickCallback = () => {\n GameModelManager.setIsMainPlotSceneType(false);\n if (this._curChapterIndex == this._maxChapterIndex) {\n this.view.getRightButton().node.opacity = 0;\n } else {\n this._curChapterIndex++;\n this.view.getRightButton().node.opacity = 255;\n this.onShow();\n }\n }\n\n onNameButtonClickCallback = () => {\n let allChapterInfo = this.getAllChapterInfo();\n // console.log(\"allChapterInfo\", allChapterInfo);\n this.view.getScrollViewRoot().active = true;\n let scrollView = this.view.getScrollViewRoot().getChildByName(\"ScrollView\");\n scrollView.scaleY = 0;\n cc.tween(scrollView)\n .to(0.2, { scaleY: 1 })\n .call(() => {\n this.view.getScrollViewContent().removeAllChildren();\n for (let i = 0; i < allChapterInfo.length; ++i) {\n let btn = cc.instantiate(this.view.getSectionBtn());\n let isCurrChapter = allChapterInfo[i].chapterIndex == this._curChapterIndex;\n btn.getComponent(SectionBtn).setData(allChapterInfo[i].chapterIndex, allChapterInfo[i].chapterName, isCurrChapter, () => {\n this._curChapterIndex = allChapterInfo[i].chapterIndex;\n this.onShow();\n this.onCloseSectionViewCallBack();\n });\n btn.parent = this.view.getScrollViewContent();\n }\n })\n .start();\n }\n\n onCloseSectionViewCallBack = () => {\n this.view.getScrollViewContent().removeAllChildren();\n let scrollView = this.view.getScrollViewRoot().getChildByName(\"ScrollView\");\n cc.tween(scrollView)\n .to(0.2, { scaleY: 0 })\n .call(() => {\n this.view.getScrollViewRoot().active = false;\n })\n .start();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DatingScenePresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAsD;AACtD,+DAAqD;AACrD,6CAAkD;AAClD,0CAAyJ;AACzJ,0DAA8D;AAC9D,4DAAyD;AACzD,2EAAoE;AACpE,mFAAgF;AAChF,2EAAwE;AACxE,qEAAkE;AAClE,uCAA4C;AAC5C,qEAA8D;AAC9D,6EAA6F;AAC7F,mEAAgE;AAEhE,8CAAuC;AACvC,sEAAyD;AAEzD,0CAAmC;AAEnC,kEAAoF;AAEpF,yEAAkE;AAClE,uEAAyF;AACzF,mFAA4E;AAI5E;IAAA,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,yBAAiD;QAA3F;;YAGY,mBAAc,GAAG,KAAK,CAAC;YACvB,oBAAe,GAAG,KAAK,CAAC;YACxB,oBAAe,GAAG,KAAK,CAAC;YAEhC,WAAW;YACH,cAAS,GAAG,KAAK,CAAC;YAE1B,qEAAqE;YAC7D,gBAAW,GAAG,CAAC,CAAC;YACxB,mBAAmB;YACX,gBAAW,GAAY,SAAS,CAAC;YACzC,gBAAgB;YACR,cAAS,GAAG,KAAK,CAAC;YAC1B,wDAAwD;YAChD,wBAAmB,GAAW,CAAC,CAAC;YAEhC,mBAAc,GAAY,KAAK,CAAC;YAChC,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9B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACrC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE;oBAC3B,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC5B;aACJ;YACD,yDAAyD;YACzD,0BAA0B;YAC1B,0BAA0B;YAC1B,sDAAsD;YACtD,wBAAwB;YACxB,QAAQ;YACR,IAAI;YACJ,yCAAyC;YACzC,8CAA8C;YAC9C,gCAAgC;YAChC,QAAQ;YACR,IAAI;YACJ,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;YAChD,OAAO,OAAO,CAAC;QACnB,CAAC;KAeJ,CAAA;IA7kBU,yBAAI,GAAG,sBAAsB,CAAC;IAD5B,oBAAoB;QADhC,qCAAY,CAAC,qCAAmB,CAAC;OACrB,oBAAoB,CA8kBhC;IAAD,2BAAC;KAAA;AA9kBY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly, delay } from \"simba-utils\";\nimport { Action, ActionManager, ActionType, GameRecord, Plot, PlotManager, richNodesToCocosString, SentenceType, SpecialPlotId } from \"../../../avg/AVG\";\nimport { DateType, FaceType } from \"../../../avg/EditorEnums\";\nimport { EditorEvents } from \"../../../avg/EditorEvents\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { PlotSceneType } from \"../../Enums\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport GameRoleDataModel from \"../../model/GameRoleDataModel\";\nimport ChapterBtn from \"../ChapterBtn\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { SpecialToastType } from \"../SpecialToast\";\nimport VerbView from \"../VerbView\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { DatingSceneView, DatingSceneViewType } from \"../view/type/DatingSceneView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport ReviewPlotViewPresenter, { ReviewPlotViewParam } from \"./ReviewPlotViewPresenter\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\ntype DatingPlot = DeepReadonly<Plot & { face: FaceType, portrait?: number, portraitFace?: FaceType }>\n@RegPresenter(DatingSceneViewType)\nexport class DatingScenePresenter extends Presenter<DatingEventSceneModel, DatingSceneView> {\n static uuid = \"DatingScenePresenter\";\n private _currPlot?: DatingPlot;\n private _executingPlot = false;\n private _completingPlot = false;\n private _showScrollView = false;\n\n /**是否时回忆 */\n private _isReview = false;\n private _model: DatingEventSceneModel;\n // private _actionFilter?: (action: DeepReadonly<Action>) => boolean;\n private _plotBranch = 0;\n /**出现选择时记录当前选择的id*/\n private _currSelect?: number = undefined;\n /**本次约会剧情是否结束 */\n private _finished = false;\n //dating scene which id is 1, need to deal by specially;\n private _specialDealSceneId: number = 1;\n\n private _isDotTutorial: boolean = false;\n private _showBackBtn: boolean = true;\n private _reviewPlot: string = \"\";\n\n onOpen(param: DatingEventSceneModel) {\n super.onOpen(param);\n this._finished = false;\n this._isDotTutorial = false;\n this._reviewPlot = \"\";\n this.view.completePlotCallback = this.completePlot;\n this.view.onRollBackBtnCallback = this.onRollBackBtnCallback;\n this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;\n this._model = param;\n if (this._model.status === DatingEventStatus.New) {\n this._model.status = DatingEventStatus.InProgress;\n }\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n // deal special :hide backBtn\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n // this.view.setRunCloseAction((isSpecialScene && this._model.status !== DatingEventStatus.Completed));\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n this.view.showRollBackBtn(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n this.view.showRollBackBtn(true);\n }\n delay(0.1).then(async () => {\n if (param.status === DatingEventStatus.Completed) {\n this._isReview = true;\n // this._actionFilter = (action) => {\n // return action.type !== ActionType.ModifyVariable;\n // }\n this._model.background = \"\";\n this._currPlot = this._model.firstPlot as DatingPlot;\n\n } else {\n this._isReview = false;\n if (this._model.isExtra) {\n GameModelManager.setBranchInProgress(this._model.id);\n }\n let plots = PlotManager.getCurrentPlots();\n this._plotBranch = plots.findIndex(v => v.plotSceneType === PlotSceneType.DatingEvent && v.plotSceneTypeId === param.id);\n this._isDotTutorial = GameModelManager.checkIsDotTutorial() && this._plotBranch === 0;\n this._currPlot = plots[this._plotBranch] as DatingPlot;\n if (this._currPlot.id === this._model.firstPlot.id) {\n GameRecord.recordVariables.bgm = \"\"; // 新约会,不继承之前剧情的背景音乐存档\n this._model.background = \"\";\n }\n this._currSelect = PlotManager.getPlotSelection(this._currPlot.id);\n // if(!this._currSelect) this._currSelect = 0;\n if (GameRecord.recordVariables.bgm) {\n AudioManager.playMusic(GameRecord.recordVariables.bgm);\n }\n\n //dot main plot start\n if (0 === this._plotBranch && this._currPlot && this._currPlot.id === this._model.firstPlot.id) {\n GameModelManager.dotMainLinePlotStart();\n }\n }\n if (this._model.background) {\n await this.view.setBackground(\"textures/background/dating_event/\" + this._model.background);\n }\n this.execPlot();\n });\n\n this._disposable.add(EditorEvents.SET_DATING_BG.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackground(bgPath);\n }));\n this._disposable.add(EditorEvents.SET_DATING_BG_EFFECT.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackgroundEffect(bgPath);\n }));\n this._disposable.add(GameModelManager.RollBackToPlot.on(this.onClickRollBackBtn));\n this._showScrollView = false;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this._disposable.add(GameModelManager.DeadEvent.on(this.onDeadEvent));\n this._disposable.add(GameModelManager.SpecialToast.on(this.onSpecialToast));\n }\n\n onClose() {\n super.onClose();\n this._currPlot = undefined;\n AudioManager.stopMusic();\n // UIManager.popToPresenter(this);\n if (!this._model.isExtra) {\n GameModelManager.CloseDatingSceneView.emit(this._model.id);\n }\n }\n\n async execPlot() {\n if (this._currPlot) {\n if (this._currPlot.sentences && this._currPlot.plotSceneType === PlotSceneType.DatingEvent && this._currPlot.plotSceneTypeId === this._model.id) {\n this._executingPlot = true;\n const sentence = this._currPlot.sentences[0];\n const content = sentence.content;\n const roleData = GameModelManager.getRoleData(sentence.roleId)!;\n let otherPortrait: string | undefined = undefined;\n let isShowRouge: boolean = this.checkIsShowRouge(this._currPlot.id);\n if (this._currPlot.portrait !== undefined) {\n let otherRole = GameModelManager.getRoleData(this._currPlot.portrait);\n if (otherRole) {\n // otherPortrait = otherRole.getPortrait(this._currPlot.portraitFace);\n otherPortrait = this.getPortraitByRole(otherRole, this._currPlot.portraitFace);\n }\n }\n if (content) { // TODO 图片设置\n if (content.type === SentenceType.TEXT) {\n this.view.showBackBtn(this._showBackBtn);\n if (this._model.isExtra) {\n this.view.showRollBackBtn(false);\n } else {\n this.view.showRollBackBtn(true);\n }\n await this.view.setContent(sentence.roleId === GameConstData.GAME_CONST_PLAYER_ROLE_VALUE,\n richNodesToCocosString(content.value),\n sentence.roleId === 1 ? \"\" : roleData.getNameIcon(),\n sentence.roleId === 1 ? undefined : roleData.getConfig().name,\n // sentence.roleId === 1 ? otherPortrait : roleData.getPortrait(this._currPlot.face,),\n sentence.roleId === 1 ? otherPortrait : this.getPortraitByRole(roleData, this._currPlot.face),\n otherPortrait, isShowRouge);\n let plotName = \"<color=#EFDA91>\" + (sentence.roleId === 1 ? \"旁白\" : roleData.getConfig().name) + \":</c>\\n\";\n let plotContent = richNodesToCocosString(content.value) + \"\\n\";\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + plotName;\n this._reviewPlot = this._reviewPlot + plotContent;\n }\n } else if (content.type === SentenceType.SELECT) {\n this.view.showBackBtn(false);\n this.view.showRollBackBtn(false);\n let setSelection = async () => {\n let value = content.value[this._currSelect!];\n let str = value.summary;\n this._reviewPlot = this._reviewPlot + \"<color=#D36777>\" + \"选项\" + \":</c>\\n\";\n if (value.content && value.content.type === SentenceType.EMPTY) { // 空类型,不做展示\n await this.completePlot();\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n return;\n } else if (value.content && value.content.type === SentenceType.TEXT) {\n str = richNodesToCocosString(value.content.value);\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n } else {\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n }\n // await this.view.setContent(true, str, roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, str, roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currSelect === undefined || this._currSelect === null) {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"\",\n clickcausehide: false,\n isFromDate: true,\n y: -250,\n dateSceneId: this._model.id,\n plotId: this._currPlot.id,\n onSelectIndexCallback: (index: number) => { this._currSelect = index; setSelection(); }\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n // await this.view.setContent(true, \"\", roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, \"\", roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n if (this._isDotTutorial) {\n // GameDotMgr.getInstance().dotTutorial(TutorialType.Event, TutorialState.SelectSentence, { session: this._model.config.id, plotId: this._currPlot.id });\n }\n } else {\n await setSelection();\n }\n } else {\n console.error(\"不支持的约会剧情\", content);\n }\n } else { // 没有句子,只设置其立绘、背景等\n // await this.view.setContent(false, \"\", \"\", roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(false, \"\", \"\", \"\", this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currPlot.sentences[0].actions.actions.length) {\n await ActionManager.executeActions(this._currPlot.sentences[0].actions, this.filterFunc, !this._isReview);\n }\n this._executingPlot = false;\n } else {\n // 本次约会剧情结束\n this._model.status = DatingEventStatus.Completed;\n this._finished = true;\n this.view.setIsRunningAction(false);\n this.view.showBackBtn(this._showBackBtn);\n if (this._model.isExtra) {\n this.view.showRollBackBtn(false);\n } else {\n this.view.showRollBackBtn(true);\n }\n let Plot = PlotManager.getCurrentPlots()[0];\n let isToBeContinued = Plot.id == SpecialPlotId.ToBeContinued;\n let isEnd = Plot.id == SpecialPlotId.End;\n if ((this._isReview || isToBeContinued || isEnd) && !this._model.isExtra) {\n let nextKey = this.getNextDatingEventKey();\n let nextEventModel = GameModelManager.getMainDatingEventSceneModel(nextKey);\n if (nextEventModel) {\n if (nextEventModel.status == DatingEventStatus.Completed) {\n this.view.closeView();\n let comp = cc.director.getScene().getChildByName(\"Canvas\").getChildByName(\"VerbRoot\").getChildByName(\"VerbView\").getComponent(VerbView);\n // let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n // let ids: string[] = [];\n // for (const id in cfgs) {\n // if (cfgs[id].DateType == DateType.Date_Normal) {\n // ids.push(id);\n // }\n // }\n // let index = ids.indexOf(nextKey.toString());\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n let index = plotIds.indexOf(nextEventModel.id);\n let title = \"第\" + (index + 1) + \"章:\";\n let cfg = ConfigManager.getConfig(dateSceneConfig, Number(nextKey));\n let desc = cfg && cfg.name ? GameModelManager.getConfigLanguageTxt(cfg.name) : \"\";\n comp.toDating(() => {\n AudioManager.playEffect('verb');\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickDatingItem.emit(Number(nextKey));\n }, { title: title, desc: desc })\n } else {\n this.view.guideBack();\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n }\n } else {\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n this.view.guideBack();\n console.log(\"The nextEventModel is undefined.\");\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n } else {\n GameModelManager.dotMainLinePlotEnd();\n // GameModelManager.setProgressDateScene(this._model.id);\n GameModelManager.CheckDateSceneProgress.emit();\n }\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n }\n }\n\n /**完成当前剧情回调 */\n completePlot = async () => {\n if (this._executingPlot || this._completingPlot || !this._currPlot || this._finished) return;\n let content = this._currPlot.sentences[0].content;\n if (content && content.type === SentenceType.SELECT && this._currSelect === undefined) return;\n this._completingPlot = true;\n // GameModelManager.pushDateSceneKeyPlot(this._model.id, this._currPlot.id);\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n }\n if (this._isReview) {\n let nextPlot = await PlotManager.getNextPlot(this._currPlot, this._currSelect);\n if (nextPlot) {\n this._currPlot = nextPlot as DatingPlot;\n }\n } else {\n this._model.status = DatingEventStatus.InProgress;\n if (this._isDotTutorial) {\n let session = this._model.config.id;\n if (content && content.type === SentenceType.SELECT) {\n // GameDotMgr.getInstance().dotTutorial(TutorialType.Event, TutorialState.SelectSentenceRet, { session: session, plotId: this._currPlot.id, select: this._currSelect })\n }\n GameModelManager.dotPlotProgress();\n }\n let nextPlots = await PlotManager.completePlot(this._currPlot, this._currSelect);\n this._currPlot = nextPlots[this._plotBranch] as DatingPlot;\n }\n this._currSelect = undefined;\n this._completingPlot = false;\n this.execPlot();\n }\n\n checkIsShowRouge(plotId: number): boolean {\n let pStart: number = 1202;\n let pEnd: number = 1229;\n let ret: boolean = plotId >= pStart && plotId <= pEnd;\n // console.log(\"剧情id = \" + plotId + \" 是否展示口红: = \", ret);\n return ret;\n }\n\n getPortraitByRole(role: GameRoleDataModel, face = FaceType.Normal, skin?: number): string {\n let portrait: string = \"\";\n let curSkin = role.getCurSkin();\n if (skin === undefined && curSkin > 0) {\n skin = curSkin;\n }\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + face;\n if (this._model.id === 1) {\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + face;\n }\n return portrait;\n }\n\n onRollBackBtnCallback = () => {\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n if (this._showScrollView) {\n let scrollView = this.view.getScrollViewRootNode().getChildByName(\"ScrollView\");\n scrollView.scaleY = 0;\n cc.tween(scrollView)\n .to(0.3, { scaleY: 1 })\n .start();\n this.CreateOrUpdateChapterBtns();\n } else {\n this.view.getScrollViewContentNode().removeAllChildren();\n }\n }\n\n CreateOrUpdateChapterBtns() {\n this.view.getScrollViewContentNode().removeAllChildren();\n let ret: { chapterId: number, chapterName: number, chapterStartPlotId: number }[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n ret.push({ chapterId: i + 1, chapterName: models[i].config.name, chapterStartPlotId: models[i].config.start_plot_id });\n }\n // for (let i = 0; i < ret.length; ++i) {\n // let btn = cc.instantiate(this.view.getChapterBtn());\n // btn.getComponent(ChapterBtn).setData(ret[i].chapterId, ret[i].chapterName, ret[i].chapterStartPlotId);\n // btn.parent = this.view.getScrollViewContentNode();\n // }\n for (let i = ret.length - 1; i >= 0; i--) {\n let btn = cc.instantiate(this.view.getChapterBtn());\n btn.getComponent(ChapterBtn).setData(ret[i].chapterId, ret[i].chapterName, ret[i].chapterStartPlotId);\n btn.parent = this.view.getScrollViewContentNode();\n }\n }\n\n onClickRollBackBtn = (pid: number) => {\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"此功能不可逆\",\n content: \"使用传送门会清掉此章节到已解锁最新章节之间的剧情存档和剧情内产生的数值,<color=red>且不可逆</color>,确定使用传送门吗?\",\n ishasad: !(removeAdCardNum > 0),\n istwobtn: true,\n adconfig: \"inject_fruit\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n let retainVar = this.getRetainVarKeyArr();\n await PlotManager.rollbackToPlot(pid, false, retainVar);\n this.rollBackDateAdArray(pid);\n GameRecord.saveRecord();\n // this.rollBackPlotInfo(pid);\n this.view.getScrollViewContentNode().removeAllChildren();\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this.view.closeView();\n await GameModelManager.init((value: number) => {\n });\n GameModelManager.setIsChangePlotSceneType(true);\n UIManager.showSceneToast(\"数据刷新完成\");\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n GameModelManager.RefreshAllStatus.emit();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n getRetainVarKeyArr(): string[] {\n let keyArr: string[] = [];\n let branches = GameModelManager.getAllStartedBranches();\n let branchMap = this.getBranchFirstPlotIdMap();\n for (let i = 0; i < branches.length; i++) {\n let startPlotId = branches[i].startPlot;\n let extraId = branchMap[startPlotId + \"\"];\n if (extraId) {\n let recordKey = \"de\" + extraId;\n let f = recordKey + \".f\";\n let s = recordKey + \".s\";\n let b = recordKey + \".bg\";\n if (GameRecord.recordVariables[f]) {\n keyArr.push(f);\n }\n if (GameRecord.recordVariables[s]) {\n keyArr.push(s);\n }\n if (GameRecord.recordVariables[b]) {\n keyArr.push(b);\n }\n }\n }\n return keyArr;\n }\n\n getBranchFirstPlotIdMap(): { [key: string]: number } {\n let map: { [key: string]: number } = {};\n let tbl = ConfigManager.getAllConfig(dateSceneConfig);\n if (tbl) {\n for (let id in tbl) {\n let c = tbl[id];\n if (c && c.DateType == DateType.Date_Sp) {\n map[c.start_plot_id + \"\"] = c.id;\n }\n }\n }\n return map;\n }\n\n onDeadEvent = (pid: number) => {\n if (this._model.status == DatingEventStatus.Completed) {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,但因为是在回忆模式,所以章节不会被重置\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n this.view.closeView();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n } else {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,本章节将<color=red>重置</color>!!\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n let retainVar = this.getRetainVarKeyArr();\n await PlotManager.rollbackToPlot(pid, false, retainVar);\n this.rollBackDateAdArray(pid);\n GameRecord.saveRecord();\n // this.rollBackPlotInfo(pid);\n this.view.getScrollViewContentNode().removeAllChildren();\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this.view.closeView();\n await GameModelManager.init((value: number) => {\n });\n GameModelManager.setIsChangePlotSceneType(true);\n UIManager.showSceneToast(\"数据刷新完成\");\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n GameModelManager.RefreshAllStatus.emit();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n }\n\n private filterFunc = (action: DeepReadonly<Action>): boolean => {\n let isExcute: boolean = true;\n if (action.type === ActionType.ModifyVariable) {\n isExcute = !GameModelManager.checkPlotTipAddGraceAlready(this._currPlot?.id as number);\n if (isExcute) {\n GameModelManager.pushTipAddGracePlot(this._currPlot?.id as number);\n }\n\n }\n return isExcute;\n }\n\n rollBackDateAdArray(pid: number) {\n let models = GameModelManager.getMainDatingEventScenesModel();\n let chapterId = -1;\n for (let i = 0; i < models.length; i++) {\n if (pid == models[i].config.start_plot_id) {\n chapterId = models[i].config.id;\n }\n }\n if (chapterId == -1) {\n console.error(\"Cannot found the chapterId.\");\n }\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n if (record) {\n a = JSON.parse(record);\n a.sort((a, b) => {\n if (a < b) {\n return -1;\n } else if (a > b) {\n return 1;\n }\n return 0;\n });\n for (let i = 0; i < a.length; i++) {\n if (a[i] >= chapterId) {\n a.splice(i, a.length - (i - 1));\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n return;\n }\n }\n }\n }\n\n getNextDatingEventKey(): number {\n let nextKey: number = 0;\n let currEventId = this._model.id;\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n for (let i = 0; i < plotIds.length; i++) {\n if (plotIds[i] == currEventId) {\n nextKey = plotIds[i + 1];\n }\n }\n // let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n // let ids: string[] = [];\n // for (const id in cfg) {\n // if (cfg[id].DateType == DateType.Date_Normal) {\n // ids.push(id);\n // }\n // }\n // for (let i = 0; i < ids.length; i++) {\n // if (ids[i] == currEventId.toString()) {\n // nextKey = ids[i + 1];\n // }\n // }\n console.log(\"getNextDatingEventModel\", nextKey);\n return nextKey;\n }\n\n onReviewButtonClickCallback = async () => {\n let temp: ReviewPlotViewParam = {\n isReview: this._isReview,\n plotString: this._reviewPlot,\n startPlotId: this._model.config.start_plot_id,\n currentPlotId: this._currPlot!.id,\n };\n UIManager.pushPresenter(ReviewPlotViewPresenter, temp);\n }\n\n onSpecialToast = (type: SpecialToastType) => {\n UIManager.showSpecialToast(type);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DatingScenePresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAsD;AACtD,+DAAqD;AACrD,6CAAkD;AAClD,0CAAyJ;AACzJ,0DAA8D;AAC9D,4DAAyD;AACzD,2EAAoE;AACpE,mFAAgF;AAChF,2EAAwE;AACxE,qEAAkE;AAClE,uCAA4C;AAE5C,6EAA6F;AAC7F,mEAAgE;AAEhE,sEAAyD;AAEzD,0CAAmC;AAEnC,kEAAoF;AAEpF,yEAAkE;AAClE,uEAAyF;AACzF,mFAA4E;AAI5E;IAAA,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,yBAAiD;QAA3F;;YAGY,mBAAc,GAAG,KAAK,CAAC;YACvB,oBAAe,GAAG,KAAK,CAAC;YACxB,oBAAe,GAAG,KAAK,CAAC;YAEhC,WAAW;YACH,cAAS,GAAG,KAAK,CAAC;YAE1B,qEAAqE;YAC7D,gBAAW,GAAG,CAAC,CAAC;YACxB,mBAAmB;YACX,gBAAW,GAAY,SAAS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AAE,CAAC;YAC3B,IAAI,MAAM,GAAG,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;YAC9D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aAC9B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACrC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE;oBAC3B,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC5B;aACJ;YACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;YAChD,OAAO,OAAO,CAAC;QACnB,CAAC;KAeJ,CAAA;IA5dU,yBAAI,GAAG,sBAAsB,CAAC;IAD5B,oBAAoB;QADhC,qCAAY,CAAC,qCAAmB,CAAC;OACrB,oBAAoB,CA6dhC;IAAD,2BAAC;KAAA;AA7dY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly, delay } from \"simba-utils\";\nimport { Action, ActionManager, ActionType, GameRecord, Plot, PlotManager, richNodesToCocosString, SentenceType, SpecialPlotId } from \"../../../avg/AVG\";\nimport { DateType, FaceType } from \"../../../avg/EditorEnums\";\nimport { EditorEvents } from \"../../../avg/EditorEvents\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { PlotSceneType } from \"../../Enums\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport GameRoleDataModel from \"../../model/GameRoleDataModel\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { SpecialToastType } from \"../SpecialToast\";\nimport VerbView from \"../VerbView\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { DatingSceneView, DatingSceneViewType } from \"../view/type/DatingSceneView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport ReviewPlotViewPresenter, { ReviewPlotViewParam } from \"./ReviewPlotViewPresenter\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\ntype DatingPlot = DeepReadonly<Plot & { face: FaceType, portrait?: number, portraitFace?: FaceType }>\n@RegPresenter(DatingSceneViewType)\nexport class DatingScenePresenter extends Presenter<DatingEventSceneModel, DatingSceneView> {\n static uuid = \"DatingScenePresenter\";\n private _currPlot?: DatingPlot;\n private _executingPlot = false;\n private _completingPlot = false;\n private _showScrollView = false;\n\n /**是否时回忆 */\n private _isReview = false;\n private _model: DatingEventSceneModel;\n // private _actionFilter?: (action: DeepReadonly<Action>) => boolean;\n private _plotBranch = 0;\n /**出现选择时记录当前选择的id*/\n private _currSelect?: number = undefined;\n /**本次约会剧情是否结束 */\n private _finished = false;\n //dating scene which id is 1, need to deal by specially;\n private _specialDealSceneId: number = 1;\n\n private _isDotTutorial: boolean = false;\n private _showBackBtn: boolean = true;\n private _reviewPlot: string = \"\";\n\n onOpen(param: DatingEventSceneModel) {\n super.onOpen(param);\n this._finished = false;\n this._isDotTutorial = false;\n this._reviewPlot = \"\";\n this.view.completePlotCallback = this.completePlot;\n this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;\n this._model = param;\n if (this._model.status === DatingEventStatus.New) {\n this._model.status = DatingEventStatus.InProgress;\n }\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n // deal special :hide backBtn\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n // this.view.setRunCloseAction((isSpecialScene && this._model.status !== DatingEventStatus.Completed));\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n }\n delay(0.1).then(async () => {\n if (param.status === DatingEventStatus.Completed) {\n this._isReview = true;\n // this._actionFilter = (action) => {\n // return action.type !== ActionType.ModifyVariable;\n // }\n this._model.background = \"\";\n this._currPlot = this._model.firstPlot as DatingPlot;\n\n } else {\n this._isReview = false;\n if (this._model.isExtra) {\n GameModelManager.setBranchInProgress(this._model.id);\n }\n let plots = PlotManager.getCurrentPlots();\n this._plotBranch = plots.findIndex(v => v.plotSceneType === PlotSceneType.DatingEvent && v.plotSceneTypeId === param.id);\n this._isDotTutorial = GameModelManager.checkIsDotTutorial() && this._plotBranch === 0;\n this._currPlot = plots[this._plotBranch] as DatingPlot;\n if (this._currPlot.id === this._model.firstPlot.id) {\n GameRecord.recordVariables.bgm = \"\"; // 新约会,不继承之前剧情的背景音乐存档\n this._model.background = \"\";\n }\n this._currSelect = PlotManager.getPlotSelection(this._currPlot.id);\n // if(!this._currSelect) this._currSelect = 0;\n if (GameRecord.recordVariables.bgm) {\n AudioManager.playMusic(GameRecord.recordVariables.bgm);\n }\n\n //dot main plot start\n if (0 === this._plotBranch && this._currPlot && this._currPlot.id === this._model.firstPlot.id) {\n GameModelManager.dotMainLinePlotStart();\n }\n }\n if (this._model.background) {\n await this.view.setBackground(\"textures/background/dating_event/\" + this._model.background);\n }\n this.execPlot();\n });\n\n this._disposable.add(EditorEvents.SET_DATING_BG.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackground(bgPath);\n }));\n this._disposable.add(EditorEvents.SET_DATING_BG_EFFECT.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackgroundEffect(bgPath);\n }));\n this._showScrollView = false;\n this._disposable.add(GameModelManager.DeadEvent.on(this.onDeadEvent));\n this._disposable.add(GameModelManager.SpecialToast.on(this.onSpecialToast));\n }\n\n onClose() {\n super.onClose();\n this._currPlot = undefined;\n AudioManager.stopMusic();\n // UIManager.popToPresenter(this);\n if (!this._model.isExtra) {\n GameModelManager.CloseDatingSceneView.emit(this._model.id);\n }\n }\n\n async execPlot() {\n if (this._currPlot) {\n if (this._currPlot.sentences && this._currPlot.plotSceneType === PlotSceneType.DatingEvent && this._currPlot.plotSceneTypeId === this._model.id) {\n this._executingPlot = true;\n const sentence = this._currPlot.sentences[0];\n const content = sentence.content;\n const roleData = GameModelManager.getRoleData(sentence.roleId)!;\n let otherPortrait: string | undefined = undefined;\n let isShowRouge: boolean = this.checkIsShowRouge(this._currPlot.id);\n if (this._currPlot.portrait !== undefined) {\n let otherRole = GameModelManager.getRoleData(this._currPlot.portrait);\n if (otherRole) {\n // otherPortrait = otherRole.getPortrait(this._currPlot.portraitFace);\n otherPortrait = this.getPortraitByRole(otherRole, this._currPlot.portraitFace);\n }\n }\n if (content) { // TODO 图片设置\n if (content.type === SentenceType.TEXT) {\n this.view.showBackBtn(this._showBackBtn);\n await this.view.setContent(sentence.roleId === GameConstData.GAME_CONST_PLAYER_ROLE_VALUE,\n richNodesToCocosString(content.value),\n sentence.roleId === 1 ? \"\" : roleData.getNameIcon(),\n sentence.roleId === 1 ? undefined : roleData.getConfig().name,\n // sentence.roleId === 1 ? otherPortrait : roleData.getPortrait(this._currPlot.face,),\n sentence.roleId === 1 ? otherPortrait : this.getPortraitByRole(roleData, this._currPlot.face),\n otherPortrait, isShowRouge);\n let plotName = \"<color=#EFDA91>\" + (sentence.roleId === 1 ? \"旁白\" : roleData.getConfig().name) + \":</c>\\n\";\n let plotContent = richNodesToCocosString(content.value) + \"\\n\";\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + plotName;\n this._reviewPlot = this._reviewPlot + plotContent;\n }\n } else if (content.type === SentenceType.SELECT) {\n this.view.showBackBtn(false);\n let setSelection = async () => {\n let value = content.value[this._currSelect!];\n let str = value.summary;\n this._reviewPlot = this._reviewPlot + \"<color=#D36777>\" + \"选项\" + \":</c>\\n\";\n if (value.content && value.content.type === SentenceType.EMPTY) { // 空类型,不做展示\n await this.completePlot();\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n return;\n } else if (value.content && value.content.type === SentenceType.TEXT) {\n str = richNodesToCocosString(value.content.value);\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n } else {\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n }\n // await this.view.setContent(true, str, roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, str, roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currSelect === undefined || this._currSelect === null) {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"\",\n clickcausehide: false,\n isFromDate: true,\n y: -250,\n dateSceneId: this._model.id,\n plotId: this._currPlot.id,\n onSelectIndexCallback: (index: number) => { this._currSelect = index; setSelection(); }\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n // await this.view.setContent(true, \"\", roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, \"\", roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n \n } else {\n await setSelection();\n }\n } else {\n console.error(\"不支持的约会剧情\", content);\n }\n } else { // 没有句子,只设置其立绘、背景等\n // await this.view.setContent(false, \"\", \"\", roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(false, \"\", \"\", \"\", this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currPlot.sentences[0].actions.actions.length) {\n await ActionManager.executeActions(this._currPlot.sentences[0].actions, this.filterFunc, !this._isReview);\n }\n this._executingPlot = false;\n } else {\n // 本次约会剧情结束\n this._model.status = DatingEventStatus.Completed;\n this._finished = true;\n this.view.setIsRunningAction(false);\n this.view.showBackBtn(this._showBackBtn);\n let Plot = PlotManager.getCurrentPlots()[0];\n let isToBeContinued = Plot.id == SpecialPlotId.ToBeContinued;\n let isEnd = Plot.id == SpecialPlotId.End;\n if ((this._isReview || isToBeContinued || isEnd) && !this._model.isExtra) {\n let nextKey = this.getNextDatingEventKey();\n let nextEventModel = GameModelManager.getMainDatingEventSceneModel(nextKey);\n if (nextEventModel) {\n if (nextEventModel.status == DatingEventStatus.Completed) {\n this.view.closeView();\n let comp = cc.director.getScene().getChildByName(\"Canvas\").getChildByName(\"VerbRoot\").getChildByName(\"VerbView\").getComponent(VerbView);\n // let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n // let ids: string[] = [];\n // for (const id in cfgs) {\n // if (cfgs[id].DateType == DateType.Date_Normal) {\n // ids.push(id);\n // }\n // }\n // let index = ids.indexOf(nextKey.toString());\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n let index = plotIds.indexOf(nextEventModel.id);\n let title = \"第\" + (index + 1) + \"章:\";\n let cfg = ConfigManager.getConfig(dateSceneConfig, Number(nextKey));\n let desc = cfg && cfg.name ? GameModelManager.getConfigLanguageTxt(cfg.name) : \"\";\n comp.toDating(() => {\n AudioManager.playEffect('verb');\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickDatingItem.emit(Number(nextKey));\n }, { title: title, desc: desc })\n } else {\n this.view.guideBack();\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n }\n } else {\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n this.view.guideBack();\n console.log(\"The nextEventModel is undefined.\");\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n } else {\n GameModelManager.dotMainLinePlotEnd();\n }\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n }\n }\n\n /**完成当前剧情回调 */\n completePlot = async () => {\n if (this._executingPlot || this._completingPlot || !this._currPlot || this._finished) return;\n let content = this._currPlot.sentences[0].content;\n if (content && content.type === SentenceType.SELECT && this._currSelect === undefined) return;\n this._completingPlot = true;\n // GameModelManager.pushDateSceneKeyPlot(this._model.id, this._currPlot.id);\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n }\n if (this._isReview) {\n let nextPlot = await PlotManager.getNextPlot(this._currPlot, this._currSelect);\n if (nextPlot) {\n this._currPlot = nextPlot as DatingPlot;\n }\n } else {\n this._model.status = DatingEventStatus.InProgress;\n let nextPlots = await PlotManager.completePlot(this._currPlot, this._currSelect);\n this._currPlot = nextPlots[this._plotBranch] as DatingPlot;\n }\n this._currSelect = undefined;\n this._completingPlot = false;\n this.execPlot();\n }\n\n checkIsShowRouge(plotId: number): boolean {\n let pStart: number = 1202;\n let pEnd: number = 1229;\n let ret: boolean = plotId >= pStart && plotId <= pEnd;\n // console.log(\"剧情id = \" + plotId + \" 是否展示口红: = \", ret);\n return ret;\n }\n\n getPortraitByRole(role: GameRoleDataModel, face = FaceType.Normal, skin?: number): string {\n let portrait: string = \"\";\n let curSkin = role.getCurSkin();\n if (skin === undefined && curSkin > 0) {\n skin = curSkin;\n }\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + face;\n if (this._model.id === 1) {\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + face;\n }\n return portrait;\n }\n\n getRetainVarKeyArr(): string[] {\n let keyArr: string[] = [];\n let branches = GameModelManager.getAllStartedBranches();\n let branchMap = this.getBranchFirstPlotIdMap();\n for (let i = 0; i < branches.length; i++) {\n let startPlotId = branches[i].startPlot;\n let extraId = branchMap[startPlotId + \"\"];\n if (extraId) {\n let recordKey = \"de\" + extraId;\n let f = recordKey + \".f\";\n let s = recordKey + \".s\";\n let b = recordKey + \".bg\";\n if (GameRecord.recordVariables[f]) {\n keyArr.push(f);\n }\n if (GameRecord.recordVariables[s]) {\n keyArr.push(s);\n }\n if (GameRecord.recordVariables[b]) {\n keyArr.push(b);\n }\n }\n }\n return keyArr;\n }\n\n getBranchFirstPlotIdMap(): { [key: string]: number } {\n let map: { [key: string]: number } = {};\n let tbl = ConfigManager.getAllConfig(dateSceneConfig);\n if (tbl) {\n for (let id in tbl) {\n let c = tbl[id];\n if (c && c.DateType == DateType.Date_Sp) {\n map[c.start_plot_id + \"\"] = c.id;\n }\n }\n }\n return map;\n }\n\n onDeadEvent = (pid: number) => {\n if (this._model.status == DatingEventStatus.Completed) {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,但因为是在回忆模式,所以章节不会被重置\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n this.view.closeView();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n } else {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,本章节将<color=red>重置</color>!!\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n let retainVar = this.getRetainVarKeyArr();\n await PlotManager.rollbackToPlot(pid, false, retainVar);\n this.rollBackDateAdArray(pid);\n GameRecord.saveRecord();\n this._showScrollView = !this._showScrollView;\n this.view.closeView();\n await GameModelManager.init((value: number) => {\n });\n GameModelManager.setIsChangePlotSceneType(true);\n UIManager.showSceneToast(\"数据刷新完成\");\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n GameModelManager.RefreshAllStatus.emit();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n }\n\n private filterFunc = (action: DeepReadonly<Action>): boolean => {\n let isExcute: boolean = true;\n if (action.type === ActionType.ModifyVariable) {\n isExcute = !GameModelManager.checkPlotTipAddGraceAlready(this._currPlot?.id as number);\n if (isExcute) {\n GameModelManager.pushTipAddGracePlot(this._currPlot?.id as number);\n }\n\n }\n return isExcute;\n }\n\n rollBackDateAdArray(pid: number) {\n let models = GameModelManager.getMainDatingEventScenesModel();\n let chapterId = -1;\n for (let i = 0; i < models.length; i++) {\n if (pid == models[i].config.start_plot_id) {\n chapterId = models[i].config.id;\n }\n }\n if (chapterId == -1) {\n console.error(\"Cannot found the chapterId.\");\n }\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n if (record) {\n a = JSON.parse(record);\n a.sort((a, b) => {\n if (a < b) {\n return -1;\n } else if (a > b) {\n return 1;\n }\n return 0;\n });\n for (let i = 0; i < a.length; i++) {\n if (a[i] >= chapterId) {\n a.splice(i, a.length - (i - 1));\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n return;\n }\n }\n }\n }\n\n getNextDatingEventKey(): number {\n let nextKey: number = 0;\n let currEventId = this._model.id;\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n for (let i = 0; i < plotIds.length; i++) {\n if (plotIds[i] == currEventId) {\n nextKey = plotIds[i + 1];\n }\n }\n console.log(\"getNextDatingEventModel\", nextKey);\n return nextKey;\n }\n\n onReviewButtonClickCallback = async () => {\n let temp: ReviewPlotViewParam = {\n isReview: this._isReview,\n plotString: this._reviewPlot,\n startPlotId: this._model.config.start_plot_id,\n currentPlotId: this._currPlot!.id,\n };\n UIManager.pushPresenter(ReviewPlotViewPresenter, temp);\n }\n\n onSpecialToast = (type: SpecialToastType) => {\n UIManager.showSpecialToast(type);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DiscoverViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAChC,0CAA8C;AAC9C,2EAAoE;AACpE,2EAAwE;AACxE,mEAAgE;AAChE,sEAAyD;AACzD,4DAA8F;AAC9F,0FAAuF;AACvF,iFAA8E;AAC9E,uCAA+C;AAC/C,+DAAwD;AACxD,iDAA0C;AAC1C,wFAAiF;AAGjF;IAAA,IAAqB,qBAAqB,GAA1C,MAAqB,qBAAsB,SAAQ,yBAAkC;QASjF;YACI,KAAK,EAAE,CAAC;YAaZ,sBAAiB,GAAG,CAAC,QAA0B,EAAE,EAAE;gBAC/C,QAAQ,QAAQ,EAAE;oBACd,KAAK,wBAAgB,CAAC,QAAQ;wBAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;wBACvB,qBAAS,CAAC,aAAa,CAAC,2DAA4B,EAAE,SAAS,CAAC,CAAC;wBACjE,MAAM;oBACV,KAAK,wBAAgB,CAAC,KAAK;wBACvB,MAAM;oBACV,KAAK,wBAAgB,CAAC,eAAe;wBACjC,IAAI,CAAC,eAAe,EAAE,CAAC;wBACvB,SAAS;wBACT,oBAAU,CAAC,WAAW,EAAE,CAAC,UAAU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AAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED,MAAM;YACF,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,eAAG,CAAC,qBAAqB,EAAE,CAAC;QAChC,CAAC;QAED,eAAe;YACX,eAAG,CAAC,kBAAkB,EAAE,CAAC;QAC7B,CAAC;QAED,eAAe;YACX,eAAG,CAAC,kBAAkB,EAAE,CAAC;QAC7B,CAAC;KACJ,CAAA;IA9GU,0BAAI,GAAG,uBAAuB,CAAC;IADrB,qBAAqB;QADzC,qCAAY,CAAC,+BAAgB,CAAC;OACV,qBAAqB,CA+GzC;IAAD,4BAAC;KAAA;kBA/GoB,qBAAqB","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport { GameRecord } from \"../../../avg/AVG\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { DiscoverView, DiscoverViewProps, DiscoverViewType } from \"../view/type/DiscoverView\";\nimport { DiscoverSettingViewPresenter } from \"./discover/DiscoverSettingViewPresenter\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { DiscoverItemType } from \"../../Enums\";\nimport QRCodeViewPresenter from \"./QRCodeViewPresenter\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport ProductionTeamViewPresenter from \"./discover/ProductionTeamViewPresenter\";\n\n@RegPresenter(DiscoverViewType)\nexport default class DiscoverViewPresenter extends Presenter<undefined, DiscoverView> {\n static uuid = \"DiscoverViewPresenter\";\n\n private _viewProps: DiscoverViewProps;\n\n static isShowRedDot() {\n return false;\n }\n\n constructor() {\n super();\n }\n\n initViewProps() {\n this._viewProps = {\n manName: \"\",\n manId: \"\",\n manIcon: \"\",\n onCopyInfo: this.onCopyInfo,\n onItemClick: this.itemClickCallBack\n };\n }\n\n itemClickCallBack = (itemType: DiscoverItemType) => {\n switch (itemType) {\n case DiscoverItemType.Settings:\n this.hideGameClubBtn();\n UIManager.pushPresenter(DiscoverSettingViewPresenter, undefined);\n break;\n case DiscoverItemType.Forum:\n break;\n case DiscoverItemType.CustomerService:\n this.hideGameClubBtn();\n //点击二维码打点\n GameDotMgr.getInstance().dotClickUI(\"CustomerService\");\n UIManager.pushPresenter(QRCodeViewPresenter, undefined);\n break;\n case DiscoverItemType.ProductionTeam:\n this.hideGameClubBtn();\n //点击二维码打点\n UIManager.pushPresenter(ProductionTeamViewPresenter, undefined);\n break;\n default:\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_DEVELOPING_VALUE));\n break;\n }\n }\n\n onCopyInfo = async () => {\n await SDK.setClipboardData(this._viewProps.manId);\n UIManager.showToast(\"用户ID:\" + this._viewProps.manId);\n }\n\n initItemConfig() {\n this._viewProps.manName = GameRecord.globalVariables.playerName;\n if (SDK.getLoginInfo()?.playerId) {\n this._viewProps.manId = SDK.getLoginInfo()?.playerId as string;\n }\n let player = GameModelManager.getPlayerData();\n this._viewProps.manName = player.getConfig().name;\n this._viewProps.manIcon = player.getHeadIcon();\n }\n\n onOpen() {\n super.onOpen(undefined);\n this._disposable.add(GameModelManager.PlayerOptionSkin.on(this.onPlayerOptionSkin));\n this._disposable.add(GameModelManager.ForceEnterDiscoverSubView.on(this.onForceEnterDiscoverSubView));\n this.onShow();\n }\n\n onForceEnterDiscoverSubView = (itemType: DiscoverItemType) => {\n this.itemClickCallBack(itemType);\n }\n\n onPlayerOptionSkin = () => {\n this.initViewProps();\n this.initItemConfig();\n this._view.updateProps(this._viewProps);\n }\n\n onShow() {\n super.onShow();\n this.initViewProps();\n this.initItemConfig();\n this.view.setProps(this._viewProps);\n this.view.createGameClubBtn();\n this.showGameClubBtn();\n }\n\n onEnterBackground() {\n super.onEnterBackground();\n this.hideGameClubBtn();\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n this.showGameClubBtn();\n }\n\n onHide() {\n super.onHide();\n SDK.destroyGameClubButton();\n }\n\n showGameClubBtn() {\n SDK.showGameClubButton();\n }\n\n hideGameClubBtn() {\n SDK.hideGameClubButton();\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/DiscoverViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAChC,0CAA8C;AAC9C,2EAAoE;AACpE,2EAAwE;AACxE,mEAAgE;AAChE,sEAAyD;AACzD,4DAA8F;AAC9F,0FAAuF;AACvF,iFAA8E;AAC9E,uCAA+C;AAC/C,+DAAwD;AACxD,iDAA0C;AAC1C,wFAAiF;AAGjF;IAAA,IAAqB,qBAAqB,GAA1C,MAAqB,qBAAsB,SAAQ,yBAAkC;QASjF;YACI,KAAK,EAAE,CAAC;YAaZ,sBAAiB,GAAG,CAAC,QAA0B,EAAE,EAAE;gBAC/C,QAAQ,QAAQ,EAAE;oBACd,KAAK,wBAAgB,CAAC,QAAQ;wBAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;wBACvB,qBAAS,CAAC,aAAa,CAAC,2DAA4B,EAAE,SAAS,CAAC,CAAC;wBACjE,MAAM;oBACV,KAAK,wBAAgB,CAAC,KAAK;wBACvB,MAAM;oBACV,KAAK,wBAAgB,CAAC,eAAe;wBACjC,IAAI,CAAC,eAAe,EAAE,CAAC;wBACvB,SAAS;wBACT,oBAAU,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;wBACvD,qBAAS,CAAC,aAAa,CAAC,6BAAmB,EAAE,SAAS,CAAC,CAAC;wBACxD,MAAM;oBACV,KAAK,wBAAgB,CAAC,cAAc;wBAChC,IAAI,CAAC,eAAe,EAAE,CAAC;wBACvB,SAAS;wBACT,qBAAS,CAAC,aAAa,CAAC,qCAA2B,EAAE,SAAS,CAAC,CAAC;wBAChE,MAAM;oBACV;wBACI,qBAAS,CAAC,SAAS,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AE,CAAC;YACf,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC9B,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED,iBAAiB;YACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED,iBAAiB;YACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC;QAED,MAAM;YACF,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,eAAG,CAAC,qBAAqB,EAAE,CAAC;QAChC,CAAC;QAED,eAAe;YACX,eAAG,CAAC,kBAAkB,EAAE,CAAC;QAC7B,CAAC;QAED,eAAe;YACX,eAAG,CAAC,kBAAkB,EAAE,CAAC;QAC7B,CAAC;KACJ,CAAA;IAlGU,0BAAI,GAAG,uBAAuB,CAAC;IADrB,qBAAqB;QADzC,qCAAY,CAAC,+BAAgB,CAAC;OACV,qBAAqB,CAmGzC;IAAD,4BAAC;KAAA;kBAnGoB,qBAAqB","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport { GameRecord } from \"../../../avg/AVG\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { DiscoverView, DiscoverViewProps, DiscoverViewType } from \"../view/type/DiscoverView\";\nimport { DiscoverSettingViewPresenter } from \"./discover/DiscoverSettingViewPresenter\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { DiscoverItemType } from \"../../Enums\";\nimport QRCodeViewPresenter from \"./QRCodeViewPresenter\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport ProductionTeamViewPresenter from \"./discover/ProductionTeamViewPresenter\";\n\n@RegPresenter(DiscoverViewType)\nexport default class DiscoverViewPresenter extends Presenter<undefined, DiscoverView> {\n static uuid = \"DiscoverViewPresenter\";\n\n private _viewProps: DiscoverViewProps;\n\n static isShowRedDot() {\n return false;\n }\n\n constructor() {\n super();\n }\n\n initViewProps() {\n this._viewProps = {\n manName: \"\",\n manId: \"\",\n manIcon: \"\",\n onCopyInfo: this.onCopyInfo,\n onItemClick: this.itemClickCallBack\n };\n }\n\n itemClickCallBack = (itemType: DiscoverItemType) => {\n switch (itemType) {\n case DiscoverItemType.Settings:\n this.hideGameClubBtn();\n UIManager.pushPresenter(DiscoverSettingViewPresenter, undefined);\n break;\n case DiscoverItemType.Forum:\n break;\n case DiscoverItemType.CustomerService:\n this.hideGameClubBtn();\n //点击二维码打点\n GameDotMgr.getInstance().dotClickUI(\"CustomerService\");\n UIManager.pushPresenter(QRCodeViewPresenter, undefined);\n break;\n case DiscoverItemType.ProductionTeam:\n this.hideGameClubBtn();\n //点击二维码打点\n UIManager.pushPresenter(ProductionTeamViewPresenter, undefined);\n break;\n default:\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_DEVELOPING_VALUE));\n break;\n }\n }\n\n onCopyInfo = async () => {\n await SDK.setClipboardData(this._viewProps.manId);\n UIManager.showToast(\"用户ID:\" + this._viewProps.manId);\n }\n\n initItemConfig() {\n this._viewProps.manName = GameRecord.globalVariables.playerName;\n if (SDK.getLoginInfo()?.playerId) {\n this._viewProps.manId = SDK.getLoginInfo()?.playerId as string;\n }\n let player = GameModelManager.getPlayerData();\n this._viewProps.manName = player.getConfig().name;\n this._viewProps.manIcon = player.getHeadIcon();\n }\n\n onOpen() {\n super.onOpen(undefined);\n this.onShow();\n }\n\n onShow() {\n super.onShow();\n this.initViewProps();\n this.initItemConfig();\n this.view.setProps(this._viewProps);\n this.view.createGameClubBtn();\n this.showGameClubBtn();\n }\n\n onEnterBackground() {\n super.onEnterBackground();\n this.hideGameClubBtn();\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n this.showGameClubBtn();\n }\n\n onHide() {\n super.onHide();\n SDK.destroyGameClubButton();\n }\n\n showGameClubBtn() {\n SDK.showGameClubButton();\n }\n\n hideGameClubBtn() {\n SDK.hideGameClubButton();\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/ExchangeCodeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAyD;AACzD,oEAA8G;AAC9G,2EAAoE;AACpE,6DAA0D;AAC1D,mEAAgE;AAChE,mFAAgF;AAChF,2EAAwE;AACxE,iFAA8E;AAC9E,iDAA0C;AAC1C,yCAAgC;AAChC,6FAAsF;AACtF,qEAA8D;AAC9D,mEAAsD;AACtD,6FAAsF;AACtF,oDAAiD;AAOjD;IAAA,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,yBAA8C;QAMjG;YACI,KAAK,EAAE,CAAC;YAkBZ,0BAAqB,GAAG,KAAK,EAAE,GAAY,EAAE,KAAa,EAAE,EAAE;gBAC1D,IAAI,CAAC,KAAK,IAAI,EAAE,KAAK,KAAK,CAAC,IAAI,EAAE,EAAE;oBAC/B,OAAO;iBACV;gBACD,oBAAU,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;gBACrD,IAAI,eAAe,GAAG,IAAI,CAAC;gBAC3B,IAAI,QAAQ,GAAG,EAAE,CAAC;gBAClB,IAAI,eAAe,EAAE;oBACjB,IAAI,GAAG,GAAG,MAAM,qCAAY,CAAC,KAAK,CAAC,CAAC;oBACpC,IAAI,uBAAU,CAAC,KAAK;wBAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;oBAChE,QAAQ,GAAG,CAAC,SAAS,EAAE;wBACnB,KAAK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AC;QAED,OAAO;YACH,KAAK,CAAC,OAAO,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACpC,CAAC;KAwGJ,CAAA;IA7HU,8BAAI,GAAG,2BAA2B,CAAC;IAFzB,yBAAyB;QAD7C,qCAAY,CAAC,uCAAoB,CAAC;OACd,yBAAyB,CA+H7C;IAAD,gCAAC;KAAA;kBA/HoB,yBAAyB","file":"","sourceRoot":"/","sourcesContent":["import { RegPresenter } from \"../PresenterCCViewFactory\";\r\nimport { ExchangeCodeViewType, ExchangeCodeView, ExchangeCodeViewProps } from \"../view/type/ExChangeCodeView\";\r\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\r\nimport { HttpRequests } from \"../../network/HttpRequests\";\r\nimport { GameModelManager } from \"../../model/GameModelManager\";\r\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\r\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\r\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\r\nimport GameDotMgr from \"../../GameDotMgr\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport UnlockSpecialPlotEventManager from \"../../model/UnlockSpecialPlotEventManager\";\r\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\r\nimport { exchangeCode } from \"simba-sdk-exchangecode\";\r\nimport { ExchangeErrorCode } from \"simba-sdk-exchangecode/dist/ExchangeCodeClassBase\";\r\nimport { GameConfig } from \"../../../GameConfig\";\r\n\r\ninterface ExchangeCodeParam {\r\n titletxt: string;\r\n contenttxt: string;\r\n}\r\n@RegPresenter(ExchangeCodeViewType)\r\nexport default class ExchangeCodeViewPresenter extends Presenter<ExchangeCodeParam, ExchangeCodeView>\r\n{\r\n static uuid = \"ExchangeCodeViewPresenter\";\r\n\r\n private _viewProps: ExchangeCodeViewProps;\r\n\r\n constructor() {\r\n super();\r\n this._viewProps = {\r\n onActionClick: this.onActionClickCallback\r\n };\r\n }\r\n\r\n onOpen(param: ExchangeCodeParam) {\r\n super.onOpen(param);\r\n this._view.setProps(this._viewProps);\r\n this.view.setContentTxt(param.titletxt, param.contenttxt);\r\n this.view.showBanner(false);\r\n }\r\n\r\n onClose() {\r\n super.onClose();\r\n this.view.setContentTxt(\"\", \"\");\r\n }\r\n\r\n onActionClickCallback = async (ret: boolean, cdkey: string) => {\r\n if (!cdkey || \"\" === cdkey.trim()) {\r\n return;\r\n }\r\n GameDotMgr.getInstance().dotClickUI(\"exchange_code\");\r\n let sdkExchangeCode = true;\r\n let toastStr = \"\";\r\n if (sdkExchangeCode) {\r\n let ret = await exchangeCode(cdkey);\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode ret: \", ret);\r\n switch (ret.errorCode) {\r\n case ExchangeErrorCode.Invalid:\r\n {\r\n toastStr = \"兑换码无效\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Invalid, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.OK:\r\n {\r\n if (ret.props && 0 !== ret.props.length) {\r\n let player = GameModelManager.getPlayerData();\r\n for (let i = 0; i < ret.props.length; i++) {\r\n let p = ret.props[i];\r\n // player.addProps(parseInt(p.id + ''), parseInt(p.num + ''));\r\n let id = Number.parseInt(p.id + '');\r\n let count = Number.parseInt(p.num + '');\r\n if (id >= GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID && id < 1000) {\r\n let itemId = Math.floor(id / GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID);\r\n let specialPlotId = id - GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID * itemId;\r\n UnlockSpecialPlotEventManager.getInstance().cdKeyUnlockSpecialPlot(specialPlotId, itemId);\r\n } else if (id === GameConstData.UNLOCK_PLOT_WITHOUT_AD) {\r\n CDKeyEventManager.getInstance().cdKeyRemovePlotAD();\r\n } else if (id >= GameConstData.CHANGE_ROLE_LIKE && id < 3000) {\r\n let roleId = id - GameConstData.CHANGE_ROLE_LIKE;\r\n CDKeyEventManager.getInstance().changeRoleLike(roleId, count);\r\n }\r\n }\r\n GameModelManager.UpdatePlayerData.emit();\r\n }\r\n }\r\n break;\r\n case ExchangeErrorCode.TimeOut:\r\n {\r\n toastStr = \"兑换码已过期!\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode TimeOut, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.Used:\r\n {\r\n toastStr = \"兑换码已经兑换过了\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Used, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.ScoreWeak:\r\n {\r\n toastStr = \"积分不足\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Used, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n }\r\n } else {\r\n if (ret) {\r\n let ret = await HttpRequests.exchangeCDKEY(cdkey) as any;\r\n console.log(\"current ret is\" + JSON.stringify(ret));\r\n if (ret.code === \"0\") {\r\n for (let i = 0; i < ret.obj.props.length; i++) {\r\n let data = ret.obj.props[i];\r\n let id = Number.parseInt(data.prop_id);\r\n let count = Number.parseInt(data.count);\r\n if (id >= GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID && id < 1000) {\r\n let itemId = Math.floor(id / GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID);\r\n let specialPlotId = id - GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID * itemId;\r\n UnlockSpecialPlotEventManager.getInstance().cdKeyUnlockSpecialPlot(specialPlotId, itemId);\r\n } else if (id === GameConstData.UNLOCK_PLOT_WITHOUT_AD) {\r\n CDKeyEventManager.getInstance().cdKeyRemovePlotAD();\r\n //兑换码兑换成功打点\r\n if (SDK.getLoginInfo()!.playerId) {\r\n GameDotMgr.getInstance().dotExchangeCodeSuccess(SDK.getLoginInfo()!.playerId, GameConstData.UNLOCK_PLOT_WITHOUT_AD.toString());\r\n }\r\n } else if (id >= GameConstData.CHANGE_ROLE_LIKE && id < 3000) {\r\n let roleId = id - GameConstData.CHANGE_ROLE_LIKE;\r\n CDKeyEventManager.getInstance().changeRoleLike(roleId, count);\r\n }\r\n }\r\n GameModelManager.UpdatePlayerData.emit();\r\n } else if (ret.code === \"104001\") {//错误的验证码\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYINVALID_VALUE);\r\n UIManager.showToast(content);\r\n } else if (ret.code === \"104002\") {//已经领过了\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYHADEXCHANGED_VALUE);\r\n UIManager.showToast(content);\r\n } else {//其他\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYINVALID_VALUE);\r\n UIManager.showToast(content);\r\n }\r\n }\r\n }\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/ExchangeCodeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAyD;AACzD,oEAA8G;AAC9G,2EAAoE;AACpE,6DAA0D;AAC1D,mEAAgE;AAChE,mFAAgF;AAChF,2EAAwE;AACxE,iFAA8E;AAC9E,iDAA0C;AAE1C,6FAAsF;AACtF,qEAA8D;AAC9D,mEAAsD;AACtD,6FAAsF;AACtF,oDAAiD;AAOjD;IAAA,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,yBAA8C;QAMjG;YACI,KAAK,EAAE,CAAC;YAkBZ,0BAAqB,GAAG,KAAK,EAAE,GAAY,EAAE,KAAa,EAAE,EAAE;gBAC1D,IAAI,CAAC,KAAK,IAAI,EAAE,KAAK,KAAK,CAAC,IAAI,EAAE,EAAE;oBAC/B,OAAO;iBACV;gBACD,oBAAU,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;gBACrD,IAAI,eAAe,GAAG,IAAI,CAAC;gBAC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C,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACpC,CAAC;KAkGJ,CAAA;IAvHU,8BAAI,GAAG,2BAA2B,CAAC;IAFzB,yBAAyB;QAD7C,qCAAY,CAAC,uCAAoB,CAAC;OACd,yBAAyB,CAyH7C;IAAD,gCAAC;KAAA;kBAzHoB,yBAAyB","file":"","sourceRoot":"/","sourcesContent":["import { RegPresenter } from \"../PresenterCCViewFactory\";\r\nimport { ExchangeCodeViewType, ExchangeCodeView, ExchangeCodeViewProps } from \"../view/type/ExChangeCodeView\";\r\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\r\nimport { HttpRequests } from \"../../network/HttpRequests\";\r\nimport { GameModelManager } from \"../../model/GameModelManager\";\r\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\r\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\r\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\r\nimport GameDotMgr from \"../../GameDotMgr\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport UnlockSpecialPlotEventManager from \"../../model/UnlockSpecialPlotEventManager\";\r\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\r\nimport { exchangeCode } from \"simba-sdk-exchangecode\";\r\nimport { ExchangeErrorCode } from \"simba-sdk-exchangecode/dist/ExchangeCodeClassBase\";\r\nimport { GameConfig } from \"../../../GameConfig\";\r\n\r\ninterface ExchangeCodeParam {\r\n titletxt: string;\r\n contenttxt: string;\r\n}\r\n@RegPresenter(ExchangeCodeViewType)\r\nexport default class ExchangeCodeViewPresenter extends Presenter<ExchangeCodeParam, ExchangeCodeView>\r\n{\r\n static uuid = \"ExchangeCodeViewPresenter\";\r\n\r\n private _viewProps: ExchangeCodeViewProps;\r\n\r\n constructor() {\r\n super();\r\n this._viewProps = {\r\n onActionClick: this.onActionClickCallback\r\n };\r\n }\r\n\r\n onOpen(param: ExchangeCodeParam) {\r\n super.onOpen(param);\r\n this._view.setProps(this._viewProps);\r\n this.view.setContentTxt(param.titletxt, param.contenttxt);\r\n this.view.showBanner(false);\r\n }\r\n\r\n onClose() {\r\n super.onClose();\r\n this.view.setContentTxt(\"\", \"\");\r\n }\r\n\r\n onActionClickCallback = async (ret: boolean, cdkey: string) => {\r\n if (!cdkey || \"\" === cdkey.trim()) {\r\n return;\r\n }\r\n GameDotMgr.getInstance().dotClickUI(\"exchange_code\");\r\n let sdkExchangeCode = true;\r\n let toastStr = \"\";\r\n if (sdkExchangeCode) {\r\n let ret = await exchangeCode(cdkey);\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode ret: \", ret);\r\n switch (ret.errorCode) {\r\n case ExchangeErrorCode.Invalid:\r\n {\r\n toastStr = \"兑换码无效\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Invalid, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.OK:\r\n {\r\n if (ret.props && 0 !== ret.props.length) {\r\n let player = GameModelManager.getPlayerData();\r\n for (let i = 0; i < ret.props.length; i++) {\r\n let p = ret.props[i];\r\n // player.addProps(parseInt(p.id + ''), parseInt(p.num + ''));\r\n let id = Number.parseInt(p.id + '');\r\n let count = Number.parseInt(p.num + '');\r\n if (id >= GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID && id < 1000) {\r\n let itemId = Math.floor(id / GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID);\r\n let specialPlotId = id - GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID * itemId;\r\n UnlockSpecialPlotEventManager.getInstance().cdKeyUnlockSpecialPlot(specialPlotId, itemId);\r\n } else if (id === GameConstData.UNLOCK_PLOT_WITHOUT_AD) {\r\n CDKeyEventManager.getInstance().cdKeyRemovePlotAD();\r\n } else if (id >= GameConstData.CHANGE_ROLE_LIKE && id < 3000) {\r\n let roleId = id - GameConstData.CHANGE_ROLE_LIKE;\r\n CDKeyEventManager.getInstance().changeRoleLike(roleId, count);\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n case ExchangeErrorCode.TimeOut:\r\n {\r\n toastStr = \"兑换码已过期!\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode TimeOut, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.Used:\r\n {\r\n toastStr = \"兑换码已经兑换过了\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Used, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n case ExchangeErrorCode.ScoreWeak:\r\n {\r\n toastStr = \"积分不足\";\r\n if (GameConfig.debug) console.log(\"SDKExchangeCode Used, toastStr: \", toastStr);\r\n UIManager.showToast(toastStr);\r\n }\r\n break;\r\n }\r\n } else {\r\n if (ret) {\r\n let ret = await HttpRequests.exchangeCDKEY(cdkey) as any;\r\n console.log(\"current ret is\" + JSON.stringify(ret));\r\n if (ret.code === \"0\") {\r\n for (let i = 0; i < ret.obj.props.length; i++) {\r\n let data = ret.obj.props[i];\r\n let id = Number.parseInt(data.prop_id);\r\n let count = Number.parseInt(data.count);\r\n if (id >= GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID && id < 1000) {\r\n let itemId = Math.floor(id / GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID);\r\n let specialPlotId = id - GameConstData.GAME_ITEM_AND_SPECIAL_PLOT_ID * itemId;\r\n UnlockSpecialPlotEventManager.getInstance().cdKeyUnlockSpecialPlot(specialPlotId, itemId);\r\n } else if (id === GameConstData.UNLOCK_PLOT_WITHOUT_AD) {\r\n CDKeyEventManager.getInstance().cdKeyRemovePlotAD();\r\n } else if (id >= GameConstData.CHANGE_ROLE_LIKE && id < 3000) {\r\n let roleId = id - GameConstData.CHANGE_ROLE_LIKE;\r\n CDKeyEventManager.getInstance().changeRoleLike(roleId, count);\r\n }\r\n }\r\n } else if (ret.code === \"104001\") {//错误的验证码\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYINVALID_VALUE);\r\n UIManager.showToast(content);\r\n } else if (ret.code === \"104002\") {//已经领过了\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYHADEXCHANGED_VALUE);\r\n UIManager.showToast(content);\r\n } else {//其他\r\n let content = GameModelManager.getLanguageTxt(GameTextData.TEXT_CDKEYINVALID_VALUE);\r\n UIManager.showToast(content);\r\n }\r\n }\r\n }\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+DAAqD;AACrD,0CAAuD;AACvD,0DAAoD;AACpD,2EAAkF;AAClF,iFAA8E;AAC9E,2EAAwE;AACxE,mEAAgE;AAChE,qEAAkE;AAClE,uCAA8K;AAC9K,iDAA0C;AAC1C,qEAA8D;AAC9D,6EAA6F;AAC7F,+EAA4E;AAC5E,mEAAgE;AAChE,sEAA0E;AAE1E,0FAAuJ;AACvJ,yEAAkE;AAClE,iEAA8D;AAC9D,6DAA+E;AAG/E;IAAA,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,4BAAyC;QAAnG;;YACY,cAAS,GAA6C,EAAE,CAAC;YACzD,mBAAc,GAAW,CAAC,CAAC,CAAC;YAC5B,qBAAgB,GAAW,CAAC,CAAC;YAC7B,qBAAgB,GAAW,CAAC,CAAC;YAC7B,wBAAmB,GAAY,KAAK,CAAC;YA+H7C,sBAAiB,GAAG,CAAC,GAAW,EAAE,EAAE;gBAChC,mCAAgB,CAAC,uBAAuB,CAAC,GAAG,EAAE,kBAAU,CAAC,QAAQ,CAAC,CAAC;gBACnE,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;gBAC5B,IAAI,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACnD,2BAAiB,CAAC,WAAW,EAAE,C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CAAC,6BAA6B,EAAE,CAAC;YAC9D,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;gBACzB,IAAI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACrC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;gBAClD,IAAI,IAAI,CAAC,gBAAgB,KAAK,CAAC,EAAE;oBAC7B,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;iBACpD;aACJ;QACL,CAAC;QA0BD,sBAAsB;YAClB,IAAI,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;YAC5C,IAAI,GAAG,GAAG,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;YAC3D,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE;gBACnB,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACjC,IAAI,GAAG,GAAG,oCAAa,CAAC,SAAS,CAAC,iCAAe,EAAE,GAAG,CAAC,CAAC;gBACxD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC,aAAa,CAAC;aAC7C;YACD,IAAI,CAAC,mBAAmB,GAAG,eAAe,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACvF,CAAC;KAyBJ,CAAA;IAnUY,oCAAoC;QADhD,wCAAe,CAAC,6DAA+B,CAAC;OACpC,oCAAoC,CAmUhD;IAAD,2CAAC;KAAA;AAnUY,oFAAoC","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, getPlot } from \"../../../avg/AVG\";\nimport { DateType } from \"../../../avg/EditorEnums\";\nimport { Presenter, Subpresenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { CommonLocation, DatePrefabDirectType, DirectionType, EventLocation, EventOperationType, GuideLocation, GuideOperationType, GuideState, StepType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { ExtraStoryModelManager } from \"../../model/ExtraStoryModelManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter, RegSubpresenter } from \"../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { ExtraPlotDatingEventItemProps, ExtraPlotDatingEventSubView, ExtraPlotDatingEventSubViewType } from \"../view/type/ExtraPlotDatingEventSubView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\n\n@RegSubpresenter(ExtraPlotDatingEventSubViewType)\nexport class ExtraPlotDatingEventSubViewPresenter extends Subpresenter<ExtraPlotDatingEventSubView> {\n private _modelMap: { [key: string]: DatingEventSceneModel } = {};\n private _dailySceneNum: number = -1;\n private _curChapterIndex: number = 1;\n private _maxChapterIndex: number = 1;\n private _maxChapterIsChange: boolean = false;\n isReview: boolean;\n\n private sceneModelToViewModel(item: DatingEventSceneModel, index: number): ExtraPlotDatingEventItemProps {\n this._modelMap[item.id.toString()] = item;\n let direct = DatePrefabDirectType.Left;\n if (this._curChapterIndex % 2 === 1) {\n direct = (index + 1) % 2 === 1 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n } else {\n direct = (index + 1) % 2 === 0 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n }\n return {\n key: item.id + \"\",\n title: GameModelManager.getConfigLanguageTxt(item.config.name),\n status: item.status,\n coverImage: \"textures/dating_event/cover/\" + item.config.background,\n itype: direct\n }\n }\n\n // async refreshItems() {\n // let items: ExtraDateItemViewProps[] = [];\n // let cfgIdArr: number[] = this.getCfgIdArr();\n // let role = GameModelManager.getRoleData(this._viewProps.roleId);\n // for (let i = 0; i < cfgIdArr.length; i++) {\n // let cfg = ConfigManager.getConfig(extraSceneConfig, cfgIdArr[i]);\n // if (role && role.getRelationValue() >= cfg.relationCondition) {\n // await ExtraStoryModelManager.startBranches([cfg.start_plot_id]);\n // }\n // let sceneModel = new DatingEventSceneModel(cfg.id, false);\n // await sceneModel.initFromRecords();\n // if (sceneModel.status === DatingEventStatus.Locked && role!.getRelationValue() >= cfg.relationCondition) {\n // sceneModel.status = DatingEventStatus.New;\n // }\n // let p = this.sceneModelToViewModel(sceneModel);\n // p.showLine = i !== cfgIdArr.length - 1;\n // items.push(p);\n // }\n // this._viewProps.items = items;\n // }\n\n async refreshItems() {\n let items: ExtraPlotDatingEventItemProps[] = [];\n let srcModels: DatingEventSceneModel[] = [];\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (cfg[id].DateType == DateType.Date_Sp && cfg[id].chapter_index == this._curChapterIndex) {\n await ExtraStoryModelManager.startBranches([cfg[id].start_plot_id]);\n let plot = await getPlot(cfg[id].start_plot_id);\n let model = new DatingEventSceneModel(Number(id));\n // model.status = ExtraStoryModelManager.getBranchStatus(model.id, model.config.start_plot_id);\n await model.initFromRecords();\n if (model.status === DatingEventStatus.Locked) {\n model.status = DatingEventStatus.New;\n }\n // model.firstPlot = plot;\n model.isExtra = true;\n srcModels.push(model);\n }\n }\n for (let i = srcModels.length - 1; i >= 0; i--) {\n items.push(this.sceneModelToViewModel(srcModels[i], i));\n }\n if (this._dailySceneNum == -1) {\n let maxItemsNum: number = 0;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfg) {\n let c = cfg[id];\n if (c) {\n maxItemsNum++;\n }\n }\n this._dailySceneNum = maxItemsNum;\n }\n let showContinue = false;\n if (srcModels.length !== 0) {\n let c = 0;\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfgs) {\n let cfg = cfgs[id];\n if (cfg) {\n c++;\n }\n }\n let last = srcModels[srcModels.length - 1];\n showContinue = last.id === c;\n }\n this.view.setProps({\n items,\n onItemClick: this.onItemAdModeClick,\n showContinue: showContinue,\n chapterName: this.getChapterName(this._curChapterIndex),\n showLeft: this._curChapterIndex !== 1,\n showRight: this._curChapterIndex !== this._maxChapterIndex,\n showChapterClear: this.checkChapterClear(items, this._curChapterIndex),\n onOptionChapter: this.onOptionChapter,\n chapterIndex: this._curChapterIndex\n });\n }\n\n checkChapterClear(items: ExtraPlotDatingEventItemProps[], chapterIndex: number): boolean {\n let showClear: boolean = true;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let cnt = 0;\n for (let id in cfg) {\n let c = cfg[id]\n if (c && c.chapter_index === chapterIndex) {\n cnt++;\n }\n }\n if (cnt !== items.length) {\n return false;\n }\n return showClear;\n }\n\n getChapterName(chapterIndex: number): string {\n chapterIndex -= 1;\n let nameArr: string[] =\n [\n \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", \"十\",\n \"十一\", \"十二\", \"十三\", \"十四\", \"十五\", \"十六\", \"十七\", \"十八\", \"十九\", \"二十\"\n ];\n let name = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CHAPTER_NAME), nameArr[chapterIndex]);\n return name\n }\n\n onItemAdModeClick = (key: string) => {\n GameModelManager.setGuideEventItemRecord(key, GuideState.Complete);\n let m = this._modelMap[key];\n let hasRecord = this.checkIsSceneHasAdRecord(m.id);\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n if (m.status !== DatingEventStatus.Completed) {\n GameDotMgr.getInstance().dotClickUI(\"click_date_card\" + m.config.id);\n }\n let showAdAlert: boolean = !(removeAdCardNum > 0) && !hasRecord && m.config.ads === 1 && m.status == DatingEventStatus.New;\n if (showAdAlert) {\n let temp: AlertDialogViewProps =\n {\n dataptr: { key },\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WAIT_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SHOW_AD_UNLOCK_DATE_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n location: CommonLocation.Event,\n callback: this.showAdCallBack,\n hasBanner: false,\n isthreebtn: true\n };\n console.log(\"Push AlertDialogViewPros data end\");\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n console.log(\"pushPresenter=========\");\n } else {\n this.enterDatingScene(key);\n }\n }\n\n showAdCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n if (true) {\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n }\n }\n }\n\n checkIsSceneHasAdRecord(id: number): boolean {\n let ret: boolean = false;\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n if (record) {\n let a: number[] = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n ret = i !== -1;\n }\n return ret;\n }\n\n pushSceneAdToRecord(id: number) {\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n let isExsit: boolean = false;\n if (record) {\n a = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n if (i >= 0) {\n isExsit = true;\n }\n }\n if (!isExsit) {\n a.push(id);\n a.reverse();\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n GameRecord.autoSave();\n }\n }\n\n enterDatingScene(key: string) {\n ExtraStoryModelManager.enterExtraStoryByStartPlotId(this._modelMap[key].config.start_plot_id);\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n UIManager.pushPresenter(DatingScenePresenter, this._modelMap[key], true);\n }\n\n onOwnerShow() {\n if (!this.view.isHidden) {\n this.selectCurChapter();\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n }\n }\n\n onOwnerEnterForeground() {\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n }\n if (this._maxChapterIsChange) {\n this.selectCurChapter();\n }\n }\n\n onOpen() {\n super.onOpen();\n this._disposable.add(GameModelManager.CheckDateGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.RefreshDateSceneProgress.on(this.onRefreshDateSceneProgress));\n this._disposable.add(GameModelManager.ForceClickDatingItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshExtraPlotByType.on(this.onRefreshExtraPlotByType));\n this.selectCurChapter();\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.onShow();\n }\n }\n\n onShow() {\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n this.checkGuideItem();\n }\n\n onHide() {\n\n }\n\n selectCurChapter() {\n let models = GameModelManager.getMainDatingEventScenesModel();\n if (models && models.length) {\n let last = models[models.length - 1];\n this._curChapterIndex = last.config.chapter_index;\n if (this._curChapterIndex !== 1) {\n GameModelManager.setNotNeedEnterCurDateChapter();\n }\n }\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getEventItemGuideKey();\n if (k && \"\" !== k) {\n let node = this.view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemAdModeClick(k);\n // this.onItemEnergyCostClick(k);\n GameModelManager.setGuideEventItemRecord(k, GuideState.Complete);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Show, GuideLocation.EventItem);\n }\n }\n }\n\n refreshMaxChapterIndex() {\n let maxChapterIndex = this._maxChapterIndex;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let dId = arr[arr.length - 1].id;\n let cfg = ConfigManager.getConfig(dateSceneConfig, dId);\n this._maxChapterIndex = cfg.chapter_index;\n }\n this._maxChapterIsChange = maxChapterIndex == this._maxChapterIndex ? false : true;\n }\n\n onOptionChapter = (stepType: StepType) => {\n let tempIndex = stepType === StepType.Add ? this._curChapterIndex + 1 : this._curChapterIndex - 1;\n this._curChapterIndex = tempIndex >= 1 && tempIndex <= this._maxChapterIndex ? tempIndex : this._curChapterIndex;\n this.refreshItems();\n }\n\n onRefreshDateSceneProgress = () => {\n this.refreshItems();\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"DatingEventSubpresenter onForceClickItem id = \", id);\n let k = id + \"\";\n if (!this._modelMap || !this._modelMap[k]) {\n return;\n }\n this.onItemAdModeClick(k);\n }\n\n onRefreshExtraPlotByType = (id: number) => {\n this._curChapterIndex = id;\n this.refreshItems();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/ExtraPlotDatingEventSubViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+DAAqD;AACrD,0CAAuD;AACvD,0DAAoD;AACpD,2EAAkF;AAClF,iFAA8E;AAC9E,2EAAwE;AACxE,mEAAgE;AAChE,qEAAkE;AAClE,uCAA8K;AAC9K,iDAA0C;AAC1C,qEAA8D;AAC9D,6EAA6F;AAC7F,+EAA4E;AAC5E,mEAAgE;AAChE,sEAA0E;AAE1E,0FAAuJ;AACvJ,yEAAkE;AAClE,iEAA8D;AAC9D,6DAA+E;AAG/E;IAAA,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,4BAAyC;QAAnG;;YACY,cAAS,GAA6C,EAAE,CAAC;YACzD,mBAAc,GAAW,CAAC,CAAC,CAAC;YAC5B,qBAAgB,GAAW,CAAC,CAAC;YAC7B,qBAAgB,GAAW,CAAC,CAAC;YAC7B,wBAAmB,GAAY,KAAK,CAAC;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AA6B,EAAE,CAAC;YAC9D,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;gBACzB,IAAI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACrC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;gBAClD,IAAI,IAAI,CAAC,gBAAgB,KAAK,CAAC,EAAE;oBAC7B,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;iBACpD;aACJ;QACL,CAAC;QAyBD,sBAAsB;YAClB,IAAI,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;YAC5C,IAAI,GAAG,GAAG,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;YAC3D,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE;gBACnB,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACjC,IAAI,GAAG,GAAG,oCAAa,CAAC,SAAS,CAAC,iCAAe,EAAE,GAAG,CAAC,CAAC;gBACxD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC,aAAa,CAAC;aAC7C;YACD,IAAI,CAAC,mBAAmB,GAAG,eAAe,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACvF,CAAC;KAqBJ,CAAA;IA7TY,oCAAoC;QADhD,wCAAe,CAAC,6DAA+B,CAAC;OACpC,oCAAoC,CA6ThD;IAAD,2CAAC;KAAA;AA7TY,oFAAoC","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, getPlot } from \"../../../avg/AVG\";\nimport { DateType } from \"../../../avg/EditorEnums\";\nimport { Presenter, Subpresenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { CommonLocation, DatePrefabDirectType, DirectionType, EventLocation, EventOperationType, GuideLocation, GuideOperationType, GuideState, StepType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { ExtraStoryModelManager } from \"../../model/ExtraStoryModelManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter, RegSubpresenter } from \"../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { ExtraPlotDatingEventItemProps, ExtraPlotDatingEventSubView, ExtraPlotDatingEventSubViewType } from \"../view/type/ExtraPlotDatingEventSubView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\n\n@RegSubpresenter(ExtraPlotDatingEventSubViewType)\nexport class ExtraPlotDatingEventSubViewPresenter extends Subpresenter<ExtraPlotDatingEventSubView> {\n private _modelMap: { [key: string]: DatingEventSceneModel } = {};\n private _dailySceneNum: number = -1;\n private _curChapterIndex: number = 1;\n private _maxChapterIndex: number = 1;\n private _maxChapterIsChange: boolean = false;\n isReview: boolean;\n\n private sceneModelToViewModel(item: DatingEventSceneModel, index: number): ExtraPlotDatingEventItemProps {\n this._modelMap[item.id.toString()] = item;\n let direct = DatePrefabDirectType.Left;\n if (this._curChapterIndex % 2 === 1) {\n direct = (index + 1) % 2 === 1 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n } else {\n direct = (index + 1) % 2 === 0 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n }\n return {\n key: item.id + \"\",\n title: GameModelManager.getConfigLanguageTxt(item.config.name),\n status: item.status,\n coverImage: \"textures/dating_event/cover/\" + item.config.background,\n itype: direct\n }\n }\n\n // async refreshItems() {\n // let items: ExtraDateItemViewProps[] = [];\n // let cfgIdArr: number[] = this.getCfgIdArr();\n // let role = GameModelManager.getRoleData(this._viewProps.roleId);\n // for (let i = 0; i < cfgIdArr.length; i++) {\n // let cfg = ConfigManager.getConfig(extraSceneConfig, cfgIdArr[i]);\n // if (role && role.getRelationValue() >= cfg.relationCondition) {\n // await ExtraStoryModelManager.startBranches([cfg.start_plot_id]);\n // }\n // let sceneModel = new DatingEventSceneModel(cfg.id, false);\n // await sceneModel.initFromRecords();\n // if (sceneModel.status === DatingEventStatus.Locked && role!.getRelationValue() >= cfg.relationCondition) {\n // sceneModel.status = DatingEventStatus.New;\n // }\n // let p = this.sceneModelToViewModel(sceneModel);\n // p.showLine = i !== cfgIdArr.length - 1;\n // items.push(p);\n // }\n // this._viewProps.items = items;\n // }\n\n async refreshItems() {\n let items: ExtraPlotDatingEventItemProps[] = [];\n let srcModels: DatingEventSceneModel[] = [];\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (cfg[id].DateType == DateType.Date_Sp && cfg[id].chapter_index == this._curChapterIndex) {\n await ExtraStoryModelManager.startBranches([cfg[id].start_plot_id]);\n let plot = await getPlot(cfg[id].start_plot_id);\n let model = new DatingEventSceneModel(Number(id));\n // model.status = ExtraStoryModelManager.getBranchStatus(model.id, model.config.start_plot_id);\n await model.initFromRecords();\n if (model.status === DatingEventStatus.Locked) {\n model.status = DatingEventStatus.New;\n }\n // model.firstPlot = plot;\n model.isExtra = true;\n srcModels.push(model);\n }\n }\n for (let i = srcModels.length - 1; i >= 0; i--) {\n items.push(this.sceneModelToViewModel(srcModels[i], i));\n }\n if (this._dailySceneNum == -1) {\n let maxItemsNum: number = 0;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfg) {\n let c = cfg[id];\n if (c) {\n maxItemsNum++;\n }\n }\n this._dailySceneNum = maxItemsNum;\n }\n let showContinue = false;\n if (srcModels.length !== 0) {\n let c = 0;\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfgs) {\n let cfg = cfgs[id];\n if (cfg) {\n c++;\n }\n }\n let last = srcModels[srcModels.length - 1];\n showContinue = last.id === c;\n }\n this.view.setProps({\n items,\n onItemClick: this.onItemAdModeClick,\n showContinue: showContinue,\n chapterName: this.getChapterName(this._curChapterIndex),\n showLeft: this._curChapterIndex !== 1,\n showRight: this._curChapterIndex !== this._maxChapterIndex,\n showChapterClear: this.checkChapterClear(items, this._curChapterIndex),\n onOptionChapter: this.onOptionChapter,\n chapterIndex: this._curChapterIndex\n });\n }\n\n checkChapterClear(items: ExtraPlotDatingEventItemProps[], chapterIndex: number): boolean {\n let showClear: boolean = true;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let cnt = 0;\n for (let id in cfg) {\n let c = cfg[id]\n if (c && c.chapter_index === chapterIndex) {\n cnt++;\n }\n }\n if (cnt !== items.length) {\n return false;\n }\n return showClear;\n }\n\n getChapterName(chapterIndex: number): string {\n chapterIndex -= 1;\n let nameArr: string[] =\n [\n \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", \"十\",\n \"十一\", \"十二\", \"十三\", \"十四\", \"十五\", \"十六\", \"十七\", \"十八\", \"十九\", \"二十\"\n ];\n let name = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CHAPTER_NAME), nameArr[chapterIndex]);\n return name\n }\n\n onItemAdModeClick = (key: string) => {\n GameModelManager.setGuideEventItemRecord(key, GuideState.Complete);\n let m = this._modelMap[key];\n let hasRecord = this.checkIsSceneHasAdRecord(m.id);\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n if (m.status !== DatingEventStatus.Completed) {\n GameDotMgr.getInstance().dotClickUI(\"click_date_card\" + m.config.id);\n }\n let showAdAlert: boolean = !(removeAdCardNum > 0) && !hasRecord && m.config.ads === 1 && m.status == DatingEventStatus.New;\n if (showAdAlert) {\n let temp: AlertDialogViewProps =\n {\n dataptr: { key },\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WAIT_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SHOW_AD_UNLOCK_DATE_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n location: CommonLocation.Event,\n callback: this.showAdCallBack,\n hasBanner: false,\n isthreebtn: true\n };\n console.log(\"Push AlertDialogViewPros data end\");\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n console.log(\"pushPresenter=========\");\n } else {\n this.enterDatingScene(key);\n }\n }\n\n showAdCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n if (true) {\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n }\n }\n }\n\n checkIsSceneHasAdRecord(id: number): boolean {\n let ret: boolean = false;\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n if (record) {\n let a: number[] = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n ret = i !== -1;\n }\n return ret;\n }\n\n pushSceneAdToRecord(id: number) {\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n let isExsit: boolean = false;\n if (record) {\n a = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n if (i >= 0) {\n isExsit = true;\n }\n }\n if (!isExsit) {\n a.push(id);\n a.reverse();\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n GameRecord.autoSave();\n }\n }\n\n enterDatingScene(key: string) {\n ExtraStoryModelManager.enterExtraStoryByStartPlotId(this._modelMap[key].config.start_plot_id);\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n UIManager.pushPresenter(DatingScenePresenter, this._modelMap[key], true);\n }\n\n onOwnerShow() {\n if (!this.view.isHidden) {\n this.selectCurChapter();\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n }\n }\n\n onOwnerEnterForeground() {\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n }\n if (this._maxChapterIsChange) {\n this.selectCurChapter();\n }\n }\n\n onOpen() {\n super.onOpen();\n this._disposable.add(GameModelManager.CheckDateGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.ForceClickDatingItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshExtraPlotByType.on(this.onRefreshExtraPlotByType));\n this.selectCurChapter();\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.onShow();\n }\n }\n\n onShow() {\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n this.checkGuideItem();\n }\n\n onHide() {\n\n }\n\n selectCurChapter() {\n let models = GameModelManager.getMainDatingEventScenesModel();\n if (models && models.length) {\n let last = models[models.length - 1];\n this._curChapterIndex = last.config.chapter_index;\n if (this._curChapterIndex !== 1) {\n GameModelManager.setNotNeedEnterCurDateChapter();\n }\n }\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getEventItemGuideKey();\n if (k && \"\" !== k) {\n let node = this.view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemAdModeClick(k);\n // this.onItemEnergyCostClick(k);\n GameModelManager.setGuideEventItemRecord(k, GuideState.Complete);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n }\n\n refreshMaxChapterIndex() {\n let maxChapterIndex = this._maxChapterIndex;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let dId = arr[arr.length - 1].id;\n let cfg = ConfigManager.getConfig(dateSceneConfig, dId);\n this._maxChapterIndex = cfg.chapter_index;\n }\n this._maxChapterIsChange = maxChapterIndex == this._maxChapterIndex ? false : true;\n }\n\n onOptionChapter = (stepType: StepType) => {\n let tempIndex = stepType === StepType.Add ? this._curChapterIndex + 1 : this._curChapterIndex - 1;\n this._curChapterIndex = tempIndex >= 1 && tempIndex <= this._maxChapterIndex ? tempIndex : this._curChapterIndex;\n this.refreshItems();\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"DatingEventSubpresenter onForceClickItem id = \", id);\n let k = id + \"\";\n if (!this._modelMap || !this._modelMap[k]) {\n return;\n }\n this.onItemAdModeClick(k);\n }\n\n onRefreshExtraPlotByType = (id: number) => {\n this._curChapterIndex = id;\n this.refreshItems();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/MainViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AACrD,0CAAyF;AACzF,2EAAqF;AAErF,iFAA8E;AAC9E,2EAAwE;AACxE,qEAAkE;AAClE,uCAAsH;AACtH,iDAA0C;AAC1C,6EAAsE;AACtE,mEAAgE;AAChE,sEAAyD;AACzD,0CAAmC;AACnC,8EAAsE;AACtE,oDAA8E;AAC9E,yEAAkE;AAClE,iEAA8D;AAC9D,6DAAsD;AACtD,mEAA4D;AAC5D,6DAAsD;AACtD,iEAA0D;AAC1D,+DAAwD;AACxD,mEAA4D;AAC5D,mEAAsD;AAEtD,yDAA6C;AAC7C,mFAAgF;AAChF,+EAA4E;AAC5E,qDAA4D;AAC5D,oDAA0D;AAC1D,uDAA8C;AAC9C,0DAA+D;AAC/D,4EAAqE;AACrE,qEAA+D;AAC/D,qEAA8D;AAC9D,yCAAgC;AAEhC,MAAM,mBAAmB,GAAgD;IACrE,8BAAoB;IACpB,kCAAwB;IACxB,+BAAqB;CACxB,CAAC;AACF,aAAa;AACb,MAAM,eAAe,GAAW,CAAC,CAAC;AAElC;;IAAA,IAAqB,iBAAiB,yBAAtC,MAAqB,iBAAkB,SAAQ,yBA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AAC,SAAS,CAAC,iBAAO,EAAE,MAAM,CAAC,CAAC;aAClD;YACD,OAAO,GAAG,CAAC;QACf,CAAC;KAiEJ,CAAA;IA5dU,sBAAI,GAAG,mBAAmB,CAAC;IAUpB,0BAAQ,GAAW,CAAC,CAAC,CAAC;IAXnB,iBAAiB;QADrC,qCAAY,CAAC,uBAAY,CAAC;OACN,iBAAiB,CA6drC;IAAD,wBAAC;KAAA;kBA7doB,iBAAiB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, PlotManager, ReadonlyPlots, SpecialPlotId } from \"../../../avg/AVG\";\nimport { createPresenter, Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { View } from \"../../../common/classbase/ViewBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { AutoPopViewType, GuideLocation, GuideOperationType, GuideState, MainTabs, PlotSceneType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport VerbView from \"../VerbView\";\nimport { showToBeContinue } from \"../view/impl/AlertToBeContinueImpl\";\nimport { MainView, MainViewProps, MainViewType } from \"../view/type/MainView\";\nimport DatingEventViewPresenter from \"./DatingEventViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport DebugViewPresenter from \"./DebugViewPresenter\";\nimport DiscoverViewPresenter from \"./DiscoverViewPresenter\";\nimport GuideViewPresenter from \"./GuideViewPresenter\";\nimport MessageViewPresenter from \"./MessageViewPresenter\";\nimport NoticeViewPresenter from \"./NoticeViewPresenter\";\nimport PlotStopViewPresenter from \"./PlotStopViewPresenter\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { DeepReadonlyObject } from \"simba-utils\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\nimport { UnlockItemModelManager } from \"../../model/UnlockItemModelManager\";\nimport { IItemTbl, itemTbl } from \"../../../config/ItemTbl\";\nimport { channel, GameConfig } from \"../../../GameConfig\";\nimport { HttpClient } from \"simba-httpclient\";\nimport { DateType, PageIndex } from \"../../../avg/EditorEnums\";\nimport NewNoticeViewPresenter from \"./notice/NewNoticeViewPresenter\";\nimport { SourceView } from \"../view/type/notice/NewNoticeView\";\nimport ExtraPlotViewPresenter from \"./ExtraPlotViewPresenter\";\nimport { SDK } from \"simba-sdk\";\n\nconst TabPresenterFactory: ({ new(): Presenter } & { uuid: string })[] = [\n MessageViewPresenter,\n DatingEventViewPresenter,\n DiscoverViewPresenter\n];\n/**主线剧情的下标 */\nconst MAIN_PLOT_INDEX: number = 0;\n@RegPresenter(MainViewType)\nexport default class MainViewPresenter extends Presenter<undefined, MainView> {\n static uuid = \"MainViewPresenter\";\n private _subPresenters: Presenter<any, View>[] = [];\n private _currentTab = 0;\n private _viewProps: MainViewProps;\n private _loadingTab = false;\n private readonly _tabToggleDelayTime = 618;\n private _tabClickAble: boolean = false;\n\n private _itemId: number = -1;\n private _hasItem: boolean = false;\n public static tabIndex: number = -1;\n\n constructor() {\n super();\n this._viewProps = {\n selectedTab: 0,\n messageRedDot: false,\n datingEventRedDot: false,\n discoverRedDot: false,\n onTabClick: this.onTabClick,\n onDebugClick: this.onDebugClickCallback,\n };\n }\n\n onDebugClickCallback = () => {\n UIManager.pushPresenter(DebugViewPresenter, undefined);\n }\n\n onGoToShopClickCallback = () => {\n GameDotMgr.getInstance().dotClickUI(\"shop_btn_MainView\");\n if (channel == \"wechat\") {\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\n let link = GameModelManager.getYouZanShopUrlByType(8);\n if (link) {\n SDK.openProgramV2(GameConfig.youZanShopAppId, link);\n }\n } else if (channel == \"android\") {\n let link = GameModelManager.getTaoBaoShopUrlByType(8);\n if (link) {\n GameModelManager.jumpToTaobaoShop(link);\n }\n } else {\n UIManager.showToast(\"该功能在当前平台不可使用\");\n }\n }\n\n onCommonProblemClickCallback = async () => {\n try {\n let resStr = await new HttpClient(GameConfig.commonProblemConfigUrl).get() as string;\n let res = JSON.parse(resStr);\n if (res) {\n UIManager.pushPresenter(NoticeViewPresenter, {\n title: res.title,\n content: res.content\n });\n }\n } catch (error) {\n console.error(error);\n }\n }\n\n checkRedDot = (plots: ReadonlyPlots) => {\n this._viewProps.messageRedDot = plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.Message || plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.PhoneCall;\n this._viewProps.datingEventRedDot = false;\n this._viewProps.datingEventRedDot = plots && (plots[0].plotSceneType === PlotSceneType.DatingEvent && (plots[0].id !== SpecialPlotId.ToBeContinued && plots[0].id !== SpecialPlotId.End));\n this.view.setProps(this._viewProps);\n if (plots[MAIN_PLOT_INDEX] && plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.BlockPlot) {\n GameModelManager.dealBlockedPlot();\n } else {\n let change = GameModelManager.isChangePlotSceneType();\n if (change) {\n let p = plots[MAIN_PLOT_INDEX];\n let isSpecial = p.id === SpecialPlotId.End || p.id === SpecialPlotId.ToBeContinued;\n if (!isSpecial) {\n this.onMainPlotChanged(p.plotSceneType, p.plotSceneTypeId);\n GameModelManager.setIsChangePlotSceneType(false);\n }\n }\n }\n }\n\n onRefreshDiscoveryRedDot = () => {\n this._viewProps.discoverRedDot = !GameModelManager.checkResumeFullEnergyMarked();\n this.view.setProps(this._viewProps);\n }\n\n async start() { // 开始游戏\n this._subPresenters[0] = await createPresenter(TabPresenterFactory[0]);\n MainViewPresenter.tabIndex = 0;\n let viewContainer = this._view.getTabContentContainer();\n this._subPresenters[0].open(viewContainer, undefined);\n this.dealTabGuide(MainTabs.messageTab);\n this._viewProps.selectedTab = MainTabs.messageTab;\n\n this._disposable.add(GameModelManager.RefreshDiscoverTabRed.on(this.onRefreshDiscoveryRedDot));\n this._disposable.add(GameModelManager.ShowPlotBlocked.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.MainTabForceClick.on(this.onMainTabForceClick));\n // this._disposable.add(GameModelManager.CheckMainTabGuide.on(this.checkTabGuide));\n this._disposable.add(GameModelManager.AutoPopView.on(this.onAutoPopView));\n this._disposable.add(GameModelManager.UnlockItem.on(this.onUnlockItem));\n\n this._disposable.add(GameModelManager.BedroomViewBack.on(this.onBedroomViewBack));\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n this._disposable.add(GameModelManager.JumpToViewInGame.on(this.onJumpToViewInGame));\n\n\n this.checkRedDot(PlotManager.getCurrentPlots());\n PlotManager.PlotStartEvent.on(this.checkRedDot);\n let needEnterSpecialDatingScene = this.checkIsNeedToEnterSpecialDatingScene();\n // check tab guide\n // this.checkTabGuide();\n if (needEnterSpecialDatingScene) {\n GameConfig.isVerb = true;\n this.enterSpecialEventScene();\n this._currentTab = MainTabs.datingEventTab;\n this._viewProps.selectedTab = MainTabs.datingEventTab;\n }\n this._tabClickAble = true;\n //进入主界面更新红点状态\n setTimeout(() => {\n //关闭等待界面\n this.view.showWaitingView(false);\n //开始弹起自动窗口\n if (PlotManager.getCurrentPlots()[MAIN_PLOT_INDEX].id === SpecialPlotId.ToBeContinued) {\n GameModelManager.registerAutoPopView(AutoPopViewType.ToBeContinued);\n }\n let autoShowNotice = GameModelManager.getAutoShowNotice();\n if (autoShowNotice) {\n GameModelManager.registerAutoPopView(AutoPopViewType.Notice);\n }\n let unlockItems = UnlockItemModelManager.unlockItems;\n if (unlockItems.indexOf(4) == -1) {\n GameModelManager.registerAutoPopView(AutoPopViewType.NoteBook);\n }\n if (!needEnterSpecialDatingScene) {\n GameModelManager.checkAutoPopView();\n }\n }, 2000);\n }\n\n /**\n * 检查新手教程是否完成,当前新手教程完成的判定是完成第一章\n * @returns \n */\n checkNoviceTutorialOver(): boolean {\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n if (models[i].status == 4) {\n return true;\n }\n }\n return false;\n }\n\n async enterSpecialEventScene() {\n let arr = GameModelManager.getMainDatingEventScenesModel();\n UIManager.pushPresenter(DatingScenePresenter, arr[0], true);\n }\n\n checkIsNeedToEnterSpecialDatingScene() {\n let arr = GameModelManager.getMainDatingEventScenesModel();\n let need = arr && arr.length === 1 && arr[0].status !== DatingEventStatus.Completed;\n return need;\n }\n\n onMainTabForceClick = (param: { index: number, pureClick: boolean, propId?: number }) => {\n UIManager.popToPresenter(this);\n let index = param.index;\n this.onTabClick(index);\n }\n\n onClose() {\n super.onClose();\n UIManager.popToPresenter(this);\n }\n\n onOpen() {\n super.onOpen(undefined);\n // this.perloadPrefab();\n // this.discoverInit();\n }\n\n discoverInit() {\n GameRecord.onGlobalVariableChange(\"red_pot_\" + DiscoverViewPresenter.uuid, () => {\n this._viewProps.discoverRedDot = GameModelManager.checkRedPot(DiscoverViewPresenter.uuid);\n this.view.setProps(this._viewProps);\n });\n this._viewProps.discoverRedDot = GameModelManager.checkRedPot(DiscoverViewPresenter.uuid);\n this.view.setProps(this._viewProps);\n }\n\n perloadPrefab() {\n let PFList = [\"prefab/ui/DatingEventView\"];\n cc.resources.preload(PFList);\n }\n\n onEnterBackground() {\n super.onEnterBackground();\n if (this._subPresenters[this._currentTab])\n this._subPresenters[this._currentTab].onEnterBackground();\n }\n\n /**presenter进入前景 */\n async onEnterForeground() {\n super.onEnterForeground();\n if (this._subPresenters[this._currentTab]) {\n this._subPresenters[this._currentTab].onEnterForeground();\n this._subPresenters[this._currentTab].onEnterForeground();\n }\n if (PlotManager.getCurrentPlots()[MAIN_PLOT_INDEX].id === SpecialPlotId.ToBeContinued) {\n GameModelManager.registerAutoPopView(AutoPopViewType.ToBeContinued);\n }\n if (!GameConfig.isVerb) {\n GameModelManager.checkAutoPopView();\n }\n }\n\n onShow() {\n super.onShow();\n // this.checkTabGuide();\n }\n\n onTabClick = async (index: number, callback?: Function, isDot?: Boolean) => {\n if (!this._tabClickAble) {\n return;\n }\n this.dealTabGuide(index);\n let uuid = TabPresenterFactory[index].uuid;\n if (!GameModelManager.checkFuncUnloced(uuid)) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MAIN_FUNCTION_NOT_OPEN));\n return;\n }\n if (this._loadingTab) return;\n if (this._currentTab !== index) {\n if (this._subPresenters[this._currentTab])\n this._subPresenters[this._currentTab].view.hide();\n this._currentTab = index;\n this._viewProps.selectedTab = index;\n this._view.setProps(this._viewProps);\n if (index !== 2) {\n MainViewPresenter.tabIndex = index;\n }\n if (!this._subPresenters[this._currentTab]) {\n this._loadingTab = true;\n await createPresenter(TabPresenterFactory[this._currentTab]).then((presenter) => {\n this._subPresenters[this._currentTab] = presenter;\n presenter.open(this.view.getTabContentContainer(), undefined);\n setTimeout(() => {//延时等待618毫秒,View 中UI刷新\n this._loadingTab = false;\n }, this._tabToggleDelayTime);\n if (callback) {\n callback();\n }\n });\n } else {\n if (this._subPresenters[this._currentTab]) {\n this._subPresenters[this._currentTab].view.show();\n }\n if (callback) {\n callback();\n }\n }\n } else {\n if (callback) {\n callback();\n }\n }\n }\n\n dealTabGuide(index: number) {\n let r = GameRecord.globalVariables[\"guide_main_tab\" + index] as number;\n r = r === undefined ? GuideState.close : r;\n if (r === GuideState.Open) {\n GameModelManager.setGuideMainTabRecord(index, GuideState.Complete);\n }\n }\n\n checkTabGuide = () => {\n let check: boolean = false;\n if (!check) {\n return;\n }\n let index = GameModelManager.getMainTabGuideIndex();\n if (index !== -1) {\n //attention\n let redDotArr = [this._viewProps.messageRedDot, this._viewProps.datingEventRedDot, this._viewProps.discoverRedDot];\n if (!redDotArr[index] || this._currentTab === index) {\n return;\n }\n UIManager.popToPresenter(this);\n let m = this.view.getGuideTabParam(index);\n if (m) {\n let location: GuideLocation = index === MainTabs.datingEventTab ? GuideLocation.TabDate : GuideLocation.TabMsg;\n m.call = () => {\n this.onTabClick(index);\n this.view.hideClickAniByIndex(index);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Click, location);\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Show, location);\n }\n }\n }\n\n switchTab(tabIndex: number) {\n if (this._currentTab != tabIndex) {\n let prevIndex = this._currentTab;\n this._currentTab = tabIndex;\n this._viewProps.selectedTab = this._currentTab;\n\n this._view.setProps(this._viewProps);\n }\n }\n\n onAutoPopView = async (viewType: AutoPopViewType) => {\n switch (viewType) {\n case AutoPopViewType.ToBeContinued:\n {\n await showToBeContinue();\n }\n break;\n case AutoPopViewType.Notice:\n {\n UIManager.pushPresenter(NewNoticeViewPresenter, SourceView.MessageView);\n }\n break;\n case AutoPopViewType.PlotStop:\n {\n UIManager.pushPresenter(PlotStopViewPresenter, undefined);\n }\n break;\n }\n\n }\n\n onShowPlotBlocked = () => {\n let plotId: number = GameModelManager.getCurPlotBlockedId();\n // GameDotMgr.getInstance().dotExposure(StringUtils.format(ExposureType.Plotblock, plotId));\n GameModelManager.registerAutoPopView(AutoPopViewType.PlotStop);\n\n }\n\n onMainPlotChanged = async (pType: PlotSceneType, pId: number) => {\n if (!GameModelManager.isMainPlotSceneType() || ConfigManager.getConfig(dateSceneConfig, pId).DateType == DateType.Date_Sp) {\n return;\n }\n UIManager.popToPresenter(this);\n let comp = cc.director.getScene().getChildByName(\"Canvas\").getChildByName(\"VerbRoot\").getChildByName(\"VerbView\").getComponent(VerbView);\n if (this._hasItem && -1 !== this._itemId) {\n //加载图和组织物品掉落数据\n let showItemCfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;\n let itemSpriteFrame: cc.SpriteFrame | undefined = undefined;\n showItemCfg = this.getShowItemCfg(this._itemId);\n if (showItemCfg) {\n let path: string = GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + showItemCfg.icon;\n itemSpriteFrame = await ResUtils.loadRes(path, cc.SpriteFrame);\n comp.setItemDropData(itemSpriteFrame, showItemCfg);\n this._itemId = -1;\n this._hasItem = false;\n }\n }\n switch (pType) {\n case PlotSceneType.Message:\n {\n this.onTabClick(MainTabs.messageTab, () => {\n this._subPresenters[this._currentTab].onShow();\n comp.toChat({ title: \"\", desc: \"来电了!!\" });\n setTimeout(() => {\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickMsgItem.emit(pId);\n }, 500);\n });\n }\n break;\n case PlotSceneType.DatingEvent:\n {\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n let ids: string[] = [];\n for (const id in cfgs) {\n if (cfgs[id].DateType == DateType.Date_Normal) {\n ids.push(id);\n }\n }\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n let index = plotIds.indexOf(pId);\n let title = \"第\" + (plotIds.length) + \"章:\";\n let cfg = ConfigManager.getConfig(dateSceneConfig, pId);\n let desc = cfg && cfg.name ? GameModelManager.getConfigLanguageTxt(cfg.name) : \"\";\n comp.toDating(() => {\n AudioManager.playEffect('verb');\n this.onTabClick(MainTabs.datingEventTab, () => {\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickDatingItem.emit(pId);\n })\n this.view.hideClickAniByIndex(MainTabs.datingEventTab);\n }, { title: title, desc: desc })\n }\n break;\n }\n }\n\n getShowItemCfg(itemId: number): DeepReadonlyObject<IItemTbl> | undefined {\n let cfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;\n if (itemId) {\n cfg = ConfigManager.getConfig(itemTbl, itemId);\n }\n return cfg;\n }\n\n onUnlockItem = (itemId: number) => {\n let unlockItems = UnlockItemModelManager.unlockItems;\n let isNew = unlockItems.indexOf(itemId) == -1;\n if (isNew) {\n this._itemId = itemId;\n this._hasItem = true;\n //写存档+组织数据并派发\n UnlockItemModelManager.saveItemIdToGameRecord(itemId);\n }\n }\n\n /**\n * 卧室返回点击UI事件\n * @param index 返回具体tabIndex\n */\n onBedroomViewBack = (index: number) => {\n this._view.onTabButtonClick(null, `${index}`);\n }\n\n onRefreshAllStatus = async () => {\n this.checkRedDot(PlotManager.getCurrentPlots());\n\n GameConfig.showToBeContinue = false;\n let needEnterSpecialDatingScene = this.checkIsNeedToEnterSpecialDatingScene();\n // check tab guide\n // this.checkTabGuide();\n if (needEnterSpecialDatingScene) {\n GameConfig.isVerb = true;\n this.enterSpecialEventScene();\n this._currentTab = MainTabs.datingEventTab;\n this._viewProps.selectedTab = MainTabs.datingEventTab;\n } else {\n GameModelManager.checkAutoPopView();\n }\n this._tabClickAble = true\n }\n\n /**\n * 卧室返回点击UI事件\n * @param index 返回具体tabIndex\n */\n onJumpToViewInGame = (index: PageIndex) => {\n let tab = MainTabs.messageTab;\n switch (index) {\n case PageIndex.MessageView:\n tab = MainTabs.messageTab\n this._view.onTabButtonClick(null, `${tab}`);\n break;\n case PageIndex.DateEventView:\n tab = MainTabs.datingEventTab\n this._view.onTabButtonClick(null, `${tab}`);\n break;\n case PageIndex.ExtraPlotView:\n tab = MainTabs.datingEventTab\n this._view.onTabButtonClick(null, `${tab}`);\n UIManager.pushPresenter(ExtraPlotViewPresenter, undefined);\n break;\n default:\n console.error(\"The pageIndex is invalid.\");\n UIManager.showToast(\"无效的页面跳转\");\n break;\n }\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/MainViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AACrD,0CAAyF;AACzF,2EAAqF;AAErF,iFAA8E;AAC9E,2EAAwE;AACxE,qEAAkE;AAClE,uCAAsH;AACtH,iDAA0C;AAC1C,6EAAsE;AACtE,mEAAgE;AAChE,sEAAyD;AACzD,0CAAmC;AACnC,8EAAsE;AACtE,oDAA8E;AAC9E,yEAAkE;AAClE,iEAA8D;AAC9D,6DAAsD;AACtD,mEAA4D;AAC5D,6DAAsD;AACtD,iEAA0D;AAC1D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AC,CAAC,CAAC;YAC3C,IAAI,CAAC,KAAK,kBAAU,CAAC,IAAI,EAAE;gBACvB,mCAAgB,CAAC,qBAAqB,CAAC,KAAK,EAAE,kBAAU,CAAC,QAAQ,CAAC,CAAC;aACtE;QACL,CAAC;QA2BD,SAAS,CAAC,QAAgB;YACtB,IAAI,IAAI,CAAC,WAAW,IAAI,QAAQ,EAAE;gBAC9B,IAAI,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;gBACjC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;gBAC5B,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;gBAE/C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACxC;QACL,CAAC;QA0FD,cAAc,CAAC,MAAc;YACzB,IAAI,GAAG,GAA6C,SAAS,CAAC;YAC9D,IAAI,MAAM,EAAE;gBACR,GAAG,GAAG,oCAAa,CAAC,SAAS,CAAC,iBAAO,EAAE,MAAM,CAAC,CAAC;aAClD;YACD,OAAO,GAAG,CAAC;QACf,CAAC;KAyDJ,CAAA;IAtcU,sBAAI,GAAG,mBAAmB,CAAC;IAUpB,0BAAQ,GAAW,CAAC,CAAC,CAAC;IAXnB,iBAAiB;QADrC,qCAAY,CAAC,uBAAY,CAAC;OACN,iBAAiB,CAucrC;IAAD,wBAAC;KAAA;kBAvcoB,iBAAiB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, PlotManager, ReadonlyPlots, SpecialPlotId } from \"../../../avg/AVG\";\nimport { createPresenter, Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { View } from \"../../../common/classbase/ViewBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { AutoPopViewType, GuideLocation, GuideOperationType, GuideState, MainTabs, PlotSceneType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport VerbView from \"../VerbView\";\nimport { showToBeContinue } from \"../view/impl/AlertToBeContinueImpl\";\nimport { MainView, MainViewProps, MainViewType } from \"../view/type/MainView\";\nimport DatingEventViewPresenter from \"./DatingEventViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport DebugViewPresenter from \"./DebugViewPresenter\";\nimport DiscoverViewPresenter from \"./DiscoverViewPresenter\";\nimport GuideViewPresenter from \"./GuideViewPresenter\";\nimport MessageViewPresenter from \"./MessageViewPresenter\";\nimport NoticeViewPresenter from \"./NoticeViewPresenter\";\nimport PlotStopViewPresenter from \"./PlotStopViewPresenter\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { DeepReadonlyObject } from \"simba-utils\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\nimport { UnlockItemModelManager } from \"../../model/UnlockItemModelManager\";\nimport { IItemTbl, itemTbl } from \"../../../config/ItemTbl\";\nimport { channel, GameConfig } from \"../../../GameConfig\";\nimport { HttpClient } from \"simba-httpclient\";\nimport { DateType, PageIndex } from \"../../../avg/EditorEnums\";\nimport NewNoticeViewPresenter from \"./notice/NewNoticeViewPresenter\";\nimport { SourceView } from \"../view/type/notice/NewNoticeView\";\nimport ExtraPlotViewPresenter from \"./ExtraPlotViewPresenter\";\nimport { SDK } from \"simba-sdk\";\n\nconst TabPresenterFactory: ({ new(): Presenter } & { uuid: string })[] = [\n MessageViewPresenter,\n DatingEventViewPresenter,\n DiscoverViewPresenter\n];\n/**主线剧情的下标 */\nconst MAIN_PLOT_INDEX: number = 0;\n@RegPresenter(MainViewType)\nexport default class MainViewPresenter extends Presenter<undefined, MainView> {\n static uuid = \"MainViewPresenter\";\n private _subPresenters: Presenter<any, View>[] = [];\n private _currentTab = 0;\n private _viewProps: MainViewProps;\n private _loadingTab = false;\n private readonly _tabToggleDelayTime = 618;\n private _tabClickAble: boolean = false;\n\n private _itemId: number = -1;\n private _hasItem: boolean = false;\n public static tabIndex: number = -1;\n\n constructor() {\n super();\n this._viewProps = {\n selectedTab: 0,\n messageRedDot: false,\n datingEventRedDot: false,\n discoverRedDot: false,\n onTabClick: this.onTabClick,\n onDebugClick: this.onDebugClickCallback,\n };\n }\n\n onDebugClickCallback = () => {\n UIManager.pushPresenter(DebugViewPresenter, undefined);\n }\n\n onGoToShopClickCallback = () => {\n GameDotMgr.getInstance().dotClickUI(\"shop_btn_MainView\");\n if (channel == \"wechat\") {\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\n let link = GameModelManager.getYouZanShopUrlByType(8);\n if (link) {\n SDK.openProgramV2(GameConfig.youZanShopAppId, link);\n }\n } else if (channel == \"android\") {\n let link = GameModelManager.getTaoBaoShopUrlByType(8);\n if (link) {\n GameModelManager.jumpToTaobaoShop(link);\n }\n } else {\n UIManager.showToast(\"该功能在当前平台不可使用\");\n }\n }\n\n onCommonProblemClickCallback = async () => {\n try {\n let resStr = await new HttpClient(GameConfig.commonProblemConfigUrl).get() as string;\n let res = JSON.parse(resStr);\n if (res) {\n UIManager.pushPresenter(NoticeViewPresenter, {\n title: res.title,\n content: res.content\n });\n }\n } catch (error) {\n console.error(error);\n }\n }\n\n checkRedDot = (plots: ReadonlyPlots) => {\n this._viewProps.messageRedDot = plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.Message || plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.PhoneCall;\n this._viewProps.datingEventRedDot = false;\n this._viewProps.datingEventRedDot = plots && (plots[0].plotSceneType === PlotSceneType.DatingEvent && (plots[0].id !== SpecialPlotId.ToBeContinued && plots[0].id !== SpecialPlotId.End));\n this.view.setProps(this._viewProps);\n if (plots[MAIN_PLOT_INDEX] && plots[MAIN_PLOT_INDEX].plotSceneType === PlotSceneType.BlockPlot) {\n GameModelManager.dealBlockedPlot();\n } else {\n let change = GameModelManager.isChangePlotSceneType();\n if (change) {\n let p = plots[MAIN_PLOT_INDEX];\n let isSpecial = p.id === SpecialPlotId.End || p.id === SpecialPlotId.ToBeContinued;\n if (!isSpecial) {\n this.onMainPlotChanged(p.plotSceneType, p.plotSceneTypeId);\n GameModelManager.setIsChangePlotSceneType(false);\n }\n }\n }\n }\n\n async start() { // 开始游戏\n this._subPresenters[0] = await createPresenter(TabPresenterFactory[0]);\n MainViewPresenter.tabIndex = 0;\n let viewContainer = this._view.getTabContentContainer();\n this._subPresenters[0].open(viewContainer, undefined);\n this.dealTabGuide(MainTabs.messageTab);\n this._viewProps.selectedTab = MainTabs.messageTab;\n\n this._disposable.add(GameModelManager.ShowPlotBlocked.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.AutoPopView.on(this.onAutoPopView));\n this._disposable.add(GameModelManager.UnlockItem.on(this.onUnlockItem));\n\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n this._disposable.add(GameModelManager.JumpToViewInGame.on(this.onJumpToViewInGame));\n\n\n this.checkRedDot(PlotManager.getCurrentPlots());\n PlotManager.PlotStartEvent.on(this.checkRedDot);\n let needEnterSpecialDatingScene = this.checkIsNeedToEnterSpecialDatingScene();\n // check tab guide\n // this.checkTabGuide();\n if (needEnterSpecialDatingScene) {\n GameConfig.isVerb = true;\n this.enterSpecialEventScene();\n this._currentTab = MainTabs.datingEventTab;\n this._viewProps.selectedTab = MainTabs.datingEventTab;\n }\n this._tabClickAble = true;\n //进入主界面更新红点状态\n setTimeout(() => {\n //关闭等待界面\n this.view.showWaitingView(false);\n //开始弹起自动窗口\n if (PlotManager.getCurrentPlots()[MAIN_PLOT_INDEX].id === SpecialPlotId.ToBeContinued) {\n GameModelManager.registerAutoPopView(AutoPopViewType.ToBeContinued);\n }\n let autoShowNotice = GameModelManager.getAutoShowNotice();\n if (autoShowNotice) {\n GameModelManager.registerAutoPopView(AutoPopViewType.Notice);\n }\n let unlockItems = UnlockItemModelManager.unlockItems;\n if (unlockItems.indexOf(4) == -1) {\n GameModelManager.registerAutoPopView(AutoPopViewType.NoteBook);\n }\n if (!needEnterSpecialDatingScene) {\n GameModelManager.checkAutoPopView();\n }\n }, 2000);\n }\n\n /**\n * 检查新手教程是否完成,当前新手教程完成的判定是完成第一章\n * @returns \n */\n checkNoviceTutorialOver(): boolean {\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n if (models[i].status == 4) {\n return true;\n }\n }\n return false;\n }\n\n async enterSpecialEventScene() {\n let arr = GameModelManager.getMainDatingEventScenesModel();\n UIManager.pushPresenter(DatingScenePresenter, arr[0], true);\n }\n\n checkIsNeedToEnterSpecialDatingScene() {\n let arr = GameModelManager.getMainDatingEventScenesModel();\n let need = arr && arr.length === 1 && arr[0].status !== DatingEventStatus.Completed;\n return need;\n }\n\n onMainTabForceClick = (param: { index: number, pureClick: boolean, propId?: number }) => {\n UIManager.popToPresenter(this);\n let index = param.index;\n this.onTabClick(index);\n }\n\n onClose() {\n super.onClose();\n UIManager.popToPresenter(this);\n }\n\n onOpen() {\n super.onOpen(undefined);\n // this.perloadPrefab();\n // this.discoverInit();\n }\n\n discoverInit() {\n GameRecord.onGlobalVariableChange(\"red_pot_\" + DiscoverViewPresenter.uuid, () => {\n this._viewProps.discoverRedDot = GameModelManager.checkRedPot(DiscoverViewPresenter.uuid);\n this.view.setProps(this._viewProps);\n });\n this._viewProps.discoverRedDot = GameModelManager.checkRedPot(DiscoverViewPresenter.uuid);\n this.view.setProps(this._viewProps);\n }\n\n perloadPrefab() {\n let PFList = [\"prefab/ui/DatingEventView\"];\n cc.resources.preload(PFList);\n }\n\n onEnterBackground() {\n super.onEnterBackground();\n if (this._subPresenters[this._currentTab])\n this._subPresenters[this._currentTab].onEnterBackground();\n }\n\n /**presenter进入前景 */\n async onEnterForeground() {\n super.onEnterForeground();\n if (this._subPresenters[this._currentTab]) {\n this._subPresenters[this._currentTab].onEnterForeground();\n this._subPresenters[this._currentTab].onEnterForeground();\n }\n if (PlotManager.getCurrentPlots()[MAIN_PLOT_INDEX].id === SpecialPlotId.ToBeContinued) {\n GameModelManager.registerAutoPopView(AutoPopViewType.ToBeContinued);\n }\n if (!GameConfig.isVerb) {\n GameModelManager.checkAutoPopView();\n }\n }\n\n onShow() {\n super.onShow();\n // this.checkTabGuide();\n }\n\n onTabClick = async (index: number, callback?: Function, isDot?: Boolean) => {\n if (!this._tabClickAble) {\n return;\n }\n this.dealTabGuide(index);\n let uuid = TabPresenterFactory[index].uuid;\n if (!GameModelManager.checkFuncUnloced(uuid)) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MAIN_FUNCTION_NOT_OPEN));\n return;\n }\n if (this._loadingTab) return;\n if (this._currentTab !== index) {\n if (this._subPresenters[this._currentTab])\n this._subPresenters[this._currentTab].view.hide();\n this._currentTab = index;\n this._viewProps.selectedTab = index;\n this._view.setProps(this._viewProps);\n if (index !== 2) {\n MainViewPresenter.tabIndex = index;\n }\n if (!this._subPresenters[this._currentTab]) {\n this._loadingTab = true;\n await createPresenter(TabPresenterFactory[this._currentTab]).then((presenter) => {\n this._subPresenters[this._currentTab] = presenter;\n presenter.open(this.view.getTabContentContainer(), undefined);\n setTimeout(() => {//延时等待618毫秒,View 中UI刷新\n this._loadingTab = false;\n }, this._tabToggleDelayTime);\n if (callback) {\n callback();\n }\n });\n } else {\n if (this._subPresenters[this._currentTab]) {\n this._subPresenters[this._currentTab].view.show();\n }\n if (callback) {\n callback();\n }\n }\n } else {\n if (callback) {\n callback();\n }\n }\n }\n\n dealTabGuide(index: number) {\n let r = GameRecord.globalVariables[\"guide_main_tab\" + index] as number;\n r = r === undefined ? GuideState.close : r;\n if (r === GuideState.Open) {\n GameModelManager.setGuideMainTabRecord(index, GuideState.Complete);\n }\n }\n\n checkTabGuide = () => {\n let check: boolean = false;\n if (!check) {\n return;\n }\n let index = GameModelManager.getMainTabGuideIndex();\n if (index !== -1) {\n //attention\n let redDotArr = [this._viewProps.messageRedDot, this._viewProps.datingEventRedDot, this._viewProps.discoverRedDot];\n if (!redDotArr[index] || this._currentTab === index) {\n return;\n }\n UIManager.popToPresenter(this);\n let m = this.view.getGuideTabParam(index);\n if (m) {\n let location: GuideLocation = index === MainTabs.datingEventTab ? GuideLocation.TabDate : GuideLocation.TabMsg;\n m.call = () => {\n this.onTabClick(index);\n this.view.hideClickAniByIndex(index);\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n }\n\n switchTab(tabIndex: number) {\n if (this._currentTab != tabIndex) {\n let prevIndex = this._currentTab;\n this._currentTab = tabIndex;\n this._viewProps.selectedTab = this._currentTab;\n\n this._view.setProps(this._viewProps);\n }\n }\n\n onAutoPopView = async (viewType: AutoPopViewType) => {\n switch (viewType) {\n case AutoPopViewType.ToBeContinued:\n {\n await showToBeContinue();\n }\n break;\n case AutoPopViewType.Notice:\n {\n UIManager.pushPresenter(NewNoticeViewPresenter, SourceView.MessageView);\n }\n break;\n case AutoPopViewType.PlotStop:\n {\n UIManager.pushPresenter(PlotStopViewPresenter, undefined);\n }\n break;\n }\n\n }\n\n onShowPlotBlocked = () => {\n GameModelManager.registerAutoPopView(AutoPopViewType.PlotStop);\n }\n\n onMainPlotChanged = async (pType: PlotSceneType, pId: number) => {\n if (!GameModelManager.isMainPlotSceneType() || ConfigManager.getConfig(dateSceneConfig, pId).DateType == DateType.Date_Sp) {\n return;\n }\n UIManager.popToPresenter(this);\n let comp = cc.director.getScene().getChildByName(\"Canvas\").getChildByName(\"VerbRoot\").getChildByName(\"VerbView\").getComponent(VerbView);\n if (this._hasItem && -1 !== this._itemId) {\n //加载图和组织物品掉落数据\n let showItemCfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;\n let itemSpriteFrame: cc.SpriteFrame | undefined = undefined;\n showItemCfg = this.getShowItemCfg(this._itemId);\n if (showItemCfg) {\n let path: string = GameConstData.GAME_CONST_ITEM_BIG_SPR_DIR + showItemCfg.icon;\n itemSpriteFrame = await ResUtils.loadRes(path, cc.SpriteFrame);\n comp.setItemDropData(itemSpriteFrame, showItemCfg);\n this._itemId = -1;\n this._hasItem = false;\n }\n }\n switch (pType) {\n case PlotSceneType.Message:\n {\n this.onTabClick(MainTabs.messageTab, () => {\n this._subPresenters[this._currentTab].onShow();\n comp.toChat({ title: \"\", desc: \"来电了!!\" });\n setTimeout(() => {\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickMsgItem.emit(pId);\n }, 500);\n });\n }\n break;\n case PlotSceneType.DatingEvent:\n {\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n let ids: string[] = [];\n for (const id in cfgs) {\n if (cfgs[id].DateType == DateType.Date_Normal) {\n ids.push(id);\n }\n }\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n let index = plotIds.indexOf(pId);\n let title = \"第\" + (plotIds.length) + \"章:\";\n let cfg = ConfigManager.getConfig(dateSceneConfig, pId);\n let desc = cfg && cfg.name ? GameModelManager.getConfigLanguageTxt(cfg.name) : \"\";\n comp.toDating(() => {\n AudioManager.playEffect('verb');\n this.onTabClick(MainTabs.datingEventTab, () => {\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickDatingItem.emit(pId);\n })\n this.view.hideClickAniByIndex(MainTabs.datingEventTab);\n }, { title: title, desc: desc })\n }\n break;\n }\n }\n\n getShowItemCfg(itemId: number): DeepReadonlyObject<IItemTbl> | undefined {\n let cfg: DeepReadonlyObject<IItemTbl> | undefined = undefined;\n if (itemId) {\n cfg = ConfigManager.getConfig(itemTbl, itemId);\n }\n return cfg;\n }\n\n onUnlockItem = (itemId: number) => {\n let unlockItems = UnlockItemModelManager.unlockItems;\n let isNew = unlockItems.indexOf(itemId) == -1;\n if (isNew) {\n this._itemId = itemId;\n this._hasItem = true;\n //写存档+组织数据并派发\n UnlockItemModelManager.saveItemIdToGameRecord(itemId);\n }\n }\n\n onRefreshAllStatus = async () => {\n this.checkRedDot(PlotManager.getCurrentPlots());\n\n GameConfig.showToBeContinue = false;\n let needEnterSpecialDatingScene = this.checkIsNeedToEnterSpecialDatingScene();\n // check tab guide\n // this.checkTabGuide();\n if (needEnterSpecialDatingScene) {\n GameConfig.isVerb = true;\n this.enterSpecialEventScene();\n this._currentTab = MainTabs.datingEventTab;\n this._viewProps.selectedTab = MainTabs.datingEventTab;\n } else {\n GameModelManager.checkAutoPopView();\n }\n this._tabClickAble = true\n }\n\n /**\n * 卧室返回点击UI事件\n * @param index 返回具体tabIndex\n */\n onJumpToViewInGame = (index: PageIndex) => {\n let tab = MainTabs.messageTab;\n switch (index) {\n case PageIndex.MessageView:\n tab = MainTabs.messageTab\n this._view.onTabButtonClick(null, `${tab}`);\n break;\n case PageIndex.DateEventView:\n tab = MainTabs.datingEventTab\n this._view.onTabButtonClick(null, `${tab}`);\n break;\n case PageIndex.ExtraPlotView:\n tab = MainTabs.datingEventTab\n this._view.onTabButtonClick(null, `${tab}`);\n UIManager.pushPresenter(ExtraPlotViewPresenter, undefined);\n break;\n default:\n console.error(\"The pageIndex is invalid.\");\n UIManager.showToast(\"无效的页面跳转\");\n break;\n }\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/MessageViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AAErD,0CAA8I;AAC9I,0DAAoD;AACpD,2EAAoE;AACpE,iFAA8E;AAC9E,2EAAwE;AACxE,6EAA0E;AAC1E,+CAA4C;AAC5C,uCAA0G;AAC1G,iDAA0C;AAC1C,mEAAgE;AAEhE,sEAAyD;AAEzD,0DAA0F;AAC1F,yEAAkE;AAClE,mEAAgE;AAChE,6DAA+E;AAC/E,qEAAkE;AAClE,mEAA4D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oBACvC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;oBACzB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;oBACjD,cAAc,EAAE,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,QAAQ;oBACvD,OAAO,EAAE,OAAO;iBACnB,CAAA;YACL,CAAC,CACJ,CAAC;YACF,gCAAgC;YAChC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChB,IAAI,CAAC,CAAC,MAAM,EAAE;oBACV,OAAO,CAAC,CAAC,CAAC;iBACb;gBACD,IAAI,CAAC,CAAC,MAAM,EAAE;oBACV,OAAO,CAAC,CAAC;iBACZ;gBACD,OAAO,CAAC,CAAC;YACb,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,UAAU,GAAG;gBACd,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,oBAAoB,EAAE,mCAAgB,CAAC,kBAAkB,EAAE;gBAC3D,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;aACtD,CAAA;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC;KAsGJ,CAAA;IA7OU,yBAAI,GAAG,sBAAsB,CAAC;IADpB,oBAAoB;QADxC,qCAAY,CAAC,6BAAe,CAAC;OACT,oBAAoB,CA8OxC;IAAD,2BAAC;KAAA;kBA9OoB,oBAAoB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { PlotManager, ReadonlyPlot, richNodesToCocosString, SentenceMediaContent, SentenceTextContent, SentenceType } from \"../../../avg/AVG\";\nimport { RoleType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { relationLevelConfig } from \"../../../config/RelationLevelConfig\";\nimport { role } from \"../../../config/Role\";\nimport { DirectionType, GuideLocation, GuideOperationType, GuideState, PlotSceneType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { MessageSceneModel } from \"../../model/MessageSceneModel\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { MessageView, MessageViewProps, MessageViewType } from \"../view/type/MessageView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { ChatListViewPresenter } from \"./ChatListViewPresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\nimport { PhoneCallViewPresenter } from \"./PhoneCallViewPresenter\";\nimport PlotStopViewPresenter from \"./PlotStopViewPresenter\";\n\nfunction getSentenceText(content: DeepReadonly<SentenceTextContent> | DeepReadonly<SentenceMediaContent>) {\n let text = \"\"\n switch (content.type) {\n case SentenceType.TEXT:\n text = richNodesToCocosString(content.value);\n const CHAR_LIMIT: number = 15;\n // text = '<color=#000000>亲,你说不说?</color>,<color=#000000>111</color>';\n // text = '亲,你说不说?亲,你说不说?亲,你说不说?';\n const regex = /<color=#[0-9A-Za-z]{6,6}>/g;\n let str = text.replace(regex, '');\n let textStr = str.replace(/<\\/color>/g, '');\n text = textStr.length > CHAR_LIMIT ? textStr.slice(0, CHAR_LIMIT - 3) + \"...\" : textStr;\n break;\n case SentenceType.AUDIO:\n text = \"[Voice]\";\n break;\n case SentenceType.IMAGE:\n text = \"[Image]\";\n break;\n case SentenceType.VIDEO:\n text = \"[Video]\";\n break;\n }\n return text;\n}\n\nfunction getPlotString(plot?: ReadonlyPlot) {\n if (plot) {\n let text = \"\";\n let sentence = plot.sentences[0];\n if (sentence.content) {\n if (sentence.content.type === SentenceType.SELECT) {\n let select = PlotManager.getPlotSelection(plot.id);\n if (select !== undefined) {\n let option = sentence.content.value[select];\n if (option.content) {\n if (option.content.type === SentenceType.EMPTY) {\n console.error(\"TODO handle empty plots in message\");\n } else {\n text = getSentenceText(option.content);\n }\n } else {\n text = option.summary;\n }\n }\n } else {\n if (sentence.content.type === SentenceType.EMPTY) {\n console.error(\"TODO handle empty plots in message\");\n } else {\n text = getSentenceText(sentence.content);\n }\n }\n }\n return text;\n }\n return GameModelManager.getLanguageTxt(GameTextData.TEXT_NEW_CHAT_MSG_VALUE);\n}\n\n@RegPresenter(MessageViewType)\nexport default class MessageViewPresenter extends Presenter<undefined, MessageView> {\n static uuid = \"MessageViewPresenter\";\n private _scenesActive: { [key: number]: boolean } = {};\n private _currPlotHasMsg = false;\n\n private _isCheckingPhoneCall: boolean = false;\n private _viewProps: MessageViewProps;\n\n onOpen() {\n super.onOpen(undefined);\n this.initViewProps();\n this.checkScenesActive();\n this.setViewProps();\n this._disposable.add(GameModelManager.MessageSceneChanged.on(() => {\n if (!this._currPlotHasMsg && !this._view.isHidden && !this._isInBackground) {\n this.checkScenesActive();\n this.setViewProps();\n }\n }));\n this._disposable.add(PlotManager.PlotStartEvent.on(() => {\n if (this._currPlotHasMsg && !this._view.isHidden && !this._isInBackground) {\n this.checkScenesActive();\n this.setViewProps();\n }\n }));\n // this._disposable.add(GameModelManager.CheckMsgGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.ShowPlotBlocked.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.PlotBlockedChanged.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.ForceClickMsgItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n\n\n this._isCheckingPhoneCall = false;\n this.checkPhoneCall();\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"MessageViewPresenter onForceClickItem id = \", id);\n if (!this._viewProps.items || 0 === this._viewProps.items.length) {\n return;\n }\n let c = id + \"\";\n let i = this._viewProps.items.findIndex((v) => v.key === c);\n if ((-1) !== i) {\n this.onItemClick(c);\n }\n }\n\n onShow() {\n super.onShow();\n this.checkScenesActive();\n this.setViewProps();\n this.checkPhoneCall();\n // this.checkGuideItem();\n }\n\n initViewProps() {\n this._viewProps = {\n items: [],\n onItemClick: this.onItemClick,\n PlotStopTipBtnCallback: this.PlotStopTipBtnCallback,\n isShowPlotStopTipBtn: false,\n }\n }\n\n async checkPhoneCall() {\n if (this._isCheckingPhoneCall) {\n return;\n }\n this._isCheckingPhoneCall = true\n if (PlotManager.getCurrentPlots()[0].plotSceneType === PlotSceneType.PhoneCall) {\n await UIManager.pushPresenter(PhoneCallViewPresenter, undefined);\n }\n this._isCheckingPhoneCall = false;\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n this.checkScenesActive();\n this.setViewProps();\n this.checkPhoneCall();\n }\n\n private checkScenesActive = () => {\n this._currPlotHasMsg = false;\n this._scenesActive = GameModelManager.getMessageScenesModel().reduce((pv, v) => (pv[v.id] = this.checkSceneActive(v), pv), {});\n }\n\n private checkSceneActive = (model: MessageSceneModel) => {\n let ret = PlotManager.getCurrentPlots().findIndex(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === model.id) >= 0;\n if (ret) this._currPlotHasMsg = true;\n return ret;\n }\n\n private setViewProps() {\n let items = GameModelManager.getMessageScenesModel().map(\n v => {\n let roleConfig = ConfigManager.getConfig(role, v.config.roles[0]);\n let isMajor = roleConfig.RoleType === RoleType.Role_Major;\n let roleData = GameModelManager.getRoleData(v.config.roles[0]);\n let data = roleData!.getRoleLikeLevel();\n let nameSpr = GameModelManager.getRoleData(v.config.roles[0])!.getNameIcon();\n if (v.config.roles[0] === 3) {\n nameSpr = \"/textures/name_icon/laoda\";\n }\n return {\n key: v.id + \"\", icons: [GameModelManager.getRoleData(v.config.roles[0])!.getHeadIcon()],\n title: GameModelManager.getConfigLanguageTxt(v.config.title),\n lastMsg: getPlotString(v.lastPlot),\n redDot: this._scenesActive[v.id],\n isShowGrace: isMajor,\n level: isMajor ? data.level : undefined,\n roleId: v.config.roles[0],\n addGraceClickCallBack: this.addGraceClickCallBack,\n isShowAddGrace: isMajor && data.level !== data.maxLevel,\n nameSpr: nameSpr\n }\n }\n );\n //对列表进行排序,有红点的(新对话消息)排在最前面,也就是置顶\n items.sort((a, b) => {\n if (a.redDot) {\n return -1;\n }\n if (b.redDot) {\n return 1;\n }\n return 0;\n });\n this._viewProps = { // 暂每条只有一个头像,群聊显示单独头像,以后可能群聊显示多人头像\n items: items,\n onItemClick: this.onItemClick,\n isShowPlotStopTipBtn: GameModelManager.checkIsPlotBlocked(),\n PlotStopTipBtnCallback: this.PlotStopTipBtnCallback,\n }\n this.view.setProps(this._viewProps);\n }\n\n PlotStopTipBtnCallback = () => {\n UIManager.pushPresenter(PlotStopViewPresenter, undefined);\n }\n\n addGraceClickCallBack = (roleId: number) => {\n // GameDotMgr.getInstance().dotClickUI(\"click_grace\");\n let r = GameModelManager.getRoleData(roleId);\n if (!r || r!.getConfig().RoleType !== RoleType.Role_Major) {\n return;\n }\n let l = r.getRoleLikeLevel();\n let m: number = -1;\n let t = ConfigManager.getAllConfig(relationLevelConfig);\n for (let id in t) {\n let c = t[id];\n m = m < c.id ? c.id : m;\n //暂时修改最大等级为10\n m = 10;\n }\n if (m <= l.level) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_MAX_VALUE));\n return;\n }\n else {\n // UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_TIP_ROLE), r.getRoleName(), l.level));\n let temp: AlertDialogViewProps =\n {\n dataptr: { roleId: roleId },\n titlecontent: \"提升好感度\",\n content: `当前与${r.getRoleName()}好感度等级为${l.level},观看视频提升好感度等级!`,\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n // items: [],\n hasBanner: false,\n callback: (type, ret: boolean, param: any) => {\n if (ret) {\n if (type === \"video\") {\n let rid = param.roleId;\n let role = GameModelManager.getRoleData(rid);\n if (role) {\n role.addRoleLike(1000);\n this.setViewProps();\n }\n } else {\n UIManager.showToast(\"只能通过观看视频提升好感度等级!\");\n }\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n }\n\n private onItemClick = (key: string) => {\n // console.log(\"item click\", key);\n GameModelManager.setGuideMsgItemRecord(key, GuideState.Complete);\n let sceneModel = GameModelManager.getMessageSceneModel(parseInt(key));\n if (!sceneModel) { console.error(\"message scene model not found \", key); return; }\n let isNew = PlotManager.getCurrentPlots().findIndex(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === sceneModel!.id) !== (-1);\n if (isNew || sceneModel.firstPlot.sentences[0].roleId == 3) {\n GameDotMgr.getInstance().dotClickUI(\"click_chat_card\" + sceneModel.id);\n }\n UIManager.pushPresenter(ChatListViewPresenter, sceneModel);\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getMsgItemGuideKey();\n if (k && \"\" !== k) {\n let node = this._view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemClick(k);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n GameDotMgr.getInstance().dotGuide(GuideOperationType.Show, GuideLocation.MsgItem);\n }\n }\n }\n\n onShowPlotBlocked = () => {\n this._viewProps.isShowPlotStopTipBtn = GameModelManager.checkIsPlotBlocked();\n this.view.updateProps(this._viewProps);\n }\n\n onRefreshAllStatus = () => {\n this.initViewProps();\n this.checkScenesActive();\n this.setViewProps();\n this._isCheckingPhoneCall = false;\n this.checkPhoneCall();\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/MessageViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AAErD,0CAA8I;AAC9I,0DAA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AAW,EAAE,OAAO;oBACpB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;oBACvC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;oBACzB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;oBACjD,cAAc,EAAE,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,QAAQ;oBACvD,OAAO,EAAE,OAAO;iBACnB,CAAA;YACL,CAAC,CACJ,CAAC;YACF,gCAAgC;YAChC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChB,IAAI,CAAC,CAAC,MAAM,EAAE;oBACV,OAAO,CAAC,CAAC,CAAC;iBACb;gBACD,IAAI,CAAC,CAAC,MAAM,EAAE;oBACV,OAAO,CAAC,CAAC;iBACZ;gBACD,OAAO,CAAC,CAAC;YACb,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,UAAU,GAAG;gBACd,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,oBAAoB,EAAE,mCAAgB,CAAC,kBAAkB,EAAE;gBAC3D,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;aACtD,CAAA;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC;KAoGJ,CAAA;IA3OU,yBAAI,GAAG,sBAAsB,CAAC;IADpB,oBAAoB;QADxC,qCAAY,CAAC,6BAAe,CAAC;OACT,oBAAoB,CA4OxC;IAAD,2BAAC;KAAA;kBA5OoB,oBAAoB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { PlotManager, ReadonlyPlot, richNodesToCocosString, SentenceMediaContent, SentenceTextContent, SentenceType } from \"../../../avg/AVG\";\nimport { RoleType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { relationLevelConfig } from \"../../../config/RelationLevelConfig\";\nimport { role } from \"../../../config/Role\";\nimport { DirectionType, GuideLocation, GuideOperationType, GuideState, PlotSceneType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { MessageSceneModel } from \"../../model/MessageSceneModel\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { MessageView, MessageViewProps, MessageViewType } from \"../view/type/MessageView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { ChatListViewPresenter } from \"./ChatListViewPresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\nimport { PhoneCallViewPresenter } from \"./PhoneCallViewPresenter\";\nimport PlotStopViewPresenter from \"./PlotStopViewPresenter\";\n\nfunction getSentenceText(content: DeepReadonly<SentenceTextContent> | DeepReadonly<SentenceMediaContent>) {\n let text = \"\"\n switch (content.type) {\n case SentenceType.TEXT:\n text = richNodesToCocosString(content.value);\n const CHAR_LIMIT: number = 15;\n // text = '<color=#000000>亲,你说不说?</color>,<color=#000000>111</color>';\n // text = '亲,你说不说?亲,你说不说?亲,你说不说?';\n const regex = /<color=#[0-9A-Za-z]{6,6}>/g;\n let str = text.replace(regex, '');\n let textStr = str.replace(/<\\/color>/g, '');\n text = textStr.length > CHAR_LIMIT ? textStr.slice(0, CHAR_LIMIT - 3) + \"...\" : textStr;\n break;\n case SentenceType.AUDIO:\n text = \"[Voice]\";\n break;\n case SentenceType.IMAGE:\n text = \"[Image]\";\n break;\n case SentenceType.VIDEO:\n text = \"[Video]\";\n break;\n }\n return text;\n}\n\nfunction getPlotString(plot?: ReadonlyPlot) {\n if (plot) {\n let text = \"\";\n let sentence = plot.sentences[0];\n if (sentence.content) {\n if (sentence.content.type === SentenceType.SELECT) {\n let select = PlotManager.getPlotSelection(plot.id);\n if (select !== undefined) {\n let option = sentence.content.value[select];\n if (option.content) {\n if (option.content.type === SentenceType.EMPTY) {\n console.error(\"TODO handle empty plots in message\");\n } else {\n text = getSentenceText(option.content);\n }\n } else {\n text = option.summary;\n }\n }\n } else {\n if (sentence.content.type === SentenceType.EMPTY) {\n console.error(\"TODO handle empty plots in message\");\n } else {\n text = getSentenceText(sentence.content);\n }\n }\n }\n return text;\n }\n return GameModelManager.getLanguageTxt(GameTextData.TEXT_NEW_CHAT_MSG_VALUE);\n}\n\n@RegPresenter(MessageViewType)\nexport default class MessageViewPresenter extends Presenter<undefined, MessageView> {\n static uuid = \"MessageViewPresenter\";\n private _scenesActive: { [key: number]: boolean } = {};\n private _currPlotHasMsg = false;\n\n private _isCheckingPhoneCall: boolean = false;\n private _viewProps: MessageViewProps;\n\n onOpen() {\n super.onOpen(undefined);\n this.initViewProps();\n this.checkScenesActive();\n this.setViewProps();\n this._disposable.add(GameModelManager.MessageSceneChanged.on(() => {\n if (!this._currPlotHasMsg && !this._view.isHidden && !this._isInBackground) {\n this.checkScenesActive();\n this.setViewProps();\n }\n }));\n this._disposable.add(PlotManager.PlotStartEvent.on(() => {\n if (this._currPlotHasMsg && !this._view.isHidden && !this._isInBackground) {\n this.checkScenesActive();\n this.setViewProps();\n }\n }));\n // this._disposable.add(GameModelManager.CheckMsgGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.ShowPlotBlocked.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.PlotBlockedChanged.on(this.onShowPlotBlocked));\n this._disposable.add(GameModelManager.ForceClickMsgItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshAllStatus.on(this.onRefreshAllStatus));\n\n\n this._isCheckingPhoneCall = false;\n this.checkPhoneCall();\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"MessageViewPresenter onForceClickItem id = \", id);\n if (!this._viewProps.items || 0 === this._viewProps.items.length) {\n return;\n }\n let c = id + \"\";\n let i = this._viewProps.items.findIndex((v) => v.key === c);\n if ((-1) !== i) {\n this.onItemClick(c);\n }\n }\n\n onShow() {\n super.onShow();\n this.checkScenesActive();\n this.setViewProps();\n this.checkPhoneCall();\n // this.checkGuideItem();\n }\n\n initViewProps() {\n this._viewProps = {\n items: [],\n onItemClick: this.onItemClick,\n PlotStopTipBtnCallback: this.PlotStopTipBtnCallback,\n isShowPlotStopTipBtn: false,\n }\n }\n\n async checkPhoneCall() {\n if (this._isCheckingPhoneCall) {\n return;\n }\n this._isCheckingPhoneCall = true\n if (PlotManager.getCurrentPlots()[0].plotSceneType === PlotSceneType.PhoneCall) {\n await UIManager.pushPresenter(PhoneCallViewPresenter, undefined);\n }\n this._isCheckingPhoneCall = false;\n }\n\n onEnterForeground() {\n super.onEnterForeground();\n this.checkScenesActive();\n this.setViewProps();\n this.checkPhoneCall();\n }\n\n private checkScenesActive = () => {\n this._currPlotHasMsg = false;\n this._scenesActive = GameModelManager.getMessageScenesModel().reduce((pv, v) => (pv[v.id] = this.checkSceneActive(v), pv), {});\n }\n\n private checkSceneActive = (model: MessageSceneModel) => {\n let ret = PlotManager.getCurrentPlots().findIndex(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === model.id) >= 0;\n if (ret) this._currPlotHasMsg = true;\n return ret;\n }\n\n private setViewProps() {\n let items = GameModelManager.getMessageScenesModel().map(\n v => {\n let roleConfig = ConfigManager.getConfig(role, v.config.roles[0]);\n let isMajor = roleConfig.RoleType === RoleType.Role_Major;\n let roleData = GameModelManager.getRoleData(v.config.roles[0]);\n let data = roleData!.getRoleLikeLevel();\n let nameSpr = GameModelManager.getRoleData(v.config.roles[0])!.getNameIcon();\n if (v.config.roles[0] === 3) {\n nameSpr = \"/textures/name_icon/laoda\";\n }\n return {\n key: v.id + \"\", icons: [GameModelManager.getRoleData(v.config.roles[0])!.getHeadIcon()],\n title: GameModelManager.getConfigLanguageTxt(v.config.title),\n lastMsg: getPlotString(v.lastPlot),\n redDot: this._scenesActive[v.id],\n isShowGrace: isMajor,\n level: isMajor ? data.level : undefined,\n roleId: v.config.roles[0],\n addGraceClickCallBack: this.addGraceClickCallBack,\n isShowAddGrace: isMajor && data.level !== data.maxLevel,\n nameSpr: nameSpr\n }\n }\n );\n //对列表进行排序,有红点的(新对话消息)排在最前面,也就是置顶\n items.sort((a, b) => {\n if (a.redDot) {\n return -1;\n }\n if (b.redDot) {\n return 1;\n }\n return 0;\n });\n this._viewProps = { // 暂每条只有一个头像,群聊显示单独头像,以后可能群聊显示多人头像\n items: items,\n onItemClick: this.onItemClick,\n isShowPlotStopTipBtn: GameModelManager.checkIsPlotBlocked(),\n PlotStopTipBtnCallback: this.PlotStopTipBtnCallback,\n }\n this.view.setProps(this._viewProps);\n }\n\n PlotStopTipBtnCallback = () => {\n UIManager.pushPresenter(PlotStopViewPresenter, undefined);\n }\n\n addGraceClickCallBack = (roleId: number) => {\n let r = GameModelManager.getRoleData(roleId);\n if (!r || r!.getConfig().RoleType !== RoleType.Role_Major) {\n return;\n }\n let l = r.getRoleLikeLevel();\n let m: number = -1;\n let t = ConfigManager.getAllConfig(relationLevelConfig);\n for (let id in t) {\n let c = t[id];\n m = m < c.id ? c.id : m;\n //暂时修改最大等级为10\n m = 10;\n }\n if (m <= l.level) {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LEVEL_MAX_VALUE));\n return;\n }\n else {\n // UIManager.showToast(StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_TIP_ROLE), r.getRoleName(), l.level));\n let temp: AlertDialogViewProps =\n {\n dataptr: { roleId: roleId },\n titlecontent: \"提升好感度\",\n content: `当前与${r.getRoleName()}好感度等级为${l.level},观看视频提升好感度等级!`,\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n // items: [],\n hasBanner: false,\n callback: (type, ret: boolean, param: any) => {\n if (ret) {\n if (type === \"video\") {\n let rid = param.roleId;\n let role = GameModelManager.getRoleData(rid);\n if (role) {\n role.addRoleLike(1000);\n this.setViewProps();\n }\n } else {\n UIManager.showToast(\"只能通过观看视频提升好感度等级!\");\n }\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n }\n\n private onItemClick = (key: string) => {\n // console.log(\"item click\", key);\n GameModelManager.setGuideMsgItemRecord(key, GuideState.Complete);\n let sceneModel = GameModelManager.getMessageSceneModel(parseInt(key));\n if (!sceneModel) { console.error(\"message scene model not found \", key); return; }\n let isNew = PlotManager.getCurrentPlots().findIndex(v => v.plotSceneType === PlotSceneType.Message && v.plotSceneTypeId === sceneModel!.id) !== (-1);\n if (isNew || sceneModel.firstPlot.sentences[0].roleId == 3) {\n GameDotMgr.getInstance().dotClickUI(\"click_chat_card\" + sceneModel.id);\n }\n UIManager.pushPresenter(ChatListViewPresenter, sceneModel);\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getMsgItemGuideKey();\n if (k && \"\" !== k) {\n let node = this._view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemClick(k);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n }\n\n onShowPlotBlocked = () => {\n this._viewProps.isShowPlotStopTipBtn = GameModelManager.checkIsPlotBlocked();\n this.view.updateProps(this._viewProps);\n }\n\n onRefreshAllStatus = () => {\n this.initViewProps();\n this.checkScenesActive();\n this.setViewProps();\n this._isCheckingPhoneCall = false;\n this.checkPhoneCall();\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/PhoneCallViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+DAAqD;AAErD,0CAA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BACzB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,iBAAW,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;oBACzD,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;oBAChB,IAAI,IAAI,CAAC,aAAa,KAAK,qBAAa,CAAC,SAAS,EAAE;wBAChD,mCAAgB,CAAC,kBAAkB,EAAE,CAAC;wBACtC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;qBACtB;yBAAM;wBACH,IAAI,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;wBACtG,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;wBAC7D,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;4BACd,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;yBACxC;wBACD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;qBAClD;gBACL,CAAC,CAAC,CAAC,CAAC;aACP;QACL,CAAC;KAEJ,CAAA;IA9EU,2BAAI,GAAG,wBAAwB,CAAC;IAD9B,sBAAsB;QADlC,qCAAY,CAAC,iCAAiB,CAAC;OACnB,sBAAsB,CA+ElC;IAAD,6BAAC;KAAA;AA/EY,wDAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { PlotManager, ReadonlyPlots, SentenceSelectContent } from \"../../../avg/AVG\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { role } from \"../../../config/Role\";\nimport { PlotSceneType } from \"../../Enums\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { PhoneCallItemProps, PhoneCallView, PhoneCallViewProps, PhoneCallViewType } from \"../view/type/PhoneCallView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\n@RegPresenter(PhoneCallViewType)\nexport class PhoneCallViewPresenter extends Presenter<undefined, PhoneCallView> {\n static uuid = \"PhoneCallViewPresenter\";\n private _items: PhoneCallItemProps[] = [];\n private _viewProps: PhoneCallViewProps;\n\n onSetContent = (content: DeepReadonly<SentenceSelectContent> | undefined) => {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"\",\n clickcausehide: false,\n onSelectIndexCallback: this.onSelectIndexCallback\n\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n }\n\n\n onSelectIndexCallback = (index: number) => {\n this.view.select(index);\n }\n\n isSentenceSelectVisible = (): boolean => {\n let preset = UIManager.getTopPresenter();\n if (preset instanceof SentenceSelectorViewPresenter) {\n let selectorPresenter = preset as SentenceSelectorViewPresenter;\n return !selectorPresenter.view.isHidden;\n }\n return false;\n }\n\n onGameChangedClickCallback = (ret: boolean) => {\n this.view.applicationChange(ret);\n }\n\n async onOpen() {\n super.onOpen(undefined);\n this._disposable.add(GameModelManager.ApplicaitonGameChanged.on(this.onGameChangedClickCallback));\n let plots = await GameModelManager.rollbackPhoneCallIfNeeded();\n this.analysisPlots(plots);\n }\n\n analysisPlots(plots: ReadonlyPlots) {\n this._items = [];\n let plot = plots[0];\n if (plot.plotSceneType !== PlotSceneType.PhoneCall) {\n console.error(\"Phone call plot data error.\");\n } else {\n let roleData = ConfigManager.getConfig(role, plot.plotSceneTypeId);\n this._items = [{ key: plot.id + \"\", isSelf: plot.sentences[0].roleId === 2, sentence: plot.sentences[0] }];\n this._viewProps =\n {\n name: roleData.name, // TODO i18n\n icon: GameModelManager.getRoleData(plot.plotSceneTypeId)!.getHeadIcon(),\n items: this._items,\n onCompletePlot: (index?: number) => PlotManager.completePlot(plot, index),\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible\n };\n this._view.setProps(this._viewProps);\n\n this._disposable.clear();\n this._disposable.add(PlotManager.PlotStartEvent.on((plots) => {\n plot = plots[0];\n if (plot.plotSceneType !== PlotSceneType.PhoneCall) {\n GameModelManager.dotMainLinePlotEnd();\n this._view.close();\n } else {\n let item = { key: plot.id + \"\", isSelf: plot.sentences[0].roleId === 2, sentence: plot.sentences[0] };\n let index = this._items.findIndex((v) => v.key === item.key);\n if (index === -1) {\n this._items = [...this._items, item];\n }\n this._view.updateProps({ items: this._items });\n }\n }));\n }\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/PhoneCallViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+DAAqD;AAErD,0CAAqF;AACrF,2EAAoE;AACpE,2EAAwE;AACxE,+CAA4C;AAC5C,uCAA4C;AAC5C,mEAAgE;AAChE,sEAAyD;AACzD,8DAAsH;AAEtH,mFAA4E;AAG5E;IAAA,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,yBAAmC;QAA/E;;YAEY,WAAM,GAAyB,EAAE,CAAC;YAG1C,iBAAY,GAAG,CAAC,OAAwD,EAAE,EAAE;gBACxE,IAAI,KAAK,GACT;oBACI,QAAQ,EAAE,OAAO;oBACjB,cAAc,EAAE,EAAE;oBAClB,cAAc,EAAE,KAAK;oBACrB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;iBAEpD,CAAC;gBACF,qBAAS,CAAC,aAAa,CAAC,uCAA6B,EAAE,KAAK,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AC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;wBAC7D,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;4BACd,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;yBACxC;wBACD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;qBAClD;gBACL,CAAC,CAAC,CAAC,CAAC;aACP;QACL,CAAC;KAEJ,CAAA;IA7EU,2BAAI,GAAG,wBAAwB,CAAC;IAD9B,sBAAsB;QADlC,qCAAY,CAAC,iCAAiB,CAAC;OACnB,sBAAsB,CA8ElC;IAAD,6BAAC;KAAA;AA9EY,wDAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { PlotManager, ReadonlyPlots, SentenceSelectContent } from \"../../../avg/AVG\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { role } from \"../../../config/Role\";\nimport { PlotSceneType } from \"../../Enums\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { PhoneCallItemProps, PhoneCallView, PhoneCallViewProps, PhoneCallViewType } from \"../view/type/PhoneCallView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\n@RegPresenter(PhoneCallViewType)\nexport class PhoneCallViewPresenter extends Presenter<undefined, PhoneCallView> {\n static uuid = \"PhoneCallViewPresenter\";\n private _items: PhoneCallItemProps[] = [];\n private _viewProps: PhoneCallViewProps;\n\n onSetContent = (content: DeepReadonly<SentenceSelectContent> | undefined) => {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"\",\n clickcausehide: false,\n onSelectIndexCallback: this.onSelectIndexCallback\n\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n }\n\n\n onSelectIndexCallback = (index: number) => {\n this.view.select(index);\n }\n\n isSentenceSelectVisible = (): boolean => {\n let preset = UIManager.getTopPresenter();\n if (preset instanceof SentenceSelectorViewPresenter) {\n let selectorPresenter = preset as SentenceSelectorViewPresenter;\n return !selectorPresenter.view.isHidden;\n }\n return false;\n }\n\n onGameChangedClickCallback = (ret: boolean) => {\n this.view.applicationChange(ret);\n }\n\n async onOpen() {\n super.onOpen(undefined);\n let plots = await GameModelManager.rollbackPhoneCallIfNeeded();\n this.analysisPlots(plots);\n }\n\n analysisPlots(plots: ReadonlyPlots) {\n this._items = [];\n let plot = plots[0];\n if (plot.plotSceneType !== PlotSceneType.PhoneCall) {\n console.error(\"Phone call plot data error.\");\n } else {\n let roleData = ConfigManager.getConfig(role, plot.plotSceneTypeId);\n this._items = [{ key: plot.id + \"\", isSelf: plot.sentences[0].roleId === 2, sentence: plot.sentences[0] }];\n this._viewProps =\n {\n name: roleData.name, // TODO i18n\n icon: GameModelManager.getRoleData(plot.plotSceneTypeId)!.getHeadIcon(),\n items: this._items,\n onCompletePlot: (index?: number) => PlotManager.completePlot(plot, index),\n onSetContent: this.onSetContent,\n isSentenceSelectVisible: this.isSentenceSelectVisible\n };\n this._view.setProps(this._viewProps);\n\n this._disposable.clear();\n this._disposable.add(PlotManager.PlotStartEvent.on((plots) => {\n plot = plots[0];\n if (plot.plotSceneType !== PlotSceneType.PhoneCall) {\n GameModelManager.dotMainLinePlotEnd();\n this._view.close();\n } else {\n let item = { key: plot.id + \"\", isSelf: plot.sentences[0].roleId === 2, sentence: plot.sentences[0] };\n let index = this._items.findIndex((v) => v.key === item.key);\n if (index === -1) {\n this._items = [...this._items, item];\n }\n this._view.updateProps({ items: this._items });\n }\n }));\n }\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources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YACzB,IAAI,IAAI,IAAI,4BAAa,CAAC,EAAE,EAAE;gBAC1B,OAAO,GAAG,mCAAgB,CAAC,cAAc,CAAC,2BAAY,CAAC,kCAAkC,CAAC,CAAC;aAC9F;iBAAM;gBACH,OAAO,GAAG,mCAAgB,CAAC,cAAc,CAAC,2BAAY,CAAC,qCAAqC,CAAC,CAAC;aACjG;YACD,qBAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAcJ,CAAA;IAhFU,0BAAI,GAAG,uBAAuB,CAAC;IADrB,qBAAqB;QADzC,qCAAY,CAAC,+BAAgB,CAAC;OACV,qBAAqB,CAiFzC;IAAD,4BAAC;KAAA;kBAjFoB,qBAAqB","file":"","sourceRoot":"/","sourcesContent":["\n// import { DailyQuestType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GetRewardType } from \"../../../common/gameplay/gamedata/GameEnumData\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { CommonLocation, ShowLocationType, ShowType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { PlotStopView, PlotStopViewProps, PlotStopViewType } from \"../view/type/PlotStopView\";\n@RegPresenter(PlotStopViewType)\nexport default class PlotStopViewPresenter extends Presenter<undefined, PlotStopView>{\n static uuid = \"PlotStopViewPresenter\";\n private _viewProps: PlotStopViewProps;\n constructor() {\n super();\n }\n initViewProps() {\n this._viewProps = {\n unlockPlotCallbackFunc: this.unlockPlotCallbackFunc,\n onAdBtnOption: this.onAdBtnOption,\n onAddRes: this.onAddRes,\n onCancelAdCallback: this.onCancelAdCallback,\n }\n }\n onOpen() {\n super.onOpen(undefined);\n this.onShow();\n }\n onShow() {\n super.onShow();\n this.initViewProps();\n this._view.setProps(this._viewProps);\n this.view.adButton.loadSVConfig();\n\n let t = this.view.getSvBtnType();\n if (t && t === \"share\" || t === \"video\") {\n this.onAdBtnOption(ShowType.SHOW, t);\n }\n }\n onClose() {\n super.onClose();\n }\n onEnterForeground() {\n super.onEnterForeground();\n }\n onEnterBackground() {\n super.onEnterBackground();\n }\n onHide() {\n }\n\n unlockPlotCallbackFunc = () => {\n\n }\n\n onAdBtnOption = (optionType: ShowType, adType: \"share\" | \"video\", ret?: boolean) => {\n let location = CommonLocation.Nextplot;\n if (adType === \"share\") {\n GameDotMgr.getInstance().dotShare(optionType, ShowLocationType.Share + location);\n }\n if (adType === \"video\") {\n GameDotMgr.getInstance().dotVideo(optionType, ShowLocationType.Video + location);\n }\n if (optionType === ShowType.FINISH && ret && adType === \"video\") {\n // GameModelManager.addDailyTasks(DailyQuestType.Dq_AdsWatch, 1);\n }\n }\n\n onCancelAdCallback(type: GetRewardType) {\n let content: string = \"\";\n if (type == GetRewardType.Ad) {\n content = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MALL_GIFT_ADFAILED_VALUE);\n } else {\n content = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MALL_GIFT_SHAREFAILED_VALUE);\n }\n UIManager.showToast(content);\n this.view.closeView();\n }\n\n onAddRes = (type: string) => {\n if (type === \"video\") {\n GameModelManager.dealBlockedPlot(true);\n } else {\n if (cc.sys.browserType == cc.sys.BROWSER_TYPE_CHROME) {\n GameModelManager.dealBlockedPlot(true);\n } else {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_DEAL_BLOCKED_PLOT_FAIL));\n }\n }\n this.view.closeView();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/PlotStopViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6DAA6D;AAC7D,2EAAoE;AACpE,iFAA+E;AAC/E,iFAA8E;AAC9E,2E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AAK,CAAC,OAAO,EAAE,CAAC;QACpB,CAAC;QACD,iBAAiB;YACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC9B,CAAC;QACD,iBAAiB;YACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC9B,CAAC;QACD,MAAM;QACN,CAAC;QAMD,kBAAkB,CAAC,IAAmB;YAClC,IAAI,OAAO,GAAW,EAAE,CAAC;YACzB,IAAI,IAAI,IAAI,4BAAa,CAAC,EAAE,EAAE;gBAC1B,OAAO,GAAG,mCAAgB,CAAC,cAAc,CAAC,2BAAY,CAAC,kCAAkC,CAAC,CAAC;aAC9F;iBAAM;gBACH,OAAO,GAAG,mCAAgB,CAAC,cAAc,CAAC,2BAAY,CAAC,qCAAqC,CAAC,CAAC;aACjG;YACD,qBAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAcJ,CAAA;IA7DU,0BAAI,GAAG,uBAAuB,CAAC;IADrB,qBAAqB;QADzC,qCAAY,CAAC,+BAAgB,CAAC;OACV,qBAAqB,CA8DzC;IAAD,4BAAC;KAAA;kBA9DoB,qBAAqB","file":"","sourceRoot":"/","sourcesContent":["\n// import { DailyQuestType } from \"../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GetRewardType } from \"../../../common/gameplay/gamedata/GameEnumData\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { PlotStopView, PlotStopViewProps, PlotStopViewType } from \"../view/type/PlotStopView\";\n@RegPresenter(PlotStopViewType)\nexport default class PlotStopViewPresenter extends Presenter<undefined, PlotStopView>{\n static uuid = \"PlotStopViewPresenter\";\n private _viewProps: PlotStopViewProps;\n constructor() {\n super();\n }\n initViewProps() {\n this._viewProps = {\n unlockPlotCallbackFunc: this.unlockPlotCallbackFunc,\n onAddRes: this.onAddRes,\n onCancelAdCallback: this.onCancelAdCallback,\n }\n }\n onOpen() {\n super.onOpen(undefined);\n this.onShow();\n }\n onShow() {\n super.onShow();\n this.initViewProps();\n this._view.setProps(this._viewProps);\n this.view.adButton.loadSVConfig();\n }\n onClose() {\n super.onClose();\n }\n onEnterForeground() {\n super.onEnterForeground();\n }\n onEnterBackground() {\n super.onEnterBackground();\n }\n onHide() {\n }\n\n unlockPlotCallbackFunc = () => {\n\n }\n\n onCancelAdCallback(type: GetRewardType) {\n let content: string = \"\";\n if (type == GetRewardType.Ad) {\n content = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MALL_GIFT_ADFAILED_VALUE);\n } else {\n content = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MALL_GIFT_SHAREFAILED_VALUE);\n }\n UIManager.showToast(content);\n this.view.closeView();\n }\n\n onAddRes = (type: string) => {\n if (type === \"video\") {\n GameModelManager.dealBlockedPlot(true);\n } else {\n if (cc.sys.browserType == cc.sys.BROWSER_TYPE_CHROME) {\n GameModelManager.dealBlockedPlot(true);\n } else {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_DEAL_BLOCKED_PLOT_FAIL));\n }\n }\n this.view.closeView();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAuD;AACvD,yCAAgC;AAEhC,8EAAuE;AACvE,oFAAiF;AACjF,8EAA2E;AAE3E,oDAA6C;AAC7C,sEAAmE;AAEnE,yEAA4D;AAC5D,sFAA4G;AAC5G,wEAAkE;AAClE,4EAAqE;AACrE,6EAAsE;AAItE;IAAA,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,yBAAyC;QAA3F;;YAgBI,gBAAW,GAAG,GAAG,EAAE;g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,CAAC;QArDG,MAAM;YACF,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;gBACf,YAAY,EAAE,sCAAa,CAAC,WAAW,GAAG,CAAC;gBAC3C,YAAY,EAAE,sCAAa,CAAC,WAAW,GAAG,CAAC;gBAC3C,aAAa,EAAE,IAAI,CAAC,WAAW;gBAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;gBAC/B,cAAc,EAAE,IAAI,CAAC,YAAY;gBACjC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;aAChD,CAAC,CAAC;YACH,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,mCAAgB,CAAC,gBAAgB,CAAC,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACxF,CAAC;QAgCD,OAAO;YACH,KAAK,CAAC,OAAO,EAAE,CAAC;YAChB,qBAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC/B,eAAG,CAAC,kBAAkB,EAAE,CAAC;QAC7B,CAAC;KAMJ,CAAA;IAvDU,iCAAI,GAAG,8BAA8B,CAAC;IADpC,4BAA4B;QADxC,qCAAY,CAAC,6CAAuB,CAAC;OACzB,4BAA4B,CAwDxC;IAAD,mCAAC;KAAA;AAxDY,oEAA4B","file":"","sourceRoot":"/","sourcesContent":["import { AudioSettings } from \"simba-cc-audio-manager\";\nimport { SDK } from \"simba-sdk\";\nimport { PageIndex } from \"../../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\nimport { GameConfig } from \"../../../../GameConfig\";\nimport GameDotMgr from \"../../../GameDotMgr\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\nimport { HttpRequests } from \"../../../network/HttpRequests\";\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\nimport { DiscoverSettingView, DiscoverSettingViewType } from \"../../view/type/discover/DiscoverSettingView\";\nimport { SourceView } from \"../../view/type/notice/NewNoticeView\";\nimport ExchangeCodeViewPresenter from \"../ExchangeCodeViewPresenter\";\nimport NewNoticeViewPresenter from \"../notice/NewNoticeViewPresenter\";\nimport NoticeViewPresenter from \"../NoticeViewPresenter\";\n\n@RegPresenter(DiscoverSettingViewType)\nexport class DiscoverSettingViewPresenter extends Presenter<undefined, DiscoverSettingView> {\n static uuid = \"DiscoverSettingViewPresenter\";\n\n onOpen() {\n super.onOpen(undefined);\n this.view.setProps({\n soundEnabled: AudioSettings.soundVolume > 0,\n musicEnabled: AudioSettings.musicVolume > 0,\n onToggleSound: this.toggleSound,\n onToggleMusic: this.toggleMusic,\n onToggleNotice: this.toggleNotice,\n onToggleExchangeCode: this.toggleExchangeCode\n });\n this._disposable.add(GameModelManager.CloseSettingView.on(this.onCloseSettingView));\n }\n\n toggleSound = () => {\n AudioSettings.soundVolume = AudioSettings.soundVolume > 0 ? 0 : 1;\n this.view.updateProps({\n soundEnabled: AudioSettings.soundVolume > 0\n });\n }\n\n toggleMusic = () => {\n AudioSettings.musicVolume = AudioSettings.musicVolume > 0 ? 0 : 1;\n this.view.updateProps({\n musicEnabled: AudioSettings.musicVolume > 0\n });\n }\n\n toggleNotice = () => {//公告\n // GameDotMgr.getInstance().dotClickUI(\"click_notice\");\n UIManager.pushPresenter(NewNoticeViewPresenter, SourceView.SettingView);\n }\n\n toggleExchangeCode = () => {//兑换码 \n //点击兑换码打点\n GameDotMgr.getInstance().dotClickUI(\"exchange_code\");\n let title = GameModelManager.getLanguageTxt(GameTextData.TEXT_EXCHANGETITLE_VALUE);\n let content = \"\";\n UIManager.pushPresenter(ExchangeCodeViewPresenter, {\n titletxt: title,\n contenttxt: content\n });\n }\n\n onClose() {\n super.onClose();\n UIManager.popToPresenter(this);\n SDK.showGameClubButton();\n }\n\n onCloseSettingView = (index: PageIndex) => {\n this.view.close(true);\n GameModelManager.JumpToViewInGame.emit(index);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAuD;AACvD,yCAAgC;AAEhC,8EAAuE;AACvE,oFAAiF;AACjF,8EAA2E;AAC3E,oDAA6C;AAC7C,sEAAmE;AACnE,yEAA4D;AAC5D,sFAA4G;AAC5G,wEAAkE;AAClE,4EAAqE;AACrE,6EAAsE;AAGtE;IAAA,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,yBAAyC;QAA3F;;YAgBI,gBAAW,GAAG,GAAG,EAAE;gBACf,sCAAa,CAAC,WAAW,GAAG,sCAAa,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;oBAClB,YAAY,EAAE,sCAAa,CAAC,WAAW,GAAG,CAAC;iBAC9C,CAAC,CAAC;YACP,CAAC,CAAA;YAED,gBAAW,GAAG,GAAG,EAAE;gBACf,sCAAa,CAAC,WAAW,GAAG,sCAAa,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;oBAClB,YAAY,EAAE,sCAAa,CAAC,WAAW,GAAG,CAAC;iBAC9C,CAAC,CAAC;YACP,CAAC,CAAA;YAED,iBAAY,GAAG,GAAG,EAAE;gBAChB,qBAAS,CAAC,aAAa,CAAC,gCAAsB,EAAE,0BAAU,CAAC,WAAW,CAAC,CAAC;YAC5E,CAAC,CAAA;YAED,uBAAkB,GAAG,GAAG,EAAE;gBACtB,SAAS;gBACT,oBAAU,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;gBACrD,IAAI,KAAK,GAAG,mCAAgB,CAAC,cAAc,CAAC,2BAAY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/","sourcesContent":["import { AudioSettings } from \"simba-cc-audio-manager\";\nimport { SDK } from \"simba-sdk\";\nimport { PageIndex } from \"../../../../avg/EditorEnums\";\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\nimport GameDotMgr from \"../../../GameDotMgr\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\nimport { DiscoverSettingView, DiscoverSettingViewType } from \"../../view/type/discover/DiscoverSettingView\";\nimport { SourceView } from \"../../view/type/notice/NewNoticeView\";\nimport ExchangeCodeViewPresenter from \"../ExchangeCodeViewPresenter\";\nimport NewNoticeViewPresenter from \"../notice/NewNoticeViewPresenter\";\n\n@RegPresenter(DiscoverSettingViewType)\nexport class DiscoverSettingViewPresenter extends Presenter<undefined, DiscoverSettingView> {\n static uuid = \"DiscoverSettingViewPresenter\";\n\n onOpen() {\n super.onOpen(undefined);\n this.view.setProps({\n soundEnabled: AudioSettings.soundVolume > 0,\n musicEnabled: AudioSettings.musicVolume > 0,\n onToggleSound: this.toggleSound,\n onToggleMusic: this.toggleMusic,\n onToggleNotice: this.toggleNotice,\n onToggleExchangeCode: this.toggleExchangeCode\n });\n this._disposable.add(GameModelManager.CloseSettingView.on(this.onCloseSettingView));\n }\n\n toggleSound = () => {\n AudioSettings.soundVolume = AudioSettings.soundVolume > 0 ? 0 : 1;\n this.view.updateProps({\n soundEnabled: AudioSettings.soundVolume > 0\n });\n }\n\n toggleMusic = () => {\n AudioSettings.musicVolume = AudioSettings.musicVolume > 0 ? 0 : 1;\n this.view.updateProps({\n musicEnabled: AudioSettings.musicVolume > 0\n });\n }\n\n toggleNotice = () => {//公告\n UIManager.pushPresenter(NewNoticeViewPresenter, SourceView.SettingView);\n }\n\n toggleExchangeCode = () => {//兑换码 \n //点击兑换码打点\n GameDotMgr.getInstance().dotClickUI(\"exchange_code\");\n let title = GameModelManager.getLanguageTxt(GameTextData.TEXT_EXCHANGETITLE_VALUE);\n let content = \"\";\n UIManager.pushPresenter(ExchangeCodeViewPresenter, {\n titletxt: title,\n contenttxt: content\n });\n }\n\n onClose() {\n super.onClose();\n UIManager.popToPresenter(this);\n SDK.showGameClubButton();\n }\n\n onCloseSettingView = (index: PageIndex) => {\n this.view.close(true);\n GameModelManager.JumpToViewInGame.emit(index);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/notice/NewNoticeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AACrD,yCAAgC;AAChC,6DAAsE;AACtE,8EAAuE;AACvE,8EAA2E;AAC3E,gFAA6E;AAC7E,uDAA6D;AAC7D,0FAAyG;AACzG,sEAAmE;AACnE,gEAA6D;AAC7D,qEAA8D;AAC9D,yEAA4D;AAC5D,wEAAoI;AAGpI;IAAA,IAAqB,sBAAsB,GAA3C,MAAqB,sBAAuB,SAAQ,yBAAoC;QAQpF;YACI,KAAK,EAAE,CAAC;YANJ,gBAAW,GAAe,0BAAU,CAAC,YAAY,CAAC;YAClD,eAAU,GAAW,CAAC,CAAC;YACvB,qBAAgB,GAAW,CAAC,CAAC,CAAC;YAC9B,cAAS,GAAY,KAAK,CAAC;YAiOnC;;;eAGG;YACH,gCAA2B,GAAG,CAAC,KAAa,EAAE,EAAE;gBAC5C,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,EAAE;oBAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;oBACzB,IAAI,CAAC,cAAc,EAAE,CAAC;oBACtB,IAAI,CAAC,gBAAgB,EAAE,CAAC;iBAC3B;YACL,CAAC,CAAA;YAED;;eAEG;YACH,8BAAyB,GAAG,GAAG,EAAE;gBAC7B,IAAI,IAAI,CAAC,SAAS,EAAE;oBAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC;oBAC5B,mCAAgB,CAAC,eAAe,CAAC,IAA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AAI,CAAC,SAAS,CAAC,CAAC;gBACtD;oBACI,MAAM;aACb;QACL,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;KAyBJ,CAAA;IA7PU,2BAAI,GAAG,wBAAwB,CAAA;IADrB,sBAAsB;QAD1C,qCAAY,CAAC,iCAAiB,CAAC;OACX,sBAAsB,CA8P1C;IAAD,6BAAC;KAAA;kBA9PoB,sBAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport { ActicityType, PageIndex } from \"../../../../avg/EditorEnums\";\r\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\r\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\r\nimport { taoBaoShopUrlConfig } from \"../../../../config/TaoBaoShopUrlConfig\";\r\nimport { channel, GameConfig } from \"../../../../GameConfig\";\r\nimport { ActivitiesConfig, ActivitiesItemModelManager } from \"../../../model/ActivitiesItemModelManager\";\r\nimport { GameModelManager } from \"../../../model/GameModelManager\";\r\nimport { HttpRequests } from \"../../../network/HttpRequests\";\r\nimport ActivitiesNoticeItem from \"../../ActivitiesNoticeItem\";\r\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\r\nimport { NewNoticeViewType, NewNoticeView, NewNoticeViewProps, NoticeType, SourceView } from \"../../view/type/notice/NewNoticeView\";\r\n\r\n@RegPresenter(NewNoticeViewType)\r\nexport default class NewNoticeViewPresenter extends Presenter<SourceView, NewNoticeView>{\r\n static uuid = \"NewNoticeViewPresenter\"\r\n private _viewProps: NewNoticeViewProps;\r\n private _noticeType: NoticeType = NoticeType.SystemNotice;\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 sourceView: SourceView.MessageView,\r\n onNoticeButtonClickCallback: this.onNoticeButtonClickCallback,\r\n onCloseButtonClickCalback: this.onCloseButtonClickCalback,\r\n };\r\n }\r\n\r\n onOpen(source: SourceView) {\r\n super.onOpen(source);\r\n this._viewProps.sourceView = source;\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.getNoticeReaded() ? 0 : 3;\r\n this._delayTime = 0;\r\n //重置提示文本状态\r\n this.view.getCloseTipsLabel().string = \"\";\r\n //初始化公告类型\r\n if (channel == \"android\") {\r\n this._noticeType = NoticeType.ActvitiesNotice;\r\n } else {\r\n this._noticeType = NoticeType.SystemNotice;\r\n }\r\n //根据存档初始化“今日不再提示”的选择框\r\n let autoShow = GameModelManager.getAutoShowNotice();\r\n this.view.getTipsToggle().isChecked = !autoShow;\r\n //初始化公告按钮状态和公告内容\r\n this.setNoticeState();\r\n this.setNoticeContent();\r\n //刷新活动公告按钮的红点状态\r\n this.refreshActivitiesButtonRedDot();\r\n //开启关闭倒计时\r\n this.startTimeTicker();\r\n }\r\n\r\n /**\r\n * 设置公告按钮状态和公告内容显隐\r\n */\r\n setNoticeState() {\r\n let nodes = this.view.getNoticeNodes();\r\n let buttons = this.view.getNoticeButtons();\r\n switch (this._noticeType) {\r\n case NoticeType.SystemNotice://系统公告\r\n nodes[NoticeType.SystemNotice].active = true;\r\n nodes[NoticeType.ActvitiesNotice].active = false;\r\n buttons[NoticeType.SystemNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[1];\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[2];\r\n break;\r\n case NoticeType.ActvitiesNotice://活动公告\r\n nodes[NoticeType.SystemNotice].active = false;\r\n nodes[NoticeType.ActvitiesNotice].active = true;\r\n buttons[NoticeType.SystemNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[0];\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[3];\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * 设置公告内容\r\n */\r\n async setNoticeContent() {\r\n switch (this._noticeType) {\r\n case NoticeType.SystemNotice://系统公告\r\n HttpRequests.getNewNotice().then((res) => {\r\n if (res != null && res.length > 0) {\r\n this.view.getContentRichText().string = res[0].msg;\r\n } else {\r\n this.view.getContentRichText().string = \"<color=#FF0000>公告获取失败,请检查网络或稍后重试<color/>\";\r\n }\r\n });\r\n break;\r\n case NoticeType.ActvitiesNotice://活动公告\r\n this.view.getActivitiesContentNode().removeAllChildren();\r\n let configs = ActivitiesItemModelManager.getValidActivitiesConfigs();\r\n for (let i = 0; i < configs.length; i++) {\r\n if (!configs[i].canClick) {\r\n ActivitiesItemModelManager.setActivitiesReaded(configs[i].activityId);\r\n this.refreshActivitiesButtonRedDot();\r\n }\r\n let item = cc.instantiate(this.view.getActivitiesItemPrefab());\r\n item.getComponent(ActivitiesNoticeItem).setData(configs[i].activityId, configs[i].canClick, configs[i].describe, () => {\r\n //刷新活动列表和“活动公告”按钮的红点\r\n ActivitiesItemModelManager.setActivitiesReaded(configs[i].activityId);\r\n item.getComponent(ActivitiesNoticeItem).refreshRedDot();\r\n this.refreshActivitiesButtonRedDot();\r\n //执行活动逻辑\r\n this.executeActivitiesEvent(configs[i], this._viewProps.sourceView);\r\n });\r\n item.parent = this.view.getActivitiesContentNode();\r\n }\r\n break;\r\n default:\r\n break;\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 let autoShow = GameModelManager.getAutoShowNotice();\r\n if (autoShow !== !isChecked) {\r\n GameModelManager.setAutoShowNotice(!isChecked);\r\n }\r\n }\r\n\r\n /**\r\n * 刷新“活动公告”按钮的红点状态\r\n */\r\n refreshActivitiesButtonRedDot() {\r\n let buttons = this.view.getNoticeButtons();\r\n let configs = ActivitiesItemModelManager.getValidActivitiesConfigs();\r\n for (let i = 0; i < configs.length; i++) {\r\n let isReaded = ActivitiesItemModelManager.getActivitiesReaded(configs[i].activityId);\r\n if (!isReaded) {\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"RedDot\").active = true;\r\n return;\r\n } else {\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"RedDot\").active = false;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 根据活动配置处理活动事件\r\n * @param config 活动配置\r\n */\r\n executeActivitiesEvent(config: ActivitiesConfig, source: SourceView) {\r\n switch (config.activityTypeConfig.activityType) {\r\n case ActicityType.JumpToTaoBao:\r\n if (channel == \"wechat\") {\r\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\r\n if (config.activityTypeConfig.taobaoTempId) {\r\n let taobaoConfig = ConfigManager.getConfig(taoBaoShopUrlConfig, config.activityTypeConfig.taobaoTempId);\r\n SDK.openProgramV2(GameConfig.youZanShopAppId, taobaoConfig.youZanUrl);\r\n } else {\r\n console.error(\"The taobaoTempId is undefined.\");\r\n }\r\n } else if (channel == \"android\") {\r\n if (config.activityTypeConfig.taobaoTempId) {\r\n let taobaoConfig = ConfigManager.getConfig(taoBaoShopUrlConfig, config.activityTypeConfig.taobaoTempId);\r\n GameModelManager.jumpToTaobaoShop(taobaoConfig.websiteUrl);\r\n } else {\r\n console.error(\"The taobaoTempId is undefined.\");\r\n }\r\n } else {\r\n UIManager.showToast(\"该功能在当前平台不可使用\");\r\n }\r\n break;\r\n case ActicityType.PageInGame:\r\n let pageIndex: PageIndex = config.activityTypeConfig.pageIndex;\r\n if (pageIndex) {\r\n this.executePageInGameEvent(pageIndex, source);\r\n } else {\r\n console.error(\"The pageIndex is undefined.\");\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * 处理游戏内的活动事件\r\n * @param activityId 活动ID\r\n */\r\n executePageInGameEvent(pageIndex: PageIndex, source: SourceView) {\r\n switch (source) {\r\n case SourceView.MessageView:\r\n this.onCloseButtonClickCalback();\r\n GameModelManager.JumpToViewInGame.emit(pageIndex);\r\n break;\r\n case SourceView.SettingView:\r\n this.onCloseButtonClickCalback();\r\n GameModelManager.CloseSettingView.emit(pageIndex);\r\n default:\r\n break;\r\n }\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 * @param index 系统公告和活动公告的Index\r\n */\r\n onNoticeButtonClickCallback = (index: number) => {\r\n if (this._noticeType !== index) {\r\n this._noticeType = index;\r\n this.setNoticeState();\r\n this.setNoticeContent();\r\n }\r\n }\r\n\r\n /**\r\n * 关闭按钮的点击事件\r\n */\r\n onCloseButtonClickCalback = () => {\r\n if (this._canClose) {\r\n this.checkTipsToggleState();\r\n GameModelManager.setNoticeReaded(true);\r\n clearTimeout(this._closeTimeTicker);\r\n this.view.close();\r\n }\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/presenter/notice/NewNoticeViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqD;AACrD,yCAAgC;AAChC,6DAAsE;AACtE,8EAAuE;AACvE,8EAA2E;AAC3E,gFAA6E;AAC7E,uDAA6D;AAC7D,0FAAyG;AACzG,sEAAmE;AACnE,gEAA6D;AAC7D,qEAA8D;AAC9D,yEAA4D;AAC5D,wEAAoI;AAGpI;IAAA,IAAqB,sBAAsB,GAA3C,MAAqB,sBAAuB,SAAQ,yBAAoC;QAQpF;YACI,KAAK,EAAE,CAAC;YANJ,gBAAW,GAAe,0BAAU,CAAC,YAAY,CAAC;YAClD,eAAU,GAAW,CAAC,CAAC;YACvB,qBAAgB,GAAW,CAAC,CAAC,CAAC;YAC9B,cAAS,GAAY,KAAK,CAAC;YA+NnC;;;eAGG;YACH,gCAA2B,GAAG,CAAC,KAAa,EAAE,EAAE;gBAC5C,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,EAAE;oBAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;oBACzB,IAAI,CAAC,cAAc,EAAE,CAAC;oBACtB,IAAI,CAAC,gBAAgB,EAAE,CAAC;iBAC3B;YACL,CAAC,CAAA;YAED;;eAEG;YACH,8BAAyB,GAAG,GAAG,EAAE;gBAC7B,IAAI,IAAI,CAAC,SAAS,EAAE;oBAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC;oBAC5B,YAAY,CAA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C;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;KAwBJ,CAAA;IA1PU,2BAAI,GAAG,wBAAwB,CAAA;IADrB,sBAAsB;QAD1C,qCAAY,CAAC,iCAAiB,CAAC;OACX,sBAAsB,CA2P1C;IAAD,6BAAC;KAAA;kBA3PoB,sBAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport { ActicityType, PageIndex } from \"../../../../avg/EditorEnums\";\r\nimport { Presenter } from \"../../../../common/classbase/PresenterBase\";\r\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\r\nimport { taoBaoShopUrlConfig } from \"../../../../config/TaoBaoShopUrlConfig\";\r\nimport { channel, GameConfig } from \"../../../../GameConfig\";\r\nimport { ActivitiesConfig, ActivitiesItemModelManager } from \"../../../model/ActivitiesItemModelManager\";\r\nimport { GameModelManager } from \"../../../model/GameModelManager\";\r\nimport { HttpRequests } from \"../../../network/HttpRequests\";\r\nimport ActivitiesNoticeItem from \"../../ActivitiesNoticeItem\";\r\nimport { RegPresenter } from \"../../PresenterCCViewFactory\";\r\nimport { NewNoticeViewType, NewNoticeView, NewNoticeViewProps, NoticeType, SourceView } from \"../../view/type/notice/NewNoticeView\";\r\n\r\n@RegPresenter(NewNoticeViewType)\r\nexport default class NewNoticeViewPresenter extends Presenter<SourceView, NewNoticeView>{\r\n static uuid = \"NewNoticeViewPresenter\"\r\n private _viewProps: NewNoticeViewProps;\r\n private _noticeType: NoticeType = NoticeType.SystemNotice;\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 sourceView: SourceView.MessageView,\r\n onNoticeButtonClickCallback: this.onNoticeButtonClickCallback,\r\n onCloseButtonClickCalback: this.onCloseButtonClickCalback,\r\n };\r\n }\r\n\r\n onOpen(source: SourceView) {\r\n super.onOpen(source);\r\n this._viewProps.sourceView = source;\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 this._delayTime = 0;\r\n //重置提示文本状态\r\n this.view.getCloseTipsLabel().string = \"\";\r\n //初始化公告类型\r\n if (channel == \"android\") {\r\n this._noticeType = NoticeType.ActvitiesNotice;\r\n } else {\r\n this._noticeType = NoticeType.SystemNotice;\r\n }\r\n //根据存档初始化“今日不再提示”的选择框\r\n let autoShow = GameModelManager.getAutoShowNotice();\r\n this.view.getTipsToggle().isChecked = !autoShow;\r\n //初始化公告按钮状态和公告内容\r\n this.setNoticeState();\r\n this.setNoticeContent();\r\n //刷新活动公告按钮的红点状态\r\n this.refreshActivitiesButtonRedDot();\r\n //开启关闭倒计时\r\n this.startTimeTicker();\r\n }\r\n\r\n /**\r\n * 设置公告按钮状态和公告内容显隐\r\n */\r\n setNoticeState() {\r\n let nodes = this.view.getNoticeNodes();\r\n let buttons = this.view.getNoticeButtons();\r\n switch (this._noticeType) {\r\n case NoticeType.SystemNotice://系统公告\r\n nodes[NoticeType.SystemNotice].active = true;\r\n nodes[NoticeType.ActvitiesNotice].active = false;\r\n buttons[NoticeType.SystemNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[1];\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[2];\r\n break;\r\n case NoticeType.ActvitiesNotice://活动公告\r\n nodes[NoticeType.SystemNotice].active = false;\r\n nodes[NoticeType.ActvitiesNotice].active = true;\r\n buttons[NoticeType.SystemNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[0];\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"Background\").getComponent(cc.Sprite).spriteFrame = this.view.getButtonSpriteFrames()[3];\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * 设置公告内容\r\n */\r\n async setNoticeContent() {\r\n switch (this._noticeType) {\r\n case NoticeType.SystemNotice://系统公告\r\n HttpRequests.getNewNotice().then((res) => {\r\n if (res != null && res.length > 0) {\r\n this.view.getContentRichText().string = res[0].msg;\r\n } else {\r\n this.view.getContentRichText().string = \"<color=#FF0000>公告获取失败,请检查网络或稍后重试<color/>\";\r\n }\r\n });\r\n break;\r\n case NoticeType.ActvitiesNotice://活动公告\r\n this.view.getActivitiesContentNode().removeAllChildren();\r\n let configs = ActivitiesItemModelManager.getValidActivitiesConfigs();\r\n for (let i = 0; i < configs.length; i++) {\r\n if (!configs[i].canClick) {\r\n ActivitiesItemModelManager.setActivitiesReaded(configs[i].activityId);\r\n this.refreshActivitiesButtonRedDot();\r\n }\r\n let item = cc.instantiate(this.view.getActivitiesItemPrefab());\r\n item.getComponent(ActivitiesNoticeItem).setData(configs[i].activityId, configs[i].canClick, configs[i].describe, () => {\r\n //刷新活动列表和“活动公告”按钮的红点\r\n ActivitiesItemModelManager.setActivitiesReaded(configs[i].activityId);\r\n item.getComponent(ActivitiesNoticeItem).refreshRedDot();\r\n this.refreshActivitiesButtonRedDot();\r\n //执行活动逻辑\r\n this.executeActivitiesEvent(configs[i], this._viewProps.sourceView);\r\n });\r\n item.parent = this.view.getActivitiesContentNode();\r\n }\r\n break;\r\n default:\r\n break;\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 let autoShow = GameModelManager.getAutoShowNotice();\r\n if (autoShow !== !isChecked) {\r\n GameModelManager.setAutoShowNotice(!isChecked);\r\n }\r\n }\r\n\r\n /**\r\n * 刷新“活动公告”按钮的红点状态\r\n */\r\n refreshActivitiesButtonRedDot() {\r\n let buttons = this.view.getNoticeButtons();\r\n let configs = ActivitiesItemModelManager.getValidActivitiesConfigs();\r\n for (let i = 0; i < configs.length; i++) {\r\n let isReaded = ActivitiesItemModelManager.getActivitiesReaded(configs[i].activityId);\r\n if (!isReaded) {\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"RedDot\").active = true;\r\n return;\r\n } else {\r\n buttons[NoticeType.ActvitiesNotice].node.getChildByName(\"RedDot\").active = false;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 根据活动配置处理活动事件\r\n * @param config 活动配置\r\n */\r\n executeActivitiesEvent(config: ActivitiesConfig, source: SourceView) {\r\n switch (config.activityTypeConfig.activityType) {\r\n case ActicityType.JumpToTaoBao:\r\n if (channel == \"wechat\") {\r\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\r\n if (config.activityTypeConfig.taobaoTempId) {\r\n let taobaoConfig = ConfigManager.getConfig(taoBaoShopUrlConfig, config.activityTypeConfig.taobaoTempId);\r\n SDK.openProgramV2(GameConfig.youZanShopAppId, taobaoConfig.youZanUrl);\r\n } else {\r\n console.error(\"The taobaoTempId is undefined.\");\r\n }\r\n } else if (channel == \"android\") {\r\n if (config.activityTypeConfig.taobaoTempId) {\r\n let taobaoConfig = ConfigManager.getConfig(taoBaoShopUrlConfig, config.activityTypeConfig.taobaoTempId);\r\n GameModelManager.jumpToTaobaoShop(taobaoConfig.websiteUrl);\r\n } else {\r\n console.error(\"The taobaoTempId is undefined.\");\r\n }\r\n } else {\r\n UIManager.showToast(\"该功能在当前平台不可使用\");\r\n }\r\n break;\r\n case ActicityType.PageInGame:\r\n let pageIndex: PageIndex = config.activityTypeConfig.pageIndex;\r\n if (pageIndex) {\r\n this.executePageInGameEvent(pageIndex, source);\r\n } else {\r\n console.error(\"The pageIndex is undefined.\");\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * 处理游戏内的活动事件\r\n * @param activityId 活动ID\r\n */\r\n executePageInGameEvent(pageIndex: PageIndex, source: SourceView) {\r\n switch (source) {\r\n case SourceView.MessageView:\r\n this.onCloseButtonClickCalback();\r\n GameModelManager.JumpToViewInGame.emit(pageIndex);\r\n break;\r\n case SourceView.SettingView:\r\n this.onCloseButtonClickCalback();\r\n GameModelManager.CloseSettingView.emit(pageIndex);\r\n default:\r\n break;\r\n }\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 * @param index 系统公告和活动公告的Index\r\n */\r\n onNoticeButtonClickCallback = (index: number) => {\r\n if (this._noticeType !== index) {\r\n this._noticeType = index;\r\n this.setNoticeState();\r\n this.setNoticeContent();\r\n }\r\n }\r\n\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
{"version":3,"sources":["assets/script/game/ui/view/impl/AlertDialogViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAuD;AACvD,6DAAqG;AACrG,wEAAqE;AACrE,sEAAsG;AACtG,+DAA4C;AAC5C,0CAA4D;AAC5D,oDAA6C;AAC7C,yCAAgC;AAChC,sFAAmF;AAGnF,oFAAkF;AAClF,uDAA6D;AAC7D,8EAA2E;AAC3E,sEAAmE;AAGnE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,uBAAgC;QAAjF;;YACI,UAAU;YAEV,eAAU,GAAa,2BAAU,CAAC;YAGlC,YAAO,GAAgB,8BAAa,CAAC;YAGrC,eAAU,GAAY,0BAAS,CAAC;YAGhC,UAAK,GAAc,4BAAW,CAAC;YAG/B,YAAO,GAAc,4BAAW,CAAC;YAGjC,YAAO,GAAa,SAAgB,CAAC;YAGrC,eAAU,GAAY,0BAAS,CAAC;YAGhC,eAAU,GAAY,0BAAS,CAAC;YAGhC,WAAM,GAAY,0BAAS,CAAC;YAG5B,eAAU,GAAY,0BAAS,CAAC;YAEhC,gBAAW,GAAY,0BAAS,CAAC;YAEjC,gBAAW,GAAY,0BAAS,CAAC;YAEjC,aAAQ,GAAY,0BAAS,CAAC;YAE9B,oBAAe,GAAY,0BAAS,CAAC;YAErC,WAAM,GAAkB,4BAAa,CAAC,EAAE,CAAC;YAgIzC,iBAAY,GAAG,GAAW,EAAE;gBACxB,IAAI,GAAG,GAAG,EAAE,CAAC;gBACb,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;oBACtB,GAAG,GAAG,IAAI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,CAAC,CAAC;yBAC7F;qBACJ;iBACJ;aACJ;QACL,CAAC;KA+BJ,CAAA;IAlOG;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;2DACe;IAGlC;QADC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC;wDACe;IAGrC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACc;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;sDACW;IAG/B;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACa;IAGjC;QADC,QAAQ,CAAC,8BAAQ,CAAC;wDACkB;IAGrC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACc;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACc;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;uDACU;IAG5B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACe;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACe;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;yDACY;IAE9B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;gEACmB;IAtCpB,mBAAmB;QAFvC,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OACrC,mBAAmB,CAqOvC;IAAD,0BAAC;KAAA;kBArOoB,mBAAmB","file":"","sourceRoot":"/","sourcesContent":["import { RegView } from \"../../PresenterCCViewFactory\";\r\nimport { AlertDialogViewType, AlertDialogViewProps, AlertDialogView } from \"../type/AlertDialogView\";\r\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\r\nimport { DummyLabel, DummyNode, DummyButton, DummyRichText } from \"../../../../common/CCDummyObjects\";\r\nimport SVButton from \"simba-sdk-ccsvbutton\";\r\nimport { ShowType, ShowLocationType } from \"../../../Enums\";\r\nimport GameDotMgr from \"../../../GameDotMgr\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport { GameConstData } from \"../../../../common/gameplay/gamedata/GameConstData\";\r\nimport { SVPoint } from \"simba-sdk/dist/SDKTypes\";\r\nimport { DeepReadonly } from \"simba-utils\";\r\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\r\nimport { channel, GameConfig } from \"../../../../GameConfig\";\r\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\r\nimport { GameModelManager } from \"../../../model/GameModelManager\";\r\n\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\n@RegView(AlertDialogViewType, \"prefab/ui/AlertDialogView\")\r\nexport default class AlertDialogViewImpl extends CCPureView<AlertDialogViewProps> implements AlertDialogView {\r\n //#region \r\n @property(cc.Label)\r\n titlelabel: cc.Label = DummyLabel;\r\n\r\n @property(cc.RichText)\r\n content: cc.RichText = DummyRichText;\r\n\r\n @property(cc.Node)\r\n twobtnmode: cc.Node = DummyNode;\r\n\r\n @property(cc.Button)\r\n okbtn: cc.Button = DummyButton;\r\n\r\n @property(cc.Button)\r\n adokbtn: cc.Button = DummyButton;\r\n\r\n @property(SVButton)\r\n adsvbtn: SVButton = undefined as any;\r\n\r\n @property(cc.Node)\r\n onebtnmode: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n opacityBtn: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n banner: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n cancelNode: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n cancelNode2: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n cancelNode3: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n shopNode: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n shareScreenNode: cc.Node = DummyNode;\r\n\r\n svType: GetRewardType = GetRewardType.Ad;\r\n\r\n onLoad() {\r\n this.adsvbtn.loadSVConfig();\r\n this.bindProp(\"titlecontent\", (value) => {\r\n this.titlelabel.string = value;\r\n });\r\n\r\n this.bindProp(\"content\", (value) => {\r\n this.content.string = value;\r\n });\r\n\r\n this.bindProp(\"ishasad\", (value) => {\r\n if (this._props.istwobtn) {\r\n this.adokbtn.node.active = value;\r\n this.okbtn.node.active = !value;\r\n this.adsvbtn.enabled = true;\r\n }\r\n\r\n });\r\n\r\n this.bindProp(\"istwobtn\", (value) => {\r\n this.twobtnmode.active = value;\r\n let hasad = this._props.ishasad;\r\n this.adokbtn.node.active = hasad;\r\n this.okbtn.node.active = !hasad;\r\n this.onebtnmode.active = !value;\r\n });\r\n\r\n this.bindProp(\"adconfig\", (value) => {\r\n this.adsvbtn.enabled = (value !== \"\");\r\n if (value !== \"\") {\r\n this.adsvbtn.sharePointId = value;\r\n this.adsvbtn.loadSVConfig();\r\n }\r\n });\r\n\r\n this.bindProp(\"isthreebtn\", (value) => {\r\n let three: boolean = value ? true : false;\r\n this.shopNode.active = three;\r\n this.cancelNode2.active = three;\r\n this.cancelNode.active = !three;\r\n });\r\n\r\n this.bindProp(\"isadlimit\", (value) => {\r\n let isadlimit: boolean = value ? true : false;\r\n this.shopNode.active = isadlimit;\r\n this.cancelNode3.active = isadlimit;\r\n this.adokbtn.node.active = !isadlimit;\r\n });\r\n\r\n this.bindProp(\"isShareScreen\", (value) => {\r\n let isShareScreen: boolean = value ? true : false;\r\n this.shareScreenNode.active = isShareScreen;\r\n this.adokbtn.node.active = !isShareScreen;\r\n });\r\n\r\n this.adsvbtn.onResult = ((type, ret) => {\r\n this._props.callback(type, ret, this._props.dataptr);\r\n if (ret && this._props.location) {\r\n if (type === \"share\") {\r\n GameDotMgr.getInstance().dotShare(ShowType.FINISH, ShowLocationType.Share + this._props.location);\r\n }\r\n if (type === \"video\") {\r\n GameDotMgr.getInstance().dotVideo(ShowType.FINISH, ShowLocationType.Video + this._props.location);\r\n }\r\n }\r\n this.closeView();\r\n });\r\n\r\n this.adsvbtn.onConfigLoaded = (svPoint: DeepReadonly<SVPoint>) => {\r\n if (svPoint.type === \"share\") {\r\n this.svType = GetRewardType.Share;\r\n } else {\r\n this.svType = GetRewardType.Ad;\r\n }\r\n }\r\n\r\n }\r\n\r\n onOkClickCallback(event) {\r\n this._props.callback(\"\", true, this._props.dataptr);\r\n this.closeView();\r\n }\r\n\r\n onCancleClickCallback(event) {\r\n this._props.callback(\"\", false, this._props.dataptr);\r\n this.closeView();\r\n }\r\n\r\n onGoToShopClickCallback(event) {\r\n this._props.callback(\"\", false, this._props.dataptr);\r\n GameDotMgr.getInstance().dotClickUI(\"shop_btn_AlertDialogView\");\r\n if (channel == \"wechat\") {\r\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\r\n let link = GameModelManager.getYouZanShopUrlByType(2);\r\n if (link) {\r\n SDK.openProgramV2(GameConfig.youZanShopAppId, link);\r\n }\r\n } else if (channel == \"android\") {\r\n let link = GameModelManager.getTaoBaoShopUrlByType(2);\r\n if (link) {\r\n GameModelManager.jumpToTaobaoShop(link);\r\n }\r\n } else {\r\n UIManager.showToast(\"该功能在当前平台不可使用\");\r\n }\r\n }\r\n\r\n onShareScreenClickCallback(event) {\r\n \r\n }\r\n\r\n onADBtnClick() {\r\n let type = this.getSvBtnType();\r\n if (type && \"\" !== type.trim()) {\r\n if (this._props.location) {\r\n if (type === \"share\") {\r\n GameDotMgr.getInstance().dotShare(ShowType.CLICK, ShowLocationType.Share + this._props.location);\r\n }\r\n if (type === \"video\") {\r\n GameDotMgr.getInstance().dotVideo(ShowType.CLICK, ShowLocationType.Video + this._props.location);\r\n }\r\n }\r\n }\r\n this.opacityBtn.active = true;\r\n }\r\n\r\n getSvBtnType = (): string => {\r\n let ret = \"\";\r\n if (this.adsvbtn.svPoint) {\r\n ret = this.adsvbtn.svPoint.type;\r\n }\r\n return ret;\r\n }\r\n\r\n closeView() {\r\n SDK.hideBannerAd();\r\n this.close();\r\n this.opacityBtn.active = false;\r\n }\r\n\r\n switchAdConfig(props: AlertDialogViewProps) {\r\n if (props.istwobtn) {//两个按钮的\r\n if (props.adconfig && \"\" !== props.adconfig.trim()) {\r\n this.adsvbtn.sharePointId = props.adconfig;\r\n this.adsvbtn.loadSVConfig();\r\n let svType = this.getSvBtnType();\r\n if (svType && \"\" !== svType.trim() && props.location && props.ishasad) {\r\n if (svType === \"share\") {\r\n GameDotMgr.getInstance().dotShare(ShowType.SHOW, ShowLocationType.Share + props.location);\r\n }\r\n if (svType === \"video\") {\r\n GameDotMgr.getInstance().dotVideo(ShowType.SHOW, ShowLocationType.Video + props.location);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n showView = (props: AlertDialogViewProps) => {\r\n this.opacityBtn.active = false;\r\n this.switchAdConfig(props);\r\n if (!props.hasBanner) {\r\n SDK.hideBannerAd();\r\n return;\r\n }\r\n let info = SDK.systemInfo.displayInfo;\r\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\r\n this.node.getComponent(cc.Widget).updateAlignment();\r\n\r\n let _width = this.banner.width * aspect;\r\n let _height = this.banner.height * aspect;\r\n let _left = (info.windowSize.width - _width) * 0.5;\r\n let _top = info.windowSize.height - _height;\r\n\r\n let style = {\r\n left: _left,\r\n top: _top,\r\n width: _width,\r\n height: _height,\r\n anchorX: 0.5,\r\n anchorY: 1,\r\n }\r\n SDK.showBannerAd(style, GameConstData.GAME_CONST_BANNER_REFRESH_TIME);\r\n }\r\n\r\n\r\n\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/AlertDialogViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAuD;AACvD,6DAAqG;AACrG,wEAAqE;AACrE,sEAAsG;AACtG,+DAA4C;AAE5C,oDAA6C;AAC7C,yCAAgC;AAChC,sFAAmF;AAGnF,oFAAkF;AAClF,uDAA6D;AAC7D,8EAA2E;AAC3E,sEAAmE;AAGnE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GA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C,EAAE,CAAC,IAAI,CAAC;gEACmB;IAtCpB,mBAAmB;QAFvC,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OACrC,mBAAmB,CAyMvC;IAAD,0BAAC;KAAA;kBAzMoB,mBAAmB","file":"","sourceRoot":"/","sourcesContent":["import { RegView } from \"../../PresenterCCViewFactory\";\r\nimport { AlertDialogViewType, AlertDialogViewProps, AlertDialogView } from \"../type/AlertDialogView\";\r\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\r\nimport { DummyLabel, DummyNode, DummyButton, DummyRichText } from \"../../../../common/CCDummyObjects\";\r\nimport SVButton from \"simba-sdk-ccsvbutton\";\r\nimport { ShowType, ShowLocationType } from \"../../../Enums\";\r\nimport GameDotMgr from \"../../../GameDotMgr\";\r\nimport { SDK } from \"simba-sdk\";\r\nimport { GameConstData } from \"../../../../common/gameplay/gamedata/GameConstData\";\r\nimport { SVPoint } from \"simba-sdk/dist/SDKTypes\";\r\nimport { DeepReadonly } from \"simba-utils\";\r\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\r\nimport { channel, GameConfig } from \"../../../../GameConfig\";\r\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\r\nimport { GameModelManager } from \"../../../model/GameModelManager\";\r\n\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\n@RegView(AlertDialogViewType, \"prefab/ui/AlertDialogView\")\r\nexport default class AlertDialogViewImpl extends CCPureView<AlertDialogViewProps> implements AlertDialogView {\r\n //#region \r\n @property(cc.Label)\r\n titlelabel: cc.Label = DummyLabel;\r\n\r\n @property(cc.RichText)\r\n content: cc.RichText = DummyRichText;\r\n\r\n @property(cc.Node)\r\n twobtnmode: cc.Node = DummyNode;\r\n\r\n @property(cc.Button)\r\n okbtn: cc.Button = DummyButton;\r\n\r\n @property(cc.Button)\r\n adokbtn: cc.Button = DummyButton;\r\n\r\n @property(SVButton)\r\n adsvbtn: SVButton = undefined as any;\r\n\r\n @property(cc.Node)\r\n onebtnmode: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n opacityBtn: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n banner: cc.Node = DummyNode;\r\n\r\n @property(cc.Node)\r\n cancelNode: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n cancelNode2: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n cancelNode3: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n shopNode: cc.Node = DummyNode;\r\n @property(cc.Node)\r\n shareScreenNode: cc.Node = DummyNode;\r\n\r\n svType: GetRewardType = GetRewardType.Ad;\r\n\r\n onLoad() {\r\n this.adsvbtn.loadSVConfig();\r\n this.bindProp(\"titlecontent\", (value) => {\r\n this.titlelabel.string = value;\r\n });\r\n\r\n this.bindProp(\"content\", (value) => {\r\n this.content.string = value;\r\n });\r\n\r\n this.bindProp(\"ishasad\", (value) => {\r\n if (this._props.istwobtn) {\r\n this.adokbtn.node.active = value;\r\n this.okbtn.node.active = !value;\r\n this.adsvbtn.enabled = true;\r\n }\r\n\r\n });\r\n\r\n this.bindProp(\"istwobtn\", (value) => {\r\n this.twobtnmode.active = value;\r\n let hasad = this._props.ishasad;\r\n this.adokbtn.node.active = hasad;\r\n this.okbtn.node.active = !hasad;\r\n this.onebtnmode.active = !value;\r\n });\r\n\r\n this.bindProp(\"adconfig\", (value) => {\r\n this.adsvbtn.enabled = (value !== \"\");\r\n if (value !== \"\") {\r\n this.adsvbtn.sharePointId = value;\r\n this.adsvbtn.loadSVConfig();\r\n }\r\n });\r\n\r\n this.bindProp(\"isthreebtn\", (value) => {\r\n let three: boolean = value ? true : false;\r\n this.shopNode.active = three;\r\n this.cancelNode2.active = three;\r\n this.cancelNode.active = !three;\r\n });\r\n\r\n this.bindProp(\"isadlimit\", (value) => {\r\n let isadlimit: boolean = value ? true : false;\r\n this.shopNode.active = isadlimit;\r\n this.cancelNode3.active = isadlimit;\r\n this.adokbtn.node.active = !isadlimit;\r\n });\r\n\r\n this.bindProp(\"isShareScreen\", (value) => {\r\n let isShareScreen: boolean = value ? true : false;\r\n this.shareScreenNode.active = isShareScreen;\r\n this.adokbtn.node.active = !isShareScreen;\r\n });\r\n\r\n this.adsvbtn.onResult = ((type, ret) => {\r\n this._props.callback(type, ret, this._props.dataptr);\r\n this.closeView();\r\n });\r\n\r\n this.adsvbtn.onConfigLoaded = (svPoint: DeepReadonly<SVPoint>) => {\r\n if (svPoint.type === \"share\") {\r\n this.svType = GetRewardType.Share;\r\n } else {\r\n this.svType = GetRewardType.Ad;\r\n }\r\n }\r\n\r\n }\r\n\r\n onOkClickCallback(event) {\r\n this._props.callback(\"\", true, this._props.dataptr);\r\n this.closeView();\r\n }\r\n\r\n onCancleClickCallback(event) {\r\n this._props.callback(\"\", false, this._props.dataptr);\r\n this.closeView();\r\n }\r\n\r\n onGoToShopClickCallback(event) {\r\n this._props.callback(\"\", false, this._props.dataptr);\r\n GameDotMgr.getInstance().dotClickUI(\"shop_btn_AlertDialogView\");\r\n if (channel == \"wechat\") {\r\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\r\n let link = GameModelManager.getYouZanShopUrlByType(2);\r\n if (link) {\r\n SDK.openProgramV2(GameConfig.youZanShopAppId, link);\r\n }\r\n } else if (channel == \"android\") {\r\n let link = GameModelManager.getTaoBaoShopUrlByType(2);\r\n if (link) {\r\n GameModelManager.jumpToTaobaoShop(link);\r\n }\r\n } else {\r\n UIManager.showToast(\"该功能在当前平台不可使用\");\r\n }\r\n }\r\n\r\n onShareScreenClickCallback(event) {\r\n \r\n }\r\n\r\n onADBtnClick() {\r\n this.opacityBtn.active = true;\r\n }\r\n\r\n getSvBtnType = (): string => {\r\n let ret = \"\";\r\n if (this.adsvbtn.svPoint) {\r\n ret = this.adsvbtn.svPoint.type;\r\n }\r\n return ret;\r\n }\r\n\r\n closeView() {\r\n SDK.hideBannerAd();\r\n this.close();\r\n this.opacityBtn.active = false;\r\n }\r\n\r\n switchAdConfig(props: AlertDialogViewProps) {\r\n if (props.istwobtn) {//两个按钮的\r\n if (props.adconfig && \"\" !== props.adconfig.trim()) {\r\n this.adsvbtn.sharePointId = props.adconfig;\r\n this.adsvbtn.loadSVConfig();\r\n }\r\n }\r\n }\r\n\r\n showView = (props: AlertDialogViewProps) => {\r\n this.opacityBtn.active = false;\r\n this.switchAdConfig(props);\r\n if (!props.hasBanner) {\r\n SDK.hideBannerAd();\r\n return;\r\n }\r\n let info = SDK.systemInfo.displayInfo;\r\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\r\n this.node.getComponent(cc.Widget).updateAlignment();\r\n\r\n let _width = this.banner.width * aspect;\r\n let _height = this.banner.height * aspect;\r\n let _left = (info.windowSize.width - _width) * 0.5;\r\n let _top = info.windowSize.height - _height;\r\n\r\n let style = {\r\n left: _left,\r\n top: _top,\r\n width: _width,\r\n height: _height,\r\n anchorX: 0.5,\r\n anchorY: 1,\r\n }\r\n SDK.showBannerAd(style, GameConstData.GAME_CONST_BANNER_REFRESH_TIME);\r\n }\r\n\r\n\r\n\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/AlertToBeContinueImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sEAA8D;AAC9D,8EAA2E;AAC3E,4EAAyE;AACzE,oGAA6F;AAC7F,uDAAoD;AACpD,sEAAmE;AAEnE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAA;AAG3C;IAAA,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,EAAE,CAAC,SAAS;QAAvD;;YAEI,eAAU,GAAY,0BAAS,CAAC;YAehC,YAAY;QAChB,CAAC;QAdG,MAAM;YACF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,iCAAuB,CAAC,WAAW,EAAE,CAAC,aAAa,EAAG,CAAC,CAAC;QACrF,CAAC;QACD,yBAAyB;QACzB,WAAW;YACP,uBAAuB;YACvB,+BAAc,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE;gBACvE,QAAQ,EAAE,GAAG,EAAE;oBACX,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACxB,CAAC;aACJ,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;YAClC,mCAAgB,CAAC,gBAAgB,EAAE,CAAC;QACxC,CAAC;KAEJ,CAAA;IAhBG;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;6DACc;IAFvB,qBAAqB;QADjC,OAAO;OACK,qBAAqB,CAkBjC;IAAD,4BAAC;KAAA;AAlBY,sDAAqB;AAoB3B,KAAK,UAAU,gBAAgB;IAClC,IAAI,CAAC,uBAAU,CAAC,gBAAgB,EAAE;QAC9B,uBAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACnC,MAAM,qBAAS,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;QACpD,+DAA+D;KAClE;AACL,CAAC;AAND,4CAMC","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\nimport { AnimationUtils } from \"../../../../common/utils/AnimationUtils\";\nimport CCGameCenterNodeFactory from \"../../../../cooperation/script/CCGameCenterNodeFactory\";\nimport { GameConfig } from \"../../../../GameConfig\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator\n\n@ccclass\nexport class AlertToBeContinueImpl extends cc.Component {\n @property(cc.Node)\n momentNode: cc.Node = DummyNode;\n\n onLoad() {\n this.momentNode.addChild(CCGameCenterNodeFactory.getInstance().getMomentNode()!);\n }\n //#region editor bindings\n closeAction() {\n // this.node.destroy();\n AnimationUtils.hideUIAnim(this.node, this.node.getChildByName(\"mainNode\"), {\n callback: () => {\n this.node.destroy();\n }\n }, this.node.getChildByName(\"BG\"))\n GameModelManager.checkAutoPopView();\n }\n //#endregion\n}\n\nexport async function showToBeContinue() {\n if (!GameConfig.showToBeContinue) {\n GameConfig.showToBeContinue = true;\n await UIManager.showAlert(\"prefab/ui/ToBeContinue\");\n // GameDotMgr.getInstance().dotExposure(ExposureType.Continue);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/AlertToBeContinueImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sEAA8D;AAC9D,8EAA2E;AAC3E,4EAAyE;AACzE,uDAAoD;AACpD,sEAAmE;AAEnE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAA;AAG3C;IAAA,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,EAAE,CAAC,SAAS;QAAvD;;YAEI,eAAU,GAAY,0BAAS,CAAC;YAWhC,YAAY;QAChB,CAAC;QAXG,yBAAyB;QACzB,WAAW;YACP,uBAAuB;YACvB,+BAAc,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE;gBACvE,QAAQ,EAAE,GAAG,EAAE;oBACX,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACxB,CAAC;aACJ,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;YAClC,mCAAgB,CAAC,gBAAgB,EAAE,CAAC;QACxC,CAAC;KAEJ,CAAA;IAZG;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;6DACc;IAFvB,qBAAqB;QADjC,OAAO;OACK,qBAAqB,CAcjC;IAAD,4BAAC;KAAA;AAdY,sDAAqB;AAgB3B,KAAK,UAAU,gBAAgB;IAClC,IAAI,CAAC,uBAAU,CAAC,gBAAgB,EAAE;QAC9B,uBAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACnC,MAAM,qBAAS,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;KACvD;AACL,CAAC;AALD,4CAKC","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { UIManager } from \"../../../../common/gameplay/managers/UIManager\";\nimport { AnimationUtils } from \"../../../../common/utils/AnimationUtils\";\nimport { GameConfig } from \"../../../../GameConfig\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator\n\n@ccclass\nexport class AlertToBeContinueImpl extends cc.Component {\n @property(cc.Node)\n momentNode: cc.Node = DummyNode;\n //#region editor bindings\n closeAction() {\n // this.node.destroy();\n AnimationUtils.hideUIAnim(this.node, this.node.getChildByName(\"mainNode\"), {\n callback: () => {\n this.node.destroy();\n }\n }, this.node.getChildByName(\"BG\"))\n GameModelManager.checkAutoPopView();\n }\n //#endregion\n}\n\nexport async function showToBeContinue() {\n if (!GameConfig.showToBeContinue) {\n GameConfig.showToBeContinue = true;\n await UIManager.showAlert(\"prefab/ui/ToBeContinue\");\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/DiscoverViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAAgC;AAChC,sEAAoG;AACpG,wEAAqE;AACrE,yDAA6C;AAC7C,yEAAuD;AACvD,uDAAyF;AACzF,0CAAkD;AAElD,IAAW,IAKV;AALD,WAAW,IAAI;IACX,iCAAK,CAAA;IACL,+BAAI,CAAA;IACJ,qDAAe,CAAA;IACf,mDAAc,CAAA;AAClB,CAAC,EALU,IAAI,KAAJ,IAAI,QAKd;AAAA,CAAC;AAEF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,uBAA6B;QAAnE;;YACI,yBAAyB;YACzB,iDAAiD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abel, DummyNode, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DiscoverView, DiscoverViewProps, DiscoverViewType } from \"../type/DiscoverView\";\nimport { DiscoverItemType } from \"../../../Enums\";\n\nconst enum Tabs {\n forum,\n edit,\n customerService,\n productionTeam,\n};\n\nconst { ccclass, property } = cc._decorator;\n@ccclass\n@RegView(DiscoverViewType, \"prefab/ui/DiscoverView\")\nexport class DiscoverViewImpl extends CCPureView<DiscoverViewProps> implements DiscoverView {\n //#region editor bindings\n // @property({ type: cc.Label, tooltip: \"人物名字\" })\n // private manName: cc.Label = DummyLabel;\n @property({ type: cc.Label, tooltip: \"人物 ID\" })\n private manId: cc.Label = DummyLabel;\n @property({ type: cc.Sprite, tooltip: \"人物头像\" })\n private menSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Node, tooltip: \"人物根结点\" })\n private infoRootNode: cc.Node = DummyNode;\n @property({ type: cc.Button, tooltip: \"论坛按钮\" })\n private forum: cc.Button = DummyButton;\n\n onLoad() {\n // this.bindProp(\"manName\", this.manName, \"string\");\n this.bindProp(\"manId\", this.manId, \"string\");\n this.bindProp(\"manIcon\", async (value) => {\n if (value != \"\")\n this.menSprite.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n });\n\n this.infoRootNode.on(cc.Node.EventType.TOUCH_END, this.onTouchMainInfo, this);\n }\n\n createGameClubBtn = () => {\n this.node.getComponent(cc.Widget).updateAlignment();\n this.node.getComponent(cc.Layout).updateLayout();\n let info = SDK.systemInfo.displayInfo;\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\n this.node.getComponent(cc.Widget).updateAlignment();\n\n let pos = this.forum.node.convertToWorldSpaceAR(cc.v2(0, 0));\n pos.x += cc.view.getViewportRect().x / cc.view.getScaleX();\n let xPos = pos.x * aspect;\n let yPos = info.windowSize.height - pos.y * aspect;\n let width = this.forum.node.width * aspect;\n let height = this.forum.node.height * aspect;\n let left = xPos - width / 2;\n let top = yPos - height / 2;\n\n // this.forum.node.active = false;\n SDK.createGameClubButton({\n type: \"text\",\n text: \"\",\n style: {\n left: left,\n top: top,\n width: width,\n height: height\n },\n icon: \"green\"\n });\n }\n\n onForumCallback() {\n\n }\n\n onTabClick(target: cc.Button, data: string) {\n switch (parseInt(data)) {\n case Tabs.forum:\n // GameDotMgr.getInstance().dotClickUI(\"click_forum\");\n this._props.onItemClick(DiscoverItemType.Forum);\n break;\n case Tabs.edit:\n // GameDotMgr.getInstance().dotClickUI(\"click_setting\");\n this._props.onItemClick(DiscoverItemType.Settings);\n break;\n case Tabs.customerService:\n // GameDotMgr.getInstance().dotClickUI(\"click_customerService\");\n this._props.onItemClick(DiscoverItemType.CustomerService);\n break;\n case Tabs.productionTeam:\n this._props.onItemClick(DiscoverItemType.ProductionTeam);\n break;\n }\n }\n\n onPropsLoad(props: Readonly<DiscoverViewProps>) {\n super.onPropsLoad(props);\n }\n\n onPropChange(key: Extract<keyof DiscoverViewProps, string>) {\n super.onPropChange(key);\n }\n\n onTouchMainInfo = () => {\n this._props.onCopyInfo();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/DiscoverViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAAgC;AAChC,sEAAoG;AACpG,wEAAqE;AACrE,yDAA6C;AAC7C,yEAAuD;AACvD,uDAAyF;AACzF,0CAAkD;AAElD,IAAW,IAKV;AALD,WAAW,IAAI;IACX,iCAAK,CAAA;IACL,+BAAI,CAAA;IACJ,qDAAe,CAAA;IACf,mDAAc,CAAA;AAClB,CAAC,EALU,IAAI,KAAJ,IAAI,QAKd;AAAA,CAAC;AAEF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,S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ummyLabel, DummyNode, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DiscoverView, DiscoverViewProps, DiscoverViewType } from \"../type/DiscoverView\";\nimport { DiscoverItemType } from \"../../../Enums\";\n\nconst enum Tabs {\n forum,\n edit,\n customerService,\n productionTeam,\n};\n\nconst { ccclass, property } = cc._decorator;\n@ccclass\n@RegView(DiscoverViewType, \"prefab/ui/DiscoverView\")\nexport class DiscoverViewImpl extends CCPureView<DiscoverViewProps> implements DiscoverView {\n //#region editor bindings\n // @property({ type: cc.Label, tooltip: \"人物名字\" })\n // private manName: cc.Label = DummyLabel;\n @property({ type: cc.Label, tooltip: \"人物 ID\" })\n private manId: cc.Label = DummyLabel;\n @property({ type: cc.Sprite, tooltip: \"人物头像\" })\n private menSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Node, tooltip: \"人物根结点\" })\n private infoRootNode: cc.Node = DummyNode;\n @property({ type: cc.Button, tooltip: \"论坛按钮\" })\n private forum: cc.Button = DummyButton;\n\n onLoad() {\n // this.bindProp(\"manName\", this.manName, \"string\");\n this.bindProp(\"manId\", this.manId, \"string\");\n this.bindProp(\"manIcon\", async (value) => {\n if (value != \"\")\n this.menSprite.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n });\n\n this.infoRootNode.on(cc.Node.EventType.TOUCH_END, this.onTouchMainInfo, this);\n }\n\n createGameClubBtn = () => {\n this.node.getComponent(cc.Widget).updateAlignment();\n this.node.getComponent(cc.Layout).updateLayout();\n let info = SDK.systemInfo.displayInfo;\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\n this.node.getComponent(cc.Widget).updateAlignment();\n\n let pos = this.forum.node.convertToWorldSpaceAR(cc.v2(0, 0));\n pos.x += cc.view.getViewportRect().x / cc.view.getScaleX();\n let xPos = pos.x * aspect;\n let yPos = info.windowSize.height - pos.y * aspect;\n let width = this.forum.node.width * aspect;\n let height = this.forum.node.height * aspect;\n let left = xPos - width / 2;\n let top = yPos - height / 2;\n\n // this.forum.node.active = false;\n SDK.createGameClubButton({\n type: \"text\",\n text: \"\",\n style: {\n left: left,\n top: top,\n width: width,\n height: height\n },\n icon: \"green\"\n });\n }\n\n onForumCallback() {\n\n }\n\n onTabClick(target: cc.Button, data: string) {\n switch (parseInt(data)) {\n case Tabs.forum:\n this._props.onItemClick(DiscoverItemType.Forum);\n break;\n case Tabs.edit:\n this._props.onItemClick(DiscoverItemType.Settings);\n break;\n case Tabs.customerService:\n this._props.onItemClick(DiscoverItemType.CustomerService);\n break;\n case Tabs.productionTeam:\n this._props.onItemClick(DiscoverItemType.ProductionTeam);\n break;\n }\n }\n\n onPropsLoad(props: Readonly<DiscoverViewProps>) {\n super.onPropsLoad(props);\n }\n\n onPropChange(key: Extract<keyof DiscoverViewProps, string>) {\n super.onPropChange(key);\n }\n\n onTouchMainInfo = () => {\n this._props.onCopyInfo();\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/PhoneCallViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wEAA6E;AAC7E,yDAA4I;AAC5I,yEAAuD;AACvD,sEAAqH;AACrH,6CAA0F;AAC1F,yDAA6C;AAC7C,mEAAsD;AACtD,oFAAiF;AACjF,sEAAmE;AAEnE,yEAAkE;AAElE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAK5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YACI,yBAAyB;YAEjB,eAAU,GAAG,gCAAe,CAAC;YAE7B,kBAAa,GAAG,4BAAW,CAAC;YAE5B,gBAAW,GAAG,0BAAS,CAAC;YAExB,gBAAW,GAAG,0BAAS,CAAC;YAExB,eAAU,GAAG,2BAAU,CAAC;YAExB,eAAU,GAAG,2BAAU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,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;4DACgB;IAEpC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;yDACa;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;yDACa;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACY;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACY;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACgB;IAElC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACe;IAGjC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;0DACc;IAGjC;QADC,QAAQ,CAAC,oBAAU,CAAC;yDACgD;IA5B5D,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,yBAAyB,CAAC;OACzC,iBAAiB,CAsR7B;IAAD,wBAAC;KAAA;AAtRY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { CCPureView, CCView } from \"../../../../common/classbase/CCViewBase\";\nimport { PhoneCallViewType, PhoneCallViewProps, PhoneCallView, PhoneCallItemProps, PhoneCallListAutoNextPlot } from \"../type/PhoneCallView\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DummyScrollView, DummyLayout, DummyNode, DummyLabel, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { SentenceType, richNodesToCocosString, ActionManager } from \"../../../../avg/AVG\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { GameTextData } from \"../../../../common/gameplay/gamedata/GameTextData\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\nimport GameDotMgr from \"../../../GameDotMgr\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\nconst { ccclass, property } = cc._decorator;\n\n\n@ccclass\n@RegView(PhoneCallViewType, \"prefab/ui/PhoneCallView\")\nexport class PhoneCallViewImpl extends CCPureView<PhoneCallViewProps> implements PhoneCallView {\n //#region editor bindings\n @property(cc.ScrollView)\n private scrollView = DummyScrollView;\n @property(cc.Layout)\n private contentLayout = DummyLayout;\n @property(cc.Node)\n private callingNode = DummyNode;\n @property(cc.Node)\n private messageNode = DummyNode;\n @property(cc.Label)\n private nameLabel1 = DummyLabel;\n @property(cc.Label)\n private nameLabel2 = DummyLabel;\n @property(cc.Sprite)\n private headIcon1 = DummySprite;\n @property(cc.Sprite)\n private headIcon2 = DummySprite;\n\n @property(cc.Node)\n private rejectTipNode = DummyNode;\n @property(cc.Node)\n private nextPlotNode = DummyNode;\n\n @property(cc.Label)\n private statusLabel = DummyLabel;\n\n @property(Typewriter)\n private typewriter: Typewriter = undefined as unknown as Typewriter ;\n\n\n private _isPlayMusic: boolean = false;\n\n private _excuting: boolean = false;\n\n onRejectCall() {\n this.node.children[1].active = true;\n this.rejectTipNode.runAction(cc.sequence(cc.fadeIn(0.3), cc.delayTime(0.3), cc.callFunc(() => {\n this.rejectTipNode.opacity = 0;\n this.node.children[0].opacity = 0;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n this.scheduleOnce(async () => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n }, 0.8);\n })));\n // GameDotMgr.getInstance().dotClickUI(\"click_phone_reject\");\n }\n\n playPhoneMusic = async () => {\n const PhoneBgmCallSound = \"/audio/bgm/iPhoneXSCallSound\";\n await AudioManager.playMusic(PhoneBgmCallSound);\n }\n\n stopPhoneMusic = () => {\n AudioManager.stopMusic();\n }\n\n onAcceptCall() {\n this.callingNode.active = false;\n this.messageNode.active = true;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n GameModelManager.dotMainLinePlotStart();\n if (PhoneCallListAutoNextPlot) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot();\n }, 0.6);\n }\n }\n\n onNextPlotBtnClick() {\n if(this.typewriter.getShowingString() == \"\"){\n if (!PhoneCallListAutoNextPlot) {\n if (!this._excuting) {\n this._excuting = true;\n GameModelManager.dotPlotProgress();\n this._props.onCompletePlot(this._selectIndex);\n this._selectIndex = undefined;\n this.scheduleOnce(() => {\n this._excuting = false;\n }, 0.3);\n }\n }\n }else {\n this.typewriter.stopTyperShowString();\n }\n \n }\n //#endregion\n\n private _newCall = true;\n private _selectIndex?: number;\n\n applicationChange(force: boolean) {\n\n }\n\n onLoad() {\n this.bindProp(\"name\", this.nameLabel1, \"string\");\n this.bindProp(\"name\", this.nameLabel2, \"string\");\n this.bindProp(\"icon\", async (v) => {\n if (v) {\n let sf = await ResUtils.loadRes(v, cc.SpriteFrame, 2);\n // if (v === this._props.icon) { // 理论上这里没必要\n this.headIcon1.spriteFrame = sf;\n this.headIcon2.spriteFrame = sf;\n // }\n }\n });\n\n\n\n // this.bindProp(\"select\", (value) => {\n // if (value >= 0) {\n // let item = this._props.items[this._props.items.length - 1];\n // item.select = value;\n // this.processItem(item);\n // }\n // });\n\n }\n\n select(value: number) {\n if (value >= 0) {\n let item = this._props.items[this._props.items.length - 1];\n item.select = value;\n this.processItem(item);\n }\n }\n\n scrollToTop(): void {\n this.scrollView.scrollToTop();\n }\n\n scrollToBottom(animate = true): void {\n if (this.contentLayout.node.height > this.scrollView.node.height) {\n this.scrollView.scrollToBottom(animate ? 0.3 : undefined);\n }\n }\n\n async open(parent: CCView) {\n super.open(parent);\n\n this.node.children[0].opacity = 0;\n this.node.children[1].active = true;\n this.callingNode.active = true;\n this.messageNode.active = false;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n this.node.children[0].runAction(cc.sequence(cc.delayTime(0.2), cc.fadeIn(0.1), cc.callFunc(() => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n })));\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLING_VALUE));\n }\n\n close(clean?: boolean) {\n this.nextPlotNode.active = false;\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLENDED_VALUE));\n this.node.stopAllActions();\n this.node.runAction(cc.sequence(cc.delayTime(1.2), cc.callFunc(() => {\n super.close(clean);\n // 清除内容,防止下次打开的时候先显示上次的内容\n this.contentLayout.node.removeAllChildren();\n this.headIcon1.spriteFrame = undefined as any;\n this.nameLabel1.string = \"\";\n if (this.node.active && this._isPlayMusic) {\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n }\n delete (this as any)._props;\n GameModelManager.CheckMainTabGuide.emit();\n })));\n }\n\n onPropsLoad(props: PhoneCallViewProps) {\n super.onPropsLoad(props);\n for (let item of this._props.items) { // 应该只有一条\n this.processItem(item);\n }\n }\n\n onPropChange(propName: keyof PhoneCallViewProps) {\n super.onPropChange(propName);\n if (propName === \"items\") {\n for (let i = this.contentLayout.node.children.length; i < this._props.items.length; i++) {\n this.processItem(this._props.items[i]);\n }\n }\n }\n\n async processItem(item: PhoneCallItemProps) {\n let content = item.sentence.content!;\n if (item.isSelf && content.type === SentenceType.SELECT && item.select === undefined) { // show selector\n this._props.onSetContent(content);\n this.nextPlotNode.active = false;\n } else {\n this.nextPlotNode.active = true;\n if (content.type === SentenceType.SELECT && item.select === undefined) {\n console.error(\"Something went wrong. \", item.sentence);\n return;\n }\n let node = new cc.Node;\n let richLabel = node.addComponent(cc.RichText);\n richLabel.fontSize = 32;\n richLabel.maxWidth = 585;\n if (item.isSelf) {\n node.anchorX = 1;\n node.x = 300;\n node.color = cc.color(44, 50, 98);\n richLabel.horizontalAlign = cc.macro.TextAlignment.RIGHT;\n } else {\n node.anchorX = 0;\n node.x = -300;\n richLabel.horizontalAlign = cc.macro.TextAlignment.LEFT;\n }\n let text = \"\";\n if (content.type === SentenceType.SELECT) {\n let option = content.value[item.select!];\n if (option.content) {\n if (option.content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(option.content.value);\n text = richNodesToCocosString(option.content.value);\n\n } else {\n // richLabel.string = `SentenceType(${option.content.type}) not supported in phone call.`;\n text = `SentenceType(${option.content.type}) not supported in phone call.`;\n\n }\n } else {\n // richLabel.string = option.summary;\n text = option.summary;\n }\n } else if (content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(content.value);\n text = richNodesToCocosString(content.value);\n } else {\n // richLabel.string = `SentenceType(${content.type}) not supported in phone call.`;\n text = `SentenceType(${content.type}) not supported in phone call.`;\n }\n if (item.isSelf) {\n richLabel.string = text;\n } else {\n this.typewriter.showRichTextTyper(richLabel, text, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n });\n }\n node.parent = this.contentLayout.node;\n\n }\n if (item.sentence && item.sentence.actions) {\n await ActionManager.executeActions(item.sentence.actions);\n }\n\n if (PhoneCallListAutoNextPlot && this.messageNode.active && !this._props.isSentenceSelectVisible()) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot(item.select);\n }, 1);\n } else {\n this._selectIndex = item.select;\n }\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }\n\n updateCallingStatusLabel(statusStr: string) {\n this.statusLabel.string = statusStr;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/PhoneCallViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wEAA6E;AAC7E,yDAA4I;AAC5I,yEAAuD;AACvD,sEAAqH;AACrH,6CAA0F;AAC1F,yDAA6C;AAC7C,mEAAsD;AACtD,oFAAiF;AACjF,sEAAmE;AACnE,yEAAkE;AAElE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAK5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YACI,y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,CAAC;KACJ,CAAA;IAhRG;QADC,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC;yDACa;IAErC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;4DACgB;IAEpC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;yDACa;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;yDACa;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACY;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACY;IAGhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACgB;IAElC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACe;IAGjC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;0DACc;IAGjC;QADC,QAAQ,CAAC,oBAAU,CAAC;yDACgD;IA5B5D,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,yBAAyB,CAAC;OACzC,iBAAiB,CAmR7B;IAAD,wBAAC;KAAA;AAnRY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { CCPureView, CCView } from \"../../../../common/classbase/CCViewBase\";\nimport { PhoneCallViewType, PhoneCallViewProps, PhoneCallView, PhoneCallItemProps, PhoneCallListAutoNextPlot } from \"../type/PhoneCallView\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DummyScrollView, DummyLayout, DummyNode, DummyLabel, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { SentenceType, richNodesToCocosString, ActionManager } from \"../../../../avg/AVG\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { GameTextData } from \"../../../../common/gameplay/gamedata/GameTextData\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\nconst { ccclass, property } = cc._decorator;\n\n\n@ccclass\n@RegView(PhoneCallViewType, \"prefab/ui/PhoneCallView\")\nexport class PhoneCallViewImpl extends CCPureView<PhoneCallViewProps> implements PhoneCallView {\n //#region editor bindings\n @property(cc.ScrollView)\n private scrollView = DummyScrollView;\n @property(cc.Layout)\n private contentLayout = DummyLayout;\n @property(cc.Node)\n private callingNode = DummyNode;\n @property(cc.Node)\n private messageNode = DummyNode;\n @property(cc.Label)\n private nameLabel1 = DummyLabel;\n @property(cc.Label)\n private nameLabel2 = DummyLabel;\n @property(cc.Sprite)\n private headIcon1 = DummySprite;\n @property(cc.Sprite)\n private headIcon2 = DummySprite;\n\n @property(cc.Node)\n private rejectTipNode = DummyNode;\n @property(cc.Node)\n private nextPlotNode = DummyNode;\n\n @property(cc.Label)\n private statusLabel = DummyLabel;\n\n @property(Typewriter)\n private typewriter: Typewriter = undefined as unknown as Typewriter ;\n\n\n private _isPlayMusic: boolean = false;\n\n private _excuting: boolean = false;\n\n onRejectCall() {\n this.node.children[1].active = true;\n this.rejectTipNode.runAction(cc.sequence(cc.fadeIn(0.3), cc.delayTime(0.3), cc.callFunc(() => {\n this.rejectTipNode.opacity = 0;\n this.node.children[0].opacity = 0;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n this.scheduleOnce(async () => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n }, 0.8);\n })));\n }\n\n playPhoneMusic = async () => {\n const PhoneBgmCallSound = \"/audio/bgm/iPhoneXSCallSound\";\n await AudioManager.playMusic(PhoneBgmCallSound);\n }\n\n stopPhoneMusic = () => {\n AudioManager.stopMusic();\n }\n\n onAcceptCall() {\n this.callingNode.active = false;\n this.messageNode.active = true;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n GameModelManager.dotMainLinePlotStart();\n if (PhoneCallListAutoNextPlot) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot();\n }, 0.6);\n }\n }\n\n onNextPlotBtnClick() {\n if(this.typewriter.getShowingString() == \"\"){\n if (!PhoneCallListAutoNextPlot) {\n if (!this._excuting) {\n this._excuting = true;\n this._props.onCompletePlot(this._selectIndex);\n this._selectIndex = undefined;\n this.scheduleOnce(() => {\n this._excuting = false;\n }, 0.3);\n }\n }\n }else {\n this.typewriter.stopTyperShowString();\n }\n \n }\n //#endregion\n\n private _newCall = true;\n private _selectIndex?: number;\n\n applicationChange(force: boolean) {\n\n }\n\n onLoad() {\n this.bindProp(\"name\", this.nameLabel1, \"string\");\n this.bindProp(\"name\", this.nameLabel2, \"string\");\n this.bindProp(\"icon\", async (v) => {\n if (v) {\n let sf = await ResUtils.loadRes(v, cc.SpriteFrame, 2);\n // if (v === this._props.icon) { // 理论上这里没必要\n this.headIcon1.spriteFrame = sf;\n this.headIcon2.spriteFrame = sf;\n // }\n }\n });\n\n\n\n // this.bindProp(\"select\", (value) => {\n // if (value >= 0) {\n // let item = this._props.items[this._props.items.length - 1];\n // item.select = value;\n // this.processItem(item);\n // }\n // });\n\n }\n\n select(value: number) {\n if (value >= 0) {\n let item = this._props.items[this._props.items.length - 1];\n item.select = value;\n this.processItem(item);\n }\n }\n\n scrollToTop(): void {\n this.scrollView.scrollToTop();\n }\n\n scrollToBottom(animate = true): void {\n if (this.contentLayout.node.height > this.scrollView.node.height) {\n this.scrollView.scrollToBottom(animate ? 0.3 : undefined);\n }\n }\n\n async open(parent: CCView) {\n super.open(parent);\n\n this.node.children[0].opacity = 0;\n this.node.children[1].active = true;\n this.callingNode.active = true;\n this.messageNode.active = false;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n this.node.children[0].runAction(cc.sequence(cc.delayTime(0.2), cc.fadeIn(0.1), cc.callFunc(() => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n })));\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLING_VALUE));\n }\n\n close(clean?: boolean) {\n this.nextPlotNode.active = false;\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLENDED_VALUE));\n this.node.stopAllActions();\n this.node.runAction(cc.sequence(cc.delayTime(1.2), cc.callFunc(() => {\n super.close(clean);\n // 清除内容,防止下次打开的时候先显示上次的内容\n this.contentLayout.node.removeAllChildren();\n this.headIcon1.spriteFrame = undefined as any;\n this.nameLabel1.string = \"\";\n if (this.node.active && this._isPlayMusic) {\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n }\n delete (this as any)._props;\n })));\n }\n\n onPropsLoad(props: PhoneCallViewProps) {\n super.onPropsLoad(props);\n for (let item of this._props.items) { // 应该只有一条\n this.processItem(item);\n }\n }\n\n onPropChange(propName: keyof PhoneCallViewProps) {\n super.onPropChange(propName);\n if (propName === \"items\") {\n for (let i = this.contentLayout.node.children.length; i < this._props.items.length; i++) {\n this.processItem(this._props.items[i]);\n }\n }\n }\n\n async processItem(item: PhoneCallItemProps) {\n let content = item.sentence.content!;\n if (item.isSelf && content.type === SentenceType.SELECT && item.select === undefined) { // show selector\n this._props.onSetContent(content);\n this.nextPlotNode.active = false;\n } else {\n this.nextPlotNode.active = true;\n if (content.type === SentenceType.SELECT && item.select === undefined) {\n console.error(\"Something went wrong. \", item.sentence);\n return;\n }\n let node = new cc.Node;\n let richLabel = node.addComponent(cc.RichText);\n richLabel.fontSize = 32;\n richLabel.maxWidth = 585;\n if (item.isSelf) {\n node.anchorX = 1;\n node.x = 300;\n node.color = cc.color(44, 50, 98);\n richLabel.horizontalAlign = cc.macro.TextAlignment.RIGHT;\n } else {\n node.anchorX = 0;\n node.x = -300;\n richLabel.horizontalAlign = cc.macro.TextAlignment.LEFT;\n }\n let text = \"\";\n if (content.type === SentenceType.SELECT) {\n let option = content.value[item.select!];\n if (option.content) {\n if (option.content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(option.content.value);\n text = richNodesToCocosString(option.content.value);\n\n } else {\n // richLabel.string = `SentenceType(${option.content.type}) not supported in phone call.`;\n text = `SentenceType(${option.content.type}) not supported in phone call.`;\n\n }\n } else {\n // richLabel.string = option.summary;\n text = option.summary;\n }\n } else if (content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(content.value);\n text = richNodesToCocosString(content.value);\n } else {\n // richLabel.string = `SentenceType(${content.type}) not supported in phone call.`;\n text = `SentenceType(${content.type}) not supported in phone call.`;\n }\n if (item.isSelf) {\n richLabel.string = text;\n } else {\n this.typewriter.showRichTextTyper(richLabel, text, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n });\n }\n node.parent = this.contentLayout.node;\n\n }\n if (item.sentence && item.sentence.actions) {\n await ActionManager.executeActions(item.sentence.actions);\n }\n\n if (PhoneCallListAutoNextPlot && this.messageNode.active && !this._props.isSentenceSelectVisible()) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot(item.select);\n }, 1);\n } else {\n this._selectIndex = item.select;\n }\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }\n\n updateCallingStatusLabel(statusStr: string) {\n this.statusLabel.string = statusStr;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/PlotStopViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAChC,+DAA4C;AAC5C,sEAA8D;AAC9D,wEAAqE;AACrE,sFAAmF;AACnF,oFAAkF;AAClF,0CAA0C;AAC1C,yEAAuD;AACvD,uDAAyF;AAEzF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,uBAA6B;QAA3E;;YAEI,WAAM,GAAY,0BAAS,CAAC;YAG5B,aAAQ,GAAa,SAAgC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EAAE,wBAAwB,CAAC;OAC/B,gBAAgB,CA4EpC;IAAD,uBAAC;KAAA;kBA5EoB,gBAAgB","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport SVButton from \"simba-sdk-ccsvbutton\";\nimport { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { GameConstData } from \"../../../../common/gameplay/gamedata/GameConstData\";\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\nimport { ShowType } from \"../../../Enums\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { PlotStopView, PlotStopViewProps, PlotStopViewType } from \"../type/PlotStopView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(PlotStopViewType, \"prefab/ui/PlotStopView\")\nexport default class PlotStopViewImpl extends CCPureView<PlotStopViewProps> implements PlotStopView {\n @property(cc.Node)\n banner: cc.Node = DummyNode;\n\n @property({ type: SVButton })\n adButton: SVButton = undefined as unknown as SVButton;\n\n svType: GetRewardType = GetRewardType.Ad;\n\n onLoad() {\n this.adButton.onResult = (type, ret) => {\n if (ret) {\n this._props.onAddRes(type);\n } else {\n this._props.onCancelAdCallback(this.svType);\n }\n this._props.onAdBtnOption(ShowType.FINISH, type, ret);\n }\n }\n\n closeView() {\n this.isShowViewBanner(false);\n this.close();\n }\n\n\n onEnable() {\n this.isShowViewBanner(true);\n this.adButton.loadSVConfig();\n\n }\n\n isShowViewBanner = (isShow: boolean) => {\n if (isShow) {\n let info = SDK.systemInfo.displayInfo;\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\n this.node.getComponent(cc.Widget).updateAlignment();\n\n let _width = this.banner.width * aspect;\n let _height = this.banner.height * aspect;\n let _left = (info.windowSize.width - _width) * 0.5;\n let _top = info.windowSize.height - _height;\n\n let style = {\n left: _left,\n top: _top,\n width: _width,\n height: _height,\n anchorX: 0.5,\n anchorY: 1,\n }\n SDK.showBannerAd(style, GameConstData.GAME_CONST_BANNER_REFRESH_TIME);\n } else {\n SDK.hideBannerAd();\n }\n }\n\n unlockPlotCallback(event) {\n this._props.unlockPlotCallbackFunc();\n }\n\n onAdClick() {\n let t = this.getSvBtnType();\n if (t && t === \"share\" || t === \"video\") {\n this._props.onAdBtnOption(ShowType.CLICK, t);\n }\n }\n\n getSvBtnType = (): string => {\n let ret = \"share\";\n if (this.adButton.svPoint) {\n ret = this.adButton.svPoint.type;\n }\n return ret;\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/PlotStopViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAChC,+DAA4C;AAC5C,sEAA8D;AAC9D,wEAAqE;AACrE,sFAAmF;AACnF,oFAAkF;AAElF,yEAAuD;AACvD,uDAAyF;AAEzF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,uBAA6B;QAA3E;;YAEI,WAAM,GAAY,0BAAS,CAAC;YAG5B,aAAQ,GAAa,SAAgC,CAAC;YAEtD,WAAM,GAAkB,4BAAa,CAAC,EAAE,CAAC;YAwBzC,qBAAgB,GAAG,CAAC,MAAe,EAAE,EAAE;gBACnC,IAAI,MAAM,EAAE;oBACR,IAAI,IAAI,GAAG,eAAG,CAAC,UAAU,CAAC,WAAW,CAAC;oBACtC,IAAI,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC;oBACtE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;oBAEpD,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;oBACxC,IAAI,OAAO,GAAG,IAAI,CAAC,M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AC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC5B,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;QAEjC,CAAC;QA2BD,kBAAkB,CAAC,KAAK;YACpB,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC;QACzC,CAAC;KAUJ,CAAA;IAlEG;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;oDACU;IAG5B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,8BAAQ,EAAE,CAAC;sDACyB;IALrC,gBAAgB;QAFpC,OAAO;QACP,gCAAO,CAAC,+BAAgB,EAAE,wBAAwB,CAAC;OAC/B,gBAAgB,CAoEpC;IAAD,uBAAC;KAAA;kBApEoB,gBAAgB","file":"","sourceRoot":"/","sourcesContent":["import { SDK } from \"simba-sdk\";\nimport SVButton from \"simba-sdk-ccsvbutton\";\nimport { DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { GameConstData } from \"../../../../common/gameplay/gamedata/GameConstData\";\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\nimport { ShowType } from \"../../../Enums\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { PlotStopView, PlotStopViewProps, PlotStopViewType } from \"../type/PlotStopView\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(PlotStopViewType, \"prefab/ui/PlotStopView\")\nexport default class PlotStopViewImpl extends CCPureView<PlotStopViewProps> implements PlotStopView {\n @property(cc.Node)\n banner: cc.Node = DummyNode;\n\n @property({ type: SVButton })\n adButton: SVButton = undefined as unknown as SVButton;\n\n svType: GetRewardType = GetRewardType.Ad;\n\n onLoad() {\n this.adButton.onResult = (type, ret) => {\n if (ret) {\n this._props.onAddRes(type);\n } else {\n this._props.onCancelAdCallback(this.svType);\n }\n }\n }\n\n closeView() {\n this.isShowViewBanner(false);\n this.close();\n }\n\n\n onEnable() {\n this.isShowViewBanner(true);\n this.adButton.loadSVConfig();\n\n }\n\n isShowViewBanner = (isShow: boolean) => {\n if (isShow) {\n let info = SDK.systemInfo.displayInfo;\n let aspect = info.windowSize.height / cc.view.getVisibleSize().height;\n this.node.getComponent(cc.Widget).updateAlignment();\n\n let _width = this.banner.width * aspect;\n let _height = this.banner.height * aspect;\n let _left = (info.windowSize.width - _width) * 0.5;\n let _top = info.windowSize.height - _height;\n\n let style = {\n left: _left,\n top: _top,\n width: _width,\n height: _height,\n anchorX: 0.5,\n anchorY: 1,\n }\n SDK.showBannerAd(style, GameConstData.GAME_CONST_BANNER_REFRESH_TIME);\n } else {\n SDK.hideBannerAd();\n }\n }\n\n unlockPlotCallback(event) {\n this._props.unlockPlotCallbackFunc();\n }\n\n getSvBtnType = (): string => {\n let ret = \"share\";\n if (this.adButton.svPoint) {\n ret = this.adButton.svPoint.type;\n }\n return ret;\n }\n\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/dating/DatingSceneViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2EAAoE;AACpE,gEAAkF;AAClF,4EAA0D;AAC1D,yEAA2F;AAC3F,yDAA6C;AAC7C,4EAAqE;AACrE,gGAAyF;AACzF,0DAAuD;AACvD,yEAAsE;AAEtE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAE5C,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,mDAAS,CAAA;IACT,yDAAQ,CAAA;AACZ,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,+CAAQ,CAAA;IACR,qDAAO,CAAA;AACX,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAID;IAAA,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,mBAAM;QAA/C;;YACI,yBAAyB;YAEjB,qBAAgB,GA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AAC,EAAE,CAAC,MAAM,CAAC;2DACa;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;mEACqB;IAEvC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACE;IAEpB;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+DACiB;IAEnC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;mEACqB;IAEvC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;oEACM;IAlDxB,mBAAmB;QAF/B,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OAC7C,mBAAmB,CA6f/B;IAAD,0BAAC;KAAA;AA7fY,kDAAmB","file":"","sourceRoot":"/","sourcesContent":["import { CCView } from \"../../../../../common/classbase/CCViewBase\";\nimport { DatingSceneView, DatingSceneViewType } from \"../../type/DatingSceneView\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { DummySprite, DummyNode, DummyPrefab } from \"../../../../../common/CCDummyObjects\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport Typewriter from \"../../../../../common/components/Typewriter\";\nimport PortraitFixComponent from \"../../../../../common/components/PortraitFixComponent\";\nimport { GameConfig } from \"../../../../../GameConfig\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n\nexport enum AutoPlayState {\n Close = 0,\n AutoPlay\n}\n\nexport enum AutoPlayType {\n Skip = 0,\n Speedx1\n}\n\n@ccclass\n@RegView(DatingSceneViewType, \"prefab/ui/DatingSceneView\")\nexport class DatingSceneViewImpl extends CCView implements DatingSceneView {\n //#region editor bindings\n @property(cc.Sprite)\n private backgroundSprite = DummySprite;\n @property(cc.Sprite)\n private effectBackgroundSprite = DummySprite;\n @property(cc.Sprite)\n private portraitSprite = DummySprite;\n @property(cc.Sprite)\n private selfSmallPortrait = DummySprite;\n @property(cc.Node)\n private otherDialogNode = DummyNode;\n @property(cc.Node)\n private selfDialogNode = DummyNode;\n @property(cc.Node)\n private narratorDialogNode = DummyNode;\n @property(cc.Node)\n private backRedDot = DummyNode;\n\n @property(cc.Node)\n private backBtnNode = DummyNode;\n\n @property(cc.Node)\n private endTipNode = DummyNode;\n\n // @property(cc.Node)\n // private closeActNode = DummyNode;\n\n @property(cc.Node)\n private arrowguideNode = DummyNode;\n\n @property(cc.Sprite)\n private otherNameSpr = DummySprite;\n\n @property(Typewriter)\n private typewriter: Typewriter = undefined as unknown as Typewriter;\n\n @property(cc.Node)\n private rollBackBtn = DummyNode;\n @property(cc.Prefab)\n private chapterBtn = DummyPrefab;\n @property(cc.Node)\n private scrollViewRootNode = DummyNode;\n @property(cc.Node)\n private contentNode;\n @property(cc.Node)\n private skipButtonNode = DummyNode;\n @property(cc.Node)\n private autoPlayButtonNode = DummyNode;\n @property([cc.SpriteFrame])\n private autoPlaySpriteFrame = [];\n\n\n private _originPos: cc.Vec3 = cc.v3(-265, 68, 0);\n\n private _isRunCloseAction: boolean = false;\n\n private _isRunningAction: boolean = false;\n\n private _contentText: string = \"\";\n private _autoPlayTimer: number = -1;\n private _skipButtonState: number = 0;\n private _autoPlayButtonState: number = 0;\n private _autoPlayState: number = -1;\n private _autoPlaySpeed: number = 1;\n private _textTyperIsOver: boolean = true;\n private _isSpecialEffect: boolean = false;\n\n /**\n * 是否显示返回按钮\n * @param show bool\n */\n showBackBtn(show: boolean) {\n this.backBtnNode!.active = show;\n if (show) {\n this.backBtnNode.getComponent(cc.Widget).updateAlignment();\n }\n }\n\n closeAction() {\n GameModelManager.setIsMainPlotSceneType(false);\n GameConfig.isVerb = false;\n //清除自动播放计时器\n clearTimeout(this._autoPlayTimer);\n if (this._isRunCloseAction) {\n this.runCloseAction();\n } else if (!this._isRunningAction) {\n this.closeView();\n }\n }\n\n setIsRunningAction = (isRunning: boolean) => {\n this._isRunningAction = isRunning;\n }\n\n closeView() {\n this.backgroundSprite.spriteFrame = undefined as any;\n this.portraitSprite.spriteFrame = undefined as any;\n this.selfSmallPortrait.spriteFrame = undefined as any;\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n this.backRedDot.active = false;\n this.backBtnNode.active = true;\n\n this.endTipNode.stopAllActions();\n this.endTipNode.active = false;\n this.endTipNode.position = this._originPos;\n this.endTipNode.opacity = 255;\n\n this._isRunCloseAction = false;\n // this.closeActNode.active = false;\n this._isRunningAction = false;\n this.arrowguideNode.active = false;\n this.close();\n }\n //#endregion\n\n completePlotCallback: () => Promise<void>;\n onRollBackBtnCallback: () => void;\n onReviewButtonClickCallback: () => void;\n\n onEnable() {\n this.resetAutoPlayButtonState();\n this.node.on(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);\n }\n\n onDisable() {\n this.node.off(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);\n }\n\n /**\n * 背景监听回调\n */\n touchEndHandler = async () => {\n if (this._autoPlayState == AutoPlayState.Close) {\n if (this.typewriter.getShowingString() == \"\") {\n if (this.completePlotCallback) await this.completePlotCallback();\n } else {\n this.typewriter.stopTyperShowString()\n }\n }\n }\n\n /**引导返回 */\n guideBack() {\n this.runEndTipAction();\n }\n\n /**\n * 设置约会场景内容\n * @param isSelf 是否是自身\n * @param text 文本内容\n * @param nameSpr \n * @param name 别人名字\n * @param portraitImg 立绘图名字\n * @param otherPortraitImg 其他立绘图名字\n * @param showRouge 是否显示口红\n */\n async setContent(isSelf: boolean, text: string, nameSpr: string, name?: string, portraitImg?: string, otherPortraitImg?: string, showRouge?: boolean): Promise<void> {\n let promises: Promise<any>[] = [];\n if (!((isSelf && otherPortraitImg) || portraitImg)) { // 防止切换过程中闪\n this.portraitSprite.spriteFrame = undefined as any;\n }\n if (portraitImg) {\n if (isSelf) {\n let portraitPath = portraitImg.substring(0, portraitImg.lastIndexOf(\"/\") + 1);\n let faceId = portraitImg.substring(portraitImg.lastIndexOf(\"/\") + 1, portraitImg.length);\n portraitImg = portraitPath + \"1/\" + faceId;\n }\n promises.push(ResUtils.loadRes(portraitImg, cc.SpriteFrame).then((sf) => {\n if (this.node.active) {\n if (isSelf) {\n this.selfSmallPortrait.spriteFrame = sf;\n } else {\n this.portraitSprite.spriteFrame = sf;\n this.fixScreenSize();\n }\n }\n }));\n }\n if (isSelf && otherPortraitImg) {\n promises.push(ResUtils.loadRes(otherPortraitImg, cc.SpriteFrame).then((sf) => {\n this.portraitSprite.spriteFrame = sf;\n this.fixScreenSize();\n }));\n }\n if (nameSpr && !isSelf && \"\" !== nameSpr.trim()) {\n promises.push(ResUtils.loadRes(nameSpr, cc.SpriteFrame).then((sf) => {\n this.otherNameSpr.spriteFrame = sf;\n }));\n }\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n // let rougeNode = this.selfDialogNode.getChildByName(\"rouge\");\n // let perTime = 0.05;\n if (text) {\n // let time = perTime * text.length;\n this._contentText = text;\n this._textTyperIsOver = false;\n if (isSelf) { // 自己\n this.selfDialogNode.active = true;\n // this.selfDialogNode.children[0].getComponent(cc.Label).string = name!;\n // this.selfDialogNode.children[1].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.selfDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.selfDialogNode.children[1].getComponent(cc.RichText), text, time));\n // if (rougeNode) {\n // rougeNode.active = showRouge ? true : false;\n // }\n } else if (name) { // 别人\n this.otherDialogNode.active = true;\n // this.otherDialogNode.children[0].getComponent(cc.Label).string = name!;\n // this.otherDialogNode.children[1].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.otherDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.otherDialogNode.children[1].getComponent(cc.RichText), text, time));\n } else { // 旁白\n this.narratorDialogNode.active = true;\n // this.narratorDialogNode.children[0].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.narratorDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.narratorDialogNode.children[0].getComponent(cc.RichText), text, time));\n }\n }\n try {\n await Promise.all(promises);\n } catch (e) {\n console.error(e);\n }\n }\n\n resetAutoPlayButtonState() {\n this._autoPlaySpeed = 1;\n this._autoPlayState = AutoPlayState.Close;\n this._skipButtonState = AutoPlayState.Close;\n this._autoPlayButtonState = AutoPlayState.Close;\n this.changeSkipButtonState(this._autoPlayState);\n this.changeAutoPlayButtonState(this._autoPlayState);\n }\n\n changeSkipButtonState(state: AutoPlayState) {\n let skipLabel = this.skipButtonNode.getComponentInChildren(cc.Sprite);\n if (state == AutoPlayState.Close) {\n skipLabel.spriteFrame = this.autoPlaySpriteFrame[2];\n } else {\n skipLabel.spriteFrame = this.autoPlaySpriteFrame[3];\n }\n }\n\n changeAutoPlayButtonState(state: AutoPlayState) {\n let autoPlaySprite = this.autoPlayButtonNode.getComponentInChildren(cc.Sprite);\n if (state == AutoPlayState.Close) {\n autoPlaySprite.spriteFrame = this.autoPlaySpriteFrame[0];\n } else {\n autoPlaySprite.spriteFrame = this.autoPlaySpriteFrame[1];\n }\n }\n\n /**\n * 开始自动播放计时器\n * @param startNow 是否不进行延时,立即执行下一步,适用于玩家点击自动播放按钮之后,无需等待\n */\n startAutoPlayTimer(startNow: boolean = false) {\n let interval: number = 0;\n if (!startNow) {\n //时间间隔的计算方法,如果startNow为true的话,不进行延时,时间为0,否则:\n //(文本长度 * 50ms / this._autoPlaySpeed)表示文本走完打字机效果所需要的时间\n //(文本长度 * 60ms / this._autoPlaySpeed)表示文本完全展示之后展示停留的时间\n interval = ((this._contentText.length * 50) / this._autoPlaySpeed) + ((this._contentText.length * 60) / this._autoPlaySpeed);\n }\n this._autoPlayTimer = window.setTimeout(async () => {\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n if (this._textTyperIsOver && !this._isSpecialEffect) {\n if (this.completePlotCallback) await this.completePlotCallback();\n }\n this.startAutoPlayTimer();\n } else {\n clearTimeout(this._autoPlayTimer);\n }\n }, interval);\n }\n\n fixScreenSize() {\n let comp = this.portraitSprite.node.getComponent(PortraitFixComponent);\n if (comp) {\n comp.fixScreenSize(true);\n }\n }\n\n /**\n * 设置背景\n * @param bgImage 背景路径\n */\n async setBackground(bgImage: string) {\n if (!bgImage) {\n this.backgroundSprite.spriteFrame = undefined as any;\n } else {\n try {\n this.backgroundSprite.node.opacity = 255;\n let sf = await ResUtils.loadRes(bgImage, cc.SpriteFrame);\n this.backgroundSprite.spriteFrame = sf;\n this.backgroundSprite.node.height = this.node.height;\n this.backgroundSprite.node.width = sf.getOriginalSize().width / sf.getOriginalSize().height * this.node.height;\n } catch (e) {\n console.error(e);\n }\n }\n }\n\n /**\n * 设置背景(特殊效果)\n * @param bgImage 背景路径\n */\n async setBackgroundEffect(bgImage: string) {\n this._isSpecialEffect = true;\n let dialogNodesActive: boolean[] = [this.otherDialogNode.active, this.selfDialogNode.active, this.narratorDialogNode.active];\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n if (!bgImage) {\n this.backgroundSprite.node.opacity = 255;\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.backgroundSprite.spriteFrame = undefined as any;\n this.otherDialogNode.active = dialogNodesActive[0];\n this.selfDialogNode.active = dialogNodesActive[1];\n this.narratorDialogNode.active = dialogNodesActive[2];\n }).start();\n if (this.backgroundSprite.spriteFrame) {\n this.effectBackgroundSprite.node.active = true;\n this.effectBackgroundSprite.node.opacity = 255;\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.effectBackgroundSprite.node.active = false;\n this._isSpecialEffect = false;\n }).start();\n }\n } else {\n try {\n this.effectBackgroundSprite.node.active = true;\n this.effectBackgroundSprite.node.opacity = 0;\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 255 })\n .call(() => {\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.effectBackgroundSprite.node.active = false;\n }).start();\n }).start();\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(async () => {\n let sf = await ResUtils.loadRes(bgImage, cc.SpriteFrame);\n this.backgroundSprite.spriteFrame = sf;\n this.backgroundSprite.node.height = this.node.height;\n this.backgroundSprite.node.width = sf.getOriginalSize().width / sf.getOriginalSize().height * this.node.height;\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 255 })\n .call(() => {\n this.otherDialogNode.active = dialogNodesActive[0];\n this.selfDialogNode.active = dialogNodesActive[1];\n this.narratorDialogNode.active = dialogNodesActive[2];\n this._isSpecialEffect = false;\n }).start();\n }).start();\n } catch (e) {\n console.error(e);\n }\n }\n }\n\n runEndTipAction() {\n this.setIsRunningAction(true);\n let offsetY: number = 300;\n let actTime: number = 1.5;\n this.endTipNode.stopAllActions();\n this.endTipNode.active = true;\n this.endTipNode.scale = 1;\n this.endTipNode.opacity = 255;\n this.endTipNode.position = cc.v3(-265, this._originPos.y - offsetY, 0);\n this.endTipNode.opacity = 0;\n\n let ease = cc.easeSineInOut();\n let moveAct = cc.moveTo(actTime, cc.v2(-265, this._originPos.y)).easing(ease);\n let fadeInAct = cc.fadeIn(actTime).easing(ease);\n let spawn = cc.spawn(moveAct, fadeInAct);\n\n let call = cc.callFunc(() => {\n this.backRedDot.active = true;\n\n // if (!this._isRunCloseAction) {\n // SDK.showInterstitialAd();\n // }\n this.setIsRunningAction(false);\n });\n\n let showArrowGuideCall = cc.callFunc(() => {\n this.arrowguideNode.active = true;\n });\n let actTime2: number = 2;\n let seq = cc.sequence(spawn, call, cc.spawn(cc.moveTo(1, cc.v2(this.backBtnNode.position.x, this.backBtnNode.position.y)), cc.scaleTo(actTime2, 0)), showArrowGuideCall);\n\n this.endTipNode.runAction(seq);\n }\n\n setRunCloseAction(run: boolean) {\n this._isRunCloseAction = run;\n }\n\n runCloseAction() {\n this.closeView();\n // this.setIsRunningAction(true);\n // this.closeActNode.stopAllActions();\n // this.closeActNode.scale = 1;\n // this.closeActNode.opacity = 0;\n // this.closeActNode.active = true;\n // this.backBtnNode.active = false;\n // let actTime: number = 1;\n // let tempX: number = 0;\n // let tempY: number = 0;\n // let tempR: number = 0;\n // let tempS: number = this.node.width / this.closeActNode.width;\n // let easeS: cc.Easing = cc.easeSineOut();\n // let moveAct = cc.moveTo(actTime, cc.v2(tempX, tempY)).easing(easeS);\n // let fadeInAct = cc.fadeIn(actTime).easing(easeS);\n // let scaleAct = cc.scaleTo(actTime / 2, tempS).easing(easeS);\n // let rotationAct = cc.rotateTo(actTime / 2, tempR).easing(easeS);\n // let call = cc.callFunc(() => {\n // this.closeView();\n // });\n // let spawnMF = cc.spawn(moveAct, fadeInAct);\n // let spawnSR = cc.spawn(scaleAct, rotationAct);\n // let seq = cc.sequence(spawnMF, spawnSR, call);\n // this.closeActNode.runAction(seq);\n }\n\n getScrollViewRootNode = (): cc.Node => {\n return this.scrollViewRootNode;\n }\n\n getScrollViewContentNode = (): cc.Node => {\n return this.contentNode;\n }\n\n getChapterBtn = (): cc.Prefab => {\n return this.chapterBtn;\n }\n onRollBackBtnClick() {\n this.resetAutoPlayButtonState();\n this.onRollBackBtnCallback();\n }\n\n showRollBackBtn = (isShow: boolean) => {\n this.rollBackBtn.active = isShow;\n }\n\n onRefreshAllStatus() {\n this.closeAction();\n }\n\n onReviewButtonClick() {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n this.onReviewButtonClickCallback();\n }\n\n onSkipButtonClick() {\n this._skipButtonState = this._skipButtonState == AutoPlayState.Close ? AutoPlayState.AutoPlay : AutoPlayState.Close;\n this._autoPlayState = this._skipButtonState;\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n this._autoPlaySpeed = 20;\n this.startAutoPlayTimer(true);\n this.changeSkipButtonState(this._autoPlayState);\n this.changeAutoPlayButtonState(AutoPlayState.Close);\n this._autoPlayButtonState = AutoPlayState.Close;\n } else {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n }\n }\n\n onAutoPlayButtonClick() {\n this._autoPlayButtonState = this._autoPlayButtonState == AutoPlayState.Close ? AutoPlayState.AutoPlay : AutoPlayState.Close;\n this._autoPlayState = this._autoPlayButtonState;\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n this._autoPlaySpeed = 1;\n this.startAutoPlayTimer(true);\n this.changeSkipButtonState(AutoPlayState.Close);\n this.changeAutoPlayButtonState(this._autoPlayState);\n this._skipButtonState = AutoPlayState.Close;\n } else {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n }\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/dating/DatingSceneViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2EAAoE;AACpE,gEAAkF;AAClF,4EAA0D;AAC1D,yEAA2F;AAC3F,yDAA6C;AAC7C,4EAAqE;AACrE,gGAAyF;AACzF,0DAAuD;AACvD,yEAAsE;AAEtE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAE5C,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,mDAAS,CAAA;IACT,yDAAQ,CAAA;AACZ,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,+CAAQ,CAAA;IACR,qDAAO,CAAA;AACX,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAID;IAAA,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,mBAAM;QAA/C;;YACI,yBAAyB;YAEjB,qBAAgB,GAAG,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AQ,CAAC,EAAE,CAAC,IAAI,CAAC;2DACa;IAG/B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+DACiB;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;6DACe;IAGnC;QADC,QAAQ,CAAC,oBAAU,CAAC;2DAC+C;IAGpE;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+DACiB;IAEnC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;mEACqB;IAEvC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;oEACM;IAvCxB,mBAAmB;QAF/B,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OAC7C,mBAAmB,CAsc/B;IAAD,0BAAC;KAAA;AAtcY,kDAAmB","file":"","sourceRoot":"/","sourcesContent":["import { CCView } from \"../../../../../common/classbase/CCViewBase\";\nimport { DatingSceneView, DatingSceneViewType } from \"../../type/DatingSceneView\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { DummySprite, DummyNode, DummyPrefab } from \"../../../../../common/CCDummyObjects\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport Typewriter from \"../../../../../common/components/Typewriter\";\nimport PortraitFixComponent from \"../../../../../common/components/PortraitFixComponent\";\nimport { GameConfig } from \"../../../../../GameConfig\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n\nexport enum AutoPlayState {\n Close = 0,\n AutoPlay\n}\n\nexport enum AutoPlayType {\n Skip = 0,\n Speedx1\n}\n\n@ccclass\n@RegView(DatingSceneViewType, \"prefab/ui/DatingSceneView\")\nexport class DatingSceneViewImpl extends CCView implements DatingSceneView {\n //#region editor bindings\n @property(cc.Sprite)\n private backgroundSprite = DummySprite;\n @property(cc.Sprite)\n private effectBackgroundSprite = DummySprite;\n @property(cc.Sprite)\n private portraitSprite = DummySprite;\n @property(cc.Sprite)\n private selfSmallPortrait = DummySprite;\n @property(cc.Node)\n private otherDialogNode = DummyNode;\n @property(cc.Node)\n private selfDialogNode = DummyNode;\n @property(cc.Node)\n private narratorDialogNode = DummyNode;\n @property(cc.Node)\n private backRedDot = DummyNode;\n\n @property(cc.Node)\n private backBtnNode = DummyNode;\n\n @property(cc.Node)\n private endTipNode = DummyNode;\n\n @property(cc.Node)\n private arrowguideNode = DummyNode;\n\n @property(cc.Sprite)\n private otherNameSpr = DummySprite;\n\n @property(Typewriter)\n private typewriter: Typewriter = undefined as unknown as Typewriter;\n\n @property(cc.Node)\n private skipButtonNode = DummyNode;\n @property(cc.Node)\n private autoPlayButtonNode = DummyNode;\n @property([cc.SpriteFrame])\n private autoPlaySpriteFrame = [];\n\n\n private _originPos: cc.Vec3 = cc.v3(-265, 68, 0);\n\n private _isRunCloseAction: boolean = false;\n\n private _isRunningAction: boolean = false;\n\n private _contentText: string = \"\";\n private _autoPlayTimer: number = -1;\n private _skipButtonState: number = 0;\n private _autoPlayButtonState: number = 0;\n private _autoPlayState: number = -1;\n private _autoPlaySpeed: number = 1;\n private _textTyperIsOver: boolean = true;\n private _isSpecialEffect: boolean = false;\n\n /**\n * 是否显示返回按钮\n * @param show bool\n */\n showBackBtn(show: boolean) {\n this.backBtnNode!.active = show;\n if (show) {\n this.backBtnNode.getComponent(cc.Widget).updateAlignment();\n }\n }\n\n closeAction() {\n GameModelManager.setIsMainPlotSceneType(false);\n GameConfig.isVerb = false;\n //清除自动播放计时器\n clearTimeout(this._autoPlayTimer);\n if (this._isRunCloseAction) {\n this.runCloseAction();\n } else if (!this._isRunningAction) {\n this.closeView();\n }\n }\n\n setIsRunningAction = (isRunning: boolean) => {\n this._isRunningAction = isRunning;\n }\n\n closeView() {\n this.backgroundSprite.spriteFrame = undefined as any;\n this.portraitSprite.spriteFrame = undefined as any;\n this.selfSmallPortrait.spriteFrame = undefined as any;\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n this.backRedDot.active = false;\n this.backBtnNode.active = true;\n\n this.endTipNode.stopAllActions();\n this.endTipNode.active = false;\n this.endTipNode.position = this._originPos;\n this.endTipNode.opacity = 255;\n\n this._isRunCloseAction = false;\n // this.closeActNode.active = false;\n this._isRunningAction = false;\n this.arrowguideNode.active = false;\n this.close();\n }\n //#endregion\n\n completePlotCallback: () => Promise<void>;\n onReviewButtonClickCallback: () => void;\n\n onEnable() {\n this.resetAutoPlayButtonState();\n this.node.on(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);\n }\n\n onDisable() {\n this.node.off(cc.Node.EventType.TOUCH_END, this.touchEndHandler, this);\n }\n\n /**\n * 背景监听回调\n */\n touchEndHandler = async () => {\n if (this._autoPlayState == AutoPlayState.Close) {\n if (this.typewriter.getShowingString() == \"\") {\n if (this.completePlotCallback) await this.completePlotCallback();\n } else {\n this.typewriter.stopTyperShowString()\n }\n }\n }\n\n /**引导返回 */\n guideBack() {\n this.runEndTipAction();\n }\n\n /**\n * 设置约会场景内容\n * @param isSelf 是否是自身\n * @param text 文本内容\n * @param nameSpr \n * @param name 别人名字\n * @param portraitImg 立绘图名字\n * @param otherPortraitImg 其他立绘图名字\n * @param showRouge 是否显示口红\n */\n async setContent(isSelf: boolean, text: string, nameSpr: string, name?: string, portraitImg?: string, otherPortraitImg?: string, showRouge?: boolean): Promise<void> {\n let promises: Promise<any>[] = [];\n if (!((isSelf && otherPortraitImg) || portraitImg)) { // 防止切换过程中闪\n this.portraitSprite.spriteFrame = undefined as any;\n }\n if (portraitImg) {\n if (isSelf) {\n let portraitPath = portraitImg.substring(0, portraitImg.lastIndexOf(\"/\") + 1);\n let faceId = portraitImg.substring(portraitImg.lastIndexOf(\"/\") + 1, portraitImg.length);\n portraitImg = portraitPath + \"1/\" + faceId;\n }\n promises.push(ResUtils.loadRes(portraitImg, cc.SpriteFrame).then((sf) => {\n if (this.node.active) {\n if (isSelf) {\n this.selfSmallPortrait.spriteFrame = sf;\n } else {\n this.portraitSprite.spriteFrame = sf;\n this.fixScreenSize();\n }\n }\n }));\n }\n if (isSelf && otherPortraitImg) {\n promises.push(ResUtils.loadRes(otherPortraitImg, cc.SpriteFrame).then((sf) => {\n this.portraitSprite.spriteFrame = sf;\n this.fixScreenSize();\n }));\n }\n if (nameSpr && !isSelf && \"\" !== nameSpr.trim()) {\n promises.push(ResUtils.loadRes(nameSpr, cc.SpriteFrame).then((sf) => {\n this.otherNameSpr.spriteFrame = sf;\n }));\n }\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n // let rougeNode = this.selfDialogNode.getChildByName(\"rouge\");\n // let perTime = 0.05;\n if (text) {\n // let time = perTime * text.length;\n this._contentText = text;\n this._textTyperIsOver = false;\n if (isSelf) { // 自己\n this.selfDialogNode.active = true;\n // this.selfDialogNode.children[0].getComponent(cc.Label).string = name!;\n // this.selfDialogNode.children[1].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.selfDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.selfDialogNode.children[1].getComponent(cc.RichText), text, time));\n // if (rougeNode) {\n // rougeNode.active = showRouge ? true : false;\n // }\n } else if (name) { // 别人\n this.otherDialogNode.active = true;\n // this.otherDialogNode.children[0].getComponent(cc.Label).string = name!;\n // this.otherDialogNode.children[1].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.otherDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.otherDialogNode.children[1].getComponent(cc.RichText), text, time));\n } else { // 旁白\n this.narratorDialogNode.active = true;\n // this.narratorDialogNode.children[0].getComponent(cc.RichText).string = text;\n this.typewriter.showRichTextTyper(this.narratorDialogNode.children[0].getComponent(cc.RichText), text,\n () => {\n this._textTyperIsOver = true;\n }, () => { }, this._autoPlaySpeed\n );\n // promises.push(AnimationUtils.ActionTypeWriter(this.narratorDialogNode.children[0].getComponent(cc.RichText), text, time));\n }\n }\n try {\n await Promise.all(promises);\n } catch (e) {\n console.error(e);\n }\n }\n\n resetAutoPlayButtonState() {\n this._autoPlaySpeed = 1;\n this._autoPlayState = AutoPlayState.Close;\n this._skipButtonState = AutoPlayState.Close;\n this._autoPlayButtonState = AutoPlayState.Close;\n this.changeSkipButtonState(this._autoPlayState);\n this.changeAutoPlayButtonState(this._autoPlayState);\n }\n\n changeSkipButtonState(state: AutoPlayState) {\n let skipLabel = this.skipButtonNode.getComponentInChildren(cc.Sprite);\n if (state == AutoPlayState.Close) {\n skipLabel.spriteFrame = this.autoPlaySpriteFrame[2];\n } else {\n skipLabel.spriteFrame = this.autoPlaySpriteFrame[3];\n }\n }\n\n changeAutoPlayButtonState(state: AutoPlayState) {\n let autoPlaySprite = this.autoPlayButtonNode.getComponentInChildren(cc.Sprite);\n if (state == AutoPlayState.Close) {\n autoPlaySprite.spriteFrame = this.autoPlaySpriteFrame[0];\n } else {\n autoPlaySprite.spriteFrame = this.autoPlaySpriteFrame[1];\n }\n }\n\n /**\n * 开始自动播放计时器\n * @param startNow 是否不进行延时,立即执行下一步,适用于玩家点击自动播放按钮之后,无需等待\n */\n startAutoPlayTimer(startNow: boolean = false) {\n let interval: number = 0;\n if (!startNow) {\n //时间间隔的计算方法,如果startNow为true的话,不进行延时,时间为0,否则:\n //(文本长度 * 50ms / this._autoPlaySpeed)表示文本走完打字机效果所需要的时间\n //(文本长度 * 60ms / this._autoPlaySpeed)表示文本完全展示之后展示停留的时间\n interval = ((this._contentText.length * 50) / this._autoPlaySpeed) + ((this._contentText.length * 60) / this._autoPlaySpeed);\n }\n this._autoPlayTimer = window.setTimeout(async () => {\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n if (this._textTyperIsOver && !this._isSpecialEffect) {\n if (this.completePlotCallback) await this.completePlotCallback();\n }\n this.startAutoPlayTimer();\n } else {\n clearTimeout(this._autoPlayTimer);\n }\n }, interval);\n }\n\n fixScreenSize() {\n let comp = this.portraitSprite.node.getComponent(PortraitFixComponent);\n if (comp) {\n comp.fixScreenSize(true);\n }\n }\n\n /**\n * 设置背景\n * @param bgImage 背景路径\n */\n async setBackground(bgImage: string) {\n if (!bgImage) {\n this.backgroundSprite.spriteFrame = undefined as any;\n } else {\n try {\n this.backgroundSprite.node.opacity = 255;\n let sf = await ResUtils.loadRes(bgImage, cc.SpriteFrame);\n this.backgroundSprite.spriteFrame = sf;\n this.backgroundSprite.node.height = this.node.height;\n this.backgroundSprite.node.width = sf.getOriginalSize().width / sf.getOriginalSize().height * this.node.height;\n } catch (e) {\n console.error(e);\n }\n }\n }\n\n /**\n * 设置背景(特殊效果)\n * @param bgImage 背景路径\n */\n async setBackgroundEffect(bgImage: string) {\n this._isSpecialEffect = true;\n let dialogNodesActive: boolean[] = [this.otherDialogNode.active, this.selfDialogNode.active, this.narratorDialogNode.active];\n this.otherDialogNode.active = false;\n this.selfDialogNode.active = false;\n this.narratorDialogNode.active = false;\n if (!bgImage) {\n this.backgroundSprite.node.opacity = 255;\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.backgroundSprite.spriteFrame = undefined as any;\n this.otherDialogNode.active = dialogNodesActive[0];\n this.selfDialogNode.active = dialogNodesActive[1];\n this.narratorDialogNode.active = dialogNodesActive[2];\n }).start();\n if (this.backgroundSprite.spriteFrame) {\n this.effectBackgroundSprite.node.active = true;\n this.effectBackgroundSprite.node.opacity = 255;\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.effectBackgroundSprite.node.active = false;\n this._isSpecialEffect = false;\n }).start();\n }\n } else {\n try {\n this.effectBackgroundSprite.node.active = true;\n this.effectBackgroundSprite.node.opacity = 0;\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 255 })\n .call(() => {\n cc.tween(this.effectBackgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(() => {\n this.effectBackgroundSprite.node.active = false;\n }).start();\n }).start();\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 0 })\n .call(async () => {\n let sf = await ResUtils.loadRes(bgImage, cc.SpriteFrame);\n this.backgroundSprite.spriteFrame = sf;\n this.backgroundSprite.node.height = this.node.height;\n this.backgroundSprite.node.width = sf.getOriginalSize().width / sf.getOriginalSize().height * this.node.height;\n cc.tween(this.backgroundSprite.node)\n .to(1, { opacity: 255 })\n .call(() => {\n this.otherDialogNode.active = dialogNodesActive[0];\n this.selfDialogNode.active = dialogNodesActive[1];\n this.narratorDialogNode.active = dialogNodesActive[2];\n this._isSpecialEffect = false;\n }).start();\n }).start();\n } catch (e) {\n console.error(e);\n }\n }\n }\n\n runEndTipAction() {\n this.setIsRunningAction(true);\n let offsetY: number = 300;\n let actTime: number = 1.5;\n this.endTipNode.stopAllActions();\n this.endTipNode.active = true;\n this.endTipNode.scale = 1;\n this.endTipNode.opacity = 255;\n this.endTipNode.position = cc.v3(-265, this._originPos.y - offsetY, 0);\n this.endTipNode.opacity = 0;\n\n let ease = cc.easeSineInOut();\n let moveAct = cc.moveTo(actTime, cc.v2(-265, this._originPos.y)).easing(ease);\n let fadeInAct = cc.fadeIn(actTime).easing(ease);\n let spawn = cc.spawn(moveAct, fadeInAct);\n\n let call = cc.callFunc(() => {\n this.backRedDot.active = true;\n\n // if (!this._isRunCloseAction) {\n // SDK.showInterstitialAd();\n // }\n this.setIsRunningAction(false);\n });\n\n let showArrowGuideCall = cc.callFunc(() => {\n this.arrowguideNode.active = true;\n });\n let actTime2: number = 2;\n let seq = cc.sequence(spawn, call, cc.spawn(cc.moveTo(1, cc.v2(this.backBtnNode.position.x, this.backBtnNode.position.y)), cc.scaleTo(actTime2, 0)), showArrowGuideCall);\n\n this.endTipNode.runAction(seq);\n }\n\n setRunCloseAction(run: boolean) {\n this._isRunCloseAction = run;\n }\n\n runCloseAction() {\n this.closeView();\n }\n\n onRefreshAllStatus() {\n this.closeAction();\n }\n\n onReviewButtonClick() {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n this.onReviewButtonClickCallback();\n }\n\n onSkipButtonClick() {\n this._skipButtonState = this._skipButtonState == AutoPlayState.Close ? AutoPlayState.AutoPlay : AutoPlayState.Close;\n this._autoPlayState = this._skipButtonState;\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n this._autoPlaySpeed = 20;\n this.startAutoPlayTimer(true);\n this.changeSkipButtonState(this._autoPlayState);\n this.changeAutoPlayButtonState(AutoPlayState.Close);\n this._autoPlayButtonState = AutoPlayState.Close;\n } else {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n }\n }\n\n onAutoPlayButtonClick() {\n this._autoPlayButtonState = this._autoPlayButtonState == AutoPlayState.Close ? AutoPlayState.AutoPlay : AutoPlayState.Close;\n this._autoPlayState = this._autoPlayButtonState;\n if (this._autoPlayState == AutoPlayState.AutoPlay) {\n this._autoPlaySpeed = 1;\n this.startAutoPlayTimer(true);\n this.changeSkipButtonState(AutoPlayState.Close);\n this.changeAutoPlayButtonState(this._autoPlayState);\n this._skipButtonState = AutoPlayState.Close;\n } else {\n this.resetAutoPlayButtonState();\n clearTimeout(this._autoPlayTimer);\n }\n }\n}\n"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/message/ChatBubbleView.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAsD;AACtD,yDAA6C;AAC7C,+DAAqD;AAErD,gDAA6J;AAC7J,mEAAmE;AACnE,yEAAyG;AACzG,uFAAoF;AACpF,iFAA8E;AAC9E,qFAAyG;AACzG,6CAAiE;AAEjE,yEAAsE;AACtE,0FAAmF;AACnF,4FAAyF;AAGzF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,cAAc,GAA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AAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;uDACa;IAEzC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;kDACQ;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;uDACc;IAE5C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;qDACY;IAGxC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;qDACW;IAGvC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC;sDACa;IAvBzB,cAAc;QADlC,OAAO;OACa,cAAc,CAyVlC;IAAD,qBAAC;KAAA;kBAzVoB,cAAc","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { richNodesToCocosString, richNodeTextCount, SentenceContent, SentenceMediaContent, SentenceTextContent, SentenceType } from \"../../../../../avg/AVG\";\n// import { DailyQuestType } from \"../../../../../avg/EditorEnums\";\nimport { DummyLabel, DummyNode, DummyRichText, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { characterVoiceConfig, ICharacterVoiceConfig } from \"../../../../../config/CharacterVoiceConfig\";\nimport { CommonLocation, ExposureType } from \"../../../../Enums\";\nimport GameDotMgr from \"../../../../GameDotMgr\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { ImagePreviewPresenter } from \"../../../presenter/message/ImagePreviewPresenter\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\n\nconst { ccclass, property } = cc._decorator;\n\nconst BASE_DELAY = 1;\nconst PER_CHAR_DELAY = 0.1;\n\n@ccclass\nexport default class ChatBubbleView extends cc.Component {\n //#region editor bindings\n @property({ type: cc.Sprite })\n private iconSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Sprite })\n private nameSpr: cc.Sprite = DummySprite;\n @property({ type: cc.RichText })\n private textContentLabel: cc.RichText = DummyRichText;\n @property({ type: cc.Node })\n private inputtingNode?: cc.Node = undefined;\n @property({ type: cc.Node })\n private contentNode: cc.Node = DummyNode;\n @property({ type: cc.Node })\n private bgNode: cc.Node = DummyNode;\n @property({ type: cc.Sprite })\n private imageSprite?: cc.Sprite = undefined;\n @property({ type: cc.Node })\n private container?: cc.Node = undefined;\n\n @property({ type: cc.Node })\n private voiceNode: cc.Node = DummyNode;\n\n @property({ type: cc.Label })\n private voiceLabel: cc.Label = DummyLabel;\n\n playVoice = () => {\n if (this._voicePath) {\n this.contentNode.children[1].getComponent(cc.Animation)?.play(\"voice_play\");\n AudioManager.playVoice(this._voicePath).then(() => {\n this.contentNode.children[1].getComponent(cc.Animation)?.play(\"voice_stop\");\n });\n }\n }\n\n onVoiceClick() {\n if (this._voiceCfg) {\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (needAd) {\n this.showVoiceAdAlert();\n } else {\n this.playVoice();\n }\n }\n }\n\n autoPopVoiceDialog(isCheckContent = true) {\n if (this._voiceCfg) {\n if (isCheckContent) {\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (needAd) {\n this.showVoiceAdAlert();\n }\n } else {\n this.showVoiceAdAlert();\n }\n }\n }\n\n showVoiceAdAlert() {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_VOICE_TITLE_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_VOICE_CONTENT_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n // items: [],\n location: CommonLocation.Audio,\n hasBanner: false,\n callback: (type, ret) => {\n if (ret) {\n GameModelManager.pushVoiceShowAdToRecord(this._voiceCfg!.id);\n this.playVoice();\n if (type === \"video\") {\n // GameModelManager.addDailyTasks(DailyQuestType.Dq_AdsWatch, 1);\n }\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n previewImage() {\n UIManager.pushPresenter(ImagePreviewPresenter, this._previewImage);\n }\n //#endregion\n\n private _previewImage: string;\n\n private _extraNode?: cc.Node;\n\n private _nodeHeight: number;\n private _bgWidth: number;\n private _bgHeight: number;\n private _textHeight: number;\n private _icon: string;\n private _itemIcon: string;\n private _timer?: number;\n private _voicePath?: string;\n private _voiceCfg?: ICharacterVoiceConfig;\n\n private delay(time: number) {\n return new Promise((resolve) => {\n this._timer = setTimeout(() => {\n this._timer = undefined;\n resolve();\n }, time * 1000);\n });\n }\n\n init() {\n this._nodeHeight = this.node.height;\n this._bgWidth = this.bgNode.width;\n this._bgHeight = this.bgNode.height;\n this._textHeight = this.textContentLabel.node.height;\n }\n\n reuse() {\n if (this._timer) { clearTimeout(this._timer); this._timer = undefined; }\n if (this._nodeHeight === undefined) return;\n if (this._extraNode) {\n this._extraNode.removeFromParent(true);\n this._extraNode = undefined;\n }\n this.node.height = this._nodeHeight;\n this.bgNode.width = this._bgWidth;\n this.bgNode.height = this._bgHeight;\n this.textContentLabel!.string = \"\";\n this._previewImage = \"\";\n this.bgNode.active = true;\n this.voiceLabel!.string = \"\";\n this._voiceCfg = undefined;\n this._voicePath = \"\";\n if (this.imageSprite) this.imageSprite.node.parent.active = false;\n }\n\n private async resizeContent() {\n // console.log(\"resizeContent begin\");\n if (this._previewImage) { // 图片类型\n let sf = this.imageSprite!.spriteFrame;\n let width = this.imageSprite!.node.width = Math.max(sf.getOriginalSize().width, 200);\n this.imageSprite!.node.height = width / sf.getOriginalSize().width * sf.getOriginalSize().height;\n this.node.height = -this.imageSprite!.node.y + this.imageSprite!.node.height + 40;\n } else {\n this.textContentLabel.node.active = true;\n this.textContentLabel.maxWidth = 0;\n // while (!this.enabledInHierarchy) {\n // if (!this.enabled) return;\n // await this.delay(0.5);\n // }\n let mw = 440;\n if (mw < this.textContentLabel.node.width) {\n this.textContentLabel.maxWidth = mw;\n }\n this.bgNode.height = this.textContentLabel.node.height + 70;\n if (this._voiceCfg) {\n this.voiceNode.y = this.bgNode.height / 2 * (-1);\n }\n\n this.node.height = this.bgNode.height + this._textHeight;\n let gapW = 120;\n if (this.bgNode.anchorX == 0) {\n if (this._voiceCfg) {\n this.bgNode.width = this.voiceLabel.node.x + this.voiceLabel.node.width + gapW + 32;\n } else {\n this.bgNode.width = this.textContentLabel.node.x + this.textContentLabel.node.width + gapW;\n }\n } else {\n if (this._voiceCfg) {\n this.bgNode.width = -this.voiceLabel.node.x + this.voiceLabel.node.width + gapW + 32;\n } else {\n this.bgNode.width = -this.textContentLabel.node.x + this.textContentLabel.node.width + gapW;\n }\n }\n this.node.height = this.bgNode.height + this.nameSpr.node.height;\n }\n // console.log(\"resizeContent end\");\n }\n\n setName(name: string) {\n // console.log(\"setName begin\");\n // this.nameLabel.string = name;\n // console.log(\"setName end\");\n }\n\n setNameIcon(icon: string) {\n this.nameSpr.spriteFrame = new cc.SpriteFrame();\n if (icon && \"\" !== icon.trim()) {\n ResUtils.loadRes(icon, cc.SpriteFrame).then((sf) => {\n this.nameSpr.spriteFrame = sf;\n });\n }\n }\n\n setIcon(icon: string) {\n if (icon && this._icon !== icon) {\n this._icon = icon;\n ResUtils.loadRes(icon, cc.SpriteFrame).then((sf) => {\n if (this._icon === icon) this.iconSprite.spriteFrame = sf;\n });\n }\n }\n\n setText(txt: string) {\n // console.log(\"setText begin\");\n this.textContentLabel.string = txt;\n // console.log(\"setText end\");\n }\n\n setExtraContent(node: cc.Node) {\n if (this.container) {\n let pre = this.container.getChildByName(\"LikeTip\");\n if (pre) {\n this.container.removeChild(pre, true);\n }\n node.name = \"LikeTip\";\n node.active = true;\n this.container.addChild(node);\n }\n }\n\n updateVoiceLastTime() {\n this.voiceLabel.string = this._voiceCfg!.last + \"''\";\n }\n\n async setContent(plotId: number, content: DeepReadonly<SentenceContent>, select?: number, shouldDelay = false): Promise<void> {\n // console.log(\"setContent begin\");\n if (this._nodeHeight === undefined) this.init();\n let textCount = 0;\n let setContent1 = async (pid: number, content: DeepReadonly<SentenceTextContent | SentenceMediaContent>) => {\n if (content.type === SentenceType.TEXT) {\n\n textCount = richNodeTextCount(content.value);\n let str = richNodesToCocosString(content.value);\n this.textContentLabel.string = str;\n this.contentNode.children[0].active = true;\n this.contentNode.children[1].active = false;\n this.contentNode.children[2].active = false;\n } else if (content.type === SentenceType.AUDIO) {\n let cfg = ConfigManager.getConfig(characterVoiceConfig, parseInt(content.value));\n if (cfg) {\n this._voiceCfg = cfg;\n this._voicePath = cfg.name;\n this.updateVoiceLastTime();\n this.contentNode.children[0].active = false;\n this.contentNode.children[1].active = true;\n this.contentNode.children[2].active = false;\n let hasAd = cfg.ads === 1;\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (hasAd && needAd) {\n // GameDotMgr.getInstance().dotExposure(ExposureType.Audio);\n let curMainLinePlotId: number = GameModelManager.getCurMainLinePlotId();\n if (curMainLinePlotId === pid) {\n this.autoPopVoiceDialog(false);\n }\n }\n }\n\n } else if (content.type === SentenceType.IMAGE && this.imageSprite) {\n this.contentNode.children[0].active = false;\n this.contentNode.children[1].active = false;\n this.contentNode.children[2].active = true;\n if (content.value) {\n this._previewImage = \"textures/stickers/\" + content.value;\n let thumb = \"textures/stickers/thumb/\" + content.value;\n let info = cc.resources.getInfoWithPath(thumb);\n // console.log(\"getInfoWithPath\", info);\n if (!info) {\n thumb = this._previewImage;\n }\n try {\n await ResUtils.loadRes(thumb, cc.SpriteFrame).then((sf) => {\n // if (this.imageSprite!.node.activeInHierarchy) {\n this.imageSprite!.spriteFrame = sf;\n // }\n });\n } catch (e) {\n\n }\n }\n } else {\n console.error(\"content type not supported yet.\")\n }\n }\n let inputtingForever = false;\n let promise: Promise<any> | undefined = undefined;\n if (content.type === SentenceType.SELECT) {\n if (select === undefined) {\n inputtingForever = true;\n } else {\n let option = content.value[select];\n if (option.content) {\n promise = setContent1(plotId, option.content as DeepReadonly<SentenceTextContent | SentenceMediaContent>);\n } else {\n this.contentNode.children[0].active = true;\n this.contentNode.children[1].active = false;\n this.textContentLabel.string = option.summary;\n }\n }\n } else {\n promise = setContent1(plotId, content as DeepReadonly<SentenceTextContent | SentenceMediaContent>);\n }\n if (this.inputtingNode) {\n if (shouldDelay || inputtingForever) {\n this.inputtingNode.active = true;\n this.contentNode.active = false;\n this.inputtingNode.children[0].runAction(cc.repeatForever(cc.rotateBy(1, 360)));\n if (inputtingForever) return;\n if (promise) await promise;\n await this.delay(BASE_DELAY + PER_CHAR_DELAY * textCount);\n // return new Promise<void>((resolve) => {\n // this.scheduleOnce(() => {\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n this.contentNode.active = true;\n if (this._previewImage) this.bgNode.active = false;\n this.resizeContent();\n // resolve();\n // }, BASE_DELAY + PER_CHAR_DELAY * textCount);\n // })\n } else {\n if (promise) await promise;\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n this.contentNode.active = true;\n if (this._previewImage) this.bgNode.active = false;\n this.resizeContent();\n }\n }\n // console.log(\"setContent end\");\n }\n\n clearInputting() {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = undefined;\n if (this.inputtingNode) {\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n }\n this.contentNode.active = true;\n this.resizeContent();\n }\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/message/ChatBubbleView.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAsD;AACtD,yDAA6C;AAC7C,+DAAqD;AAErD,gDAA6J;AAC7J,mEAAmE;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E,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;mDACW;IAEzC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC;4DACsB;IAEtD;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;yDACgB;IAE5C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;uDACa;IAEzC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;kDACQ;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;uDACc;IAE5C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;qDACY;IAGxC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;qDACW;IAGvC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC;sDACa;IAvBzB,cAAc;QADlC,OAAO;OACa,cAAc,CAwVlC;IAAD,qBAAC;KAAA;kBAxVoB,cAAc","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { DeepReadonly } from \"simba-utils\";\nimport { richNodesToCocosString, richNodeTextCount, SentenceContent, SentenceMediaContent, SentenceTextContent, SentenceType } from \"../../../../../avg/AVG\";\n// import { DailyQuestType } from \"../../../../../avg/EditorEnums\";\nimport { DummyLabel, DummyNode, DummyRichText, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { characterVoiceConfig, ICharacterVoiceConfig } from \"../../../../../config/CharacterVoiceConfig\";\nimport { CommonLocation, ExposureType } from \"../../../../Enums\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { ImagePreviewPresenter } from \"../../../presenter/message/ImagePreviewPresenter\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\n\nconst { ccclass, property } = cc._decorator;\n\nconst BASE_DELAY = 1;\nconst PER_CHAR_DELAY = 0.1;\n\n@ccclass\nexport default class ChatBubbleView extends cc.Component {\n //#region editor bindings\n @property({ type: cc.Sprite })\n private iconSprite: cc.Sprite = DummySprite;\n @property({ type: cc.Sprite })\n private nameSpr: cc.Sprite = DummySprite;\n @property({ type: cc.RichText })\n private textContentLabel: cc.RichText = DummyRichText;\n @property({ type: cc.Node })\n private inputtingNode?: cc.Node = undefined;\n @property({ type: cc.Node })\n private contentNode: cc.Node = DummyNode;\n @property({ type: cc.Node })\n private bgNode: cc.Node = DummyNode;\n @property({ type: cc.Sprite })\n private imageSprite?: cc.Sprite = undefined;\n @property({ type: cc.Node })\n private container?: cc.Node = undefined;\n\n @property({ type: cc.Node })\n private voiceNode: cc.Node = DummyNode;\n\n @property({ type: cc.Label })\n private voiceLabel: cc.Label = DummyLabel;\n\n playVoice = () => {\n if (this._voicePath) {\n this.contentNode.children[1].getComponent(cc.Animation)?.play(\"voice_play\");\n AudioManager.playVoice(this._voicePath).then(() => {\n this.contentNode.children[1].getComponent(cc.Animation)?.play(\"voice_stop\");\n });\n }\n }\n\n onVoiceClick() {\n if (this._voiceCfg) {\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (needAd) {\n this.showVoiceAdAlert();\n } else {\n this.playVoice();\n }\n }\n }\n\n autoPopVoiceDialog(isCheckContent = true) {\n if (this._voiceCfg) {\n if (isCheckContent) {\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (needAd) {\n this.showVoiceAdAlert();\n }\n } else {\n this.showVoiceAdAlert();\n }\n }\n }\n\n showVoiceAdAlert() {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_VOICE_TITLE_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_VOICE_CONTENT_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n // items: [],\n location: CommonLocation.Audio,\n hasBanner: false,\n callback: (type, ret) => {\n if (ret) {\n GameModelManager.pushVoiceShowAdToRecord(this._voiceCfg!.id);\n this.playVoice();\n if (type === \"video\") {\n // GameModelManager.addDailyTasks(DailyQuestType.Dq_AdsWatch, 1);\n }\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n previewImage() {\n UIManager.pushPresenter(ImagePreviewPresenter, this._previewImage);\n }\n //#endregion\n\n private _previewImage: string;\n\n private _extraNode?: cc.Node;\n\n private _nodeHeight: number;\n private _bgWidth: number;\n private _bgHeight: number;\n private _textHeight: number;\n private _icon: string;\n private _itemIcon: string;\n private _timer?: number;\n private _voicePath?: string;\n private _voiceCfg?: ICharacterVoiceConfig;\n\n private delay(time: number) {\n return new Promise((resolve) => {\n this._timer = setTimeout(() => {\n this._timer = undefined;\n resolve(null);\n }, time * 1000);\n });\n }\n\n init() {\n this._nodeHeight = this.node.height;\n this._bgWidth = this.bgNode.width;\n this._bgHeight = this.bgNode.height;\n this._textHeight = this.textContentLabel.node.height;\n }\n\n reuse() {\n if (this._timer) { clearTimeout(this._timer); this._timer = undefined; }\n if (this._nodeHeight === undefined) return;\n if (this._extraNode) {\n this._extraNode.removeFromParent(true);\n this._extraNode = undefined;\n }\n this.node.height = this._nodeHeight;\n this.bgNode.width = this._bgWidth;\n this.bgNode.height = this._bgHeight;\n this.textContentLabel!.string = \"\";\n this._previewImage = \"\";\n this.bgNode.active = true;\n this.voiceLabel!.string = \"\";\n this._voiceCfg = undefined;\n this._voicePath = \"\";\n if (this.imageSprite) this.imageSprite.node.parent.active = false;\n }\n\n private async resizeContent() {\n // console.log(\"resizeContent begin\");\n if (this._previewImage) { // 图片类型\n let sf = this.imageSprite!.spriteFrame;\n let width = this.imageSprite!.node.width = Math.max(sf.getOriginalSize().width, 200);\n this.imageSprite!.node.height = width / sf.getOriginalSize().width * sf.getOriginalSize().height;\n this.node.height = -this.imageSprite!.node.y + this.imageSprite!.node.height + 40;\n } else {\n this.textContentLabel.node.active = true;\n this.textContentLabel.maxWidth = 0;\n // while (!this.enabledInHierarchy) {\n // if (!this.enabled) return;\n // await this.delay(0.5);\n // }\n let mw = 440;\n if (mw < this.textContentLabel.node.width) {\n this.textContentLabel.maxWidth = mw;\n }\n this.bgNode.height = this.textContentLabel.node.height + 70;\n if (this._voiceCfg) {\n this.voiceNode.y = this.bgNode.height / 2 * (-1);\n }\n\n this.node.height = this.bgNode.height + this._textHeight;\n let gapW = 120;\n if (this.bgNode.anchorX == 0) {\n if (this._voiceCfg) {\n this.bgNode.width = this.voiceLabel.node.x + this.voiceLabel.node.width + gapW + 32;\n } else {\n this.bgNode.width = this.textContentLabel.node.x + this.textContentLabel.node.width + gapW;\n }\n } else {\n if (this._voiceCfg) {\n this.bgNode.width = -this.voiceLabel.node.x + this.voiceLabel.node.width + gapW + 32;\n } else {\n this.bgNode.width = -this.textContentLabel.node.x + this.textContentLabel.node.width + gapW;\n }\n }\n this.node.height = this.bgNode.height + this.nameSpr.node.height;\n }\n // console.log(\"resizeContent end\");\n }\n\n setName(name: string) {\n // console.log(\"setName begin\");\n // this.nameLabel.string = name;\n // console.log(\"setName end\");\n }\n\n setNameIcon(icon: string) {\n this.nameSpr.spriteFrame = new cc.SpriteFrame();\n if (icon && \"\" !== icon.trim()) {\n ResUtils.loadRes(icon, cc.SpriteFrame).then((sf) => {\n this.nameSpr.spriteFrame = sf;\n });\n }\n }\n\n setIcon(icon: string) {\n if (icon && this._icon !== icon) {\n this._icon = icon;\n ResUtils.loadRes(icon, cc.SpriteFrame).then((sf) => {\n if (this._icon === icon) this.iconSprite.spriteFrame = sf;\n });\n }\n }\n\n setText(txt: string) {\n // console.log(\"setText begin\");\n this.textContentLabel.string = txt;\n // console.log(\"setText end\");\n }\n\n setExtraContent(node: cc.Node) {\n if (this.container) {\n let pre = this.container.getChildByName(\"LikeTip\");\n if (pre) {\n this.container.removeChild(pre, true);\n }\n node.name = \"LikeTip\";\n node.active = true;\n this.container.addChild(node);\n }\n }\n\n updateVoiceLastTime() {\n this.voiceLabel.string = this._voiceCfg!.last + \"''\";\n }\n\n async setContent(plotId: number, content: DeepReadonly<SentenceContent>, select?: number, shouldDelay = false): Promise<void> {\n // console.log(\"setContent begin\");\n if (this._nodeHeight === undefined) this.init();\n let textCount = 0;\n let setContent1 = async (pid: number, content: DeepReadonly<SentenceTextContent | SentenceMediaContent>) => {\n if (content.type === SentenceType.TEXT) {\n\n textCount = richNodeTextCount(content.value);\n let str = richNodesToCocosString(content.value);\n this.textContentLabel.string = str;\n this.contentNode.children[0].active = true;\n this.contentNode.children[1].active = false;\n this.contentNode.children[2].active = false;\n } else if (content.type === SentenceType.AUDIO) {\n let cfg = ConfigManager.getConfig(characterVoiceConfig, parseInt(content.value));\n if (cfg) {\n this._voiceCfg = cfg;\n this._voicePath = cfg.name;\n this.updateVoiceLastTime();\n this.contentNode.children[0].active = false;\n this.contentNode.children[1].active = true;\n this.contentNode.children[2].active = false;\n let hasAd = cfg.ads === 1;\n let needAd = GameModelManager.checkVoiceNeedShowAD(this._voiceCfg);\n if (hasAd && needAd) {\n let curMainLinePlotId: number = GameModelManager.getCurMainLinePlotId();\n if (curMainLinePlotId === pid) {\n this.autoPopVoiceDialog(false);\n }\n }\n }\n\n } else if (content.type === SentenceType.IMAGE && this.imageSprite) {\n this.contentNode.children[0].active = false;\n this.contentNode.children[1].active = false;\n this.contentNode.children[2].active = true;\n if (content.value) {\n this._previewImage = \"textures/stickers/\" + content.value;\n let thumb = \"textures/stickers/thumb/\" + content.value;\n let info = cc.resources.getInfoWithPath(thumb);\n // console.log(\"getInfoWithPath\", info);\n if (!info) {\n thumb = this._previewImage;\n }\n try {\n await ResUtils.loadRes(thumb, cc.SpriteFrame).then((sf) => {\n // if (this.imageSprite!.node.activeInHierarchy) {\n this.imageSprite!.spriteFrame = sf;\n // }\n });\n } catch (e) {\n\n }\n }\n } else {\n console.error(\"content type not supported yet.\")\n }\n }\n let inputtingForever = false;\n let promise: Promise<any> | undefined = undefined;\n if (content.type === SentenceType.SELECT) {\n if (select === undefined) {\n inputtingForever = true;\n } else {\n let option = content.value[select];\n if (option.content) {\n promise = setContent1(plotId, option.content as DeepReadonly<SentenceTextContent | SentenceMediaContent>);\n } else {\n this.contentNode.children[0].active = true;\n this.contentNode.children[1].active = false;\n this.textContentLabel.string = option.summary;\n }\n }\n } else {\n promise = setContent1(plotId, content as DeepReadonly<SentenceTextContent | SentenceMediaContent>);\n }\n if (this.inputtingNode) {\n if (shouldDelay || inputtingForever) {\n this.inputtingNode.active = true;\n this.contentNode.active = false;\n this.inputtingNode.children[0].runAction(cc.repeatForever(cc.rotateBy(1, 360)));\n if (inputtingForever) return;\n if (promise) await promise;\n await this.delay(BASE_DELAY + PER_CHAR_DELAY * textCount);\n // return new Promise<void>((resolve) => {\n // this.scheduleOnce(() => {\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n this.contentNode.active = true;\n if (this._previewImage) this.bgNode.active = false;\n this.resizeContent();\n // resolve();\n // }, BASE_DELAY + PER_CHAR_DELAY * textCount);\n // })\n } else {\n if (promise) await promise;\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n this.contentNode.active = true;\n if (this._previewImage) this.bgNode.active = false;\n this.resizeContent();\n }\n }\n // console.log(\"setContent end\");\n }\n\n clearInputting() {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = undefined;\n if (this.inputtingNode) {\n this.inputtingNode.children[0].stopAllActions();\n this.inputtingNode.active = false;\n }\n this.contentNode.active = true;\n this.resizeContent();\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,CAAC,EAAE,CAAC,MAAM,CAAC;wDACa;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;wDACa;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;sDACW;IAE9B;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;uDACY;IAE/B;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;mDACU;IAErC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;qDACY;IAjB9B,gBAAgB;QAD5B,OAAO;OACK,gBAAgB,CAsF5B;IAAD,uBAAC;KAAA;AAtFY,4CAAgB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { SDK } from \"simba-sdk\";\nimport { GameRecord } from \"../../../../../avg/AVG\";\nimport { DummyLabel, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { MainTabs } from \"../../../../Enums\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\nimport { GiftListItemProps } from \"../../type/GiftListSubview\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class GiftListItemImpl extends CCPureView<GiftListItemProps & { onClick: () => void }> {\n //#region editor bindings\n @property(cc.Node)\n private checkNode = DummyNode;\n @property(cc.Sprite)\n private bgSprite = DummySprite;\n @property(cc.Sprite)\n private iconSprite = DummySprite;\n @property(cc.Sprite)\n private likeSprite = DummySprite;\n @property(cc.Label)\n private numLabel = DummyLabel;\n @property(cc.Label)\n private likeLabel = DummyLabel;\n @property([cc.SpriteFrame])\n private bgSFs: cc.SpriteFrame[] = [];\n @property([cc.SpriteFrame])\n private likeSFs: cc.SpriteFrame[] = [];\n\n onClick() {\n let storeUnlocked = GameRecord.recordVariables[\"MallViewPresenter\"] === 1;\n if (this._props.count === 0) {\n if (storeUnlocked) {\n this.showEnterStoreAlert();\n } else {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MAIN_FUNCTION_NOT_OPEN));\n }\n } else {\n this._props.onClick();\n }\n }\n //#endregion\n\n private _likeLabelColors = [cc.color(115, 105, 192), cc.color(148, 148, 148)];\n\n get checked() { return this.checkNode.active }\n\n onLoad() {\n super.onLoad();\n this.bindProp(\"count\", (v) => {\n this.numLabel.string = v.toString();\n let index = v === 0 ? 1 : 0;\n this.bgSprite.spriteFrame = this.bgSFs[index];\n this.likeSprite.spriteFrame = this.likeSFs[index];\n this.likeLabel.node.color = this._likeLabelColors[index];\n this.iconSprite.setMaterial(0, this.iconSprite.getMaterials()[index + 1]);\n });\n this.bindProp(\"addLike\", (v) => this.likeLabel.string = \"+\" + v);\n this.bindProp(\"icon\", async (v) => {\n if (v) {\n let sf = await ResUtils.loadRes(v, cc.SpriteFrame, 2);\n if (cc.isValid(this.iconSprite)) {\n this.iconSprite.spriteFrame = sf;\n }\n }\n });\n this.bindProp(\"select\", this.checkNode, \"active\");\n\n // this.node.on(cc.Node.EventType.)\n }\n\n showEnterStoreAlert() {\n // GameDotMgr.getInstance().dotShopTotal(DotShopTotalType.Popup, { popType: \"nohave_show\" });\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_NO_THIS_PROP_TITLE_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_ENTER_STORE_VALUE),\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n // items: [],\n hasBanner: false,\n callback: (type, ret: boolean, param: any) => {\n SDK.hideBannerAd();\n if (ret) {\n GameModelManager.MainTabForceClick.emit({ index: MainTabs.bedroomTab, pureClick: false, propId: parseInt(this._props.key) });\n // GameDotMgr.getInstance().dotShopTotal(DotShopTotalType.Popup, { popType: \"click_popup\" });\n if (type === \"video\") {\n // GameModelManager.addDailyTasks(DailyQuestType.Dq_AdsWatch, 1);\n }\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/message/GiftListItemImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA6C;AAC7C,yCAAgC;AAChC,gDAAoD;AACpD,yEAA0F;AAC1F,2EAAwE;AACxE,uFAAoF;AACpF,iFAA8E;AAE9E,yEAAsE;AACtE,0FAAmF;AAInF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,uBAAuD;QAA7F;;YACI,yBAAyB;YAEjB,cAAS,GAAG,0BAAS,CAAC;YAEtB,aAAQ,GAAG,4BAAW,CAAC;YAEvB,eAAU,GAAG,4BAAW,CAAC;YAEzB,eAAU,GAAG,4BAAW,CAAC;YAEzB,aAAQ,GAAG,2BAAU,CAAC;YAEtB,cAAS,GAAG,2BAAU,CAAC;YAEvB,UAAK,GAAqB,EAAE,CAAC;YAE7B,YAAO,GAAqB,EAAE,CAAC;YAcvC,YAAY;YAEJ,qBAAgB,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QA6ClF,CAAC;QA3DG,OAAO;YACH,IAAI,aAAa,GAAG,gBAAU,CAAC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;YAC1E,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,EAAE;gBACzB,IAAI,aAAa,EAA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CAAC;sDACW;IAE9B;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;uDACY;IAE/B;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;mDACU;IAErC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;qDACY;IAjB9B,gBAAgB;QAD5B,OAAO;OACK,gBAAgB,CA8E5B;IAAD,uBAAC;KAAA;AA9EY,4CAAgB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { SDK } from \"simba-sdk\";\nimport { GameRecord } from \"../../../../../avg/AVG\";\nimport { DummyLabel, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { MainTabs } from \"../../../../Enums\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\nimport { GiftListItemProps } from \"../../type/GiftListSubview\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class GiftListItemImpl extends CCPureView<GiftListItemProps & { onClick: () => void }> {\n //#region editor bindings\n @property(cc.Node)\n private checkNode = DummyNode;\n @property(cc.Sprite)\n private bgSprite = DummySprite;\n @property(cc.Sprite)\n private iconSprite = DummySprite;\n @property(cc.Sprite)\n private likeSprite = DummySprite;\n @property(cc.Label)\n private numLabel = DummyLabel;\n @property(cc.Label)\n private likeLabel = DummyLabel;\n @property([cc.SpriteFrame])\n private bgSFs: cc.SpriteFrame[] = [];\n @property([cc.SpriteFrame])\n private likeSFs: cc.SpriteFrame[] = [];\n\n onClick() {\n let storeUnlocked = GameRecord.recordVariables[\"MallViewPresenter\"] === 1;\n if (this._props.count === 0) {\n if (storeUnlocked) {\n this.showEnterStoreAlert();\n } else {\n UIManager.showToast(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_MAIN_FUNCTION_NOT_OPEN));\n }\n } else {\n this._props.onClick();\n }\n }\n //#endregion\n\n private _likeLabelColors = [cc.color(115, 105, 192), cc.color(148, 148, 148)];\n\n get checked() { return this.checkNode.active }\n\n onLoad() {\n super.onLoad();\n this.bindProp(\"count\", (v) => {\n this.numLabel.string = v.toString();\n let index = v === 0 ? 1 : 0;\n this.bgSprite.spriteFrame = this.bgSFs[index];\n this.likeSprite.spriteFrame = this.likeSFs[index];\n this.likeLabel.node.color = this._likeLabelColors[index];\n this.iconSprite.setMaterial(0, this.iconSprite.getMaterials()[index + 1]);\n });\n this.bindProp(\"addLike\", (v) => this.likeLabel.string = \"+\" + v);\n this.bindProp(\"icon\", async (v) => {\n if (v) {\n let sf = await ResUtils.loadRes(v, cc.SpriteFrame, 2);\n if (cc.isValid(this.iconSprite)) {\n this.iconSprite.spriteFrame = sf;\n }\n }\n });\n this.bindProp(\"select\", this.checkNode, \"active\");\n\n // this.node.on(cc.Node.EventType.)\n }\n\n showEnterStoreAlert() {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_NO_THIS_PROP_TITLE_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_ENTER_STORE_VALUE),\n ishasad: false,\n istwobtn: true,\n adconfig: \"\",\n // items: [],\n hasBanner: false,\n callback: (type, ret: boolean, param: any) => {\n SDK.hideBannerAd();\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA6C;AAE7C,gDAAqH;AACrH,yEAA2F;AAC3F,2EAAgF;AAChF,uFAAoF;AACpF,iFAA8E;AAC9E,yEA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AAC;KAAA;kBAlQoB,wBAAwB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { DeepReadonly, DeepReadonlyObject } from \"simba-utils\";\nimport { richNodesToCocosString, SentenceOption, SentenceSelectContent, SentenceType } from \"../../../../../avg/AVG\";\nimport { DummyLayout, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView, CCView } from \"../../../../../common/classbase/CCViewBase\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../../../common/utils/StringUtils\";\nimport { SpecialDateContentStatus, SpecialDateContentType } from \"../../../../Enums\";\nimport GameDotMgr from \"../../../../GameDotMgr\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\nimport { SentenceSelectorView, SentenceSelectorViewProps, SentenceSelectorViewType } from \"../../type/SentenceSelectorView\";\n\nconst { ccclass, property } = cc._decorator;\n\nenum DateSelectNodeType {\n Invalid,\n SpecialGrace,\n SpecialSkin,\n GraceLocked,\n SkinLocked,\n Nomal_HasSpecial,\n Nomal,\n}\n\n@ccclass\n@RegView(SentenceSelectorViewType, \"prefab/ui/SentenceSelectorView\")\nexport default class SentenceSelectorViewImpl extends CCPureView<SentenceSelectorViewProps> implements SentenceSelectorView {\n //#region \n @property(cc.Sprite)\n background: cc.Sprite = DummySprite;\n @property(cc.Layout)\n private contentLayout: cc.Layout = DummyLayout;\n @property(cc.Node)\n private selectButtonTemplate: cc.Node = DummyNode;\n @property(cc.Node)\n private selectButtonTemplate1: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_special: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_grace_unclick: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_skin_unclick: cc.Node = DummyNode;\n\n @property(cc.Node)\n private template_date_not_special: cc.Node = DummyNode;\n //#endregion\n\n onButtonClick = (index: number, hasSpecial: boolean, specialType: SpecialDateContentType, specialStatus: SpecialDateContentStatus) => {\n return () => {\n if (this._props.isFromDate && hasSpecial && this._props.dateSceneId && this._props.plotId) {\n GameDotMgr.getInstance().dotSpecialPlot(\n this._props.dateSceneId,\n this._props.plotId,\n index,\n specialType,\n specialStatus\n );\n }\n this._props.onSelectIndexCallback(index);\n }\n }\n\n setContent = (content: DeepReadonly<SentenceSelectContent>) => {\n this.contentLayout.node.removeAllChildren();\n let hasSpecial = this.checkHasSpecial(content);\n for (let i = 0; i < content.value.length; i++) {\n let option = content.value[i];\n let modelNode = this.selectButtonTemplate;\n let modelType = DateSelectNodeType.Invalid;\n let index = i;\n let specialType = SpecialDateContentType.Invalid;\n let specialStatus = SpecialDateContentStatus.Invalid;\n if (this._props.isFromDate) {\n modelType = this.getDateNodeModelType(option, hasSpecial);\n switch (modelType) {\n case DateSelectNodeType.SpecialGrace:\n {\n modelNode = this.template_date_special;\n specialType = SpecialDateContentType.Grace;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.SpecialSkin:\n {\n modelNode = this.template_date_special;\n specialType = SpecialDateContentType.Skin;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.GraceLocked:\n {\n modelNode = this.template_date_grace_unclick;\n specialType = SpecialDateContentType.Grace;\n specialStatus = SpecialDateContentStatus.Locked;\n }\n break;\n case DateSelectNodeType.SkinLocked:\n {\n modelNode = this.template_date_skin_unclick;\n specialType = SpecialDateContentType.Skin;\n specialStatus = SpecialDateContentStatus.Locked;\n }\n break;\n case DateSelectNodeType.Nomal_HasSpecial:\n {\n modelNode = this.template_date_not_special;\n specialType = SpecialDateContentType.Nomal;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.Nomal:\n {\n modelNode = this.selectButtonTemplate1;\n }\n break;\n }\n }\n if (!modelNode) {\n return;\n }\n let node = cc.instantiate(modelNode);\n node.parent = this.contentLayout.node;\n node.active = true;\n let label = node.getChildByName(\"Label\").getComponent(cc.RichText);\n if (option.content && option.content.type === SentenceType.TEXT && !option.summary) {\n label.string = richNodesToCocosString(option.content.value);\n } else {\n label.string = option.summary;\n }\n if (this._props.isFromDate && modelType === DateSelectNodeType.GraceLocked || modelType === DateSelectNodeType.SkinLocked) {\n let tipStr = \"\";\n let titleStr = \"\";\n if (modelType === DateSelectNodeType.GraceLocked && option.enableCondition) {\n let roleIdStr = option.enableCondition.groups[0].items[0].target.replace(\"r.like\", \"\");\n let role = GameModelManager.getRoleData(parseInt(roleIdStr));\n let graceLevel = GameModelManager.getGraceLevelByGraceValue(parseInt(option.enableCondition.groups[0].items[0].oprand.value));\n // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LOCKED), role?.getRoleName(), graceLevel);\n tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WEAK_GRACE_TIP_FORMAT), role?.getRoleName(), graceLevel, role?.getRoleName());\n titleStr = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WEAK_GRACE);\n } else if (modelType === DateSelectNodeType.SkinLocked && option.enableCondition) {\n // let roleIdStr = option.enableCondition.groups[0].items[0].target.replace(\"r.skin\", \"\");\n // let role = GameModelManager.getRoleData(parseInt(roleIdStr));\n // let v = parseInt(option.enableCondition.groups[0].items[0].oprand.value);\n // let skinName = GameModelManager.getI18LanguageTxt(ConfigManager.getConfig(itemConfig, v).name);\n // // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SKIN_LOCKED), role?.getRoleName(), skinName);\n // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_INVALID_SKIN_TIP_FORMAT), role?.getRoleName(), skinName);\n // titleStr = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_INVALID_SKIN);\n }\n node.on(\"click\", () => {\n // UIManager.showToast(tipStr);\n this.showSpecialPlotTip(titleStr, tipStr);\n if (this._props.isFromDate && hasSpecial && this._props.dateSceneId && this._props.plotId) {\n GameDotMgr.getInstance().dotSpecialPlot(\n this._props.dateSceneId,\n this._props.plotId,\n index,\n specialType,\n specialStatus\n );\n }\n });\n } else {\n node.on(\"click\", this.onButtonClick(index, hasSpecial, specialType, specialStatus));\n }\n }\n }\n\n showSpecialPlotTip = (title: string, content: string) => {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: title,\n content: content,\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n // items: [],\n hasBanner: false,\n callback: () => {\n\n }\n // location: CommonLocation.Event\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n checkHasSpecial(content: DeepReadonly<SentenceSelectContent>): boolean {\n let hasSpecial: boolean = false;\n if (!content || !content.value || !content.value.length) {\n return false;\n }\n for (let i = 0; i < content.value.length; i++) {\n let sentenceOption = content.value[i];\n if (sentenceOption && sentenceOption.enableCondition) {\n if (sentenceOption.enableCondition.groups && sentenceOption.enableCondition.groups.length > 0\n && sentenceOption.enableCondition.groups[0].items\n && sentenceOption.enableCondition.groups[0].items.length > 0\n && sentenceOption.enableCondition.groups[0].items[0].target) {\n if ((sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.like\")) ||\n (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.skin\"))) {\n hasSpecial = true;\n break;\n }\n }\n }\n }\n return hasSpecial;\n }\n\n open(parent: CCView) {\n super.open(parent);\n this.background.node.opacity = 0;\n }\n\n onPropsReceive() {\n super.onPropsReceive();\n this.background.node.opacity = 255;\n }\n\n onLoad() {\n this.bindProp(\"sentence\", async (value) => {\n if (value != null)\n this.setContent(value);\n });\n\n\n this.bindProp(\"backgroundpath\", async (value) => {\n if (value !== \"\") {\n this.background.spriteFrame = await ResUtils.loadRes<cc.SpriteFrame>(value, cc.SpriteFrame);\n } else {\n this.background.spriteFrame = undefined as any;\n }\n });\n\n this.bindProp(\"y\", (v) => {\n if (v === undefined) {\n this.background.getComponent(cc.Widget).enabled = true;\n this.background.node.y = -this.node.height / 2;\n } else {\n this.background.getComponent(cc.Widget).enabled = false;\n this.background.node.y = v;\n }\n });\n\n this.bindProp(\"clickcausehide\", async (value) => {\n this.node.off(cc.Node.EventType.TOUCH_END);\n this.background.node.off(cc.Node.EventType.TOUCH_END);\n if (this._props.clickcausehide) {\n this.node.on(cc.Node.EventType.TOUCH_END, this.onCloseHandleClick, this);\n this.background.node.on(cc.Node.EventType.TOUCH_END, this.onCloseHandleClick, this);\n }\n });\n }\n\n onPropsLoad(props: Readonly<SentenceSelectorViewProps>) {\n super.onPropsLoad(props);\n }\n\n onCloseHandleClick(event) {\n this.close();\n }\n\n onPropChange(key: Extract<keyof SentenceSelectorViewProps, string>) {\n super.onPropChange(key);\n }\n\n getDateNodeModelType = (sentenceOption: DeepReadonlyObject<SentenceOption>, hasSpeical: boolean): DateSelectNodeType => {\n let modelType = hasSpeical ? DateSelectNodeType.Nomal : DateSelectNodeType.Nomal;\n if (sentenceOption.enableCondition) {\n let ret = GameModelManager.checkSkinAndGraceCondition(sentenceOption.enableCondition);\n if (sentenceOption.enableCondition.groups && sentenceOption.enableCondition.groups.length > 0\n && sentenceOption.enableCondition.groups[0].items\n && sentenceOption.enableCondition.groups[0].items.length > 0\n && sentenceOption.enableCondition.groups[0].items[0].target) {\n if (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.like\")) {\n modelType = ret ? DateSelectNodeType.SpecialGrace : DateSelectNodeType.GraceLocked;\n }\n // else if (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.skin\")) {\n // modelType = ret ? DateSelectNodeType.SpecialSkin : DateSelectNodeType.SkinLocked;\n // }\n }\n }\n return modelType;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl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AAK,CAAC,CAAC;QAC7B,CAAC;QAED,kBAAkB,CAAC,KAAK;YACpB,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;QAED,YAAY,CAAC,GAAqD;YAC9D,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC;KAoBJ,CAAA;IA7OG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;gEACgB;IAEpC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;mEAC2B;IAE/C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;0EACgC;IAElD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2EACiC;IAEnD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;2EACiC;IAEnD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;iFACuC;IAEzD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;gFACsC;IAGxD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+EACqC;IAlBtC,wBAAwB;QAF5C,OAAO;QACP,gCAAO,CAAC,+CAAwB,EAAE,gCAAgC,CAAC;OAC/C,wBAAwB,CAgP5C;IAAD,+BAAC;KAAA;kBAhPoB,wBAAwB","file":"","sourceRoot":"/","sourcesContent":["import { ResUtils } from \"simba-cc-resutils\";\nimport { DeepReadonly, DeepReadonlyObject } from \"simba-utils\";\nimport { richNodesToCocosString, SentenceOption, SentenceSelectContent, SentenceType } from \"../../../../../avg/AVG\";\nimport { DummyLayout, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { CCPureView, CCView } from \"../../../../../common/classbase/CCViewBase\";\nimport { GameTextData } from \"../../../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../../../common/utils/StringUtils\";\nimport { SpecialDateContentStatus, SpecialDateContentType } from \"../../../../Enums\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\nimport AlertDialogViewPresenter from \"../../../presenter/AlertDialogViewPresenter\";\nimport { RegView } from \"../../../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../../type/AlertDialogView\";\nimport { SentenceSelectorView, SentenceSelectorViewProps, SentenceSelectorViewType } from \"../../type/SentenceSelectorView\";\n\nconst { ccclass, property } = cc._decorator;\n\nenum DateSelectNodeType {\n Invalid,\n SpecialGrace,\n SpecialSkin,\n GraceLocked,\n SkinLocked,\n Nomal_HasSpecial,\n Nomal,\n}\n\n@ccclass\n@RegView(SentenceSelectorViewType, \"prefab/ui/SentenceSelectorView\")\nexport default class SentenceSelectorViewImpl extends CCPureView<SentenceSelectorViewProps> implements SentenceSelectorView {\n //#region \n @property(cc.Sprite)\n background: cc.Sprite = DummySprite;\n @property(cc.Layout)\n private contentLayout: cc.Layout = DummyLayout;\n @property(cc.Node)\n private selectButtonTemplate: cc.Node = DummyNode;\n @property(cc.Node)\n private selectButtonTemplate1: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_special: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_grace_unclick: cc.Node = DummyNode;\n @property(cc.Node)\n private template_date_skin_unclick: cc.Node = DummyNode;\n\n @property(cc.Node)\n private template_date_not_special: cc.Node = DummyNode;\n //#endregion\n\n onButtonClick = (index: number, hasSpecial: boolean, specialType: SpecialDateContentType, specialStatus: SpecialDateContentStatus) => {\n return () => {\n this._props.onSelectIndexCallback(index);\n }\n }\n\n setContent = (content: DeepReadonly<SentenceSelectContent>) => {\n this.contentLayout.node.removeAllChildren();\n let hasSpecial = this.checkHasSpecial(content);\n for (let i = 0; i < content.value.length; i++) {\n let option = content.value[i];\n let modelNode = this.selectButtonTemplate;\n let modelType = DateSelectNodeType.Invalid;\n let index = i;\n let specialType = SpecialDateContentType.Invalid;\n let specialStatus = SpecialDateContentStatus.Invalid;\n if (this._props.isFromDate) {\n modelType = this.getDateNodeModelType(option, hasSpecial);\n switch (modelType) {\n case DateSelectNodeType.SpecialGrace:\n {\n modelNode = this.template_date_special;\n specialType = SpecialDateContentType.Grace;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.SpecialSkin:\n {\n modelNode = this.template_date_special;\n specialType = SpecialDateContentType.Skin;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.GraceLocked:\n {\n modelNode = this.template_date_grace_unclick;\n specialType = SpecialDateContentType.Grace;\n specialStatus = SpecialDateContentStatus.Locked;\n }\n break;\n case DateSelectNodeType.SkinLocked:\n {\n modelNode = this.template_date_skin_unclick;\n specialType = SpecialDateContentType.Skin;\n specialStatus = SpecialDateContentStatus.Locked;\n }\n break;\n case DateSelectNodeType.Nomal_HasSpecial:\n {\n modelNode = this.template_date_not_special;\n specialType = SpecialDateContentType.Nomal;\n specialStatus = SpecialDateContentStatus.Unlocked;\n }\n break;\n case DateSelectNodeType.Nomal:\n {\n modelNode = this.selectButtonTemplate1;\n }\n break;\n }\n }\n if (!modelNode) {\n return;\n }\n let node = cc.instantiate(modelNode);\n node.parent = this.contentLayout.node;\n node.active = true;\n let label = node.getChildByName(\"Label\").getComponent(cc.RichText);\n if (option.content && option.content.type === SentenceType.TEXT && !option.summary) {\n label.string = richNodesToCocosString(option.content.value);\n } else {\n label.string = option.summary;\n }\n if (this._props.isFromDate && modelType === DateSelectNodeType.GraceLocked || modelType === DateSelectNodeType.SkinLocked) {\n let tipStr = \"\";\n let titleStr = \"\";\n if (modelType === DateSelectNodeType.GraceLocked && option.enableCondition) {\n let roleIdStr = option.enableCondition.groups[0].items[0].target.replace(\"r.like\", \"\");\n let role = GameModelManager.getRoleData(parseInt(roleIdStr));\n let graceLevel = GameModelManager.getGraceLevelByGraceValue(parseInt(option.enableCondition.groups[0].items[0].oprand.value));\n // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_GRACE_LOCKED), role?.getRoleName(), graceLevel);\n tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WEAK_GRACE_TIP_FORMAT), role?.getRoleName(), graceLevel, role?.getRoleName());\n titleStr = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WEAK_GRACE);\n } else if (modelType === DateSelectNodeType.SkinLocked && option.enableCondition) {\n // let roleIdStr = option.enableCondition.groups[0].items[0].target.replace(\"r.skin\", \"\");\n // let role = GameModelManager.getRoleData(parseInt(roleIdStr));\n // let v = parseInt(option.enableCondition.groups[0].items[0].oprand.value);\n // let skinName = GameModelManager.getI18LanguageTxt(ConfigManager.getConfig(itemConfig, v).name);\n // // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SKIN_LOCKED), role?.getRoleName(), skinName);\n // tipStr = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_INVALID_SKIN_TIP_FORMAT), role?.getRoleName(), skinName);\n // titleStr = GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_INVALID_SKIN);\n }\n node.on(\"click\", () => {\n // UIManager.showToast(tipStr);\n this.showSpecialPlotTip(titleStr, tipStr);\n });\n } else {\n node.on(\"click\", this.onButtonClick(index, hasSpecial, specialType, specialStatus));\n }\n }\n }\n\n showSpecialPlotTip = (title: string, content: string) => {\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: title,\n content: content,\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n // items: [],\n hasBanner: false,\n callback: () => {\n\n }\n // location: CommonLocation.Event\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n checkHasSpecial(content: DeepReadonly<SentenceSelectContent>): boolean {\n let hasSpecial: boolean = false;\n if (!content || !content.value || !content.value.length) {\n return false;\n }\n for (let i = 0; i < content.value.length; i++) {\n let sentenceOption = content.value[i];\n if (sentenceOption && sentenceOption.enableCondition) {\n if (sentenceOption.enableCondition.groups && sentenceOption.enableCondition.groups.length > 0\n && sentenceOption.enableCondition.groups[0].items\n && sentenceOption.enableCondition.groups[0].items.length > 0\n && sentenceOption.enableCondition.groups[0].items[0].target) {\n if ((sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.like\")) ||\n (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.skin\"))) {\n hasSpecial = true;\n break;\n }\n }\n }\n }\n return hasSpecial;\n }\n\n open(parent: CCView) {\n super.open(parent);\n this.background.node.opacity = 0;\n }\n\n onPropsReceive() {\n super.onPropsReceive();\n this.background.node.opacity = 255;\n }\n\n onLoad() {\n this.bindProp(\"sentence\", async (value) => {\n if (value != null)\n this.setContent(value);\n });\n\n\n this.bindProp(\"backgroundpath\", async (value) => {\n if (value !== \"\") {\n this.background.spriteFrame = await ResUtils.loadRes<cc.SpriteFrame>(value, cc.SpriteFrame);\n } else {\n this.background.spriteFrame = undefined as any;\n }\n });\n\n this.bindProp(\"y\", (v) => {\n if (v === undefined) {\n this.background.getComponent(cc.Widget).enabled = true;\n this.background.node.y = -this.node.height / 2;\n } else {\n this.background.getComponent(cc.Widget).enabled = false;\n this.background.node.y = v;\n }\n });\n\n this.bindProp(\"clickcausehide\", async (value) => {\n this.node.off(cc.Node.EventType.TOUCH_END);\n this.background.node.off(cc.Node.EventType.TOUCH_END);\n if (this._props.clickcausehide) {\n this.node.on(cc.Node.EventType.TOUCH_END, this.onCloseHandleClick, this);\n this.background.node.on(cc.Node.EventType.TOUCH_END, this.onCloseHandleClick, this);\n }\n });\n }\n\n onPropsLoad(props: Readonly<SentenceSelectorViewProps>) {\n super.onPropsLoad(props);\n }\n\n onCloseHandleClick(event) {\n this.close();\n }\n\n onPropChange(key: Extract<keyof SentenceSelectorViewProps, string>) {\n super.onPropChange(key);\n }\n\n getDateNodeModelType = (sentenceOption: DeepReadonlyObject<SentenceOption>, hasSpeical: boolean): DateSelectNodeType => {\n let modelType = hasSpeical ? DateSelectNodeType.Nomal : DateSelectNodeType.Nomal;\n if (sentenceOption.enableCondition) {\n let ret = GameModelManager.checkSkinAndGraceCondition(sentenceOption.enableCondition);\n if (sentenceOption.enableCondition.groups && sentenceOption.enableCondition.groups.length > 0\n && sentenceOption.enableCondition.groups[0].items\n && sentenceOption.enableCondition.groups[0].items.length > 0\n && sentenceOption.enableCondition.groups[0].items[0].target) {\n if (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.like\")) {\n modelType = ret ? DateSelectNodeType.SpecialGrace : DateSelectNodeType.GraceLocked;\n }\n // else if (sentenceOption.enableCondition.groups[0].items[0].target.startsWith(\"r.skin\")) {\n // modelType = ret ? DateSelectNodeType.SpecialSkin : DateSelectNodeType.SkinLocked;\n // }\n }\n }\n return modelType;\n }\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/notice/NewNoticeViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAA6F;AAC7F,2EAAwE;AACxE,4EAA0D;AAC1D,mEAAuG;AAEvG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YAGI,uBAAkB,GAAqB,EAAE,CAAC;YAE1C,kBAAa,GAAgB,EAAE,CAAC;YAEhC,gBAAW,GAAc,EAAE,CAAC;YAE5B,oBAAe,GAAgB,8BAAa,CAAC;YAE7C,0BAAqB,GAAY,0BAAS,CAAC;YAE3C,yBAAoB,GAAc,4BAAW,CAAC;QA8ClD,CAAC;QAxCG,qBAAqB;YACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;QAED,gBAAgB;YACZ,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;QAED,cAAc;YACV,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;QAED,kBAAkB;YACd,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;QAED,wBAAwB;YACpB,OAAO,IAAI,CAAC,qBAA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CAAC;yDACpC;IAEtB;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;6DACpC;IAjBhB,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,gCAAgC,CAAC;OAChD,iBAAiB,CA2D7B;IAAD,wBAAC;KAAA;AA3DY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode, DummyPrefab, DummyRichText } from \"../../../../../common/CCDummyObjects\";\r\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\r\nimport { RegView } from \"../../../PresenterCCViewFactory\";\r\nimport { NewNoticeViewType, NewNoticeViewProps, NewNoticeView } from \"../../type/notice/NewNoticeView\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n@ccclass\r\n@RegView(NewNoticeViewType, \"prefab/ui/notice/NewNoticeView\")\r\nexport class NewNoticeViewImpl extends CCPureView<NewNoticeViewProps> implements NewNoticeView {\r\n\r\n @property({ type: [cc.SpriteFrame], displayName: \"Notice button spriteFrames\" })\r\n buttonSpriteFrames: cc.SpriteFrame[] = [];\r\n @property({ type: [cc.Button], displayName: \"Notice buttons\" })\r\n noticeButtons: cc.Button[] = [];\r\n @property({ type: [cc.Node], displayName: \"Notice nodes\" })\r\n noticeNodes: cc.Node[] = [];\r\n @property({ type: cc.RichText, displayName: \"Content richtext\" })\r\n contentRichText: cc.RichText = DummyRichText;\r\n @property({ type: cc.Node, displayName: \"Activities content node\" })\r\n activitiesContentNode: cc.Node = DummyNode;\r\n @property({ type: cc.Prefab, displayName: \"Activities notice item prefab\" })\r\n activitiesItemPrefab: cc.Prefab = DummyPrefab;\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 getButtonSpriteFrames(): cc.SpriteFrame[] {\r\n return this.buttonSpriteFrames;\r\n }\r\n\r\n getNoticeButtons(): cc.Button[] {\r\n return this.noticeButtons;\r\n }\r\n\r\n getNoticeNodes(): cc.Node[] {\r\n return this.noticeNodes;\r\n }\r\n\r\n getContentRichText(): cc.RichText {\r\n return this.contentRichText;\r\n }\r\n\r\n getActivitiesContentNode(): cc.Node {\r\n return this.activitiesContentNode;\r\n }\r\n\r\n getActivitiesItemPrefab(): cc.Prefab {\r\n return this.activitiesItemPrefab;\r\n }\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 onNoticeButtonClick(event, customEventData) {\r\n let index = Number(customEventData);\r\n this._props.onNoticeButtonClickCallback(index);\r\n }\r\n\r\n onCloseButtonClick() {\r\n this._props.onCloseButtonClickCalback();\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/impl/notice/NewNoticeViewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAsH;AACtH,2EAAwE;AACxE,4EAA0D;AAC1D,mEAAuG;AAEvG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAG5C;IAAA,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,uBAA8B;QAArE;;YAGI,uBAAkB,GAAqB,EAAE,CAAC;YAE1C,kBAAa,GAAgB,EAAE,CAAC;YAEhC,gBAAW,GAAc,EAAE,CAAC;YAE5B,oBAAe,GAAgB,8BAAa,CAAC;YAE7C,0BAAqB,GAAY,0BAAS,CAAC;YAE3C,yBAAoB,GAAc,4BAAW,CAAC;YAE9C,eAAU,GAAc,4BAAW,CAAC;YAEpC,mBAAc,GAAa,2BAAU,CAAC;QA0C1C,CAAC;QAxCG,qBAAqB;YACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;QAED,gBAAgB;YACZ,OAAO,IAA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C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;mEAC9B;IAE9C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;yDACtB;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;6DACvB;IAjB7B,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,gCAAgC,CAAC;OAChD,iBAAiB,CA2D7B;IAAD,wBAAC;KAAA;AA3DY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyNode, DummyPrefab, DummyRichText, DummyToggle } from \"../../../../../common/CCDummyObjects\";\r\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\r\nimport { RegView } from \"../../../PresenterCCViewFactory\";\r\nimport { NewNoticeViewType, NewNoticeViewProps, NewNoticeView } from \"../../type/notice/NewNoticeView\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n@ccclass\r\n@RegView(NewNoticeViewType, \"prefab/ui/notice/NewNoticeView\")\r\nexport class NewNoticeViewImpl extends CCPureView<NewNoticeViewProps> implements NewNoticeView {\r\n\r\n @property({ type: [cc.SpriteFrame], displayName: \"Notice button spriteFrames\" })\r\n buttonSpriteFrames: cc.SpriteFrame[] = [];\r\n @property({ type: [cc.Button], displayName: \"Notice buttons\" })\r\n noticeButtons: cc.Button[] = [];\r\n @property({ type: [cc.Node], displayName: \"Notice nodes\" })\r\n noticeNodes: cc.Node[] = [];\r\n @property({ type: cc.RichText, displayName: \"Content richtext\" })\r\n contentRichText: cc.RichText = DummyRichText;\r\n @property({ type: cc.Node, displayName: \"Activities content node\" })\r\n activitiesContentNode: cc.Node = DummyNode;\r\n @property({ type: cc.Prefab, displayName: \"Activities notice item prefab\" })\r\n activitiesItemPrefab: cc.Prefab = DummyPrefab;\r\n @property({ type: cc.Toggle, displayName: \"Tips toggle\" })\r\n tipsToggle: cc.Toggle = DummyToggle;\r\n @property({ type: cc.Label, displayName: \"CloseTips label\" })\r\n closeTipsLabel: cc.Label = DummyLabel;\r\n\r\n getButtonSpriteFrames(): cc.SpriteFrame[] {\r\n return this.buttonSpriteFrames;\r\n }\r\n\r\n getNoticeButtons(): cc.Button[] {\r\n return this.noticeButtons;\r\n }\r\n\r\n getNoticeNodes(): cc.Node[] {\r\n return this.noticeNodes;\r\n }\r\n\r\n getContentRichText(): cc.RichText {\r\n return this.contentRichText;\r\n }\r\n\r\n getActivitiesContentNode(): cc.Node {\r\n return this.activitiesContentNode;\r\n }\r\n\r\n getActivitiesItemPrefab(): cc.Prefab {\r\n return this.activitiesItemPrefab;\r\n }\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 onNoticeButtonClick(event, customEventData) {\r\n let index = Number(customEventData);\r\n this._props.onNoticeButtonClickCallback(index);\r\n }\r\n\r\n onCloseButtonClick() {\r\n this._props.onCloseButtonClickCalback();\r\n }\r\n}"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DatingEventSubview.ts"],"names":[],"mappings":";;;;;;;AAoDa,QAAA,sBAAsB,GAAG,oBAAoB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { ListItemProps, ListView, ListViewProps } from \"../../baseview/ListView\";\nimport { PureSubview } from \"../../../../common/classbase/ViewBase\";\nimport { DatingEventStatus } from \"../../../model/DatingEventSceneModel\";\nimport { DatePrefabDirectType, StepType } from \"../../../Enums\";\n\nexport interface DatingEventItemProps extends ListItemProps {\n title: string;\n // date: string;\n // time: string;\n status: DatingEventStatus;\n // lockText?: string;\n coverImage: string;\n portraitImage?: string;\n // lineStyle: \"none\" | 0 | 1;\n // progress: number;\n // showItemClear: boolean;\n // showProgress: boolean;\n // reviewCostNum: number;\n itype: DatePrefabDirectType;\n}\ntype OptionChapter = (stepType: StepType) => void;\nexport interface DatingEventSubviewProps extends ListViewProps<DatingEventItemProps> {\n showContinue: boolean;\n chapterName: string;\n showLeft: boolean;\n showRight: boolean;\n showChapterClear: boolean;\n onOptionChapter: OptionChapter;\n chapterIndex: number;\n onScrollBegin: () => void;\n onScrollEnd: () => void;\n onLeftButtonClickCallback: () => void;\n onRightButtonClickCallback: () => void;\n onNameButtonClickCallback: () => void;\n onExtraPlotButtonClickCallback: () => void;\n onCloseSectionViewCallBack: () => void;\n}\n\nexport interface GetListItemNode {\n getItemNode: (k: string) => cc.Node | undefined;\n // setCurrEventId: (id: number) => void;\n getLeftButton: () => cc.Button;\n getNameButton: () => cc.Button;\n getRightButton: () => cc.Button;\n getScrollViewRoot: () => cc.Node;\n getScrollViewContent: () => cc.Node;\n getSectionBtn: () => cc.Prefab;\n getExtraPlotButton: () => cc.Node;\n}\n\nexport type DatingEventSubview = ListView & PureSubview<DatingEventSubviewProps> & GetListItemNode;\n\nexport const DatingEventSubviewType = \"DatingEventSubview\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/DatingEventSubview.ts"],"names":[],"mappings":";;;;;;;AAmDa,QAAA,sBAAsB,GAAG,oBAAoB,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { ListItemProps, ListView, ListViewProps } from \"../../baseview/ListView\";\nimport { PureSubview } from \"../../../../common/classbase/ViewBase\";\nimport { DatingEventStatus } from \"../../../model/DatingEventSceneModel\";\nimport { DatePrefabDirectType, StepType } from \"../../../Enums\";\n\nexport interface DatingEventItemProps extends ListItemProps {\n title: string;\n // date: string;\n // time: string;\n status: DatingEventStatus;\n // lockText?: string;\n coverImage: string;\n portraitImage?: string;\n // lineStyle: \"none\" | 0 | 1;\n // progress: number;\n // showItemClear: boolean;\n // showProgress: boolean;\n // reviewCostNum: number;\n itype: DatePrefabDirectType;\n}\ntype OptionChapter = (stepType: StepType) => void;\nexport interface DatingEventSubviewProps extends ListViewProps<DatingEventItemProps> {\n showContinue: boolean;\n chapterName: string;\n showLeft: boolean;\n showRight: boolean;\n showChapterClear: boolean;\n onOptionChapter: OptionChapter;\n chapterIndex: number;\n onScrollBegin: () => void;\n onScrollEnd: () => void;\n onLeftButtonClickCallback: () => void;\n onRightButtonClickCallback: () => void;\n onNameButtonClickCallback: () => void;\n onCloseSectionViewCallBack: () => void;\n}\n\nexport interface GetListItemNode {\n getItemNode: (k: string) => cc.Node | undefined;\n // setCurrEventId: (id: number) => void;\n getLeftButton: () => cc.Button;\n getNameButton: () => cc.Button;\n getRightButton: () => cc.Button;\n getScrollViewRoot: () => cc.Node;\n getScrollViewContent: () => cc.Node;\n getSectionBtn: () => cc.Prefab;\n getExtraPlotButton: () => cc.Node;\n}\n\nexport type DatingEventSubview = ListView & PureSubview<DatingEventSubviewProps> & GetListItemNode;\n\nexport const DatingEventSubviewType = \"DatingEventSubview\";"]}
\ 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
{"version":3,"sources":["assets/script/game/ui/view/type/DatingSceneView.ts"],"names":[],"mappings":";;;;;;;AAsBa,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 /**关闭ui */\n closeView: () => 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/PlotStopView.ts"],"names":[],"mappings":";;;;;;;AAoBa,QAAA,gBAAgB,GAAG,cAAc,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\nimport { ShowType } from \"../../../Enums\";\ntype OnAdBtnOption = (optionType: ShowType, adType: \"share\" | \"video\", ret?: boolean) => void;\ntype OnAddRes = (type:string) => void;\ntype CancelAdCallback = (type: GetRewardType) => void;\n\nexport interface PlotStopViewProps {\n unlockPlotCallbackFunc: Function;\n onAdBtnOption: OnAdBtnOption;\n onCancelAdCallback: CancelAdCallback;\n onAddRes:OnAddRes;\n\n}\ntype PlotStopViewBase = PureView<PlotStopViewProps>;\nexport interface PlotStopView extends PlotStopViewBase {\n [x: string]: any;\n closeView:Function;\n getSvBtnType:Function;\n}\nexport const PlotStopViewType = \"PlotStopView\";"]}
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/view/type/PlotStopView.ts"],"names":[],"mappings":";;;;;;;AAmBa,QAAA,gBAAgB,GAAG,cAAc,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { PureView } from \"../../../../common/classbase/ViewBase\";\nimport { GetRewardType } from \"../../../../common/gameplay/gamedata/GameEnumData\";\nimport { ShowType } from \"../../../Enums\";\ntype OnAdBtnOption = (optionType: ShowType, adType: \"share\" | \"video\", ret?: boolean) => void;\ntype OnAddRes = (type:string) => void;\ntype CancelAdCallback = (type: GetRewardType) => void;\n\nexport interface PlotStopViewProps {\n unlockPlotCallbackFunc: Function;\n onCancelAdCallback: CancelAdCallback;\n onAddRes:OnAddRes;\n\n}\ntype PlotStopViewBase = PureView<PlotStopViewProps>;\nexport interface PlotStopView extends PlotStopViewBase {\n [x: string]: any;\n closeView:Function;\n getSvBtnType:Function;\n}\nexport const PlotStopViewType = \"PlotStopView\";"]}
\ 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!