Commit ee489dd3 authored by 李维's avatar 李维

Adajst restart buton pos

parent 7b0873bc
......@@ -186,7 +186,7 @@
"array": [
0,
0,
285.1253325490923,
361.9986187818954,
0,
0,
0,
......@@ -5221,7 +5221,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "08cOjV0iJCA73Cizz81YTU"
"_id": "35dGJsFRRO3IqzWWXtnNzA"
},
{
"__type__": "cc.Label",
......@@ -5257,7 +5257,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "e1zPG5mjlIJpknQD4F5sa9"
"_id": "88lpZGxa1PwZMyMXVkpOEW"
},
{
"__type__": "cc.PrivateNode",
......@@ -5320,7 +5320,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "dfY4hkLlJEto3jPLoSQQRk"
"_id": "b2RXCeOL9EP6R9acGAHYig"
},
{
"__type__": "cc.Label",
......@@ -5356,7 +5356,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "451sBcHvhHAYCyBowKnXCt"
"_id": "0cWlolPsVBUoeQ7Fq3yXcs"
},
{
"__type__": "cc.RichText",
......
......@@ -333,6 +333,11 @@ cc.Class({
}
},
repositionButton() {
const btn_restart = cc.find('Canvas/buttons/btn_restart');
btn_restart.y = -cc.winSize.height / 2 + 80
},
initListeners() {
const btnSwitch = cc.find('Canvas/LetterPicturePage/BtnSwitch');
const changeToBig = cc.find('Canvas/LetterPicturePage/BtnSwitch/ChangeToBig');
......@@ -342,6 +347,13 @@ cc.Class({
const pictureWordSmallBg = cc.find('Canvas/LetterPicturePage/PictureWordSmallBg');
const pictureWordBigBg = cc.find('Canvas/LetterPicturePage/PictureWordBigBg');
const btn_restart = cc.find('Canvas/buttons/btn_restart');
this.repositionButton();
let that = this
cc.view.setResizeCallback(function() {
// console.log("sizeChange");
this.repositionButton();
});
btn_restart.on('click', async () => {
if(!this._enableRestart) {
......
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