Commit 45fc7604 authored by 范雪寒's avatar 范雪寒

feat: 界面拼好了

parent e8965591
......@@ -128,5 +128,8 @@
}
}
},
"defaultProject": "ng-template-generator"
"defaultProject": "ng-template-generator",
"cli": {
"analytics": false
}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "44365e5e-81c4-445b-afd8-8f421f7625f2",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "5fa1518c-b27d-446b-9748-dfd0ab92ff2b",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
......@@ -10,6 +10,7 @@ cc.Class({
// 生命周期 onLoad
onLoad() {
this.initSceneData();
},
_imageResList: null,
......@@ -91,7 +92,23 @@ cc.Class({
},
initView() {
const letter = 'W';
const letterBg = cc.instantiate(cc.find(`Img_letter_bg_${letter}`));
letterBg.x = 0;
letterBg.y = 0;
letterBg.parent = cc.find('Canvas/bg/Img_letter_bg');
// cc.find('LetterMask/bg', letterBg).active = false;
const drawNodeList = this.getDrawNodeList(letterBg);
for (const drawNode of drawNodeList) {
// drawNode.opcity = 0;
}
},
getDrawNodeList(letterBg) {
const drawNodeList = [];
drawNodeList.push(...letterBg.children.filter((child) => child.name != LetterMask));
return drawNodeList;
},
initListener() {
......
{
"ver": "2.3.5",
"uuid": "76bd0106-0414-47b5-9650-d3f1a4b0b1fc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 94,
"platformSettings": {},
"subMetas": {
"Btn_switch_big": {
"ver": "1.0.4",
"uuid": "bfa35517-a297-4365-8592-668a446e4af6",
"rawTextureUuid": "76bd0106-0414-47b5-9650-d3f1a4b0b1fc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 94,
"rawWidth": 94,
"rawHeight": 94,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "585133cc-b64e-4891-84fd-828339767929",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 60,
"height": 66,
"platformSettings": {},
"subMetas": {
"Btn_switch_small": {
"ver": "1.0.4",
"uuid": "b7c5c0c9-5f17-4b34-8b8f-74c41172f112",
"rawTextureUuid": "585133cc-b64e-4891-84fd-828339767929",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 60,
"height": 66,
"rawWidth": 60,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4a958be0-39e3-4b07-8ac4-009fe2bae8cf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"Img_bg": {
"ver": "1.0.4",
"uuid": "8f73b88c-350d-453f-9518-1cd419495d9b",
"rawTextureUuid": "4a958be0-39e3-4b07-8ac4-009fe2bae8cf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a7fa6419-828d-43fc-bbe5-c47050e2ff2e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 708,
"height": 553,
"platformSettings": {},
"subMetas": {
"Img_letter_bg": {
"ver": "1.0.4",
"uuid": "d09ea72f-2556-4afb-b787-e722a2ca1f2e",
"rawTextureUuid": "a7fa6419-828d-43fc-bbe5-c47050e2ff2e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 716,
"height": 561,
"rawWidth": 716,
"rawHeight": 561,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8fb93fcf-4b9d-4a8f-b575-f8e6232c01e6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 473,
"height": 109,
"platformSettings": {},
"subMetas": {
"Img_title": {
"ver": "1.0.4",
"uuid": "347b4481-5e24-4306-b1d1-34a0fcd7ad01",
"rawTextureUuid": "8fb93fcf-4b9d-4a8f-b575-f8e6232c01e6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 473,
"height": 109,
"rawWidth": 473,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "79668f32-a757-4c42-8aa7-8d91ab54f284",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "db6d7215-fa78-4661-b7da-aad7d6cafff4",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bd83ae55-3226-46bb-9bfd-ef264c9b0ca0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 364,
"height": 298,
"platformSettings": {},
"subMetas": {
"Img_letter_big_w": {
"ver": "1.0.4",
"uuid": "d4ce5896-f4df-431b-ae8f-105cf9427134",
"rawTextureUuid": "bd83ae55-3226-46bb-9bfd-ef264c9b0ca0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 41.5,
"trimX": 2,
"trimY": 80,
"width": 364,
"height": 298,
"rawWidth": 369,
"rawHeight": 541,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "4c1afad7-cdc6-4cc5-b753-e7f9a4c22c78",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6bc3fb00-2670-4e43-b4db-7fcd25fa117d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 254,
"height": 171,
"platformSettings": {},
"subMetas": {
"Img_letter_small_w": {
"ver": "1.0.4",
"uuid": "f74fbaad-3f7f-45d4-9d35-24211d207e4c",
"rawTextureUuid": "6bc3fb00-2670-4e43-b4db-7fcd25fa117d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1.5,
"offsetY": -22,
"trimX": 56,
"trimY": 207,
"width": 254,
"height": 171,
"rawWidth": 369,
"rawHeight": 541,
"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