Commit c0d3ad25 authored by 李维's avatar 李维

Reposition

parent 9e54c779
This diff is collapsed.
......@@ -336,8 +336,8 @@ cc.Class({
},
repositionButton() {
const btn_restart = cc.find('Canvas/buttons/btn_restart');
btn_restart.y = -cc.winSize.height / 2 + 40
const bottomButtons = cc.find('Canvas/bottomButtons');
bottomButtons.y = -cc.winSize.height / 2 + 40
},
initListeners() {
......@@ -348,7 +348,7 @@ cc.Class({
const bigLetterBase = cc.find('Canvas/LetterPicturePage/BigLetterBase');
const pictureWordSmallBg = cc.find('Canvas/LetterPicturePage/PictureWordSmallBg');
const pictureWordBigBg = cc.find('Canvas/LetterPicturePage/PictureWordBigBg');
const btn_restart = cc.find('Canvas/buttons/btn_restart');
const btn_restart = cc.find('Canvas/bottomButtons/btn_restart');
const switch_b2s = cc.find('Canvas/buttons/switch_b2s');
const switch_s2b = cc.find('Canvas/buttons/switch_s2b');
......@@ -398,8 +398,10 @@ cc.Class({
pictureWordSmallBg.active = !pictureWordSmallBg.active;
});
switch_b2s.on('click', () => {
console.log("switch_b2s click")
switch_b2s.on('click', async () => {
console.log("switch_b2s click");
this.playEffect('按钮');
await jelly(switch_b2s);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
cc.tween(switch_b2s)
.call(()=>{
......@@ -419,8 +421,10 @@ cc.Class({
.to(0.1, { angle: 0 })
.start();
});
switch_s2b.on('click', () => {
console.log("switch_s2b click")
switch_s2b.on('click', async () => {
console.log("switch_s2b click");
this.playEffect('按钮');
await jelly(switch_s2b);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
cc.tween(switch_s2b)
.call(()=>{
......@@ -467,9 +471,9 @@ cc.Class({
});
let btnClicked = false;
const btnBefore = cc.find('Canvas/buttons/BtnBefore');
const btnBefore = cc.find('Canvas/bottomButtons/BtnBefore');
btnBefore.active = false;
const btnNext = cc.find('Canvas/buttons/BtnNext');
const btnNext = cc.find('Canvas/bottomButtons/BtnNext');
btnNext.active = false;
btnBefore.on('click', async () => {
......@@ -664,8 +668,8 @@ cc.Class({
},
checkButton() {
const btnBefore = cc.find('Canvas/buttons/BtnBefore');
const btnNext = cc.find('Canvas/buttons/BtnNext');
const btnBefore = cc.find('Canvas/bottomButtons/BtnBefore');
const btnNext = cc.find('Canvas/bottomButtons/BtnNext');
btnBefore.active = true;
btnNext.active = true;
......@@ -1047,7 +1051,7 @@ cc.Class({
},
async showOver() {
let btn_restart = cc.find('Canvas/buttons/btn_restart');
let btn_restart = cc.find('Canvas/bottomButtons/btn_restart');
btn_restart.active = false;
// btn_restart.scaleX = 0;
// btn_restart.scaleY = 0;
......
{
"ver": "2.3.5",
"uuid": "e664ea42-0228-4880-abe6-7926e09fd4a3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 45,
"height": 46,
"platformSettings": {},
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "f19d97eb-8b2c-47d6-be43-cfbd0cf5804e",
"rawTextureUuid": "e664ea42-0228-4880-abe6-7926e09fd4a3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 45,
"height": 46,
"rawWidth": 45,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "980d6008-1148-4382-bc43-67be986026e6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 44,
"height": 46,
"platformSettings": {},
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "611de94c-3f79-48c3-a551-c9b3010bd82b",
"rawTextureUuid": "980d6008-1148-4382-bc43-67be986026e6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 44,
"height": 46,
"rawWidth": 44,
"rawHeight": 46,
"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