Commit 9545e3c9 authored by Tt's avatar Tt

完成效果增加

parent 30ce9f16
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 51
}, },
{ {
"__id__": 50 "__id__": 52
}, },
{ {
"__id__": 51 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -772,16 +772,16 @@ ...@@ -772,16 +772,16 @@
"__id__": 22 "__id__": 22
}, },
{ {
"__id__": 39 "__id__": 41
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 49
}, },
{ {
"__id__": 48 "__id__": 50
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1107,13 +1107,16 @@ ...@@ -1107,13 +1107,16 @@
"__id__": 33 "__id__": 33
}, },
{ {
"__id__": 36 "__id__": 35
},
{
"__id__": 38
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1636,7 +1639,7 @@ ...@@ -1636,7 +1639,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "title", "_name": "done",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
...@@ -1646,9 +1649,103 @@ ...@@ -1646,9 +1649,103 @@
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 107,
"height": 53
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
124.693,
147.595,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3eb5JGrxxFZ68pC4oTwpaA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "48632a2c-b01a-4727-bd03-d1d9e748659d"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "acF2N0E9RNHqHPgYTN/+w7"
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
}, },
{ {
"__id__": 35 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1704,7 +1801,7 @@ ...@@ -1704,7 +1801,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1739,7 +1836,7 @@ ...@@ -1739,7 +1836,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_color": { "_color": {
...@@ -1763,7 +1860,7 @@ ...@@ -1763,7 +1860,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1819,7 +1916,7 @@ ...@@ -1819,7 +1916,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 36 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1925,16 +2022,16 @@ ...@@ -1925,16 +2022,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 40 "__id__": 42
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 47
}, },
{ {
"__id__": 46 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1990,20 +2087,20 @@ ...@@ -1990,20 +2087,20 @@
"_name": "view", "_name": "view",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 41
}, },
"_children": [ "_children": [
{ {
"__id__": 41 "__id__": 43
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 45
}, },
{ {
"__id__": 44 "__id__": 46
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2059,13 +2156,13 @@ ...@@ -2059,13 +2156,13 @@
"_name": "content", "_name": "content",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 40 "__id__": 42
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 42 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2121,7 +2218,7 @@ ...@@ -2121,7 +2218,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 41 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -2153,7 +2250,7 @@ ...@@ -2153,7 +2250,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2173,7 +2270,7 @@ ...@@ -2173,7 +2270,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2200,7 +2297,7 @@ ...@@ -2200,7 +2297,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"horizontal": true, "horizontal": true,
...@@ -2212,10 +2309,10 @@ ...@@ -2212,10 +2309,10 @@
"scrollEvents": [], "scrollEvents": [],
"cancelInnerEvents": true, "cancelInnerEvents": true,
"_N$content": { "_N$content": {
"__id__": 41 "__id__": 43
}, },
"content": { "content": {
"__id__": 41 "__id__": 43
}, },
"_N$horizontalScrollBar": null, "_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null, "_N$verticalScrollBar": null,
...@@ -2226,7 +2323,7 @@ ...@@ -2226,7 +2323,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
......
...@@ -61,12 +61,14 @@ export default class NewClass extends cc.Component { ...@@ -61,12 +61,14 @@ export default class NewClass extends cc.Component {
let bg_1 = item.getChildByName("bg_1") let bg_1 = item.getChildByName("bg_1")
let bg_2 = item.getChildByName("bg_2") let bg_2 = item.getChildByName("bg_2")
let lock = item.getChildByName('lock') let lock = item.getChildByName('lock')
let done = item.getChildByName('done')
this.setNetImg(icon, data.img, { w: 263, h: 183 }) this.setNetImg(icon, data.img, { w: 263, h: 183 })
title.getComponent(cc.Label).string = data.name; title.getComponent(cc.Label).string = data.name;
bg_0.active = index % 3 == 0 bg_0.active = index % 3 == 0
bg_1.active = index % 3 == 1 bg_1.active = index % 3 == 1
bg_2.active = index % 3 == 2 bg_2.active = index % 3 == 2
lock.active = data.locked; lock.active = data.locked;
done.active = data.totalIcon >= 0;
item.on(cc.Node.EventType.TOUCH_END, this.onTouchItem, this); item.on(cc.Node.EventType.TOUCH_END, this.onTouchItem, this);
} }
......
...@@ -57,6 +57,7 @@ export const defaultData = { ...@@ -57,6 +57,7 @@ export const defaultData = {
name: '小红帽历险记5', name: '小红帽历险记5',
locked: false, locked: false,
id: 1235, id: 1235,
totalIcon: 100,
}], }],
} }
{
"ver": "2.3.5",
"uuid": "0c4739c4-3739-4e2b-bb8b-10cd6a91b5b8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 107,
"height": 53,
"platformSettings": {},
"subMetas": {
"icon_done": {
"ver": "1.0.4",
"uuid": "48632a2c-b01a-4727-bd03-d1d9e748659d",
"rawTextureUuid": "0c4739c4-3739-4e2b-bb8b-10cd6a91b5b8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 107,
"height": 53,
"rawWidth": 107,
"rawHeight": 53,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment