Commit b8d0c25b b8d0c25b5a65d65ae64aba33850eff45c7d2e7cd by jinwawa

fix sceneExplore problem

1 parent 99177252
Showing 36 changed files with 4868 additions and 1168 deletions
......@@ -41,8 +41,8 @@
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.1,
"y": 0.1,
"x": 0.3763671875,
"y": 0.3763671875,
"z": 1
},
"_quat": {
......@@ -72,16 +72,34 @@
},
{
"__id__": 8
},
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 22
},
{
"__id__": 24
},
{
"__id__": 43
},
{
"__id__": 47
}
],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 10
"__id__": 49
},
{
"__id__": 11
"__id__": 50
}
],
"_prefab": null,
......@@ -95,8 +113,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -105,8 +123,8 @@
},
"_position": {
"__type__": "cc.Vec3",
"x": 480,
"y": 320,
"x": 640,
"y": 360,
"z": 0
},
"_scale": {
......@@ -316,22 +334,92 @@
"__uuid__": "e0232f2e-c019-4cec-ac64-1cdf42ad3792"
}
],
"playOnLoad": true,
"playOnLoad": false,
"_id": "c6mMiohwNG6pU+M0q1YOzM"
},
{
"__type__": "cc.Node",
"_name": "Hero",
"_name": "Progress",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 9
},
{
"__id__": 14
},
{
"__id__": 16
}
],
"_active": true,
"_level": 1,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 415,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 280,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.6,
"y": 0.6,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "2eAATV56JP56vIk+zlekuq"
},
{
"__type__": "cc.Node",
"_name": "scrollViewBg",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 10
}
],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 9
"__id__": 13
}
],
"_prefab": null,
......@@ -345,8 +433,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 800,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -355,8 +443,8 @@
},
"_position": {
"__type__": "cc.Vec3",
"x": -229,
"y": -220,
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
......@@ -377,84 +465,1763 @@
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "8cq0Mn63pN2YDLO5ii37LQ"
"_id": "59YkTwsl1KpKQhyE7R6uK/"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.Node",
"_name": "scrollViewBar",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [],
"_active": true,
"_level": 6,
"_components": [
{
"__id__": 11
},
{
"__id__": 12
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -400,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "45kW/w/kNAraG18mHtlBos"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 10
},
"_enabled": true,
"_armatureName": "armatureName",
"_animationName": "Animation1",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "e3ad9b78-ae63-4929-81c2-5781ca616f08#cdd960ea-e3ab-4991-a37d-3f8f88243de7",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "e3ad9b78-ae63-4929-81c2-5781ca616f08"
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "786069cb-0eaf-4cb1-9a45-38df6c47c36d"
},
"_N$dragonAtlasAsset": {
"__uuid__": "cdd960ea-e3ab-4991-a37d-3f8f88243de7"
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "69fvvqS0tJHpuXMcwVczRW"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "2bWRYWIJdMBY+wH3nRpcHE"
},
{
"__type__": "cc.Canvas",
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
"__id__": 10
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_fitWidth": false,
"_fitHeight": true,
"_id": "72z44+175OfaMOhtsD1Huo"
"alignMode": 2,
"_target": null,
"_alignFlags": 8,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "f8sYgmM9FOOKoOmw4wJpSI"
},
{
"__type__": "46717GP6RtOGobAYIAnkxCA",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
"__id__": 9
},
"_enabled": true,
"_cLog": null,
"_cApplication": null,
"_cFocus": null,
"_aFocusTargets": [],
"_fiCurrentFocus": null,
"_iSceneStatus": 0,
"_fFocusScaleFactor": 1.06,
"_bIsFocusInit": false,
"_oSceneContext": null,
"_oNextSceneParameter": null,
"_compPlayer": null,
"_aTouchContext": [],
"_defaultBackScene": null,
"_oFocusScaleFactorInfo": null,
"holdClick": false,
"_bShowExitBox": false,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f8a583a9-3227-402e-badd-2c187cd3c0ae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "32Niy7XUdAM6pQ8aPBgqod"
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 64,
"height": 32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 274.2,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "a7kDVmRDVLfaQlEu+UMCj6"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "进度",
"_N$string": "进度",
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "6ackMb7bJMcJ0kJcDsIAD1"
},
{
"__type__": "cc.Node",
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 361.1,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "77BKNz5UROHIL9383NaoEt"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "0%",
"_N$string": "0%",
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 0,
"_id": "93coTaINxOdJTfuaZKF6Yb"
},
{
"__type__": "cc.Node",
"_name": "Hero",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -229,
"y": -220,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "8cq0Mn63pN2YDLO5ii37LQ"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_armatureName": "armatureName",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "12fcf88d-19e6-4c0e-a0e9-90493cbd8988#3348c645-59e4-4bf2-b5ac-02172ce7f044",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "12fcf88d-19e6-4c0e-a0e9-90493cbd8988"
},
"_N$dragonAtlasAsset": {
"__uuid__": "3348c645-59e4-4bf2-b5ac-02172ce7f044"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "69fvvqS0tJHpuXMcwVczRW"
},
{
"__type__": "cc.Node",
"_name": "Next",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 21
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 74,
"height": 77
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 480,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 180,
"_rotationY": 180,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": -1,
"w": 6.123233995736766e-17
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "c6I/k01aNOFJcS718x8VIy"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "71e82de4-bc43-4a5b-be8e-9317edef0b71"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "f7rbZH06RKU4aqdbBKTzwn"
},
{
"__type__": "cc.Node",
"_name": "BackAScene",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 23
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 53,
"height": 47
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -561,
"y": 284,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "1aRm1a2Q1AKKSEqy4u9ytF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e43d8224-1726-467f-a939-8ea9c8efc8bc"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "83aOx9E9NJTreXPfGRohBc"
},
{
"__type__": "cc.Node",
"_name": "PopWindow",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 25
},
{
"__id__": 27
},
{
"__id__": 29
},
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
},
{
"__id__": 37
}
],
"_active": false,
"_level": 1,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "c7Xmn7eARMt4UltaDNKcvH"
},
{
"__type__": "cc.Node",
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "f5sv/kwXVAm5Nzd+XAK33D"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "746CeGd2JBhbikBk8l+nQV"
},
{
"__type__": "cc.Node",
"_name": "Bg",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "68SDdyglFLP4YQohOW7dXo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "260d622d-3a11-4350-8775-4a225ae5a348"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "12tHTZ6GJORqw1oAmTp6Nl"
},
{
"__type__": "cc.Node",
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -256,
"y": 24,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "f5U5j1IqRD1qHnO7wjRIZn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "30eaee90-b002-4d6c-a1c1-f252176a5890"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "edRaQ9AYBLkJeT10tFNuHx"
},
{
"__type__": "cc.Node",
"_name": "PicName",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 32
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"height": 32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -258,
"y": -121,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "59E9HTcN1KxYbK2Tj+uLGw"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "寂寞的蜥蜴",
"_N$string": "寂寞的蜥蜴",
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "39SFV3HTRPEpggFj6I900q"
},
{
"__type__": "cc.Node",
"_name": "Title",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 480,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 121,
"y": 120,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "aaMbys6S5BBaobzD59dr/I"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "果然大家都不喜欢我,555(哭的更大声了)",
"_N$string": "果然大家都不喜欢我,555(哭的更大声了)",
"_fontSize": 30,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 0,
"_id": "a0GMu3WJhD9q6zPABtY30+"
},
{
"__type__": "cc.Node",
"_name": "Close",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 36
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -344,
"y": 145,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "9dgZAKFSlK3LqbaVAMXndB"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "59262b31-5913-43a6-8075-23de6b2f9a06"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "72ym1/1MRBzZ90TKfF/Yha"
},
{
"__type__": "cc.Node",
"_name": "DialogListArea",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [
{
"__id__": 38
}
],
"_active": true,
"_level": 2,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 480,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 123,
"y": -41,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "deZ9qULilOp7oycBTO4qa4"
},
{
"__type__": "cc.Node",
"_name": "DialogListWrapper",
"_objFlags": 0,
"_parent": {
"__id__": 37
},
"_children": [
{
"__id__": 39
}
],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 41
},
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 480,
"height": 250
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 105,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "f1Vk5G37dO4atwUXW/fvMq"
},
{
"__type__": "cc.Node",
"_name": "DialogList",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 40
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": -10,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "45wHhKEnlOZpegcni6He98"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 10,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "cb5ADq2nBJR6liQWIVFJQ9"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 1,
"_N$inverted": false,
"_id": "0acR/V7KRCY6FMTMTFBVHO"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 10,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "63joEdR3pIBZNqqLaGR2n1"
},
{
"__type__": "cc.Node",
"_name": "Remind",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 44
}
],
"_active": false,
"_level": 1,
"_components": [
{
"__id__": 46
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 233,
"g": 243,
"b": 1,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720.09,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 8,
"y": 152,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "baQVAWnrxC87MvpnUD0QRo"
},
{
"__type__": "cc.Node",
"_name": "Box",
"_objFlags": 0,
"_parent": {
"__id__": 43
},
"_children": [],
"_active": false,
"_level": 2,
"_components": [
{
"__id__": 45
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 196,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 67,
"y": -356,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "3dvz2swnNDh7XdDc0qQOeN"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3f55e57f-58ff-4674-80a1-4f3cb937762c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "f0ckbXjw5OMILRs/MrpcMA"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "找到了捷径,进度增加10%",
"_N$string": "找到了捷径,进度增加10%",
"_fontSize": 60,
"_lineHeight": 60,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d1ETaUEJRJ4I3tHGzcvWJd"
},
{
"__type__": "cc.Node",
"_name": "Animal",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_level": 1,
"_components": [
{
"__id__": 48
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 313,
"y": -169,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "07HTUgAc5AQIy9uCvo8OfQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "30eaee90-b002-4d6c-a1c1-f252176a5890"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "e5YKxIZgdC9aB8m3CSkwWD"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": false,
"_fitHeight": true,
"_id": "72z44+175OfaMOhtsD1Huo"
},
{
"__type__": "46717GP6RtOGobAYIAnkxCA",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_cLog": null,
"_cApplication": null,
"_cFocus": null,
"_aFocusTargets": [],
"_fiCurrentFocus": null,
"_iSceneStatus": 0,
"_fFocusScaleFactor": 1.06,
"_bIsFocusInit": false,
"_oSceneContext": null,
"_oNextSceneParameter": null,
"_compPlayer": null,
"_aTouchContext": [],
"_defaultBackScene": null,
"_oFocusScaleFactorInfo": null,
"holdClick": false,
"_bShowExitBox": false,
"PFB_TYPE": {
"__uuid__": "cbd54b30-9e7f-422c-b742-9b434a12b6da"
},
"PFB_POP": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"_id": "01a+mE585Ho7WhSVhlk2o5"
}
]
\ No newline at end of file
......
This diff could not be displayed because it is too large.
......@@ -6,37 +6,304 @@ var TVCanvas = require('TVCanvas');
var TVScrollParameter = require('TVScrollParameter');
var ListView = require('ListView');
var ListCell = require('ListCell');
var xmlToJSON=require('xmlToJSON');
var xmlToJSON = require('xmlToJSON');
cc.Class({
extends: TVCanvas,
properties: {
PFB_TYPE: {
default: null,
type: cc.Prefab,
},
PFB_POP: {
default: null,
type: cc.Prefab,
},
},
start: function () {
this.bg_long.getComponent(cc.Animation).play(); //播放动画
// this.schedule(()=>{
// this.bg_long.getComponent(cc.Animation).pause(); //暂停播放动画
// this.hero.getComponent(dragonBones.ArmatureDisplay)._armature.animation.stop();
// },5);
this.scheduleOnce(() => { //指定0让回调函数在下一帧立即执行(推荐位初始化图片后,需等待下一帧操作)
this.bg_long.getComponent(cc.Animation).pause();
}, 0);
},
onLoad: function () {
this._super();
var self=this;
//动态加载背景图,需指定类型(需要拼接图片),指定尺寸(目前使用的是7280*720)
this._aFocusTargets[1] = []; //弹窗焦点
this._iSceneStatus = 0; //焦点层级
this._remindString = this.node.getChildByName("Remind").getComponent(cc.Label);
this._progressString = cc.find("Progress/progress", this.node).getComponent(cc.Label);
this._progressBg = cc.find("Progress/scrollViewBg", this.node);
this._progressBar = cc.find("Progress/scrollViewBg/scrollViewBar", this.node);
this.totalTask = 0; //任务进度,根据配置表,每个
this.bg_long = this.node.getChildByName("Bg_long");
// this.bg_long.getComponent(cc.Animation).play(); //播放动画
// this.bg_long.getComponent(cc.Animation).stop(); //暂停播放动画
this.hero = this.node.getChildByName("Hero");
// this.hero.getComponent(dragonBones.ArmatureDisplay).playAnimation();
// this.hero.getComponent(dragonBones.ArmatureDisplay)._armature.animation.stop();
var self = this;
//动态加载背景图,需指定类型(需要拼接图片),指定尺寸(目前使用的是7280*720)
cc.loader.loadRes("game/explore_plus", cc.Texture2D, function (err, texture) {
self.node.getChildByName("Bg_long").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
self.bg_long.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
});
//显示向右的动作指引
let actionUp = cc.moveTo(0.3, cc.v2(480, 0));
let actionDown = cc.moveTo(0.3, cc.v2(500, 0));
this.node.getChildByName("Next").runAction(cc.repeatForever(cc.sequence(actionUp, actionDown)));
//分类框框
this._nodeDialogListWrapper = cc.find("PopWindow/DialogListArea/DialogListWrapper", this.node);
this._nodeDialogList = cc.find("DialogList", this._nodeDialogListWrapper);
// this._nodeDialogList.addComponent(TVScrollParameter);
cc.loader.loadRes("config/explore_config", function (err, str) {
var x2js = new xmlToJSON();
self._exploreConfig = x2js.xml_str2json(str); //解析xml
cc.log("解析后xml------------>" + JSON.stringify(self._exploreConfig));
// cc.log("解析后xml------------>"+result.root.explore[0]["_choice2"]);
});
cc.loader.loadRes("config/explore_config",function(err,str){
cc.log("源xml--------------->"+str);
// var result=xmlToJSON.parseString(str);
var x2js = new xmlToJSON();
var result=x2js.xml_str2json(str);
cc.log("解析后xml------------>"+JSON.stringify(result));
cc.log("解析后xml------------>"+result.root.explore[0]["_choice2"]);
// cc.log("解析后xml------------>"+result.root[0].explore[0]["_attr"].name["_value"]);
})
this.initFocus();
},
initFocus: function () {
var fiNext = this.node.getChildByName("Next").addComponent(FocusInfo);//
this._aFocusTargets[0]['to_next'] = this.node.getChildByName("Next");
fiNext.init(
null, true
);
var fiClose = this.node.getChildByName("BackAScene").addComponent(FocusInfo);//
this._aFocusTargets[0]['to_back_scene'] = this.node.getChildByName("BackAScene");
fiClose.init(
'', true
);
var fiDiloaClose = cc.find("PopWindow/Close",this.node).addComponent(FocusInfo);//
this._aFocusTargets[1]['to_close_popwindow'] = cc.find("PopWindow/Close",this.node);
fiDiloaClose.init(
'{"click": [{"action": "Close"}]}', true
);
var nodeFocus = new cc.Node('nodeFocus');
this.node.addChild(nodeFocus, 10);
this._cFocus = this.node.getChildByName('nodeFocus').addComponent(TVFocus);
this._cFocus.init('focusContainer', this,
fiNext.getComponent(FocusInfo),
Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, 6, 4, 1.0);
// this._cFocus.hide(); //所有焦点都是隐藏的
},
keyDownDirection: function (Direct) {
var fiFocusTarget = null;
var fiCurrentFocus = this._fiCurrentFocus;
var oScrollParameter = null;
fiFocusTarget = this._cFocus.findTarget(fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Direct);
fiFocusTarget = this.checkFocusTarget(fiFocusTarget);
if (!fiFocusTarget) { return; }
// this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
// this.scheduleOnce(() => { //指定0让回调函数在下一帧立即执行(推荐位初始化图片后,需等待下一帧操作)
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
// }, 0.5);
},
update:function(){
// cc.log("背景图片-----------------》"+this.node.getChildByName("Bg_long").x);
checkFocusTarget: function (fiFocusTarget) {
return fiFocusTarget;
},
onKeyDown: function (event) {
switch (event.keyCode) {
case cc.macro.KEY.up:
case Common.ANDROID_KEY.up:
this.keyDownDirection(Common.MOVE_DIRECTION_UP);
break;
case cc.macro.KEY.right:
case Common.ANDROID_KEY.right:
this.keyDownDirection(Common.MOVE_DIRECTION_RIGHT);
break;
case cc.macro.KEY.down:
case Common.ANDROID_KEY.down:
this.keyDownDirection(Common.MOVE_DIRECTION_DOWN);
break;
case cc.macro.KEY.left:
case Common.ANDROID_KEY.left:
this.keyDownDirection(Common.MOVE_DIRECTION_LEFT);
break;
case cc.macro.KEY.enter:
case cc.macro.KEY.space:
case Common.ANDROID_KEY.enter:
if (0 == this._fiCurrentFocus.node.getName().indexOf('Next')) {
this.nextTask();
break;
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('BackAScene')){
this.backAScene();
}
this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
break;
case cc.macro.KEY.backspace:
case Common.ANDROID_KEY.back:
this.backAScene();
break;
}
},
/**
* 点击触发下一个事件
*/
nextTask: function () {
// cc.log("播放事件");
if (this.totalTask == 5) {
this._remindString.string = "恭喜,您已经通关!";
this._remindString.node.active = true;
this.scheduleOnce(() => {
this._remindString.node.active = false;
}, 3);
return ;
}
this.bg_long.getComponent(cc.Animation).resume(); //播放动画
this.hero.getComponent(dragonBones.ArmatureDisplay).playAnimation();
this.scheduleOnce(() => {
this.bg_long.getComponent(cc.Animation).pause(); //暂停播放动画
this.hero.getComponent(dragonBones.ArmatureDisplay)._armature.animation.stop();
let randomNum = this.random(1, 7);
cc.log("随机数-------->" + randomNum);
var exploreObj = this._exploreConfig.root.explore[randomNum - 1];
// cc.log("对象----->" + JSON.stringify(exploreObj));
var type = exploreObj["_type"];
if (type == 1) { //选择事件,需要用户进行对话框选择,进入相应的功能
this.totalTask += 1;
this.node.getChildByName("Animal").active = true;
this._nodeDialogList.removeAllChildren(); //先清理
for (let i = 0; i < 2; i++) {
let nodeDialogCell = cc.instantiate(this.PFB_TYPE);
nodeDialogCell.y = -nodeDialogCell.height / 2 - i * (nodeDialogCell.height + 20);
this._nodeDialogList.addChild(nodeDialogCell, 10, "DialogCell_" + i);
//准备焦点坐标
let fiDialogBlock = nodeDialogCell.addComponent(FocusInfo);
fiDialogBlock.init('{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneProgram"}}]}',
true, null, null, 1.0);
this._aFocusTargets[1]['dialog_list_cell_' + i] = nodeDialogCell;
if (i == 0) {
//让小动物显示1秒再弹窗
this.scheduleOnce(() => {
this._iSceneStatus = 1;
var fiFocusTarget = this._nodeDialogList.getChildByName("DialogCell_0").getComponent(FocusInfo);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_LEFT, null, null);
this.node.getChildByName("PopWindow").active = true;
this.node.getChildByName("PopWindow").zIndex = 10;
this.node.getChildByName("Next").zIndex = 0;
}, 1);
}
}
} else if (type == 2) { //奖励事件,触发后直接获得奖励
this.totalTask += 1;
this._remindString.string = "恭喜您发现了宝箱!";
this._remindString.node.active = true;
this._remindString.node.getChildByName("Box").active=true;
this.scheduleOnce(() => {
this._remindString.node.getChildByName("Box").active=false;
this._remindString.node.active = false;
}, 2);
let popItem=cc.instantiate(this.PFB_POP);
this.node.addChild(popItem,100);
this.node.anchorX=0; //解决飘窗显示位置不在屏幕中央的问题
this.node.anchorY=0;
function fadeOutBack(){
popItem.destroy(); //用完就销毁
cc.log("处理飘窗彻底消失后的逻辑。。。。。。");
};
let fadeOut=cc.fadeOut(1.0);
let moveBy=cc.moveBy(1,cc.v2(0,200));
popItem.runAction(moveBy);
popItem.runAction(cc.sequence(fadeOut,cc.callFunc(fadeOutBack)));
} else if (type == 3) { //倒退事件,触发后地图探索进度减少
this.totalTask += 1;
this._remindString.string = "找到了捷径,进度增加20%";
this._remindString.node.active = true;
this.scheduleOnce(() => {
this._remindString.node.active = false;
}, 2);
} else if (type == 4) { //前进事件,触发后地图探索进度增加
if(this.totalTask>0) this.totalTask -= 1;
this._remindString.string = "迷路了,进度减少20%";
this._remindString.node.active = true;
this.scheduleOnce(() => {
this._remindString.node.active = false;
}, 2);
}
cc.log("----------------" + this.totalTask);
//进度
if (this.totalTask > 5) {
this._remindString.string = "恭喜,您已经通关!";
this._remindString.node.active = true;
this.scheduleOnce(() => {
this._remindString.node.active = false;
}, 2);
}
else if (this.totalTask >= 0) {
this._progressString.string = 20 * this.totalTask + "%";
this._progressBar.width = 20 * this.totalTask / 100 * 800;
cc.log("进度-----》" + this._progressBar.width);
}
}, 5);
},
/**
产生随机整数,包含下限值,包括上限值
@param {Number} lower 下限
@param {Number} upper 上限
@return {Number} 返回在下限到上限之间的一个随机整数
*/
random: function (lower, upper) {
return Math.floor(Math.random() * (upper - lower + 1)) + lower;
},
doCurrentFocusTVLinkAction: function (strAction) {
let strTVLink = this._fiCurrentFocus.getTVLink();
var joTVLink = null;
try {
joTVLink = JSON.parse(strTVLink);
let jaOperationList = joTVLink.click;
for (let i = 0; i < jaOperationList.length; i++) {
switch (jaOperationList[i].action) {
case 'Close':
this.node.getChildByName("Animal").active = false;
this.node.getChildByName("PopWindow").active = false;
this._iSceneStatus = 0;
var fiFocusTarget = this.node.getChildByName("Next").getComponent(FocusInfo);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_RIGHT, null, null);
break;
default:
this.doTVLinkAction(jaOperationList[i]);
break;
}
}
} catch (error) {
cc.log("runTVLinkAction Exception..." + error);
}
},
});
......
//游戏探索界面
//ListView在显示只有1列的列表时,加载不到下一页信息,待排查!
var Common = require('Common');
var Network = require('Network');
var TVFocus = require('TVFocus');
......@@ -14,32 +15,38 @@ cc.Class({
extends: TVCanvas,
properties: {
activitySprite:cc.Sprite,
roleSprite:cc.Sprite,
taskSprite:cc.Sprite,
achievementSprite:cc.Sprite,
shopSprite:cc.Sprite,
closeTaskSprite:cc.Sprite,
closeAchievementSprite:cc.Sprite,
closeActivitySprite:cc.Sprite,
roleAnim:dragonBones.ArmatureDisplay,
pointer:cc.Sprite, //大转盘指针
pointerButton:cc.Node, //大转盘按钮
activitySprite: cc.Sprite,
roleSprite: cc.Sprite,
taskSprite: cc.Sprite,
achievementSprite: cc.Sprite,
shopSprite: cc.Sprite,
closeTaskSprite: cc.Sprite,
closeAchievementSprite: cc.Sprite,
closeActivitySprite: cc.Sprite,
roleAnim: dragonBones.ArmatureDisplay,
pointer: cc.Sprite, //大转盘指针
pointerButton: cc.Sprite, //大转盘按钮
PFB_GAME_TASKITEM: {
default: null,
type: cc.Prefab
},
PFB_POP: {
default: null,
type: cc.Prefab
},
},
onLoad:function(){
onLoad: function () {
this._super();
this._aFocusTargets[1] = []; //任务弹窗焦点
this._aFocusTargets[2] = []; //成就弹窗焦点
this._aFocusTargets[3] = []; //活动大转盘弹窗
this._iSceneStatus=0; //焦点层级
this._iSceneStatus = 0; //焦点层级
this.roleAnim.node.zIndex = 40;
this.initFocus();
cc.find("bgScrollView",this.node).getComponent(cc.ScrollView).scrollToLeft();
cc.find("bgScrollView", this.node).getComponent(cc.ScrollView).scrollToLeft();
//右分类框框
this._nodeCategoryList = cc.find("task/task_panel/CategoryList", this.node);
......@@ -49,11 +56,11 @@ cc.Class({
0, 0, 0, 0, //margin
1, 1,
function () {
this.getCategoryList();
this.getTaskCategoryList();
}
);
this._nodeAchievementList=cc.find("achievement/task_panel/CategoryList",this.node);
this._nodeAchievementList = cc.find("achievement/task_panel/CategoryList", this.node);
let lvNodeAchievementList = this._nodeAchievementList.addComponent(ListView);
lvNodeAchievementList.init(this, 2, 1, 2, 3, 'GameAchievementCell',
-140, 80,//起始位置
......@@ -66,17 +73,12 @@ cc.Class({
},
getCategoryList: function () {
var self = this;
getTaskCategoryList: function () {
let lvCategoryList = this._nodeCategoryList.getComponent(ListView);
let oCategoryRequestParameters = {
"view": "json",
"collectionId": this._iDefaultCollectionId,
// "appId": this._aTypeAppId[this._oSceneContext._iCurrentTypeIndex],
"sortByCollection": 1,
"sortField": "update_time",
"sortDirection": "desc"
};
//请求列表
let oMediaParas = {};
oMediaParas.categoryId = 9;//
oMediaParas.appId = "";
let iStart1 = 0;
if (null != this._oSceneContext.categoryRecordIndexOfFirstCell) {
iStart1 = this._oSceneContext.categoryRecordIndexOfFirstCell;
......@@ -84,10 +86,10 @@ cc.Class({
lvCategoryList.setDataSource(
"GET",
Common.TOPDRAW_API_SERVER_EDU + "User/ListMediaByCollection",
oCategoryRequestParameters,
Common.TOPDRAW_API_SERVER_EDU + "Media/List",
oMediaParas,
iStart1, (lvCategoryList.getShowCellRows() + lvCategoryList.getAlphaCellRows()) * lvCategoryList.getCellCountEachRow(),
"", ""
null, null
);
lvCategoryList.loadData(
......@@ -98,37 +100,31 @@ cc.Class({
// } else {
// cc.find('BlankIcon', this.node).opacity = 0
// }
strResponse = GameLobbyCategoryJson.gameCategory; //暂时采用假数据
lvCategoryList.renderInitData(JSON.stringify(strResponse)); //将假数据转成字符串在给过去
this._bIsCategoryListDataInit = true;
this._oSceneContext.categoryRecordIndexOfFirstCell = lvCategoryList.getRecordIndexOfFirstCellInPage();
// strResponse = GameLobbyCategoryJson.gameCategory; //暂时采用假数据
// lvCategoryList.renderInitData(JSON.stringify(strResponse)); //将假数据转成字符串在给过去
// this._bIsCategoryListDataInit = true;
// this._oSceneContext.categoryRecordIndexOfFirstCell = lvCategoryList.getRecordIndexOfFirstCellInPage();
// this.checkDataReadyAndInitFocus();
// lvCategoryList.renderInitData(strResponse, function () {
// this._bIsCategoryListDataInit = true;
// this._oSceneContext.categoryRecordIndexOfFirstCell = lvCategoryList.getRecordIndexOfFirstCellInPage();
// this.checkDataReadyAndInitFocus();
// // this.changeEditorStatus();
// });
lvCategoryList.renderInitData(strResponse, function () {
this._bIsCategoryListDataInit = true;
this._oSceneContext.categoryRecordIndexOfFirstCell = lvCategoryList.getRecordIndexOfFirstCellInPage();
// this.checkDataReadyAndInitFocus();
});
},
null,
this
);
var self = this;
this._iShowCellRows = 2;
this._iCellCountEachRow = 3;
},
getAchievementList:function(){
getAchievementList: function () {
let lvCategoryList = this._nodeAchievementList.getComponent(ListView);
let oCategoryRequestParameters = {
"view": "json",
"name": "starIndexnew",
"sortField": "left",
"sortDirection": "desc",
};
//请求列表
let oMediaParas = {};
oMediaParas.categoryId = 9;//
oMediaParas.appId = "";
let iStart = 0;
// //滚行:上翻-4,下翻+4,
// //滚页:上翻-8,下翻+8
......@@ -142,16 +138,16 @@ cc.Class({
lvCategoryList.setDataSource(
"GET",
Common.TOPDRAW_API_SERVER + "Promotion/ListItemByName",
oCategoryRequestParameters,
Common.TOPDRAW_API_SERVER_EDU + "Media/List",
oMediaParas,
iStart, (lvCategoryList.getShowCellRows() + lvCategoryList.getAlphaCellRows()) * lvCategoryList.getCellCountEachRow(),
"left", "desc"
null, null
);
lvCategoryList.loadData(
function (strResponse) {
strResponse = GameLobbyCategoryJson.gameCategory; //暂时采用假数据
// strResponse = GameLobbyCategoryJson.gameCategory; //暂时采用假数据
// cc.log("网络列表:" + JSON.stringify(strResponse));
lvCategoryList.renderInitData(JSON.stringify(strResponse)); //将假数据转成字符串在给过去
lvCategoryList.renderInitData(strResponse); //将假数据转成字符串在给过去
this._bIsCategoryListDataInit = true;
this._oSceneContext.categoryRecordIndexOfFirstCell = lvCategoryList.getRecordIndexOfFirstCellInPage();
// this.checkDataReadyAndInitFocus();
......@@ -162,7 +158,17 @@ cc.Class({
},
initFocus: function () {
//弄各个小岛焦点
for (let i = 1; i < 6; i++) {
let fiIslandSprite = cc.find("bgScrollView/viewport/content/island_" + i, this.node).addComponent(FocusInfo);//
this._aFocusTargets[0]['to_island' + i] = cc.find("bgScrollView/viewport/content/island_" + i, this.node);
fiIslandSprite.init(
'{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneExploreNew"}}]}',
true, null, null, 1
);
}
var fiActivitySprite = this.activitySprite.addComponent(FocusInfo);//
this._aFocusTargets[0]['to_activity'] = this.activitySprite;
fiActivitySprite.init(
......@@ -216,7 +222,7 @@ cc.Class({
fiCloseActivitySprite.init(
null, true
);
var nodeFocus = new cc.Node('nodeFocus');
this.node.addChild(nodeFocus, 10);
......@@ -235,7 +241,24 @@ cc.Class({
fiFocusTarget = this._cFocus.findTarget(fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Direct);
fiFocusTarget = this.checkFocusTarget(fiFocusTarget);
if (!fiFocusTarget) { return; }
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
//小岛之间跳转需要处理ScrollView
if (0 == fiFocusTarget.node.name.indexOf("island_")) {
this._cFocus.hide();
} else {
this._cFocus.show();
}
if (0 == this._fiCurrentFocus.node.name.indexOf("island_") && 0 == fiFocusTarget.node.name.indexOf("island_")) {
let index = fiFocusTarget.node.name.replace("island_", "");
this.node.getChildByName("bgScrollView").getComponent(cc.ScrollView).scrollToPercentHorizontal(0.01 * 25 * (index - 1), 0.1);
// this._cFocus.hide();
this.scheduleOnce(() => {
// this._cFocus.show();
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
}, 0.1);
} else {
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
}
},
checkFocusTarget: function (fiFocusTarget) {
......@@ -243,11 +266,30 @@ cc.Class({
},
onKeyDown: function (event) {
this._super(event);
this._super(event);
switch (event.keyCode) {
case cc.macro.KEY.up:
case Common.ANDROID_KEY.up:
if (this._bIsSongListMoving) {
return;
}
if (0 == this._fiCurrentFocus.node.getName().indexOf('GameTaskItemCell')) {
var index = parseInt(this._fiCurrentFocus.node.getName().replace('GameTaskItemCell', ''));
// cc.log("当前时多少条目:"+index);
let lvCategoryList = this._nodeCategoryList.getComponent(ListView);
if (lvCategoryList.scrollARowUp(index)) {
return;
}
}
if (0 == this._fiCurrentFocus.node.getName().indexOf('StarListCell')) {
var index = parseInt(this._fiCurrentFocus.node.getName().replace('StarListCell', ''));
// cc.log("当前时多少条目:"+index);
let lvCategoryList = this._nodeAchievementList.getComponent(ListView);
if (lvCategoryList.scrollARowUp(index)) {
return;
}
}
this.keyDownDirection(Common.MOVE_DIRECTION_UP);
break;
case cc.macro.KEY.right:
......@@ -256,7 +298,28 @@ cc.Class({
break;
case cc.macro.KEY.down:
case Common.ANDROID_KEY.down:
this.keyDownDirection(Common.MOVE_DIRECTION_DOWN);
if (this._bIsSongListMoving) {
return;
}
if (0 == this._fiCurrentFocus.node.getName().indexOf('GameTaskItemCell')) {
var index = parseInt(this._fiCurrentFocus.node.getName().replace('GameTaskItemCell', ''));
// cc.log("当前时多少条目:"+index);
let lvCategoryList = this._nodeCategoryList.getComponent(ListView);
lvCategoryList.setStatusInScene(this._iSceneStatus);
if (lvCategoryList.scrollARowDown(null, index)) {
return;
}
}
if (0 == this._fiCurrentFocus.node.getName().indexOf('StarListCell')) {
var index = parseInt(this._fiCurrentFocus.node.getName().replace('StarListCell', ''));
// cc.log("当前时多少条目:"+index);
let lvCategoryList = this._nodeAchievementList.getComponent(ListView);
lvCategoryList.setStatusInScene(this._iSceneStatus);
if (lvCategoryList.scrollARowDown(null, index)) {
return;
}
}
this.keyDownDirection(Common.MOVE_DIRECTION_DOWN);
break;
case cc.macro.KEY.left:
case Common.ANDROID_KEY.left:
......@@ -265,62 +328,62 @@ cc.Class({
case cc.macro.KEY.enter:
case cc.macro.KEY.space:
case Common.ANDROID_KEY.enter:
if(0 == this._fiCurrentFocus.node.getName().indexOf('spriteTask')){ //任务
cc.find("task",this.node).active=true;
this._iSceneStatus=1;
if (0 == this._fiCurrentFocus.node.getName().indexOf('spriteTask')) { //任务
cc.find("task", this.node).active = true;
this._iSceneStatus = 1;
var fiFocusTarget = this._cFocus.findTarget(this._fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Common.MOVE_DIRECTION_LEFT);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_LEFT, null, null);
cc.find("task",this.node).zIndex=10;
this.activitySprite.node.zIndex=0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex=0;
this.taskSprite.node.zIndex=0;
this.achievementSprite.node.zIndex=0;
this.shopSprite.node.zIndex=0;
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('spriteAchievement')){ //任务
cc.find("achievement",this.node).active=true;
this._iSceneStatus=2;
cc.find("task", this.node).zIndex = 10;
this.activitySprite.node.zIndex = 0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex = 0;
this.taskSprite.node.zIndex = 0;
this.achievementSprite.node.zIndex = 0;
this.shopSprite.node.zIndex = 0;
} else if (0 == this._fiCurrentFocus.node.getName().indexOf('spriteAchievement')) { //任务
cc.find("achievement", this.node).active = true;
this._iSceneStatus = 2;
var fiFocusTarget = this._cFocus.findTarget(this._fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Common.MOVE_DIRECTION_LEFT);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_LEFT, null, null);
cc.find("achievement",this.node).zIndex=10;
this.activitySprite.node.zIndex=0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex=0;
this.taskSprite.node.zIndex=0;
this.achievementSprite.node.zIndex=0;
this.shopSprite.node.zIndex=0;
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('spriteActivity')){ //活动
cc.find("activity",this.node).active=true;
this._iSceneStatus=3;
var fiFocusTarget = this._cFocus.findTarget(this._fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Common.MOVE_DIRECTION_LEFT);
cc.find("achievement", this.node).zIndex = 10;
this.activitySprite.node.zIndex = 0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex = 0;
this.taskSprite.node.zIndex = 0;
this.achievementSprite.node.zIndex = 0;
this.shopSprite.node.zIndex = 0;
} else if (0 == this._fiCurrentFocus.node.getName().indexOf('spriteActivity')) { //活动
cc.find("activity", this.node).active = true;
this._iSceneStatus = 3;
var fiFocusTarget = this._cFocus.findTarget(this._fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Common.MOVE_DIRECTION_DOWN);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_LEFT, null, null);
cc.find("activity",this.node).zIndex=10;
this.activitySprite.node.zIndex=0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex=0;
this.taskSprite.node.zIndex=0;
this.achievementSprite.node.zIndex=0;
this.shopSprite.node.zIndex=0;
cc.find("activity", this.node).zIndex = 10;
this.activitySprite.node.zIndex = 0; //这几个总是另类凸显出来
this.roleSprite.node.zIndex = 0;
this.taskSprite.node.zIndex = 0;
this.achievementSprite.node.zIndex = 0;
this.shopSprite.node.zIndex = 0;
}
else if(0 == this._fiCurrentFocus.node.getName().indexOf('close')){
cc.find("task",this.node).active=false;
this._iSceneStatus=0;
else if (0 == this._fiCurrentFocus.node.getName().indexOf('close')) {
cc.find("task", this.node).active = false;
this._iSceneStatus = 0;
var fiFocusTarget = this.taskSprite.getComponent(FocusInfo);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_UP, null, null);
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('achievementClose')){
cc.find("achievement",this.node).active=false;
this._iSceneStatus=0;
} else if (0 == this._fiCurrentFocus.node.getName().indexOf('achievementClose')) {
cc.find("achievement", this.node).active = false;
this._iSceneStatus = 0;
var fiFocusTarget = this.achievementSprite.getComponent(FocusInfo);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_UP, null, null);
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('activityClose')){
cc.find("activity",this.node).active=false;
this._iSceneStatus=0;
} else if (0 == this._fiCurrentFocus.node.getName().indexOf('activityClose')) {
cc.find("activity", this.node).active = false;
this._iSceneStatus = 0;
var fiFocusTarget = this.activitySprite.getComponent(FocusInfo);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_UP, null, null);
}else if(0 == this._fiCurrentFocus.node.getName().indexOf('PointerButton')){
} else if (0 == this._fiCurrentFocus.node.getName().indexOf('PointerButton')) {
this.pointerButtonStartControl();
}
// this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
} else
this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
break;
case cc.macro.KEY.backspace:
case Common.ANDROID_KEY.back:
......@@ -329,44 +392,63 @@ cc.Class({
}
},
pointerButtonStartControl:function(){
var _this=this;
var clickTimes=6; //设置转盘指针转动多长时间
var rounds=10; //设置转盘指针转动多少圈
var awardAngleArr={
1:{angle:parseInt(Math.random() * 35 + 5)},
2:{angle:parseInt(Math.random() * 35 + 42)},
3:{angle:parseInt(Math.random() * 35 + 82)},
4:{angle:parseInt(Math.random() * 35 + 122)},
5:{angle:parseInt(Math.random() * 35 + 162)},
6:{angle:parseInt(Math.random() * 35 + 202)},
7:{angle:parseInt(Math.random() * 35 + 242)},
8:{angle:parseInt(Math.random() * 35 + 282)},
9:{angle:parseInt(Math.random() * 35 + 322)},
pointerButtonStartControl: function () {
var _this = this;
var clickTimes = 6; //设置转盘指针转动多长时间
var rounds = 10; //设置转盘指针转动多少圈
var awardAngleArr = {
1: { angle: parseInt(Math.random() * 35 + 5) },
2: { angle: parseInt(Math.random() * 35 + 42) },
3: { angle: parseInt(Math.random() * 35 + 82) },
4: { angle: parseInt(Math.random() * 35 + 122) },
5: { angle: parseInt(Math.random() * 35 + 162) },
6: { angle: parseInt(Math.random() * 35 + 202) },
7: { angle: parseInt(Math.random() * 35 + 242) },
8: { angle: parseInt(Math.random() * 35 + 282) },
9: { angle: parseInt(Math.random() * 35 + 322) },
};
var adValue=9; //这里应该灵活获取角度
function infoDelayShow(){
_this.scheduleOnce(function(){
var adValue = 9; //这里应该灵活获取角度
var self=this;
function infoDelayShow() {
_this.scheduleOnce(function () {
cc.log("转盘转动结束,可以处理一些逻辑啦。。。");
},clickTimes+0.5);
cc.loader.loadRes("game/main/turntable_tomorrow", cc.Texture2D, function (err, texture) {
self.pointerButton.spriteFrame = new cc.SpriteFrame(texture);
});
var fiFocusTarget = this._cFocus.findTarget(this._fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Common.MOVE_DIRECTION_LEFT);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_LEFT, null, null);
let popItem=cc.instantiate(this.PFB_POP);
this.node.addChild(popItem,100);
this.node.anchorX=0; //解决飘窗显示位置不在屏幕中央的问题
this.node.anchorY=0;
function fadeOutBack(){
popItem.destroy(); //用完就销毁
cc.log("处理飘窗彻底消失后的逻辑。。。。。。");
};
let fadeOut=cc.fadeOut(1.0);
let moveBy=cc.moveBy(1,cc.v2(0,200));
popItem.runAction(moveBy);
popItem.runAction(cc.sequence(fadeOut,cc.callFunc(fadeOutBack)));
}, clickTimes + 0.5);
};
var rotateBy=cc.rotateBy(clickTimes,awardAngleArr[adValue].angle+360*rounds);
var rotateBy = cc.rotateBy(clickTimes, awardAngleArr[adValue].angle + 360 * rounds);
_this.pointer.node.runAction(rotateBy).easing(cc.easeCubicActionOut(clickTimes));
// _this.pointerButton.destroy();
infoDelayShow();
},
onBeforeFocusChange: function (event) {
this._super(event);
var self = this;
let fiFrom = event.detail.from;
if (0 == fiFrom.node.name.indexOf('sprite')) {
fiFrom.node.getChildByName("active").active=false;
fiFrom.node.getChildByName("active").active = false;
}
},
......@@ -374,10 +456,14 @@ cc.Class({
this._super(event);
var self = this;
let fiTo = event.detail.to;
if (0 == fiTo.node.name.indexOf('sprite')) {
fiTo.node.getChildByName("active").active=true;
if (0 == fiTo.node.name.indexOf('sprite')) {
fiTo.node.getChildByName("active").active = true;
}
if (0 == fiTo.node.name.indexOf('island')) {
this.roleAnim.node.x = fiTo.node.x;
this.roleAnim.node.y = fiTo.node.y;
}
},
doCurrentFocusTVLinkAction: function (strAction) {
......@@ -398,5 +484,13 @@ cc.Class({
}
},
onListScrollStart: function () {
this._bIsSongListMoving = true;
// cc.log("scroll start");
},
onListScrollEnd: function () {
this._bIsSongListMoving = false;
// cc.log("scroll completed");
},
});
......
......@@ -407,18 +407,18 @@ cc.Class({
}
}
if (0 == this._fiCurrentFocus.node.getName().indexOf('TopCell')) {
// fiFrom.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
let iIndex = fiFrom.node.name.replace("TopCell", '');
if (this._oInit.aTopImg[iIndex]) {
Network.loadImageInNativeRuntime(
this._oInit.aTopImg[iIndex],
function (texture) {
fiFrom.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
}, null, this
);
}
}
// if (0 == this._fiCurrentFocus.node.getName().indexOf('TopCell')) {
// // fiFrom.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
// let iIndex = fiFrom.node.name.replace("TopCell", '');
// if (this._oInit.aTopImg[iIndex]) {
// Network.loadImageInNativeRuntime(
// this._oInit.aTopImg[iIndex],
// function (texture) {
// fiFrom.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
// }, null, this
// );
// }
// }
},
onAfterFocusChange: function (event) {
......@@ -441,18 +441,18 @@ cc.Class({
this._oSceneContext._iCurrentLeftIndex = iIndex;
}
if (0 == fiTo.node.getName().indexOf('TopCell')) {
let iIndex = fiTo.node.name.replace("TopCell", '');
// fiTo.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
if (this._oInit.aTopImg[iIndex]) {
Network.loadImageInNativeRuntime(
this._oInit.aTopImg[iIndex],
function (texture) {
fiTo.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
}, null, this
);
}
}
// if (0 == fiTo.node.getName().indexOf('TopCell')) {
// let iIndex = fiTo.node.name.replace("TopCell", '');
// // fiTo.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
// if (this._oInit.aTopImg[iIndex]) {
// Network.loadImageInNativeRuntime(
// this._oInit.aTopImg[iIndex],
// function (texture) {
// fiTo.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
// }, null, this
// );
// }
// }
},
keyDownDirection: function (Direct) {
......
......@@ -14,7 +14,7 @@ cc.Class({
"name": "Navigator",/* 左侧导航 */
"layout": "vertical",//浮动式垂直布局
"position": [44, 98],//框架的起始坐标
"childrenSize": [166, 94],//子元素尺寸
"childrenSize": [159, 72],//子元素尺寸
"childrenMargin": [0, 0, 3, 0],//子元素边距
"dataContainer": "promotion_list",//列表名称
"data": {/* 对于数据比较少的采取这种方式或者本地数据 */
......@@ -39,7 +39,8 @@ cc.Class({
},
{
"name": "primarySchool",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}',
// "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}',
"tvlink": '{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneGame"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/primary.png",
"top": 360,
......@@ -78,30 +79,30 @@ cc.Class({
"resultSet": [
{
"name": "收藏",
"left": 822,
"top": 19,
"width": 137,
"height": 65,
"left": 1104,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneDiary"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/my.png"
},
{
"name": "历史",
"left": 965,
"top": 19,
"width": 137,
"height": 65,
"left": 1158,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneHistory"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/history.png"
},
{
"name": "搜索",
"left": 1108,
"top": 19,
"width": 137,
"height": 65,
"left": 1213,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneSearch"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/search.png"
......
......@@ -5,7 +5,7 @@
"_native": "",
"_duration": 7.5,
"sample": 8,
"speed": 0.3,
"speed": 0.2,
"wrapMode": 2,
"curveData": {
"props": {
......
{
"ver": "1.0.1",
"uuid": "e2e376e6-cde1-416f-b7d5-e4f8daea8953",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
{"frameRate":60,"isGlobal":0,"armature":[{"bone":[{"name":"root","transform":{}},{"inheritScale":false,"transform":{"y":20.9393,"x":-3.83},"name":"Layer1","parent":"root"},{"length":112,"transform":{"y":-39.8899,"skX":90.9548,"skY":90.9548,"x":-2.4595},"parent":"root","inheritScale":false,"name":"Layer19"},{"length":101,"transform":{"y":-10.561,"skX":-38.9536,"skY":-38.9536,"x":-3.9265},"parent":"Layer19","inheritScale":false,"name":"Layer17"},{"length":81,"transform":{"y":-10.2153,"skX":-20.483,"skY":-20.483,"x":35.3347},"parent":"Layer19","inheritScale":false,"name":"Layer10"},{"length":78,"transform":{"y":10.034,"skX":15.7006,"skY":15.7006,"x":35.5472},"parent":"Layer19","inheritScale":false,"name":"Layer12"},{"length":82,"transform":{"y":16.279,"skX":40.4526,"skY":40.4526,"x":-1.6039},"parent":"Layer19","inheritScale":false,"name":"Layer14"},{"length":160,"transform":{"y":-1.7706,"skX":178.5993,"skY":178.5993,"x":-6.2804},"parent":"Layer19","inheritScale":false,"name":"Layer21"}],"type":"Armature","frameRate":60,"animation":[{"playTimes":0,"bone":[{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"skX":-2.3659,"skY":-2.3659},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"skX":3.2177,"skY":3.2177},"duration":15},{"transform":{},"duration":0}],"name":"Layer21"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"skX":13.2312,"skY":13.2312},"duration":15},{"tweenEasing":0,"transform":{"y":-2.5206,"skX":-12.3228,"skY":-12.3228,"x":1.2082},"duration":15},{"tweenEasing":0,"transform":{"y":-6.2492,"skX":-62.777,"skY":-62.777,"x":-0.1042},"duration":15},{"transform":{},"duration":0}],"name":"Layer14"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":-4},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":-4},"duration":15},{"transform":{},"duration":0}],"name":"Layer19"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":-7.499,"skX":-38.8025,"skY":-38.8025,"x":-0.125},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":2.4997,"skX":15.1876,"skY":15.1876,"x":0.0417},"duration":15},{"transform":{},"duration":0}],"name":"Layer12"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":1.8748,"skX":32.7635,"skY":32.7635,"x":0.0313},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":-3.7496,"skX":-17.9195,"skY":-17.9195,"x":-0.0625},"duration":15},{"transform":{},"duration":0}],"name":"Layer10"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"skX":-22.4995,"skY":-22.4995},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"y":1.2498,"skX":23.6194,"skY":23.6194,"x":0.0208},"duration":15},{"transform":{},"duration":0}],"name":"Layer17"},{"frame":[{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"scX":0.9},"duration":15},{"tweenEasing":0,"transform":{},"duration":15},{"tweenEasing":0,"transform":{"scX":0.9},"duration":15},{"transform":{},"duration":0}],"name":"Layer1"},{"frame":[{"transform":{},"duration":60}],"name":"root"}],"slot":[{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer21"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer14"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer19"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer12"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer10"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer17"},{"frame":[{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":0,"duration":15},{"tweenEasing":null,"duration":0}],"name":"Layer1"}],"ffd":[],"ik":[],"frame":[],"name":"Animation1","duration":60}],"defaultActions":[{"gotoAndPlay":"Animation1"}],"aabb":{"width":157,"y":-168.93573553683655,"height":194.87503553683655,"x":-89.9550723745457},"ik":[],"name":"armatureName","skin":[{"slot":[{"display":[{"path":"duck05","type":"image","name":"duck05","transform":{"y":2.0343,"skX":-60.474,"skY":-60.474,"x":8.4202}}],"name":"Layer10"},{"display":[{"path":"duck06","type":"image","name":"duck06","transform":{"y":-0.0025,"skX":-116.3619,"skY":-116.3619,"x":10.4107}}],"name":"Layer12"},{"display":[{"path":"duck03","type":"image","name":"duck03","transform":{"y":1.4731,"skX":-90.9548,"skY":-90.9548,"x":16.3561}}],"name":"Layer19"},{"display":[{"path":"duck02","type":"image","name":"duck02","transform":{"y":1.0493,"skX":-122.6046,"skY":-122.6045,"x":19.4616}}],"name":"Layer14"},{"display":[{"path":"duck01","type":"image","name":"duck01","transform":{"y":-10.4049,"skX":90.4459,"skY":90.4459,"x":59.8786}}],"name":"Layer21"},{"display":[{"path":"duck07","type":"image","name":"duck07","transform":{}}],"name":"Layer1"},{"display":[{"path":"duck04","type":"image","name":"duck04","transform":{"y":0.273,"skX":-52.0013,"skY":-52.0012,"x":19.2394}}],"name":"Layer17"}],"name":""}],"slot":[{"name":"Layer1","parent":"Layer1","color":{}},{"z":1,"name":"Layer17","parent":"Layer17","color":{}},{"z":2,"name":"Layer10","parent":"Layer10","color":{}},{"z":3,"name":"Layer12","parent":"Layer12","color":{}},{"z":4,"name":"Layer19","parent":"Layer19","color":{}},{"z":5,"name":"Layer14","parent":"Layer14","color":{}},{"z":6,"name":"Layer21","parent":"Layer21","color":{}}]}],"name":"duck","version":"5.0"}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "12fcf88d-19e6-4c0e-a0e9-90493cbd8988",
"dragonBonesJson": "{\"frameRate\":60,\"isGlobal\":0,\"armature\":[{\"bone\":[{\"name\":\"root\",\"transform\":{}},{\"inheritScale\":false,\"transform\":{\"y\":20.9393,\"x\":-3.83},\"name\":\"Layer1\",\"parent\":\"root\"},{\"length\":112,\"transform\":{\"y\":-39.8899,\"skX\":90.9548,\"skY\":90.9548,\"x\":-2.4595},\"parent\":\"root\",\"inheritScale\":false,\"name\":\"Layer19\"},{\"length\":101,\"transform\":{\"y\":-10.561,\"skX\":-38.9536,\"skY\":-38.9536,\"x\":-3.9265},\"parent\":\"Layer19\",\"inheritScale\":false,\"name\":\"Layer17\"},{\"length\":81,\"transform\":{\"y\":-10.2153,\"skX\":-20.483,\"skY\":-20.483,\"x\":35.3347},\"parent\":\"Layer19\",\"inheritScale\":false,\"name\":\"Layer10\"},{\"length\":78,\"transform\":{\"y\":10.034,\"skX\":15.7006,\"skY\":15.7006,\"x\":35.5472},\"parent\":\"Layer19\",\"inheritScale\":false,\"name\":\"Layer12\"},{\"length\":82,\"transform\":{\"y\":16.279,\"skX\":40.4526,\"skY\":40.4526,\"x\":-1.6039},\"parent\":\"Layer19\",\"inheritScale\":false,\"name\":\"Layer14\"},{\"length\":160,\"transform\":{\"y\":-1.7706,\"skX\":178.5993,\"skY\":178.5993,\"x\":-6.2804},\"parent\":\"Layer19\",\"inheritScale\":false,\"name\":\"Layer21\"}],\"type\":\"Armature\",\"frameRate\":60,\"animation\":[{\"playTimes\":0,\"bone\":[{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"skX\":-2.3659,\"skY\":-2.3659},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"skX\":3.2177,\"skY\":3.2177},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer21\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"skX\":13.2312,\"skY\":13.2312},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-2.5206,\"skX\":-12.3228,\"skY\":-12.3228,\"x\":1.2082},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-6.2492,\"skX\":-62.777,\"skY\":-62.777,\"x\":-0.1042},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer14\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-4},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-4},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer19\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-7.499,\"skX\":-38.8025,\"skY\":-38.8025,\"x\":-0.125},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":2.4997,\"skX\":15.1876,\"skY\":15.1876,\"x\":0.0417},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer12\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":1.8748,\"skX\":32.7635,\"skY\":32.7635,\"x\":0.0313},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":-3.7496,\"skX\":-17.9195,\"skY\":-17.9195,\"x\":-0.0625},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer10\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"skX\":-22.4995,\"skY\":-22.4995},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"y\":1.2498,\"skX\":23.6194,\"skY\":23.6194,\"x\":0.0208},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer17\"},{\"frame\":[{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"scX\":0.9},\"duration\":15},{\"tweenEasing\":0,\"transform\":{},\"duration\":15},{\"tweenEasing\":0,\"transform\":{\"scX\":0.9},\"duration\":15},{\"transform\":{},\"duration\":0}],\"name\":\"Layer1\"},{\"frame\":[{\"transform\":{},\"duration\":60}],\"name\":\"root\"}],\"slot\":[{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer21\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer14\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer19\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer12\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer10\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer17\"},{\"frame\":[{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":0,\"duration\":15},{\"tweenEasing\":null,\"duration\":0}],\"name\":\"Layer1\"}],\"ffd\":[],\"ik\":[],\"frame\":[],\"name\":\"Animation1\",\"duration\":60}],\"defaultActions\":[{\"gotoAndPlay\":\"Animation1\"}],\"aabb\":{\"width\":157,\"y\":-168.93573553683655,\"height\":194.87503553683655,\"x\":-89.9550723745457},\"ik\":[],\"name\":\"armatureName\",\"skin\":[{\"slot\":[{\"display\":[{\"path\":\"duck05\",\"type\":\"image\",\"name\":\"duck05\",\"transform\":{\"y\":2.0343,\"skX\":-60.474,\"skY\":-60.474,\"x\":8.4202}}],\"name\":\"Layer10\"},{\"display\":[{\"path\":\"duck06\",\"type\":\"image\",\"name\":\"duck06\",\"transform\":{\"y\":-0.0025,\"skX\":-116.3619,\"skY\":-116.3619,\"x\":10.4107}}],\"name\":\"Layer12\"},{\"display\":[{\"path\":\"duck03\",\"type\":\"image\",\"name\":\"duck03\",\"transform\":{\"y\":1.4731,\"skX\":-90.9548,\"skY\":-90.9548,\"x\":16.3561}}],\"name\":\"Layer19\"},{\"display\":[{\"path\":\"duck02\",\"type\":\"image\",\"name\":\"duck02\",\"transform\":{\"y\":1.0493,\"skX\":-122.6046,\"skY\":-122.6045,\"x\":19.4616}}],\"name\":\"Layer14\"},{\"display\":[{\"path\":\"duck01\",\"type\":\"image\",\"name\":\"duck01\",\"transform\":{\"y\":-10.4049,\"skX\":90.4459,\"skY\":90.4459,\"x\":59.8786}}],\"name\":\"Layer21\"},{\"display\":[{\"path\":\"duck07\",\"type\":\"image\",\"name\":\"duck07\",\"transform\":{}}],\"name\":\"Layer1\"},{\"display\":[{\"path\":\"duck04\",\"type\":\"image\",\"name\":\"duck04\",\"transform\":{\"y\":0.273,\"skX\":-52.0013,\"skY\":-52.0012,\"x\":19.2394}}],\"name\":\"Layer17\"}],\"name\":\"\"}],\"slot\":[{\"name\":\"Layer1\",\"parent\":\"Layer1\",\"color\":{}},{\"z\":1,\"name\":\"Layer17\",\"parent\":\"Layer17\",\"color\":{}},{\"z\":2,\"name\":\"Layer10\",\"parent\":\"Layer10\",\"color\":{}},{\"z\":3,\"name\":\"Layer12\",\"parent\":\"Layer12\",\"color\":{}},{\"z\":4,\"name\":\"Layer19\",\"parent\":\"Layer19\",\"color\":{}},{\"z\":5,\"name\":\"Layer14\",\"parent\":\"Layer14\",\"color\":{}},{\"z\":6,\"name\":\"Layer21\",\"parent\":\"Layer21\",\"color\":{}}]}],\"name\":\"duck\",\"version\":\"5.0\"}",
"subMetas": {}
}
\ No newline at end of file
{"width":256,"imagePath":"duck_tex.png","height":256,"name":"duck","SubTexture":[{"width":66,"y":108,"height":10,"name":"duck07","x":160},{"width":35,"y":64,"height":40,"name":"duck04","x":160},{"width":24,"y":76,"height":30,"name":"duck05","x":197},{"width":24,"y":44,"height":30,"name":"duck06","x":222},{"width":60,"y":1,"height":61,"name":"duck03","x":160},{"width":27,"y":1,"height":41,"name":"duck02","x":222},{"width":157,"y":1,"height":126,"name":"duck01","x":1}]}
\ No newline at end of file
{
"ver": "1.0.0",
"uuid": "3348c645-59e4-4bf2-b5ac-02172ce7f044",
"atlasJson": "{\"width\":256,\"imagePath\":\"duck_tex.png\",\"height\":256,\"name\":\"duck\",\"SubTexture\":[{\"width\":66,\"y\":108,\"height\":10,\"name\":\"duck07\",\"x\":160},{\"width\":35,\"y\":64,\"height\":40,\"name\":\"duck04\",\"x\":160},{\"width\":24,\"y\":76,\"height\":30,\"name\":\"duck05\",\"x\":197},{\"width\":24,\"y\":44,\"height\":30,\"name\":\"duck06\",\"x\":222},{\"width\":60,\"y\":1,\"height\":61,\"name\":\"duck03\",\"x\":160},{\"width\":27,\"y\":1,\"height\":41,\"name\":\"duck02\",\"x\":222},{\"width\":157,\"y\":1,\"height\":126,\"name\":\"duck01\",\"x\":1}]}",
"texture": "5d2ba554-a63a-4a5c-96d2-82152eff95b5",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "5d2ba554-a63a-4a5c-96d2-82152eff95b5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"duck_tex": {
"ver": "1.0.4",
"uuid": "abf7a9c2-4fb6-4899-ba2b-2dc582b38b12",
"rawTextureUuid": "5d2ba554-a63a-4a5c-96d2-82152eff95b5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3,
"offsetY": 64,
"trimX": 1,
"trimY": 1,
"width": 248,
"height": 126,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "926267b5-de6e-4a3d-9f82-f5ec7006bd00",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bg_loading_pop_2": {
"ver": "1.0.4",
"uuid": "260d622d-3a11-4350-8775-4a225ae5a348",
"rawTextureUuid": "926267b5-de6e-4a3d-9f82-f5ec7006bd00",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 635,
"height": 342,
"rawWidth": 635,
"rawHeight": 342,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "768a3cbe-ea2a-412a-9915-5ba206f2120b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"bg_shop_item_icon": {
"ver": "1.0.4",
"uuid": "20a09849-4fac-4159-ab45-65501e0f945b",
"rawTextureUuid": "768a3cbe-ea2a-412a-9915-5ba206f2120b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 75,
"height": 75,
"rawWidth": 75,
"rawHeight": 75,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "8618fb6f-4c3c-42b9-8357-e309a7155f28",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn_back_2": {
"ver": "1.0.4",
"uuid": "e43d8224-1726-467f-a939-8ea9c8efc8bc",
"rawTextureUuid": "8618fb6f-4c3c-42b9-8357-e309a7155f28",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 53,
"height": 47,
"rawWidth": 54,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "61ca46a0-2e29-48ab-9af7-c9b3ba0bc8ac",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"btn_common_pop_close": {
"ver": "1.0.4",
"uuid": "59262b31-5913-43a6-8075-23de6b2f9a06",
"rawTextureUuid": "61ca46a0-2e29-48ab-9af7-c9b3ba0bc8ac",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 82,
"height": 82,
"rawWidth": 82,
"rawHeight": 82,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "87254772-462f-487e-b3af-3c1b2c68de34",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"head_1": {
"ver": "1.0.4",
"uuid": "55fbb89f-85d9-4bb8-8825-9cb5292881f5",
"rawTextureUuid": "87254772-462f-487e-b3af-3c1b2c68de34",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 168,
"height": 220,
"rawWidth": 168,
"rawHeight": 220,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "00f32f7d-54fd-4c97-a226-b61561b33239",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"icon_money": {
"ver": "1.0.4",
"uuid": "3f55e57f-58ff-4674-80a1-4f3cb937762c",
"rawTextureUuid": "00f32f7d-54fd-4c97-a226-b61561b33239",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 196,
"height": 168,
"rawWidth": 196,
"rawHeight": 168,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -8,8 +8,7 @@
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
......@@ -44,8 +43,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 159,
"height": 72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -64,18 +63,18 @@
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
......@@ -106,8 +105,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 159,
"height": 72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -126,18 +125,18 @@
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
......@@ -148,11 +147,6 @@
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
......@@ -167,6 +161,7 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
......@@ -192,9 +187,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": -20,
"_left": -79.5,
"_right": 0,
"_top": 702,
"_top": 684,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......
<root>
<explore id="1" id2="1" name="555,没人陪我玩,好寂寞。" type="1" map="1" choice1="陪陪蜥蜴,和它交朋友" choice2="陪它去看《小猪佩奇》,开朗的孩子朋友多。" function="1:500054" image="xiyi.png" reward="10001:100"/>
<explore id="2" id2="1" name="555,没人陪我玩,好寂寞。" type="1" map="1" choice1="陪陪蜥蜴,和它交朋友" choice2="去玩叠蛋糕给它看,这个小游戏可好玩了!" function="2:300056" image="xiyi.png" reward="10001:100"/>
<explore id="3" id2="1" name="555,没人陪我玩,好寂寞。" type="1" map="1" choice1="陪陪蜥蜴,和它交朋友" choice2="和小狗一起听儿歌:工程车之歌" function="3:18897" image="xiyi.png" reward="10001:100"/>
<explore id="2" id2="1" name="555,没人陪我玩,好寂寞。" type="2" map="1" choice1="陪陪蜥蜴,和它交朋友" choice2="去玩叠蛋糕给它看,这个小游戏可好玩了!" function="2:300056" image="xiyi.png" reward="10001:100"/>
<explore id="3" id2="1" name="555,没人陪我玩,好寂寞。" type="2" map="1" choice1="陪陪蜥蜴,和它交朋友" choice2="和小狗一起听儿歌:工程车之歌" function="3:18897" image="xiyi.png" reward="10001:100"/>
<explore id="4" id2="1" name="555,没人陪我玩,好寂寞。" type="1" map="1" choice1="我想和别的小动物一起玩。" choice2="" function="1:500054" image="xiyi.png" reward="10001:100"/>
<explore id="5" id2="1" name="捡到一个宝箱。" type="2" map="1" choice1="" choice2="" function="1:500054" image="baoxiang.png" reward="10001:100"/>
<explore id="6" id2="1" name="迷路了,进度减少10%" type="3" map="1" choice1="" choice2="" function="1:500054" image="xiyi.png" reward="10001:100"/>
......
{
"ver": "2.2.0",
"uuid": "55a2f65d-ae2f-430d-997a-a183b03af495",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"turntable_tomorrow": {
"ver": "1.0.4",
"uuid": "94bfdc3d-6b0f-4a61-b0f0-beed62e88578",
"rawTextureUuid": "55a2f65d-ae2f-430d-997a-a183b03af495",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 94,
"height": 97,
"rawWidth": 94,
"rawHeight": 99,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.2.0",
"uuid": "21e522fa-4f5a-4dbe-8880-d68215b08d1a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"subMetas": {
"xiyi": {
"ver": "1.0.4",
"uuid": "30eaee90-b002-4d6c-a1c1-f252176a5890",
"rawTextureUuid": "21e522fa-4f5a-4dbe-8880-d68215b08d1a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 158,
"rawWidth": 120,
"rawHeight": 158,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "pfbDialogCell",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_level": 1,
"_components": [],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 450,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Icon",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 20,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -222,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cbd54b30-9e7f-422c-b742-9b434a12b6da"
},
"fileId": "592x6ksi9BRrRAJCVkUIic",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Content",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 450,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "陪他去看《小猪佩奇》,开朗的孩子朋友多",
"_N$string": "陪他去看《小猪佩奇》,开朗的孩子朋友多",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cbd54b30-9e7f-422c-b742-9b434a12b6da"
},
"fileId": "83YAY8oi5FD67hDNJN+Ezb",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cbd54b30-9e7f-422c-b742-9b434a12b6da"
},
"fileId": "43je+l5UZHppZNWqV9PaIl",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "cbd54b30-9e7f-422c-b742-9b434a12b6da",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "pfbShowCategory",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
},
{
"__id__": 11
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 14
}
],
"_prefab": {
"__id__": 15
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 499,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 499,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"fileId": "e4M4WCL31CNrUEnnaC/ZIS",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 75,
"height": 75
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -132,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "20a09849-4fac-4159-ab45-65501e0f945b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"fileId": "29CRPS5n1LD55GZeLNDFrY",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 61
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -133,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "437d0612-8583-46d0-ad75-46a400680bbb"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"fileId": "38ud78dPJMv4KKCPooxuqe",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Txt",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 12
}
],
"_prefab": {
"__id__": 13
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 66,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_useOriginalSize": false,
"_string": "获取宠物饼干*7200",
"_N$string": "获取宠物饼干*7200",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"fileId": "a0QHVGyY1JEbOrO+g9hWvC",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": -249.5,
"_right": 0,
"_top": 665.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d"
},
"fileId": "f3FKYd7SJEvrs4s48MPI1G",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8fc297a9-26e1-4936-aaa0-59dffbb57d8d",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
\ No newline at end of file