Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TNGD_CaveCruiser
Commits
10fce691
Commit
10fce691
authored
Oct 22, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增授权失败重新授权
新增未带entryTokenId提示游戏失效
parent
876187c6
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1305 additions
and
23 deletions
+1305
-23
UnauthorizedPanel.meta
assets/Bundles/UnauthorizedPanel.meta
+11
-0
Exit.png
assets/Bundles/UnauthorizedPanel/Exit.png
+0
-0
Exit.png.meta
assets/Bundles/UnauthorizedPanel/Exit.png.meta
+134
-0
OK.png
assets/Bundles/UnauthorizedPanel/OK.png
+0
-0
OK.png.meta
assets/Bundles/UnauthorizedPanel/OK.png.meta
+134
-0
UnauthorizedPanel.prefab
assets/Bundles/UnauthorizedPanel/UnauthorizedPanel.prefab
+818
-0
UnauthorizedPanel.prefab.meta
...s/Bundles/UnauthorizedPanel/UnauthorizedPanel.prefab.meta
+13
-0
bg.png
assets/Bundles/UnauthorizedPanel/bg.png
+0
-0
bg.png.meta
assets/Bundles/UnauthorizedPanel/bg.png.meta
+134
-0
UnauthorizedPanel.ts
assets/Scripts/Panels/UnauthorizedPanel.ts
+33
-0
UnauthorizedPanel.ts.meta
assets/Scripts/Panels/UnauthorizedPanel.ts.meta
+1
-0
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+7
-0
Start.ts
assets/Start/Start.ts
+18
-21
packages.json
profiles/v2/editor/packages.json
+1
-1
reference-image.json
profiles/v2/packages/reference-image.json
+1
-1
No files found.
assets/Bundles/UnauthorizedPanel.meta
0 → 100644
View file @
10fce691
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "6721ccc1-f0f8-4185-83b9-69a54b1a4ba5",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
assets/Bundles/UnauthorizedPanel/Exit.png
0 → 100644
View file @
10fce691
14.5 KB
assets/Bundles/UnauthorizedPanel/Exit.png.meta
0 → 100644
View file @
10fce691
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "acdcab01-5798-4672-b48b-e928846ee1a9",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "acdcab01-5798-4672-b48b-e928846ee1a9@6c48a",
"displayName": "Exit",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "acdcab01-5798-4672-b48b-e928846ee1a9",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "acdcab01-5798-4672-b48b-e928846ee1a9@f9941",
"displayName": "Exit",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 213,
"height": 71,
"rawWidth": 213,
"rawHeight": 71,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-106.5,
-35.5,
0,
106.5,
-35.5,
0,
-106.5,
35.5,
0,
106.5,
35.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
71,
213,
71,
0,
0,
213,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-106.5,
-35.5,
0
],
"maxPos": [
106.5,
35.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "acdcab01-5798-4672-b48b-e928846ee1a9@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "acdcab01-5798-4672-b48b-e928846ee1a9@6c48a"
}
}
assets/Bundles/UnauthorizedPanel/OK.png
0 → 100644
View file @
10fce691
13.3 KB
assets/Bundles/UnauthorizedPanel/OK.png.meta
0 → 100644
View file @
10fce691
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af@6c48a",
"displayName": "OK",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af@f9941",
"displayName": "OK",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 214,
"height": 71,
"rawWidth": 214,
"rawHeight": 71,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-107,
-35.5,
0,
107,
-35.5,
0,
-107,
35.5,
0,
107,
35.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
71,
214,
71,
0,
0,
214,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-107,
-35.5,
0
],
"maxPos": [
107,
35.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af@6c48a"
}
}
assets/Bundles/UnauthorizedPanel/UnauthorizedPanel.prefab
0 → 100644
View file @
10fce691
[
{
"__type__": "cc.Prefab",
"_name": "UnauthorizedPanel",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "UnauthorizedPanel",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
},
{
"__id__": 20
}
],
"_active": true,
"_components": [
{
"__id__": 30
},
{
"__id__": 32
},
{
"__id__": 34
}
],
"_prefab": {
"__id__": 36
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.5,
"y": 98,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 625,
"height": 488
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b1ggg/SgVD56bY/WpNtaX/"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "32ac08a5-bcd6-47d7-b983-ecbc691127a2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e8mCqE0cVIJ7OQPXk2ofkG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_alignFlags": 9,
"_target": null,
"_left": 62,
"_right": 0,
"_top": 470,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4yhkLmolG5blKQfLSPolR"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "4bk80cMwpDba+iTVC7f16o",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "OK",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
},
{
"__id__": 15
},
{
"__id__": 17
}
],
"_prefab": {
"__id__": 19
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 115,
"y": -1.5,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 214,
"height": 71
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a1yUjGKxFGbKp7JsVIcQZH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cdf7bb80-fbb4-4caa-8988-5ed2e402a6af@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bf0JNCZzdLSJNklkcSx2Vm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_alignFlags": 9,
"_target": null,
"_left": 383,
"_right": 0,
"_top": 778,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "19mTBELL5GKKvLDpGcazcE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 18
},
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.05,
"_zoomScale": 0.9,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "baTU3f1EBFyapidrp27i0V"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "f5kQ7+Bb5FD4Nim2Eb19Uo",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Exit",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
},
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 27
}
],
"_prefab": {
"__id__": 29
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -113.5,
"y": -1.5,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
},
"_enabled": true,
"__prefab": {
"__id__": 22
},
"_contentSize": {
"__type__": "cc.Size",
"width": 213,
"height": 71
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eeFs5A2plMhpsVXOKxvNJM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
},
"_enabled": true,
"__prefab": {
"__id__": 24
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "acdcab01-5798-4672-b48b-e928846ee1a9@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a3PR5JhwRIc5rH01SXBJcE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
},
"_enabled": true,
"__prefab": {
"__id__": 26
},
"_alignFlags": 9,
"_target": null,
"_left": 155,
"_right": 0,
"_top": 778,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1dmzAqDjRDfKHGB1sC61Rm"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
},
"_enabled": true,
"__prefab": {
"__id__": 28
},
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.05,
"_zoomScale": 0.9,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b5BkY/6cpMoqZ0GkMIV+iO"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b7Ui0fJt1IA6s2+rDbNQq2",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4fdKablv9N3KPo6a0KJYqG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 33
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cd+4wPXj1HvLk30seu5z2Q"
},
{
"__type__": "af7fbztGH9Gf6xaoMmiSuBM",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 35
},
"ok": {
"__id__": 10
},
"exit": {
"__id__": 20
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "56TG2Jua9G5rSsE+A073Ef"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/UnauthorizedPanel/UnauthorizedPanel.prefab.meta
0 → 100644
View file @
10fce691
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "58af8588-6a46-4cd2-a3e1-23f925f77095",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "UnauthorizedPanel"
}
}
assets/Bundles/UnauthorizedPanel/bg.png
0 → 100644
View file @
10fce691
74.2 KB
assets/Bundles/UnauthorizedPanel/bg.png.meta
0 → 100644
View file @
10fce691
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "32ac08a5-bcd6-47d7-b983-ecbc691127a2",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "32ac08a5-bcd6-47d7-b983-ecbc691127a2@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "32ac08a5-bcd6-47d7-b983-ecbc691127a2",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "32ac08a5-bcd6-47d7-b983-ecbc691127a2@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 625,
"height": 488,
"rawWidth": 625,
"rawHeight": 488,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-312.5,
-244,
0,
312.5,
-244,
0,
-312.5,
244,
0,
312.5,
244,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
488,
625,
488,
0,
0,
625,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-312.5,
-244,
0
],
"maxPos": [
312.5,
244,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "32ac08a5-bcd6-47d7-b983-ecbc691127a2@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "32ac08a5-bcd6-47d7-b983-ecbc691127a2@6c48a"
}
}
assets/Scripts/Panels/UnauthorizedPanel.ts
0 → 100644
View file @
10fce691
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Node
,
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
popWindow
}
from
"../AppTool"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
observer
@
ccclass
(
'UnauthorizedPanel'
)
export
default
class
UnauthorizedPanel
extends
Panel
{
static
bundle
=
"UnauthorizedPanel"
;
static
skin
=
"UnauthorizedPanel"
;
@
property
(
Node
)
ok
:
Node
=
null
;
@
property
(
Node
)
exit
:
Node
=
null
;
onLoad
()
{
this
.
ok
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickOk
);
this
.
exit
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickExit
);
}
clickOk
=
()
=>
{
this
.
hidePanel
();
this
.
data
?.
getAuthCode
?.();
}
clickExit
=
()
=>
{
popWindow
();
}
}
assets/Scripts/Panels/UnauthorizedPanel.ts.meta
0 → 100644
View file @
10fce691
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"af7fbced-187f-467f-ac5a-a0c9a24ae04c","files":[],"subMetas":{},"userData":{}}
assets/Scripts/Scenes/HomeScene.ts
View file @
10fce691
...
...
@@ -10,6 +10,7 @@ import RankPanel from "../Panels/RankPanel";
import
{
UIMgr
}
from
"../../Module/UIMgr"
;
import
BackPanel
from
"../Panels/BackPanel"
;
import
{
GuideGame
}
from
"./MainGame/GuideGame"
;
import
ErrorPanel
from
"../Panels/ErrorPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -50,6 +51,12 @@ export class HomeScene extends Scene {
clickStart
=
_asyncThrottle
(
async
()
=>
{
if
(
!
store
.
miniAppQuery
.
entryTokenId
)
{
showPanel
(
ErrorPanel
,
{
code
:
400001
});
return
;
}
const
{
alreadyGuideSteps
,
allGuideSteps
}
=
store
.
homeInfo
;
// 改成不记录步数
...
...
assets/Start/Start.ts
View file @
10fce691
import
{
_decorator
,
assetManager
,
game
,
Component
,
Label
,
Node
,
Prefab
,
profiler
,
ProgressBar
,
resources
,
input
,
Input
,
}
from
'cc'
;
import
{
_decorator
,
assetManager
,
Component
,
Label
,
Node
,
Prefab
,
ProgressBar
,
resources
,
}
from
'cc'
;
import
{
PREVIEW
}
from
'cc/env'
;
import
{
UIMgr
}
from
"../Module/UIMgr"
;
import
{
changeScene
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
changeScene
,
show
Panel
,
show
Toast
}
from
"db://assets/Module/UIFast"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
{
sendWebNet
,
WebNetName
}
from
"../Scripts/Utils/WebNet/WebNet"
;
import
{
getUrlParams
}
from
"../Scripts/Utils/WebNet/web/webTools"
;
...
...
@@ -21,8 +9,9 @@ import store from "../Scripts/store/store";
import
{
AudioMgr
}
from
"../core_tgx/base/AudioMgr"
;
import
{
MusicBtn
}
from
"../Component/MusicBtn/MusicBtn"
;
import
{
gameId
,
popWindow
}
from
"../Scripts/AppTool"
;
import
UnauthorizedPanel
from
"../Scripts/Panels/UnauthorizedPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
const
_FPS
=
61
;
...
...
@@ -65,14 +54,22 @@ export class Start extends Component {
async
getAuthCode
()
{
return
new
Promise
((
resolve
)
=>
{
window
[
"my"
].
onMessage
=
(
e
:
any
=
{})
=>
{
const
{
authCode
,
type
}
=
e
;
const
{
authCode
,
type
}
=
e
;
if
(
type
==
"getAuthCode"
)
{
resolve
(
authCode
);
if
(
!
authCode
)
{
showPanel
(
UnauthorizedPanel
,
{
getAuthCode
:
async
()
=>
{
resolve
(
await
this
.
getAuthCode
());
},
});
}
else
{
resolve
(
authCode
);
}
}
}
try
{
window
[
"my"
].
postMessage
({
type
:
"getAuthCode"
});
window
[
"my"
].
postMessage
({
type
:
"getAuthCode"
});
}
catch
(
e
)
{
console
.
error
(
e
);
}
...
...
@@ -85,9 +82,9 @@ export class Start extends Component {
if
(
dbTest
)
{
const
{
appId
,
uid
,
fullName
}
=
JSON
.
parse
(
dbTest
);
const
{
appId
,
uid
,
fullName
}
=
JSON
.
parse
(
dbTest
);
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
dbTestLogin
,
{
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
dbTestLogin
,
{
appId
,
uid
,
fullName
,
...
...
@@ -116,7 +113,7 @@ export class Start extends Component {
return
;
}
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
autologin
,
{
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
autologin
,
{
authCode
:
authCode
,
appId
:
gameId
,
});
...
...
profiles/v2/editor/packages.json
View file @
10fce691
...
...
@@ -9,7 +9,7 @@
"8"
:
{
"3
\\
extension"
:
{
"name"
:
"extension"
,
"time"
:
1729
498537719
"time"
:
1729
565607675
}
}
}
...
...
profiles/v2/packages/reference-image.json
View file @
10fce691
...
...
@@ -3,7 +3,7 @@
"config"
:
{
"images"
:
[],
"sceneUUID"
:
{},
"scene"
:
"
7b5de2a0-8504-46ba-9019-37a3548ce8e1
"
"scene"
:
"
58af8588-6a46-4cd2-a3e1-23f925f77095
"
},
"show"
:
false
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment