Commit 79698385 authored by 李维's avatar 李维

dev commit

parent 095ffe42
This diff is collapsed.
...@@ -280,6 +280,7 @@ cc.Class({ ...@@ -280,6 +280,7 @@ cc.Class({
this._imageResList = []; this._imageResList = [];
this._audioResList = []; this._audioResList = [];
this._lastDrawPos = -1; this._lastDrawPos = -1;
this._lastMainBg = 1;
}, },
start() { start() {
...@@ -588,8 +589,20 @@ cc.Class({ ...@@ -588,8 +589,20 @@ cc.Class({
bgNode.addComponent(cc.Button); bgNode.addComponent(cc.Button);
bgNode.on('click', () => { }); bgNode.on('click', () => { });
if (letter !== letter.toLowerCase()) { // if (letter !== letter.toLowerCase()) {
bgNode.getChildByName('BgLower').active = false; // bgNode.getChildByName('BgLower').active = false;
// }
for(let i=1; i<=5; i++) {
if(i==this._lastMainBg) {
bgNode.getChildByName(`bgMain (${i})`).active = true;
} else {
bgNode.getChildByName(`bgMain (${i})`).active = false;
}
}
this._lastMainBg++;
if(this._lastMainBg==6) {
this._lastMainBg = 1;
} }
if (letter == letter.toLowerCase()) { if (letter == letter.toLowerCase()) {
......
{
"ver": "2.3.5",
"uuid": "d97c2dd2-ceb7-486c-ba13-d15f031caf0d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (1)": {
"ver": "1.0.4",
"uuid": "6ec21b50-5e65-4f15-962d-f0bc7468ebf6",
"rawTextureUuid": "d97c2dd2-ceb7-486c-ba13-d15f031caf0d",
"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": "dfb8fccb-1a1d-49de-bb0a-71e07d96a417",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (2)": {
"ver": "1.0.4",
"uuid": "2f63d74b-9f25-4f12-a213-446384ee63d5",
"rawTextureUuid": "dfb8fccb-1a1d-49de-bb0a-71e07d96a417",
"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": "5323d658-b7e3-4276-aa47-2c75b662164f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (3)": {
"ver": "1.0.4",
"uuid": "cadf7ebb-f981-4351-a9fa-e34697e0dd6c",
"rawTextureUuid": "5323d658-b7e3-4276-aa47-2c75b662164f",
"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": "b90de060-23bd-4e0a-9d69-cf068da6f516",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (4)": {
"ver": "1.0.4",
"uuid": "f4b84ace-ef65-4cef-bd0f-c816c930d27c",
"rawTextureUuid": "b90de060-23bd-4e0a-9d69-cf068da6f516",
"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": "aa267dfa-6154-435f-b7f6-71ce95b71528",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (5)": {
"ver": "1.0.4",
"uuid": "1b7f3b2d-9246-4140-b771-21e5e2c8441a",
"rawTextureUuid": "aa267dfa-6154-435f-b7f6-71ce95b71528",
"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
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