Commit 8c7e38b2 8c7e38b275628cb00d7e4b02b6a65b82ab254b32 by jinwawa

complete sceneProgramFullScreen

1 parent bc0cd5df
Showing 40 changed files with 561 additions and 18 deletions
1 {
2 "ver": "1.2.0",
3 "uuid": "af071f9f-20c1-46f7-815f-db43875c0588",
4 "asyncLoadAssets": false,
5 "autoReleaseAssets": false,
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "393641da-80ff-4ba4-97f9-bdaeb5af9aef",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -164,17 +164,23 @@ cc.Class({ ...@@ -164,17 +164,23 @@ cc.Class({
164 //TODO:2.0版本采用异步加载本地图片,在焦点初始完成后在批量处理图片 164 //TODO:2.0版本采用异步加载本地图片,在焦点初始完成后在批量处理图片
165 //TODO:循环中焦点框不是连续的,而批量加载的图地址是连续的需特殊处理下 165 //TODO:循环中焦点框不是连续的,而批量加载的图地址是连续的需特殊处理下
166 var self = this; 166 var self = this;
167 cc.loader.loadResDir("focus", cc.Texture2D, function (err, textures) { 167 // cc.loader.loadResDir("focus", cc.Texture2D, function (err, textures) {
168 // for (let i = 1; i < 10; i++) {
169 // if (i == 2 || i == 4 || i == 6 || i == 8) continue; //暂时将焦点框一部分隐藏
170 // if (i >= 5) {
171 // if (i == 5) continue;
172 // self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 2]);
173 // } else {
174 // self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 1]);
175 // }
176 // }
177 // });
168 for (let i = 1; i < 10; i++) { 178 for (let i = 1; i < 10; i++) {
169 if (i == 2 || i == 4 || i == 6 || i == 8) continue; //暂时将焦点框一部分隐藏 179 if (i == 2 || i == 4 || i == 5 || i == 6 || i == 8) continue;
170 if (i >= 5) { 180 cc.loader.loadRes('focus/' + i, cc.Texture2D, function (err, texture) {
171 if (i == 5) continue; 181 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
172 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 2]);
173 } else {
174 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 1]);
175 }
176 }
177 }); 182 });
183 }
178 184
179 this.node.children[0].x = fScaleFactor * (-fObjectWidth / 2 - (fCornerOuterRadius / 2 - fCornerInnerRadius)); 185 this.node.children[0].x = fScaleFactor * (-fObjectWidth / 2 - (fCornerOuterRadius / 2 - fCornerInnerRadius));
180 this.node.children[0].y = fScaleFactor * (fObjectHeight / 2 + (fCornerOuterRadius / 2 - fCornerInnerRadius)); 186 this.node.children[0].y = fScaleFactor * (fObjectHeight / 2 + (fCornerOuterRadius / 2 - fCornerInnerRadius));
......
...@@ -96,17 +96,26 @@ cc.Class({ ...@@ -96,17 +96,26 @@ cc.Class({
96 //TODO:2.0版本采用异步加载本地图片,在焦点初始完成后在批量处理图片 96 //TODO:2.0版本采用异步加载本地图片,在焦点初始完成后在批量处理图片
97 //TODO:循环中焦点框不是连续的,而批量加载的图地址是连续的需特殊处理下 97 //TODO:循环中焦点框不是连续的,而批量加载的图地址是连续的需特殊处理下
98 var self = this; 98 var self = this;
99 cc.loader.loadResDir("focus", cc.Texture2D, function (err, textures) { 99 // cc.loader.loadResDir("focus", cc.Texture2D, function (err, textures) {
100 // for (let i = 1; i < 10; i++) {
101 // if (i == 2 || i == 4 || i == 6 || i == 8) continue; //暂时将焦点框一部分隐藏
102 // if (i >= 5) {
103 // if (i == 5) continue;
104 // self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 2]);
105 // } else {
106 // self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 1]);
107 // }
108 // }
109 // });
110
100 for (let i = 1; i < 10; i++) { 111 for (let i = 1; i < 10; i++) {
101 if (i == 2 || i == 4 || i == 6 || i == 8) continue; //暂时将焦点框一部分隐藏 112 if (i == 2 || i == 4 || i == 5 || i == 6 || i == 8) continue;
102 if (i >= 5) { 113 cc.loader.loadRes('focus/' + i, cc.Texture2D, function (err, texture) {
103 if (i == 5) continue; 114 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
104 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 2]);
105 } else {
106 self.node.getChildByName('focus_' + i).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(textures[i - 1]);
107 }
108 }
109 }); 115 });
116 }
117
118
110 119
111 this.node.children[0].x = fScaleFactor * (-fObjectWidth / 2 - (fCornerOuterRadius / 2 - fCornerInnerRadius)); 120 this.node.children[0].x = fScaleFactor * (-fObjectWidth / 2 - (fCornerOuterRadius / 2 - fCornerInnerRadius));
112 this.node.children[0].y = fScaleFactor * (fObjectHeight / 2 + (fCornerOuterRadius / 2 - fCornerInnerRadius)); 121 this.node.children[0].y = fScaleFactor * (fObjectHeight / 2 + (fCornerOuterRadius / 2 - fCornerInnerRadius));
......
1 {
2 "ver": "2.3.1",
3 "uuid": "2efcae66-d6ea-474f-94c4-bcba0e1cd462",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "collect": {
11 "ver": "1.0.4",
12 "uuid": "d4247078-9cef-43ed-b51d-28ab801b0d24",
13 "rawTextureUuid": "2efcae66-d6ea-474f-94c4-bcba0e1cd462",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "0fcc7137-90ce-48bd-93b5-1d0147eb20a2",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "collected": {
11 "ver": "1.0.4",
12 "uuid": "ad8caa34-4fe8-4e8d-9569-954e1f12a76a",
13 "rawTextureUuid": "0fcc7137-90ce-48bd-93b5-1d0147eb20a2",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "49698760-ef09-4a12-b92d-6df639ea56af",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "noSubscribe": {
11 "ver": "1.0.4",
12 "uuid": "ad60cf8a-b3c8-4e75-b71a-ee4c1e65a277",
13 "rawTextureUuid": "49698760-ef09-4a12-b92d-6df639ea56af",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "b62acdf7-3ecb-45e1-9bd2-8e685494af92",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "play": {
11 "ver": "1.0.4",
12 "uuid": "683d48f1-4532-4597-b0db-374f7f502b76",
13 "rawTextureUuid": "b62acdf7-3ecb-45e1-9bd2-8e685494af92",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "a60d7bd4-cd95-44c2-9607-7203ea92f87e",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "play_control_bg": {
11 "ver": "1.0.4",
12 "uuid": "436bae0b-09c8-4df4-b693-ca63203104ad",
13 "rawTextureUuid": "a60d7bd4-cd95-44c2-9607-7203ea92f87e",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 1280,
22 "height": 252,
23 "rawWidth": 1280,
24 "rawHeight": 252,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "18522f3d-301c-447e-82fa-0f45d5812cba",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "play_top_bg": {
11 "ver": "1.0.4",
12 "uuid": "24c36e2e-f0cb-438f-ba74-4539faaa4a17",
13 "rawTextureUuid": "18522f3d-301c-447e-82fa-0f45d5812cba",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 1280,
22 "height": 164,
23 "rawWidth": 1280,
24 "rawHeight": 164,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "9a41f1c0-d301-4f57-8ee0-31ab634dea8d",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "progress_focus": {
11 "ver": "1.0.4",
12 "uuid": "04224e51-8327-4b80-980a-943ccf85964d",
13 "rawTextureUuid": "9a41f1c0-d301-4f57-8ee0-31ab634dea8d",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -4.5,
19 "trimX": 0,
20 "trimY": 9,
21 "width": 50,
22 "height": 63,
23 "rawWidth": 50,
24 "rawHeight": 72,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "5f5d8325-1392-4767-ad42-5d11623e746f",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "stop": {
11 "ver": "1.0.4",
12 "uuid": "de3dba5f-3b9f-431f-95ea-5e62149c6455",
13 "rawTextureUuid": "5f5d8325-1392-4767-ad42-5d11623e746f",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "b08ba89b-7c35-4a68-8f94-67db38f383bc",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "vocal": {
11 "ver": "1.0.4",
12 "uuid": "a781dc4c-51b7-4ca5-9803-b0ee98d9b1d1",
13 "rawTextureUuid": "b08ba89b-7c35-4a68-8f94-67db38f383bc",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "f8ce736d-093e-4aa9-8211-8ff7e503dc55",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "collect": {
11 "ver": "1.0.4",
12 "uuid": "c316a118-2a89-4878-a2be-a8cfba954864",
13 "rawTextureUuid": "f8ce736d-093e-4aa9-8211-8ff7e503dc55",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "a6c60ac6-4829-41cf-b1e5-732262da9965",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "collected": {
11 "ver": "1.0.4",
12 "uuid": "5304c94a-9269-4b03-82cf-9c311a0c911a",
13 "rawTextureUuid": "a6c60ac6-4829-41cf-b1e5-732262da9965",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "0c232fb4-5158-484d-bb1b-619c8b3242dd",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "noSubscribe": {
11 "ver": "1.0.4",
12 "uuid": "74eaa377-a476-4c69-9868-15e5177e9cab",
13 "rawTextureUuid": "0c232fb4-5158-484d-bb1b-619c8b3242dd",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 124,
22 "height": 116,
23 "rawWidth": 124,
24 "rawHeight": 120,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "eb34c96b-187e-4fbe-a3b7-6867f5612398",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "play": {
11 "ver": "1.0.4",
12 "uuid": "20183feb-7567-4504-8630-9b4f630a3813",
13 "rawTextureUuid": "eb34c96b-187e-4fbe-a3b7-6867f5612398",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "5fdecb28-d841-4cb6-8546-317ce04c4d95",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "progress_focus": {
11 "ver": "1.0.4",
12 "uuid": "496af8b2-311c-4150-9649-79c2e8dc5450",
13 "rawTextureUuid": "5fdecb28-d841-4cb6-8546-317ce04c4d95",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -4.5,
19 "trimX": 0,
20 "trimY": 9,
21 "width": 50,
22 "height": 63,
23 "rawWidth": 50,
24 "rawHeight": 72,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "1d6d5ad8-c81a-428c-8029-c9d73e3102fa",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "stop": {
11 "ver": "1.0.4",
12 "uuid": "51298e78-9088-4e7f-94b7-ea8368b28ef4",
13 "rawTextureUuid": "1d6d5ad8-c81a-428c-8029-c9d73e3102fa",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "8c1189c8-1d70-4212-9ec0-5526ed1bf986",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "vocal": {
11 "ver": "1.0.4",
12 "uuid": "5102d93f-c49e-448a-8df0-d59aacbc7f53",
13 "rawTextureUuid": "8c1189c8-1d70-4212-9ec0-5526ed1bf986",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -2,
19 "trimX": 0,
20 "trimY": 4,
21 "width": 68,
22 "height": 132,
23 "rawWidth": 68,
24 "rawHeight": 136,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file