Commit 8c7e38b2 8c7e38b275628cb00d7e4b02b6a65b82ab254b32 by jinwawa

complete sceneProgramFullScreen

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