|
@@ -1376,12 +1376,17 @@
|
|
|
this.templet = new Laya.Templet();
|
|
|
this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete);
|
|
|
this.templet.on(Laya.Event.ERROR, this, this.onError);
|
|
|
- this.templet.loadAni(`spine/${name}.sk`);
|
|
|
+ if (name === 'mishu') {
|
|
|
+ this.templet.loadAni('spine/nvmishu.sk');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.templet.loadAni(`spine/${name}.sk`);
|
|
|
+ }
|
|
|
this.templet.lock = true;
|
|
|
this.spineName = name;
|
|
|
}
|
|
|
onError() {
|
|
|
- console.log("spine加载出错");
|
|
|
+ console.log("zh:spine加载出错");
|
|
|
}
|
|
|
parseComplete() {
|
|
|
this.loaded = true;
|
|
@@ -5194,7 +5199,7 @@
|
|
|
scale = 1.2;
|
|
|
}
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- node.play(data, 1, true, parent);
|
|
|
+ node.play(data, 0, true, parent);
|
|
|
}
|
|
|
turnLeft() {
|
|
|
this.curIndex--;
|
|
@@ -5441,7 +5446,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
interuptSecretary() {
|
|
|
Laya.timer.clearAll(this);
|
|
@@ -5659,7 +5664,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
@@ -5923,7 +5928,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
returnUIMain() {
|
|
|
this.hide();
|
|
@@ -6198,7 +6203,8 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ console.log("zh:playSecretaryIdle", data);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
startGame(type) {
|
|
|
xGame.common.gameMode = type;
|
|
@@ -6599,7 +6605,7 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- playSecretaryAni() {
|
|
|
+ playSecretaryAni_old() {
|
|
|
let parent = this.ui.secretary.displayObject;
|
|
|
parent.destroyChildren();
|
|
|
let xx = this.ui.secretary.width / 2;
|
|
@@ -6616,6 +6622,21 @@
|
|
|
xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
}
|
|
|
+ playSecretaryAni() {
|
|
|
+ let parent = this.ui.secretary.displayObject;
|
|
|
+ parent.destroyChildren();
|
|
|
+ let xx = this.ui.secretary.width / 2;
|
|
|
+ let yy = this.ui.secretary.height;
|
|
|
+ let scale = xGame.common.getSecretaryScale();
|
|
|
+ let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
+ if (this.success) {
|
|
|
+ let rand = 0;
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
+ }
|
|
|
+ }
|
|
|
restartGame() {
|
|
|
switch (xGame.common.gameMode) {
|
|
|
case GameMode.classic:
|
|
@@ -10338,7 +10359,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
}
|
|
|
UIDraw.uiName = "UIDraw";
|
|
@@ -18523,7 +18544,7 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- playSecretaryAni() {
|
|
|
+ playSecretaryAni_old() {
|
|
|
let parent = this.ui.secretary.displayObject;
|
|
|
parent.destroyChildren();
|
|
|
let xx = this.ui.secretary.width / 2;
|
|
@@ -18540,6 +18561,21 @@
|
|
|
xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
}
|
|
|
+ playSecretaryAni() {
|
|
|
+ let parent = this.ui.secretary.displayObject;
|
|
|
+ parent.destroyChildren();
|
|
|
+ let xx = this.ui.secretary.width / 2;
|
|
|
+ let yy = this.ui.secretary.height;
|
|
|
+ let scale = xGame.common.getSecretaryScale();
|
|
|
+ let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
+ if (this.success) {
|
|
|
+ let rand = 0;
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
+ }
|
|
|
+ }
|
|
|
restartGame() {
|
|
|
switch (xGame.common.gameMode) {
|
|
|
case GameMode.classic:
|
|
@@ -19244,7 +19280,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
returnUIMain() {
|
|
|
this.hide();
|
|
@@ -19768,7 +19804,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
}
|
|
|
UIDraw$1.uiName = "UIDraw";
|
|
@@ -19954,7 +19990,7 @@
|
|
|
scale = 1.2;
|
|
|
}
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- node.play(data, 1, true, parent);
|
|
|
+ node.play(data, 0, true, parent);
|
|
|
}
|
|
|
turnLeft() {
|
|
|
this.curIndex--;
|
|
@@ -20185,7 +20221,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
interuptSecretary() {
|
|
|
Laya.timer.clearAll(this);
|
|
@@ -20383,7 +20419,7 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
@@ -20628,7 +20664,8 @@
|
|
|
let yy = this.ui.secretary.height;
|
|
|
let scale = xGame.common.getSecretaryScale();
|
|
|
let data = { x: xx, y: yy, scaleX: scale, scaleY: scale };
|
|
|
- xGame.common.secretary.play(data, 1, true, parent);
|
|
|
+ console.log("zh:playSecretaryIdle", data);
|
|
|
+ xGame.common.secretary.play(data, 0, true, parent);
|
|
|
}
|
|
|
startGame(type) {
|
|
|
xGame.common.gameMode = type;
|